2017-11-27 22:57:45 +00:00
|
|
|
// +build !linux,!windows,!freebsd
|
2015-05-07 00:09:12 +00:00
|
|
|
|
2015-09-02 23:42:01 +00:00
|
|
|
package osl
|
2015-05-07 00:09:12 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2015-06-12 20:51:57 +00:00
|
|
|
// ErrNotImplemented is for platforms which don't implement sandbox
|
2015-05-07 00:09:12 +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-14 20:45:24 +00:00
|
|
|
func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
|
2015-05-07 00:09:12 +00:00
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
2015-06-12 20:51:57 +00:00
|
|
|
|
|
|
|
// GenerateKey generates a sandbox key based on the passed
|
|
|
|
// container id.
|
|
|
|
func GenerateKey(containerID string) string {
|
|
|
|
return ""
|
|
|
|
}
|