github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libnetwork/osl/sandbox_freebsd.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  	maxLen := 12
     7  	if len(containerID) < maxLen {
     8  		maxLen = len(containerID)
     9  	}
    10  
    11  	return containerID[:maxLen]
    12  }
    13  
    14  // NewSandbox provides a new sandbox instance created in an os specific way
    15  // provided a key which uniquely identifies the sandbox
    16  func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
    17  	return nil, nil
    18  }
    19  
    20  // GetSandboxForExternalKey returns sandbox object for the supplied path
    21  func GetSandboxForExternalKey(path string, key string) (Sandbox, error) {
    22  	return nil, nil
    23  }
    24  
    25  // GC triggers garbage collection of namespace path right away
    26  // and waits for it.
    27  func GC() {
    28  }
    29  
    30  // SetBasePath sets the base url prefix for the ns path
    31  func SetBasePath(path string) {
    32  }