namespace_windows.go 557 B

1234567891011121314151617181920212223
  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 bool) (Sandbox, error) {
  14. return nil, nil
  15. }
  16. // GC triggers garbage collection of namespace path right away
  17. // and waits for it.
  18. func GC() {
  19. }