From 78351a8e3dc1cae1ca7f5ab37bc9737715f92420 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 23 Oct 2015 12:58:59 -0700 Subject: [PATCH] Windows: Factor down criu_opts Signed-off-by: John Howard --- libcontainer/{criu_opts.go => criu_opts_unix.go} | 2 ++ libcontainer/criu_opts_windows.go | 6 ++++++ 2 files changed, 8 insertions(+) rename libcontainer/{criu_opts.go => criu_opts_unix.go} (98%) create mode 100644 libcontainer/criu_opts_windows.go diff --git a/libcontainer/criu_opts.go b/libcontainer/criu_opts_unix.go similarity index 98% rename from libcontainer/criu_opts.go rename to libcontainer/criu_opts_unix.go index 6d6062a8..a2a816bd 100644 --- a/libcontainer/criu_opts.go +++ b/libcontainer/criu_opts_unix.go @@ -1,3 +1,5 @@ +// +build linux freebsd + package libcontainer // cgroup restoring strategy provided by criu diff --git a/libcontainer/criu_opts_windows.go b/libcontainer/criu_opts_windows.go new file mode 100644 index 00000000..bc920770 --- /dev/null +++ b/libcontainer/criu_opts_windows.go @@ -0,0 +1,6 @@ +package libcontainer + +// TODO Windows: This can ultimately be entirely factored out as criu is +// a Unix concept not relevant on Windows. +type CriuOpts struct { +}