sandbox_freebsd.go 826 B

1234567891011121314151617181920212223242526272829303132
  1. package osl
  2. // GenerateKey generates a sandbox key based on the passed
  3. // container id.
  4. func GenerateKey(containerID string) string {
  5. maxLen := 12
  6. if len(containerID) < maxLen {
  7. maxLen = len(containerID)
  8. }
  9. return containerID[:maxLen]
  10. }
  11. // NewSandbox provides a new sandbox instance created in an os specific way
  12. // provided a key which uniquely identifies the sandbox
  13. func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
  14. return nil, nil
  15. }
  16. // GetSandboxForExternalKey returns sandbox object for the supplied path
  17. func GetSandboxForExternalKey(path string, key string) (Sandbox, error) {
  18. return nil, nil
  19. }
  20. // GC triggers garbage collection of namespace path right away
  21. // and waits for it.
  22. func GC() {
  23. }
  24. // SetBasePath sets the base url prefix for the ns path
  25. func SetBasePath(path string) {
  26. }