2016-11-29 16:08:30 -08:00
|
|
|
package containerd
|
2016-09-28 15:09:22 -07:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2016-11-29 16:08:30 -08:00
|
|
|
var ErrProcessSet = errors.New("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
|
|
|
}
|