2016-05-20 16:23:53 -04:00
|
|
|
// +build !linux,!windows,!freebsd,!solaris
|
2015-04-13 21:37:55 -04:00
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
package osl
|
2015-04-13 21:37:55 -04:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2015-06-12 15:03:06 -04:00
|
|
|
// ErrNotImplemented is for platforms which don't implement sandbox
|
2015-04-13 21:37:55 -04: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-10 20:32:19 -04:00
|
|
|
func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
|
2015-04-13 21:37:55 -04:00
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
2015-05-26 13:46:21 -04:00
|
|
|
|
|
|
|
// GenerateKey generates a sandbox key based on the passed
|
|
|
|
// container id.
|
|
|
|
func GenerateKey(containerID string) string {
|
|
|
|
return ""
|
|
|
|
}
|