sandbox_unsupported.go 578 B

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