github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/libnetwork/osl/sandbox_unsupported.go (about)

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