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