sandbox_unsupported.go 611 B

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