github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/libnetwork/osl/sandbox_unsupported.go (about) 1 //go:build !linux && !windows && !freebsd 2 3 package osl 4 5 import "errors" 6 7 // ErrNotImplemented is for platforms which don't implement sandbox 8 var ErrNotImplemented = errors.New("not implemented") 9 10 // NewSandbox provides a new sandbox instance created in an os specific way 11 // provided a key which uniquely identifies the sandbox 12 func NewSandbox(key string, osCreate, isRestore bool) (*Namespace, error) { 13 return nil, ErrNotImplemented 14 } 15 16 // GenerateKey generates a sandbox key based on the passed 17 // container id. 18 func GenerateKey(containerID string) string { 19 return "" 20 }