2015-07-21 16:41:01 +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
|
2015-05-26 17:46:21 +00:00
|
|
|
func NewSandbox(key string, osCreate 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 ""
|
|
|
|
}
|