2016-09-28 22:09:22 +00:00
|
|
|
package containerkit
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2016-10-28 22:51:31 +00:00
|
|
|
var ErrProcessSet = errors.New("containerkit: container process is already set")
|
2016-09-28 22:09:22 +00:00
|
|
|
|
2016-10-28 22:51:31 +00:00
|
|
|
type Runtime interface {
|
2016-09-28 22:09:22 +00:00
|
|
|
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
|
|
|
}
|