container

package
v0.0.0-...-120fae7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2017 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrImageRequired returned if a task is missing the image definition.
	ErrImageRequired = errors.New("dockerexec: image required")

	// ErrContainerDestroyed returned when a container is prematurely destroyed
	// during a wait call.
	ErrContainerDestroyed = errors.New("dockerexec: container destroyed")

	// ErrContainerUnhealthy returned if controller detects the health check failure
	ErrContainerUnhealthy = errors.New("dockerexec: unhealthy container")
)

Functions

func NewExecutor

func NewExecutor(client engineapi.APIClient) exec.Executor

NewExecutor returns an executor from the docker client.

Types

type MockAPIClient

type MockAPIClient struct {
	// contains filtered or unexported fields
}

Mock of APIClient interface

func NewMockAPIClient

func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient

func (*MockAPIClient) CheckpointCreate

func (_m *MockAPIClient) CheckpointCreate(_param0 context.Context, _param1 string, _param2 types.CheckpointCreateOptions) error

func (*MockAPIClient) CheckpointDelete

func (_m *MockAPIClient) CheckpointDelete(_param0 context.Context, _param1 string, _param2 types.CheckpointDeleteOptions) error

func (*MockAPIClient) CheckpointList

func (_m *MockAPIClient) CheckpointList(_param0 context.Context, _param1 string, _param2 types.CheckpointListOptions) ([]types.Checkpoint, error)

func (*MockAPIClient) ClientVersion

func (_m *MockAPIClient) ClientVersion() string

func (*MockAPIClient) ContainerAttach

func (_m *MockAPIClient) ContainerAttach(_param0 context.Context, _param1 string, _param2 types.ContainerAttachOptions) (types.HijackedResponse, error)

func (*MockAPIClient) ContainerCommit

func (_m *MockAPIClient) ContainerCommit(_param0 context.Context, _param1 string, _param2 types.ContainerCommitOptions) (types.IDResponse, error)

func (*MockAPIClient) ContainerCreate

func (_m *MockAPIClient) ContainerCreate(_param0 context.Context, _param1 *container.Config, _param2 *container.HostConfig, _param3 *network.NetworkingConfig, _param4 string) (container.ContainerCreateCreatedBody, error)

func (*MockAPIClient) ContainerDiff

func (_m *MockAPIClient) ContainerDiff(_param0 context.Context, _param1 string) ([]types.ContainerChange, error)

func (*MockAPIClient) ContainerExecAttach

func (_m *MockAPIClient) ContainerExecAttach(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.HijackedResponse, error)

func (*MockAPIClient) ContainerExecCreate

func (_m *MockAPIClient) ContainerExecCreate(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.IDResponse, error)

func (*MockAPIClient) ContainerExecInspect

func (_m *MockAPIClient) ContainerExecInspect(_param0 context.Context, _param1 string) (types.ContainerExecInspect, error)

func (*MockAPIClient) ContainerExecResize

func (_m *MockAPIClient) ContainerExecResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error

func (*MockAPIClient) ContainerExecStart

func (_m *MockAPIClient) ContainerExecStart(_param0 context.Context, _param1 string, _param2 types.ExecStartCheck) error

func (*MockAPIClient) ContainerExport

func (_m *MockAPIClient) ContainerExport(_param0 context.Context, _param1 string) (io.ReadCloser, error)

func (*MockAPIClient) ContainerInspect

func (_m *MockAPIClient) ContainerInspect(_param0 context.Context, _param1 string) (types.ContainerJSON, error)

func (*MockAPIClient) ContainerInspectWithRaw

func (_m *MockAPIClient) ContainerInspectWithRaw(_param0 context.Context, _param1 string, _param2 bool) (types.ContainerJSON, []byte, error)

func (*MockAPIClient) ContainerKill

func (_m *MockAPIClient) ContainerKill(_param0 context.Context, _param1 string, _param2 string) error

func (*MockAPIClient) ContainerList

func (_m *MockAPIClient) ContainerList(_param0 context.Context, _param1 types.ContainerListOptions) ([]types.Container, error)

func (*MockAPIClient) ContainerLogs

func (_m *MockAPIClient) ContainerLogs(_param0 context.Context, _param1 string, _param2 types.ContainerLogsOptions) (io.ReadCloser, error)

func (*MockAPIClient) ContainerPause

func (_m *MockAPIClient) ContainerPause(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ContainerRemove

func (_m *MockAPIClient) ContainerRemove(_param0 context.Context, _param1 string, _param2 types.ContainerRemoveOptions) error

func (*MockAPIClient) ContainerRename

func (_m *MockAPIClient) ContainerRename(_param0 context.Context, _param1 string, _param2 string) error

func (*MockAPIClient) ContainerResize

func (_m *MockAPIClient) ContainerResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error

func (*MockAPIClient) ContainerRestart

func (_m *MockAPIClient) ContainerRestart(_param0 context.Context, _param1 string, _param2 *time.Duration) error

func (*MockAPIClient) ContainerStart

func (_m *MockAPIClient) ContainerStart(_param0 context.Context, _param1 string, _param2 types.ContainerStartOptions) error

func (*MockAPIClient) ContainerStatPath

func (_m *MockAPIClient) ContainerStatPath(_param0 context.Context, _param1 string, _param2 string) (types.ContainerPathStat, error)

func (*MockAPIClient) ContainerStats

func (_m *MockAPIClient) ContainerStats(_param0 context.Context, _param1 string, _param2 bool) (types.ContainerStats, error)

func (*MockAPIClient) ContainerStop

func (_m *MockAPIClient) ContainerStop(_param0 context.Context, _param1 string, _param2 *time.Duration) error

func (*MockAPIClient) ContainerTop

func (_m *MockAPIClient) ContainerTop(_param0 context.Context, _param1 string, _param2 []string) (types.ContainerProcessList, error)

func (*MockAPIClient) ContainerUnpause

func (_m *MockAPIClient) ContainerUnpause(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ContainerUpdate

func (_m *MockAPIClient) ContainerUpdate(_param0 context.Context, _param1 string, _param2 container.UpdateConfig) (container.ContainerUpdateOKBody, error)

func (*MockAPIClient) ContainerWait

func (_m *MockAPIClient) ContainerWait(_param0 context.Context, _param1 string) (int64, error)

func (*MockAPIClient) ContainersPrune

func (_m *MockAPIClient) ContainersPrune(_param0 context.Context, _param1 filters.Args) (types.ContainersPruneReport, error)

func (*MockAPIClient) CopyFromContainer

func (_m *MockAPIClient) CopyFromContainer(_param0 context.Context, _param1 string, _param2 string) (io.ReadCloser, types.ContainerPathStat, error)

func (*MockAPIClient) CopyToContainer

func (_m *MockAPIClient) CopyToContainer(_param0 context.Context, _param1 string, _param2 string, _param3 io.Reader, _param4 types.CopyToContainerOptions) error

func (*MockAPIClient) DiskUsage

func (_m *MockAPIClient) DiskUsage(_param0 context.Context) (types.DiskUsage, error)

func (*MockAPIClient) EXPECT

func (_m *MockAPIClient) EXPECT() *_MockAPIClientRecorder

func (*MockAPIClient) Events

func (_m *MockAPIClient) Events(_param0 context.Context, _param1 types.EventsOptions) (<-chan events.Message, <-chan error)

func (*MockAPIClient) ImageBuild

func (_m *MockAPIClient) ImageBuild(_param0 context.Context, _param1 io.Reader, _param2 types.ImageBuildOptions) (types.ImageBuildResponse, error)

func (*MockAPIClient) ImageCreate

func (_m *MockAPIClient) ImageCreate(_param0 context.Context, _param1 string, _param2 types.ImageCreateOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageHistory

func (_m *MockAPIClient) ImageHistory(_param0 context.Context, _param1 string) ([]types.ImageHistory, error)

func (*MockAPIClient) ImageImport

func (_m *MockAPIClient) ImageImport(_param0 context.Context, _param1 types.ImageImportSource, _param2 string, _param3 types.ImageImportOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageInspectWithRaw

func (_m *MockAPIClient) ImageInspectWithRaw(_param0 context.Context, _param1 string) (types.ImageInspect, []byte, error)

func (*MockAPIClient) ImageList

func (_m *MockAPIClient) ImageList(_param0 context.Context, _param1 types.ImageListOptions) ([]types.ImageSummary, error)

func (*MockAPIClient) ImageLoad

func (_m *MockAPIClient) ImageLoad(_param0 context.Context, _param1 io.Reader, _param2 bool) (types.ImageLoadResponse, error)

func (*MockAPIClient) ImagePull

func (_m *MockAPIClient) ImagePull(_param0 context.Context, _param1 string, _param2 types.ImagePullOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImagePush

func (_m *MockAPIClient) ImagePush(_param0 context.Context, _param1 string, _param2 types.ImagePushOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageRemove

func (_m *MockAPIClient) ImageRemove(_param0 context.Context, _param1 string, _param2 types.ImageRemoveOptions) ([]types.ImageDelete, error)

func (*MockAPIClient) ImageSave

func (_m *MockAPIClient) ImageSave(_param0 context.Context, _param1 []string) (io.ReadCloser, error)

func (*MockAPIClient) ImageSearch

func (_m *MockAPIClient) ImageSearch(_param0 context.Context, _param1 string, _param2 types.ImageSearchOptions) ([]registry.SearchResult, error)

func (*MockAPIClient) ImageTag

func (_m *MockAPIClient) ImageTag(_param0 context.Context, _param1 string, _param2 string) error

func (*MockAPIClient) ImagesPrune

func (_m *MockAPIClient) ImagesPrune(_param0 context.Context, _param1 filters.Args) (types.ImagesPruneReport, error)

func (*MockAPIClient) Info

func (_m *MockAPIClient) Info(_param0 context.Context) (types.Info, error)

func (*MockAPIClient) NetworkConnect

func (_m *MockAPIClient) NetworkConnect(_param0 context.Context, _param1 string, _param2 string, _param3 *network.EndpointSettings) error

func (*MockAPIClient) NetworkCreate

func (_m *MockAPIClient) NetworkCreate(_param0 context.Context, _param1 string, _param2 types.NetworkCreate) (types.NetworkCreateResponse, error)

func (*MockAPIClient) NetworkDisconnect

func (_m *MockAPIClient) NetworkDisconnect(_param0 context.Context, _param1 string, _param2 string, _param3 bool) error

func (*MockAPIClient) NetworkInspect

func (_m *MockAPIClient) NetworkInspect(_param0 context.Context, _param1 string) (types.NetworkResource, error)

func (*MockAPIClient) NetworkInspectWithRaw

func (_m *MockAPIClient) NetworkInspectWithRaw(_param0 context.Context, _param1 string) (types.NetworkResource, []byte, error)

func (*MockAPIClient) NetworkList

func (_m *MockAPIClient) NetworkList(_param0 context.Context, _param1 types.NetworkListOptions) ([]types.NetworkResource, error)

func (*MockAPIClient) NetworkRemove

func (_m *MockAPIClient) NetworkRemove(_param0 context.Context, _param1 string) error

func (*MockAPIClient) NetworksPrune

func (_m *MockAPIClient) NetworksPrune(_param0 context.Context, _param1 filters.Args) (types.NetworksPruneReport, error)

func (*MockAPIClient) NodeInspectWithRaw

func (_m *MockAPIClient) NodeInspectWithRaw(_param0 context.Context, _param1 string) (swarm.Node, []byte, error)

func (*MockAPIClient) NodeList

func (_m *MockAPIClient) NodeList(_param0 context.Context, _param1 types.NodeListOptions) ([]swarm.Node, error)

func (*MockAPIClient) NodeRemove

func (_m *MockAPIClient) NodeRemove(_param0 context.Context, _param1 string, _param2 types.NodeRemoveOptions) error

func (*MockAPIClient) NodeUpdate

func (_m *MockAPIClient) NodeUpdate(_param0 context.Context, _param1 string, _param2 swarm.Version, _param3 swarm.NodeSpec) error

func (*MockAPIClient) Ping

func (_m *MockAPIClient) Ping(_param0 context.Context) (types.Ping, error)

func (*MockAPIClient) PluginCreate

func (_m *MockAPIClient) PluginCreate(_param0 context.Context, _param1 io.Reader, _param2 types.PluginCreateOptions) error

func (*MockAPIClient) PluginDisable

func (_m *MockAPIClient) PluginDisable(_param0 context.Context, _param1 string, _param2 types.PluginDisableOptions) error

func (*MockAPIClient) PluginEnable

func (_m *MockAPIClient) PluginEnable(_param0 context.Context, _param1 string, _param2 types.PluginEnableOptions) error

func (*MockAPIClient) PluginInspectWithRaw

func (_m *MockAPIClient) PluginInspectWithRaw(_param0 context.Context, _param1 string) (*types.Plugin, []byte, error)

func (*MockAPIClient) PluginInstall

func (_m *MockAPIClient) PluginInstall(_param0 context.Context, _param1 string, _param2 types.PluginInstallOptions) (io.ReadCloser, error)

func (*MockAPIClient) PluginList

func (_m *MockAPIClient) PluginList(_param0 context.Context) (types.PluginsListResponse, error)

func (*MockAPIClient) PluginPush

func (_m *MockAPIClient) PluginPush(_param0 context.Context, _param1 string, _param2 string) (io.ReadCloser, error)

func (*MockAPIClient) PluginRemove

func (_m *MockAPIClient) PluginRemove(_param0 context.Context, _param1 string, _param2 types.PluginRemoveOptions) error

func (*MockAPIClient) PluginSet

func (_m *MockAPIClient) PluginSet(_param0 context.Context, _param1 string, _param2 []string) error

func (*MockAPIClient) RegistryLogin

func (_m *MockAPIClient) RegistryLogin(_param0 context.Context, _param1 types.AuthConfig) (registry.AuthenticateOKBody, error)

func (*MockAPIClient) SecretCreate

func (_m *MockAPIClient) SecretCreate(_param0 context.Context, _param1 swarm.SecretSpec) (types.SecretCreateResponse, error)

func (*MockAPIClient) SecretInspectWithRaw

func (_m *MockAPIClient) SecretInspectWithRaw(_param0 context.Context, _param1 string) (swarm.Secret, []byte, error)

func (*MockAPIClient) SecretList

func (_m *MockAPIClient) SecretList(_param0 context.Context, _param1 types.SecretListOptions) ([]swarm.Secret, error)

func (*MockAPIClient) SecretRemove

func (_m *MockAPIClient) SecretRemove(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ServerVersion

func (_m *MockAPIClient) ServerVersion(_param0 context.Context) (types.Version, error)

func (*MockAPIClient) ServiceCreate

func (_m *MockAPIClient) ServiceCreate(_param0 context.Context, _param1 swarm.ServiceSpec, _param2 types.ServiceCreateOptions) (types.ServiceCreateResponse, error)

func (*MockAPIClient) ServiceInspectWithRaw

func (_m *MockAPIClient) ServiceInspectWithRaw(_param0 context.Context, _param1 string) (swarm.Service, []byte, error)

func (*MockAPIClient) ServiceList

func (_m *MockAPIClient) ServiceList(_param0 context.Context, _param1 types.ServiceListOptions) ([]swarm.Service, error)

func (*MockAPIClient) ServiceLogs

func (_m *MockAPIClient) ServiceLogs(_param0 context.Context, _param1 string, _param2 types.ContainerLogsOptions) (io.ReadCloser, error)

func (*MockAPIClient) ServiceRemove

func (_m *MockAPIClient) ServiceRemove(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ServiceUpdate

func (_m *MockAPIClient) ServiceUpdate(_param0 context.Context, _param1 string, _param2 swarm.Version, _param3 swarm.ServiceSpec, _param4 types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error)

func (*MockAPIClient) SwarmGetUnlockKey

func (_m *MockAPIClient) SwarmGetUnlockKey(_param0 context.Context) (types.SwarmUnlockKeyResponse, error)

func (*MockAPIClient) SwarmInit

func (_m *MockAPIClient) SwarmInit(_param0 context.Context, _param1 swarm.InitRequest) (string, error)

func (*MockAPIClient) SwarmInspect

func (_m *MockAPIClient) SwarmInspect(_param0 context.Context) (swarm.Swarm, error)

func (*MockAPIClient) SwarmJoin

func (_m *MockAPIClient) SwarmJoin(_param0 context.Context, _param1 swarm.JoinRequest) error

func (*MockAPIClient) SwarmLeave

func (_m *MockAPIClient) SwarmLeave(_param0 context.Context, _param1 bool) error

func (*MockAPIClient) SwarmUnlock

func (_m *MockAPIClient) SwarmUnlock(_param0 context.Context, _param1 swarm.UnlockRequest) error

func (*MockAPIClient) SwarmUpdate

func (_m *MockAPIClient) SwarmUpdate(_param0 context.Context, _param1 swarm.Version, _param2 swarm.Spec, _param3 swarm.UpdateFlags) error

func (*MockAPIClient) TaskInspectWithRaw

func (_m *MockAPIClient) TaskInspectWithRaw(_param0 context.Context, _param1 string) (swarm.Task, []byte, error)

func (*MockAPIClient) TaskList

func (_m *MockAPIClient) TaskList(_param0 context.Context, _param1 types.TaskListOptions) ([]swarm.Task, error)

func (*MockAPIClient) UpdateClientVersion

func (_m *MockAPIClient) UpdateClientVersion(_param0 string)

func (*MockAPIClient) VolumeCreate

func (_m *MockAPIClient) VolumeCreate(_param0 context.Context, _param1 volume.VolumesCreateBody) (types.Volume, error)

func (*MockAPIClient) VolumeInspect

func (_m *MockAPIClient) VolumeInspect(_param0 context.Context, _param1 string) (types.Volume, error)

func (*MockAPIClient) VolumeInspectWithRaw

func (_m *MockAPIClient) VolumeInspectWithRaw(_param0 context.Context, _param1 string) (types.Volume, []byte, error)

func (*MockAPIClient) VolumeList

func (_m *MockAPIClient) VolumeList(_param0 context.Context, _param1 filters.Args) (volume.VolumesListOKBody, error)

func (*MockAPIClient) VolumeRemove

func (_m *MockAPIClient) VolumeRemove(_param0 context.Context, _param1 string, _param2 bool) error

func (*MockAPIClient) VolumesPrune

func (_m *MockAPIClient) VolumesPrune(_param0 context.Context, _param1 filters.Args) (types.VolumesPruneReport, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL