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