2021-08-23 13:14:53 +00:00
|
|
|
//go:build !linux && !windows && !freebsd
|
2017-10-25 13:33:06 +00:00
|
|
|
// +build !linux,!windows,!freebsd
|
2015-04-14 01:37:55 +00:00
|
|
|
|
2015-07-02 05:00:48 +00:00
|
|
|
package osl
|
2015-04-14 01:37:55 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2015-06-12 19:03:06 +00:00
|
|
|
// ErrNotImplemented is for platforms which don't implement sandbox
|
2015-04-14 01:37:55 +00:00
|
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
|
|
)
|
|
|
|
|
|
|
|
// NewSandbox provides a new sandbox instance created in an os specific way
|
|
|
|
// provided a key which uniquely identifies the sandbox
|
2016-06-11 00:32:19 +00:00
|
|
|
func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
|
2015-04-14 01:37:55 +00:00
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
2015-05-26 17:46:21 +00:00
|
|
|
|
|
|
|
// GenerateKey generates a sandbox key based on the passed
|
|
|
|
// container id.
|
|
|
|
func GenerateKey(containerID string) string {
|
|
|
|
return ""
|
|
|
|
}
|