namespace_windows.go 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package osl
  2. import "testing"
  3. // GenerateKey generates a sandbox key based on the passed
  4. // container id.
  5. func GenerateKey(containerID string) string {
  6. return containerID
  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, nil
  12. }
  13. func GetSandboxForExternalKey(path string, key string) (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. }
  20. // InitOSContext initializes OS context while configuring network resources
  21. func InitOSContext() func() {
  22. return func() {}
  23. }
  24. // SetupTestOSContext sets up a separate test OS context in which tests will be executed.
  25. func SetupTestOSContext(t *testing.T) func() {
  26. return func() {}
  27. }
  28. // SetBasePath sets the base url prefix for the ns path
  29. func SetBasePath(path string) {
  30. }