github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/libnetwork/osl/namespace_windows.go (about)

     1  package osl
     2  
     3  import "testing"
     4  
     5  // GenerateKey generates a sandbox key based on the passed
     6  // container id.
     7  func GenerateKey(containerID string) string {
     8  	return containerID
     9  }
    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  
    17  func GetSandboxForExternalKey(path string, key string) (Sandbox, error) {
    18  	return nil, nil
    19  }
    20  
    21  // GC triggers garbage collection of namespace path right away
    22  // and waits for it.
    23  func GC() {
    24  }
    25  
    26  // InitOSContext initializes OS context while configuring network resources
    27  func InitOSContext() func() {
    28  	return func() {}
    29  }
    30  
    31  // SetupTestOSContext sets up a separate test  OS context in which tests will be executed.
    32  func SetupTestOSContext(t *testing.T) func() {
    33  	return func() {}
    34  }
    35  
    36  // SetBasePath sets the base url prefix for the ns path
    37  func SetBasePath(path string) {
    38  }