namespace_windows.go 657 B

12345678910111213141516171819202122232425
  1. package osl
  2. // GenerateKey generates a sandbox key based on the passed
  3. // container id.
  4. func GenerateKey(containerID string) string {
  5. return containerID
  6. }
  7. type Namespace struct{}
  8. func (n *Namespace) Destroy() error { return nil }
  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) (*Namespace, error) {
  12. return nil, nil
  13. }
  14. func GetSandboxForExternalKey(path string, key string) (*Namespace, error) {
  15. return nil, nil
  16. }
  17. // GC triggers garbage collection of namespace path right away
  18. // and waits for it.
  19. func GC() {}