sandbox_unsupported.go 573 B

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