github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/libnetwork/osl/namespace_windows.go (about)

     1  package osl
     2  
     3  // GenerateKey generates a sandbox key based on the passed
     4  // container id.
     5  func GenerateKey(containerID string) string {
     6  	return containerID
     7  }
     8  
     9  type Namespace struct{}
    10  
    11  func (n *Namespace) Destroy() error { return nil }
    12  
    13  // NewSandbox provides a new sandbox instance created in an os specific way
    14  // provided a key which uniquely identifies the sandbox
    15  func NewSandbox(key string, osCreate, isRestore bool) (*Namespace, error) {
    16  	return nil, nil
    17  }
    18  
    19  func GetSandboxForExternalKey(path string, key string) (*Namespace, error) {
    20  	return nil, nil
    21  }
    22  
    23  // GC triggers garbage collection of namespace path right away
    24  // and waits for it.
    25  func GC() {}