Documentation ¶
Index ¶
- type DockerClient
- type MockDockerClient
- func (_m *MockDockerClient) AttachToContainerNonBlocking(_param0 go_dockerclient.AttachToContainerOptions) (go_dockerclient.CloseWaiter, error)
- func (_m *MockDockerClient) BuildImage(_param0 go_dockerclient.BuildImageOptions) error
- func (_m *MockDockerClient) CreateContainer(_param0 go_dockerclient.CreateContainerOptions) (*go_dockerclient.Container, error)
- func (_m *MockDockerClient) CreateVolume(opts go_dockerclient.CreateVolumeOptions) (*go_dockerclient.Volume, error)
- func (_m *MockDockerClient) DownloadFromContainer(id string, opts go_dockerclient.DownloadFromContainerOptions) error
- func (_m *MockDockerClient) EXPECT() *MockDockerClientMockRecorder
- func (_m *MockDockerClient) InspectImage(_param0 string) (*go_dockerclient.Image, error)
- func (_m *MockDockerClient) KillContainer(_param0 go_dockerclient.KillContainerOptions) error
- func (_m *MockDockerClient) PullImage(_param0 go_dockerclient.PullImageOptions, ...) error
- func (_m *MockDockerClient) PushImage(_param0 go_dockerclient.PushImageOptions, ...) error
- func (_m *MockDockerClient) RemoveContainer(_param0 go_dockerclient.RemoveContainerOptions) error
- func (_m *MockDockerClient) RemoveImage(_param0 string) error
- func (_m *MockDockerClient) RemoveVolume(name string) error
- func (_m *MockDockerClient) ResizeContainerTTY(id string, height int, width int) error
- func (_m *MockDockerClient) StartContainer(_param0 string, _param1 *go_dockerclient.HostConfig) error
- func (_m *MockDockerClient) TagImage(_param0 string, _param1 go_dockerclient.TagImageOptions) error
- func (_m *MockDockerClient) WaitContainer(_param0 string) (int, error)
- type MockDockerClientMockRecorder
- func (_mr *MockDockerClientMockRecorder) AttachToContainerNonBlocking(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) BuildImage(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) CreateContainer(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) CreateVolume(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) DownloadFromContainer(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) InspectImage(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) KillContainer(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) PullImage(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) PushImage(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) RemoveContainer(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) RemoveImage(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) RemoveVolume(arg0 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) ResizeContainerTTY(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) StartContainer(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) TagImage(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDockerClientMockRecorder) WaitContainer(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient interface { BuildImage(docker.BuildImageOptions) error InspectImage(string) (*docker.Image, error) PushImage(docker.PushImageOptions, docker.AuthConfiguration) error PullImage(docker.PullImageOptions, docker.AuthConfiguration) error RemoveImage(string) error TagImage(string, docker.TagImageOptions) error AttachToContainerNonBlocking(docker.AttachToContainerOptions) (docker.CloseWaiter, error) CreateContainer(docker.CreateContainerOptions) (*docker.Container, error) KillContainer(docker.KillContainerOptions) error RemoveContainer(docker.RemoveContainerOptions) error StartContainer(string, *docker.HostConfig) error WaitContainer(string) (int, error) DownloadFromContainer(id string, opts docker.DownloadFromContainerOptions) error CreateVolume(opts docker.CreateVolumeOptions) (*docker.Volume, error) RemoveVolume(name string) error ResizeContainerTTY(id string, height, width int) error }
DockerClient is the Docker API Client interface used by tasks
type MockDockerClient ¶
type MockDockerClient struct {
// contains filtered or unexported fields
}
MockDockerClient is a mock of DockerClient interface
func NewMockDockerClient ¶
func NewMockDockerClient(ctrl *gomock.Controller) *MockDockerClient
NewMockDockerClient creates a new mock instance
func (*MockDockerClient) AttachToContainerNonBlocking ¶
func (_m *MockDockerClient) AttachToContainerNonBlocking(_param0 go_dockerclient.AttachToContainerOptions) (go_dockerclient.CloseWaiter, error)
AttachToContainerNonBlocking mocks base method
func (*MockDockerClient) BuildImage ¶
func (_m *MockDockerClient) BuildImage(_param0 go_dockerclient.BuildImageOptions) error
BuildImage mocks base method
func (*MockDockerClient) CreateContainer ¶
func (_m *MockDockerClient) CreateContainer(_param0 go_dockerclient.CreateContainerOptions) (*go_dockerclient.Container, error)
CreateContainer mocks base method
func (*MockDockerClient) CreateVolume ¶
func (_m *MockDockerClient) CreateVolume(opts go_dockerclient.CreateVolumeOptions) (*go_dockerclient.Volume, error)
CreateVolume mocks base method
func (*MockDockerClient) DownloadFromContainer ¶
func (_m *MockDockerClient) DownloadFromContainer(id string, opts go_dockerclient.DownloadFromContainerOptions) error
DownloadFromContainer mocks base method
func (*MockDockerClient) EXPECT ¶
func (_m *MockDockerClient) EXPECT() *MockDockerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDockerClient) InspectImage ¶
func (_m *MockDockerClient) InspectImage(_param0 string) (*go_dockerclient.Image, error)
InspectImage mocks base method
func (*MockDockerClient) KillContainer ¶
func (_m *MockDockerClient) KillContainer(_param0 go_dockerclient.KillContainerOptions) error
KillContainer mocks base method
func (*MockDockerClient) PullImage ¶
func (_m *MockDockerClient) PullImage(_param0 go_dockerclient.PullImageOptions, _param1 go_dockerclient.AuthConfiguration) error
PullImage mocks base method
func (*MockDockerClient) PushImage ¶
func (_m *MockDockerClient) PushImage(_param0 go_dockerclient.PushImageOptions, _param1 go_dockerclient.AuthConfiguration) error
PushImage mocks base method
func (*MockDockerClient) RemoveContainer ¶
func (_m *MockDockerClient) RemoveContainer(_param0 go_dockerclient.RemoveContainerOptions) error
RemoveContainer mocks base method
func (*MockDockerClient) RemoveImage ¶
func (_m *MockDockerClient) RemoveImage(_param0 string) error
RemoveImage mocks base method
func (*MockDockerClient) RemoveVolume ¶
func (_m *MockDockerClient) RemoveVolume(name string) error
RemoveVolume mocks base method
func (*MockDockerClient) ResizeContainerTTY ¶ added in v0.13.0
func (_m *MockDockerClient) ResizeContainerTTY(id string, height int, width int) error
ResizeContainerTTY mocks base method
func (*MockDockerClient) StartContainer ¶
func (_m *MockDockerClient) StartContainer(_param0 string, _param1 *go_dockerclient.HostConfig) error
StartContainer mocks base method
func (*MockDockerClient) TagImage ¶
func (_m *MockDockerClient) TagImage(_param0 string, _param1 go_dockerclient.TagImageOptions) error
TagImage mocks base method
func (*MockDockerClient) WaitContainer ¶
func (_m *MockDockerClient) WaitContainer(_param0 string) (int, error)
WaitContainer mocks base method
type MockDockerClientMockRecorder ¶
type MockDockerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDockerClientMockRecorder is the mock recorder for MockDockerClient
func (*MockDockerClientMockRecorder) AttachToContainerNonBlocking ¶
func (_mr *MockDockerClientMockRecorder) AttachToContainerNonBlocking(arg0 interface{}) *gomock.Call
AttachToContainerNonBlocking indicates an expected call of AttachToContainerNonBlocking
func (*MockDockerClientMockRecorder) BuildImage ¶
func (_mr *MockDockerClientMockRecorder) BuildImage(arg0 interface{}) *gomock.Call
BuildImage indicates an expected call of BuildImage
func (*MockDockerClientMockRecorder) CreateContainer ¶
func (_mr *MockDockerClientMockRecorder) CreateContainer(arg0 interface{}) *gomock.Call
CreateContainer indicates an expected call of CreateContainer
func (*MockDockerClientMockRecorder) CreateVolume ¶
func (_mr *MockDockerClientMockRecorder) CreateVolume(arg0 interface{}) *gomock.Call
CreateVolume indicates an expected call of CreateVolume
func (*MockDockerClientMockRecorder) DownloadFromContainer ¶
func (_mr *MockDockerClientMockRecorder) DownloadFromContainer(arg0, arg1 interface{}) *gomock.Call
DownloadFromContainer indicates an expected call of DownloadFromContainer
func (*MockDockerClientMockRecorder) InspectImage ¶
func (_mr *MockDockerClientMockRecorder) InspectImage(arg0 interface{}) *gomock.Call
InspectImage indicates an expected call of InspectImage
func (*MockDockerClientMockRecorder) KillContainer ¶
func (_mr *MockDockerClientMockRecorder) KillContainer(arg0 interface{}) *gomock.Call
KillContainer indicates an expected call of KillContainer
func (*MockDockerClientMockRecorder) PullImage ¶
func (_mr *MockDockerClientMockRecorder) PullImage(arg0, arg1 interface{}) *gomock.Call
PullImage indicates an expected call of PullImage
func (*MockDockerClientMockRecorder) PushImage ¶
func (_mr *MockDockerClientMockRecorder) PushImage(arg0, arg1 interface{}) *gomock.Call
PushImage indicates an expected call of PushImage
func (*MockDockerClientMockRecorder) RemoveContainer ¶
func (_mr *MockDockerClientMockRecorder) RemoveContainer(arg0 interface{}) *gomock.Call
RemoveContainer indicates an expected call of RemoveContainer
func (*MockDockerClientMockRecorder) RemoveImage ¶
func (_mr *MockDockerClientMockRecorder) RemoveImage(arg0 interface{}) *gomock.Call
RemoveImage indicates an expected call of RemoveImage
func (*MockDockerClientMockRecorder) RemoveVolume ¶
func (_mr *MockDockerClientMockRecorder) RemoveVolume(arg0 interface{}) *gomock.Call
RemoveVolume indicates an expected call of RemoveVolume
func (*MockDockerClientMockRecorder) ResizeContainerTTY ¶ added in v0.13.0
func (_mr *MockDockerClientMockRecorder) ResizeContainerTTY(arg0, arg1, arg2 interface{}) *gomock.Call
ResizeContainerTTY indicates an expected call of ResizeContainerTTY
func (*MockDockerClientMockRecorder) StartContainer ¶
func (_mr *MockDockerClientMockRecorder) StartContainer(arg0, arg1 interface{}) *gomock.Call
StartContainer indicates an expected call of StartContainer
func (*MockDockerClientMockRecorder) TagImage ¶
func (_mr *MockDockerClientMockRecorder) TagImage(arg0, arg1 interface{}) *gomock.Call
TagImage indicates an expected call of TagImage
func (*MockDockerClientMockRecorder) WaitContainer ¶
func (_mr *MockDockerClientMockRecorder) WaitContainer(arg0 interface{}) *gomock.Call
WaitContainer indicates an expected call of WaitContainer