2016-09-28 22:09:22 +00:00
|
|
|
package containerkit
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrProcessSet = errors.New("containerkit: container process is already set")
|
|
|
|
)
|
|
|
|
|
|
|
|
type ExecutionDriver interface {
|
|
|
|
Create(*Container) (ProcessDelegate, error)
|
|
|
|
Start(*Container) error
|
|
|
|
Delete(*Container) error
|
|
|
|
Exec(*Container, *Process) (ProcessDelegate, error)
|
2016-09-30 20:51:10 +00:00
|
|
|
Load(id string) (ProcessDelegate, error)
|
2016-09-28 22:09:22 +00:00
|
|
|
}
|