Merge pull request #1029 from sameo/topic/typo

plugin: Fix runtime interface documentation
This commit is contained in:
Michael Crosby 2017-06-19 12:05:16 -07:00 committed by GitHub
commit 100b93ea46

View File

@ -34,14 +34,15 @@ type Exit struct {
type Runtime interface { type Runtime interface {
// ID of the runtime // ID of the runtime
ID() string ID() string
// Create creates a container with the provided id and options // Create creates a task with the provided id and options.
Create(ctx context.Context, id string, opts CreateOpts) (Task, error) Create(ctx context.Context, id string, opts CreateOpts) (Task, error)
// Get returns a container // Get returns a task.
Get(context.Context, string) (Task, error) Get(context.Context, string) (Task, error)
// Containers returns all the current containers for the runtime // Tasks returns all the current tasks for the runtime.
// Any container runs at most one task at a time.
Tasks(context.Context) ([]Task, error) Tasks(context.Context) ([]Task, error)
// Delete removes the container in the runtime // Delete removes the task in the runtime.
Delete(context.Context, Task) (*Exit, error) Delete(context.Context, Task) (*Exit, error)
// Events returns events for the runtime and all containers created by the runtime // Events returns events for the runtime and all tasks created by the runtime
Events(context.Context) <-chan *Event Events(context.Context) <-chan *Event
} }