2015-07-21 12:41:01 -04:00
|
|
|
// +build !linux,!windows,!freebsd
|
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
|
2015-05-26 13:46:21 -04:00
|
|
|
func NewSandbox(key string, osCreate 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 ""
|
|
|
|
}
|