github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/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) (*Namespace, error) {
    17  	return nil, nil
    18  }
    19  
    20  // GetSandboxForExternalKey returns sandbox object for the supplied path
    21  func GetSandboxForExternalKey(path string, key string) (*Namespace, 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  }