Versions in this module Expand all Collapse all v1 v1.12.0 Jul 26, 2016 Changes in this version + var ErrControllerClosed = errors.New("exec: controller closed") + var ErrRuntimeUnsupported = errors.New("exec: unsupported runtime") + var ErrTaskNoop = errors.New("exec: task noop") + var ErrTaskPrepared = errors.New("exec: task already prepared") + var ErrTaskRetry = errors.New("exec: task retry") + var ErrTaskStarted = errors.New("exec: task already started") + var ErrTaskUpdateRejected = errors.New("exec: task update rejected") + func Do(ctx context.Context, task *api.Task, ctlr Controller) (*api.TaskStatus, error) + func IsTemporary(err error) bool + func MakeTemporary(err error) error + type ContainerStatuser interface + ContainerStatus func(ctx context.Context) (*api.ContainerStatus, error) + type Controller interface + Close func() error + Prepare func(ctx context.Context) error + Remove func(ctx context.Context) error + Shutdown func(ctx context.Context) error + Start func(ctx context.Context) error + Terminate func(ctx context.Context) error + Update func(ctx context.Context, t *api.Task) error + Wait func(ctx context.Context) error + func Resolve(ctx context.Context, task *api.Task, executor Executor) (Controller, *api.TaskStatus, error) + type Executor interface + Configure func(ctx context.Context, node *api.Node) error + Controller func(t *api.Task) (Controller, error) + Describe func(ctx context.Context) (*api.NodeDescription, error) + SetNetworkBootstrapKeys func([]*api.EncryptionKey) error + type ExitCoder interface + ExitCode func() int + type MockContainerStatuser struct + func NewMockContainerStatuser(ctrl *gomock.Controller) *MockContainerStatuser + func (_m *MockContainerStatuser) ContainerStatus(ctx context.Context) (*api.ContainerStatus, error) + func (_m *MockContainerStatuser) EXPECT() *_MockContainerStatuserRecorder + type MockController struct + func NewMockController(ctrl *gomock.Controller) *MockController + func (_m *MockController) Close() error + func (_m *MockController) EXPECT() *_MockControllerRecorder + func (_m *MockController) Prepare(ctx context.Context) error + func (_m *MockController) Remove(ctx context.Context) error + func (_m *MockController) Shutdown(ctx context.Context) error + func (_m *MockController) Start(ctx context.Context) error + func (_m *MockController) Terminate(ctx context.Context) error + func (_m *MockController) Update(ctx context.Context, t *api.Task) error + func (_m *MockController) Wait(ctx context.Context) error + type Temporary interface + Temporary func() bool