From 6c0ffdd70a5f2f0926dd9db562110752dabb521d Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Tue, 14 Apr 2015 01:37:55 +0000 Subject: [PATCH] Added unsupported implementations for sandbox and sandbox test code Signed-off-by: Jana Radhakrishnan --- libnetwork/sandbox/sandbox_unsupported.go | 15 ++++++++++++++ .../sandbox/sandbox_unsupported_test.go | 20 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 libnetwork/sandbox/sandbox_unsupported.go create mode 100644 libnetwork/sandbox/sandbox_unsupported_test.go diff --git a/libnetwork/sandbox/sandbox_unsupported.go b/libnetwork/sandbox/sandbox_unsupported.go new file mode 100644 index 0000000000..aa116fda07 --- /dev/null +++ b/libnetwork/sandbox/sandbox_unsupported.go @@ -0,0 +1,15 @@ +// +build !linux + +package sandbox + +import "errors" + +var ( + ErrNotImplemented = errors.New("not implemented") +) + +// NewSandbox provides a new sandbox instance created in an os specific way +// provided a key which uniquely identifies the sandbox +func NewSandbox(key string) (Sandbox, error) { + return nil, ErrNotImplemented +} diff --git a/libnetwork/sandbox/sandbox_unsupported_test.go b/libnetwork/sandbox/sandbox_unsupported_test.go new file mode 100644 index 0000000000..48dc2aa726 --- /dev/null +++ b/libnetwork/sandbox/sandbox_unsupported_test.go @@ -0,0 +1,20 @@ +// +build !linux + +package sandbox + +import ( + "errors" + "testing" +) + +var ( + ErrNotImplemented = errors.New("not implemented") +) + +func newKey(t *testing.T) (string, error) { + return nil, ErrNotImplemented +} + +func verifySandbox(t *testing.T, s Sandbox) { + return +}