sandbox_solaris.go 597 B

123456789101112131415161718192021222324
  1. package osl
  2. // NewSandbox provides a new sandbox instance created in an os specific way
  3. // provided a key which uniquely identifies the sandbox
  4. func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
  5. return nil, nil
  6. }
  7. // GenerateKey generates a sandbox key based on the passed
  8. // container id.
  9. func GenerateKey(containerID string) string {
  10. maxLen := 12
  11. if len(containerID) < maxLen {
  12. maxLen = len(containerID)
  13. }
  14. return containerID[:maxLen]
  15. }
  16. // InitOSContext initializes OS context while configuring network resources
  17. func InitOSContext() func() {
  18. return func() {}
  19. }