2015-07-21 19:41:01 +03:00
|
|
|
// +build !linux,!windows,!freebsd
|
2015-04-14 01:37:55 +00:00
|
|
|
|
2015-07-01 22:00:48 -07:00
|
|
|
package osl
|
2015-04-14 01:37:55 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2015-06-12 12:03:06 -07: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 10:46:21 -07:00
|
|
|
func NewSandbox(key string, osCreate bool) (Sandbox, error) {
|
2015-04-14 01:37:55 +00:00
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
2015-05-26 10:46:21 -07:00
|
|
|
|
|
|
|
// GenerateKey generates a sandbox key based on the passed
|
|
|
|
// container id.
|
|
|
|
func GenerateKey(containerID string) string {
|
|
|
|
return ""
|
|
|
|
}
|