3 // NewSandbox provides a new sandbox instance created in an os specific way
4 // provided a key which uniquely identifies the sandbox
5 func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
9 // GenerateKey generates a sandbox key based on the passed
11 func GenerateKey(containerID string) string {
14 if len(containerID) < maxLen {
15 maxLen = len(containerID)
18 return containerID[:maxLen]
21 // InitOSContext initializes OS context while configuring network resources
22 func InitOSContext() func() {