element/runtime/runtime.go
Evan Hazlett 1dd748e3f2
wip: service registration
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-07-30 04:13:44 -04:00

14 lines
296 B
Go

package runtime
type Container interface {
ID() string
}
type Runtime interface {
// Create creates a new container
Create(spec *Spec) error
// Delete deletes a container
Delete(id string) error
// List returns all containers in the runtime
List(namespace string) ([]Container, error)
}