github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libnetwork/osl/sandbox_unsupported.go (about)

     1  //go:build !linux && !windows && !freebsd
     2  // +build !linux,!windows,!freebsd
     3  
     4  package osl
     5  
     6  import "errors"
     7  
     8  var (
     9  	// ErrNotImplemented is for platforms which don't implement sandbox
    10  	ErrNotImplemented = errors.New("not implemented")
    11  )
    12  
    13  // NewSandbox provides a new sandbox instance created in an os specific way
    14  // provided a key which uniquely identifies the sandbox
    15  func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
    16  	return nil, ErrNotImplemented
    17  }
    18  
    19  // GenerateKey generates a sandbox key based on the passed
    20  // container id.
    21  func GenerateKey(containerID string) string {
    22  	return ""
    23  }