Added unsupported implementations for sandbox and sandbox
test code Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
0a25032277
commit
6c0ffdd70a
2 changed files with 35 additions and 0 deletions
15
libnetwork/sandbox/sandbox_unsupported.go
Normal file
15
libnetwork/sandbox/sandbox_unsupported.go
Normal file
|
@ -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
|
||||||
|
}
|
20
libnetwork/sandbox/sandbox_unsupported_test.go
Normal file
20
libnetwork/sandbox/sandbox_unsupported_test.go
Normal file
|
@ -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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue