Documentation
¶
Overview ¶
Package mock_docker is a generated GoMock package.
Package mock_docker is a generated GoMock package.
Index ¶
- type MockDockerApi
- func (m *MockDockerApi) ContainerCreate(arg0 context.Context, arg1 *container.Config, arg2 *container.HostConfig, ...) (container.ContainerCreateCreatedBody, error)
- func (m *MockDockerApi) ContainerList(arg0 context.Context, arg1 types.ContainerListOptions) ([]types.Container, error)
- func (m *MockDockerApi) ContainerRemove(arg0 context.Context, arg1 string, arg2 types.ContainerRemoveOptions) error
- func (m *MockDockerApi) ContainerRestart(arg0 context.Context, arg1 string, arg2 *time.Duration) error
- func (m *MockDockerApi) ContainerStart(arg0 context.Context, arg1 string, arg2 types.ContainerStartOptions) error
- func (m *MockDockerApi) EXPECT() *MockDockerApiMockRecorder
- func (m *MockDockerApi) ImagePull(arg0 context.Context, arg1 string, arg2 types.ImagePullOptions) (io.ReadCloser, error)
- type MockDockerApiMockRecorder
- func (mr *MockDockerApiMockRecorder) ContainerCreate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockDockerApiMockRecorder) ContainerList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDockerApiMockRecorder) ContainerRemove(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDockerApiMockRecorder) ContainerRestart(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDockerApiMockRecorder) ContainerStart(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDockerApiMockRecorder) ImagePull(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockDockerClient
- func (m *MockDockerClient) EXPECT() *MockDockerClientMockRecorder
- func (m *MockDockerClient) GetContainer(arg0 string) (*types.Container, error)
- func (m *MockDockerClient) StartContainer(arg0 string, arg1 *container.HostConfig, arg2 *container.Config, arg3 string) error
- func (m *MockDockerClient) StopAndRemoveContainer(arg0 string) error
- type MockDockerClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDockerApi ¶
type MockDockerApi struct {
// contains filtered or unexported fields
}
MockDockerApi is a mock of DockerApi interface.
func NewMockDockerApi ¶
func NewMockDockerApi(ctrl *gomock.Controller) *MockDockerApi
NewMockDockerApi creates a new mock instance.
func (*MockDockerApi) ContainerCreate ¶
func (m *MockDockerApi) ContainerCreate(arg0 context.Context, arg1 *container.Config, arg2 *container.HostConfig, arg3 *network.NetworkingConfig, arg4 *v1.Platform, arg5 string) (container.ContainerCreateCreatedBody, error)
ContainerCreate mocks base method.
func (*MockDockerApi) ContainerList ¶
func (m *MockDockerApi) ContainerList(arg0 context.Context, arg1 types.ContainerListOptions) ([]types.Container, error)
ContainerList mocks base method.
func (*MockDockerApi) ContainerRemove ¶
func (m *MockDockerApi) ContainerRemove(arg0 context.Context, arg1 string, arg2 types.ContainerRemoveOptions) error
ContainerRemove mocks base method.
func (*MockDockerApi) ContainerRestart ¶
func (m *MockDockerApi) ContainerRestart(arg0 context.Context, arg1 string, arg2 *time.Duration) error
ContainerRestart mocks base method.
func (*MockDockerApi) ContainerStart ¶
func (m *MockDockerApi) ContainerStart(arg0 context.Context, arg1 string, arg2 types.ContainerStartOptions) error
ContainerStart mocks base method.
func (*MockDockerApi) EXPECT ¶
func (m *MockDockerApi) EXPECT() *MockDockerApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDockerApi) ImagePull ¶
func (m *MockDockerApi) ImagePull(arg0 context.Context, arg1 string, arg2 types.ImagePullOptions) (io.ReadCloser, error)
ImagePull mocks base method.
type MockDockerApiMockRecorder ¶
type MockDockerApiMockRecorder struct {
// contains filtered or unexported fields
}
MockDockerApiMockRecorder is the mock recorder for MockDockerApi.
func (*MockDockerApiMockRecorder) ContainerCreate ¶
func (mr *MockDockerApiMockRecorder) ContainerCreate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
ContainerCreate indicates an expected call of ContainerCreate.
func (*MockDockerApiMockRecorder) ContainerList ¶
func (mr *MockDockerApiMockRecorder) ContainerList(arg0, arg1 interface{}) *gomock.Call
ContainerList indicates an expected call of ContainerList.
func (*MockDockerApiMockRecorder) ContainerRemove ¶
func (mr *MockDockerApiMockRecorder) ContainerRemove(arg0, arg1, arg2 interface{}) *gomock.Call
ContainerRemove indicates an expected call of ContainerRemove.
func (*MockDockerApiMockRecorder) ContainerRestart ¶
func (mr *MockDockerApiMockRecorder) ContainerRestart(arg0, arg1, arg2 interface{}) *gomock.Call
ContainerRestart indicates an expected call of ContainerRestart.
func (*MockDockerApiMockRecorder) ContainerStart ¶
func (mr *MockDockerApiMockRecorder) ContainerStart(arg0, arg1, arg2 interface{}) *gomock.Call
ContainerStart indicates an expected call of ContainerStart.
func (*MockDockerApiMockRecorder) ImagePull ¶
func (mr *MockDockerApiMockRecorder) ImagePull(arg0, arg1, arg2 interface{}) *gomock.Call
ImagePull indicates an expected call of ImagePull.
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) EXPECT ¶
func (m *MockDockerClient) EXPECT() *MockDockerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDockerClient) GetContainer ¶
func (m *MockDockerClient) GetContainer(arg0 string) (*types.Container, error)
GetContainer mocks base method.
func (*MockDockerClient) StartContainer ¶
func (m *MockDockerClient) StartContainer(arg0 string, arg1 *container.HostConfig, arg2 *container.Config, arg3 string) error
StartContainer mocks base method.
func (*MockDockerClient) StopAndRemoveContainer ¶
func (m *MockDockerClient) StopAndRemoveContainer(arg0 string) error
StopAndRemoveContainer mocks base method.
type MockDockerClientMockRecorder ¶
type MockDockerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDockerClientMockRecorder is the mock recorder for MockDockerClient.
func (*MockDockerClientMockRecorder) GetContainer ¶
func (mr *MockDockerClientMockRecorder) GetContainer(arg0 interface{}) *gomock.Call
GetContainer indicates an expected call of GetContainer.
func (*MockDockerClientMockRecorder) StartContainer ¶
func (mr *MockDockerClientMockRecorder) StartContainer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
StartContainer indicates an expected call of StartContainer.
func (*MockDockerClientMockRecorder) StopAndRemoveContainer ¶
func (mr *MockDockerClientMockRecorder) StopAndRemoveContainer(arg0 interface{}) *gomock.Call
StopAndRemoveContainer indicates an expected call of StopAndRemoveContainer.