Documentation ¶
Index ¶
- Variables
- func NewExecutor(client engineapi.APIClient) exec.Executor
- type MockAPIClient
- func (_m *MockAPIClient) ClientVersion() string
- func (_m *MockAPIClient) ContainerAttach(_param0 context.Context, _param1 string, _param2 types.ContainerAttachOptions) (types.HijackedResponse, error)
- func (_m *MockAPIClient) ContainerCommit(_param0 context.Context, _param1 string, _param2 types.ContainerCommitOptions) (types.ContainerCommitResponse, error)
- func (_m *MockAPIClient) ContainerCreate(_param0 context.Context, _param1 *container.Config, ...) (types.ContainerCreateResponse, error)
- func (_m *MockAPIClient) ContainerDiff(_param0 context.Context, _param1 string) ([]types.ContainerChange, error)
- func (_m *MockAPIClient) ContainerExecAttach(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.HijackedResponse, error)
- func (_m *MockAPIClient) ContainerExecCreate(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.ContainerExecCreateResponse, error)
- func (_m *MockAPIClient) ContainerExecInspect(_param0 context.Context, _param1 string) (types.ContainerExecInspect, error)
- func (_m *MockAPIClient) ContainerExecResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error
- func (_m *MockAPIClient) ContainerExecStart(_param0 context.Context, _param1 string, _param2 types.ExecStartCheck) error
- func (_m *MockAPIClient) ContainerExport(_param0 context.Context, _param1 string) (io.ReadCloser, error)
- func (_m *MockAPIClient) ContainerInspect(_param0 context.Context, _param1 string) (types.ContainerJSON, error)
- func (_m *MockAPIClient) ContainerInspectWithRaw(_param0 context.Context, _param1 string, _param2 bool) (types.ContainerJSON, []byte, error)
- func (_m *MockAPIClient) ContainerKill(_param0 context.Context, _param1 string, _param2 string) error
- func (_m *MockAPIClient) ContainerList(_param0 context.Context, _param1 types.ContainerListOptions) ([]types.Container, error)
- func (_m *MockAPIClient) ContainerLogs(_param0 context.Context, _param1 string, _param2 types.ContainerLogsOptions) (io.ReadCloser, error)
- func (_m *MockAPIClient) ContainerPause(_param0 context.Context, _param1 string) error
- func (_m *MockAPIClient) ContainerRemove(_param0 context.Context, _param1 string, _param2 types.ContainerRemoveOptions) error
- func (_m *MockAPIClient) ContainerRename(_param0 context.Context, _param1 string, _param2 string) error
- func (_m *MockAPIClient) ContainerResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error
- func (_m *MockAPIClient) ContainerRestart(_param0 context.Context, _param1 string, _param2 time.Duration) error
- func (_m *MockAPIClient) ContainerStart(_param0 context.Context, _param1 string, _param2 types.ContainerStartOptions) error
- func (_m *MockAPIClient) ContainerStatPath(_param0 context.Context, _param1 string, _param2 string) (types.ContainerPathStat, error)
- func (_m *MockAPIClient) ContainerStats(_param0 context.Context, _param1 string, _param2 bool) (io.ReadCloser, error)
- func (_m *MockAPIClient) ContainerStop(_param0 context.Context, _param1 string, _param2 time.Duration) error
- func (_m *MockAPIClient) ContainerTop(_param0 context.Context, _param1 string, _param2 []string) (types.ContainerProcessList, error)
- func (_m *MockAPIClient) ContainerUnpause(_param0 context.Context, _param1 string) error
- func (_m *MockAPIClient) ContainerUpdate(_param0 context.Context, _param1 string, _param2 container.UpdateConfig) error
- func (_m *MockAPIClient) ContainerWait(_param0 context.Context, _param1 string) (int, error)
- func (_m *MockAPIClient) CopyFromContainer(_param0 context.Context, _param1 string, _param2 string) (io.ReadCloser, types.ContainerPathStat, error)
- func (_m *MockAPIClient) CopyToContainer(_param0 context.Context, _param1 string, _param2 string, _param3 io.Reader, ...) error
- func (_m *MockAPIClient) EXPECT() *_MockAPIClientRecorder
- func (_m *MockAPIClient) Events(_param0 context.Context, _param1 types.EventsOptions) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImageBuild(_param0 context.Context, _param1 io.Reader, _param2 types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (_m *MockAPIClient) ImageCreate(_param0 context.Context, _param1 string, _param2 types.ImageCreateOptions) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImageHistory(_param0 context.Context, _param1 string) ([]types.ImageHistory, error)
- func (_m *MockAPIClient) ImageImport(_param0 context.Context, _param1 types.ImageImportSource, _param2 string, ...) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImageInspectWithRaw(_param0 context.Context, _param1 string, _param2 bool) (types.ImageInspect, []byte, error)
- func (_m *MockAPIClient) ImageList(_param0 context.Context, _param1 types.ImageListOptions) ([]types.Image, error)
- func (_m *MockAPIClient) ImageLoad(_param0 context.Context, _param1 io.Reader, _param2 bool) (types.ImageLoadResponse, error)
- func (_m *MockAPIClient) ImagePull(_param0 context.Context, _param1 string, _param2 types.ImagePullOptions) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImagePush(_param0 context.Context, _param1 string, _param2 types.ImagePushOptions) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImageRemove(_param0 context.Context, _param1 string, _param2 types.ImageRemoveOptions) ([]types.ImageDelete, error)
- func (_m *MockAPIClient) ImageSave(_param0 context.Context, _param1 []string) (io.ReadCloser, error)
- func (_m *MockAPIClient) ImageSearch(_param0 context.Context, _param1 string, _param2 types.ImageSearchOptions) ([]registry.SearchResult, error)
- func (_m *MockAPIClient) ImageTag(_param0 context.Context, _param1 string, _param2 string) error
- func (_m *MockAPIClient) Info(_param0 context.Context) (types.Info, error)
- func (_m *MockAPIClient) NetworkConnect(_param0 context.Context, _param1 string, _param2 string, ...) error
- func (_m *MockAPIClient) NetworkCreate(_param0 context.Context, _param1 string, _param2 types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (_m *MockAPIClient) NetworkDisconnect(_param0 context.Context, _param1 string, _param2 string, _param3 bool) error
- func (_m *MockAPIClient) NetworkInspect(_param0 context.Context, _param1 string) (types.NetworkResource, error)
- func (_m *MockAPIClient) NetworkInspectWithRaw(_param0 context.Context, _param1 string) (types.NetworkResource, []byte, error)
- func (_m *MockAPIClient) NetworkList(_param0 context.Context, _param1 types.NetworkListOptions) ([]types.NetworkResource, error)
- func (_m *MockAPIClient) NetworkRemove(_param0 context.Context, _param1 string) error
- func (_m *MockAPIClient) NodeInspect(_param0 context.Context, _param1 string) (swarm.Node, error)
- func (_m *MockAPIClient) NodeList(_param0 context.Context, _param1 types.NodeListOptions) ([]swarm.Node, error)
- func (_m *MockAPIClient) NodeRemove(_param0 context.Context, _param1 string) error
- func (_m *MockAPIClient) NodeUpdate(_param0 context.Context, _param1 string, _param2 swarm.Version, ...) error
- func (_m *MockAPIClient) RegistryLogin(_param0 context.Context, _param1 types.AuthConfig) (types.AuthResponse, error)
- func (_m *MockAPIClient) ServerVersion(_param0 context.Context) (types.Version, error)
- func (_m *MockAPIClient) ServiceCreate(_param0 context.Context, _param1 swarm.ServiceSpec) (types.ServiceCreateResponse, error)
- func (_m *MockAPIClient) ServiceInspect(_param0 context.Context, _param1 string) (swarm.Service, error)
- func (_m *MockAPIClient) ServiceList(_param0 context.Context, _param1 types.ServiceListOptions) ([]swarm.Service, error)
- func (_m *MockAPIClient) ServiceRemove(_param0 context.Context, _param1 string) error
- func (_m *MockAPIClient) ServiceUpdate(_param0 context.Context, _param1 string, _param2 swarm.Version, ...) error
- func (_m *MockAPIClient) SwarmInit(_param0 context.Context, _param1 swarm.InitRequest) (string, error)
- func (_m *MockAPIClient) SwarmInspect(_param0 context.Context) (swarm.Swarm, error)
- func (_m *MockAPIClient) SwarmJoin(_param0 context.Context, _param1 swarm.JoinRequest) error
- func (_m *MockAPIClient) SwarmLeave(_param0 context.Context, _param1 bool) error
- func (_m *MockAPIClient) SwarmUpdate(_param0 context.Context, _param1 swarm.Version, _param2 swarm.Spec) error
- func (_m *MockAPIClient) TaskInspectWithRaw(_param0 context.Context, _param1 string) (swarm.Task, []byte, error)
- func (_m *MockAPIClient) TaskList(_param0 context.Context, _param1 types.TaskListOptions) ([]swarm.Task, error)
- func (_m *MockAPIClient) UpdateClientVersion(_param0 string)
- func (_m *MockAPIClient) VolumeCreate(_param0 context.Context, _param1 types.VolumeCreateRequest) (types.Volume, error)
- func (_m *MockAPIClient) VolumeInspect(_param0 context.Context, _param1 string) (types.Volume, error)
- func (_m *MockAPIClient) VolumeInspectWithRaw(_param0 context.Context, _param1 string) (types.Volume, []byte, error)
- func (_m *MockAPIClient) VolumeList(_param0 context.Context, _param1 filters.Args) (types.VolumesListResponse, error)
- func (_m *MockAPIClient) VolumeRemove(_param0 context.Context, _param1 string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrImageRequired returned if a task is missing the image definition. ErrImageRequired = fmt.Errorf("dockerexec: image required") // ErrContainerDestroyed returned when a container is prematurely destroyed // during a wait call. ErrContainerDestroyed = fmt.Errorf("dockerexec: container destroyed") // ErrContainerUnhealthy returned if controller detects the health check failure ErrContainerUnhealthy = fmt.Errorf("dockerexec: unhealthy container") )
Functions ¶
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) 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.ContainerCommitResponse, error)
func (*MockAPIClient) ContainerCreate ¶
func (_m *MockAPIClient) ContainerCreate(_param0 context.Context, _param1 *container.Config, _param2 *container.HostConfig, _param3 *network.NetworkingConfig, _param4 string) (types.ContainerCreateResponse, 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.ContainerExecCreateResponse, 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 (*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 (*MockAPIClient) ContainerResize ¶
func (_m *MockAPIClient) ContainerResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error
func (*MockAPIClient) ContainerRestart ¶
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) (io.ReadCloser, error)
func (*MockAPIClient) ContainerStop ¶
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) error
func (*MockAPIClient) ContainerWait ¶
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) EXPECT ¶
func (_m *MockAPIClient) EXPECT() *_MockAPIClientRecorder
func (*MockAPIClient) Events ¶
func (_m *MockAPIClient) Events(_param0 context.Context, _param1 types.EventsOptions) (io.ReadCloser, 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, _param2 bool) (types.ImageInspect, []byte, error)
func (*MockAPIClient) ImageList ¶
func (_m *MockAPIClient) ImageList(_param0 context.Context, _param1 types.ImageListOptions) ([]types.Image, 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) 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 (*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) NodeInspect ¶
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) error
func (*MockAPIClient) NodeUpdate ¶
func (*MockAPIClient) RegistryLogin ¶
func (_m *MockAPIClient) RegistryLogin(_param0 context.Context, _param1 types.AuthConfig) (types.AuthResponse, error)
func (*MockAPIClient) ServerVersion ¶
func (*MockAPIClient) ServiceCreate ¶
func (_m *MockAPIClient) ServiceCreate(_param0 context.Context, _param1 swarm.ServiceSpec) (types.ServiceCreateResponse, error)
func (*MockAPIClient) ServiceInspect ¶
func (*MockAPIClient) ServiceList ¶
func (_m *MockAPIClient) ServiceList(_param0 context.Context, _param1 types.ServiceListOptions) ([]swarm.Service, 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) error
func (*MockAPIClient) SwarmInit ¶
func (_m *MockAPIClient) SwarmInit(_param0 context.Context, _param1 swarm.InitRequest) (string, error)
func (*MockAPIClient) SwarmInspect ¶
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) SwarmUpdate ¶
func (*MockAPIClient) TaskInspectWithRaw ¶
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 types.VolumeCreateRequest) (types.Volume, error)
func (*MockAPIClient) VolumeInspect ¶
func (*MockAPIClient) VolumeInspectWithRaw ¶
func (*MockAPIClient) VolumeList ¶
func (_m *MockAPIClient) VolumeList(_param0 context.Context, _param1 filters.Args) (types.VolumesListResponse, error)
func (*MockAPIClient) VolumeRemove ¶
func (_m *MockAPIClient) VolumeRemove(_param0 context.Context, _param1 string) error
Click to show internal directories.
Click to hide internal directories.