Documentation ¶
Index ¶
- type MockClient
- func (_m *MockClient) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.CreateResponse, error)
- func (_m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (_m *MockClient) ContainerLogs(ctx context.Context, _a1 string, options container.LogsOptions) (io.ReadCloser, error)
- func (_m *MockClient) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error
- func (_m *MockClient) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error
- func (_m *MockClient) ContainerStop(ctx context.Context, containerID string, options container.StopOptions) error
- func (_m *MockClient) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)
- func (_m *MockClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error)
- func (_m *MockClient) NetworkRemove(ctx context.Context, networkID string) error
- type MockClient_ContainerCreate_Call
- func (_c *MockClient_ContainerCreate_Call) Return(_a0 container.CreateResponse, _a1 error) *MockClient_ContainerCreate_Call
- func (_c *MockClient_ContainerCreate_Call) Run(run func(ctx context.Context, config *container.Config, ...)) *MockClient_ContainerCreate_Call
- func (_c *MockClient_ContainerCreate_Call) RunAndReturn(...) *MockClient_ContainerCreate_Call
- type MockClient_ContainerInspect_Call
- func (_c *MockClient_ContainerInspect_Call) Return(_a0 types.ContainerJSON, _a1 error) *MockClient_ContainerInspect_Call
- func (_c *MockClient_ContainerInspect_Call) Run(run func(ctx context.Context, containerID string)) *MockClient_ContainerInspect_Call
- func (_c *MockClient_ContainerInspect_Call) RunAndReturn(run func(context.Context, string) (types.ContainerJSON, error)) *MockClient_ContainerInspect_Call
- type MockClient_ContainerLogs_Call
- func (_c *MockClient_ContainerLogs_Call) Return(_a0 io.ReadCloser, _a1 error) *MockClient_ContainerLogs_Call
- func (_c *MockClient_ContainerLogs_Call) Run(run func(ctx context.Context, _a1 string, options container.LogsOptions)) *MockClient_ContainerLogs_Call
- func (_c *MockClient_ContainerLogs_Call) RunAndReturn(...) *MockClient_ContainerLogs_Call
- type MockClient_ContainerRemove_Call
- func (_c *MockClient_ContainerRemove_Call) Return(_a0 error) *MockClient_ContainerRemove_Call
- func (_c *MockClient_ContainerRemove_Call) Run(...) *MockClient_ContainerRemove_Call
- func (_c *MockClient_ContainerRemove_Call) RunAndReturn(run func(context.Context, string, container.RemoveOptions) error) *MockClient_ContainerRemove_Call
- type MockClient_ContainerStart_Call
- func (_c *MockClient_ContainerStart_Call) Return(_a0 error) *MockClient_ContainerStart_Call
- func (_c *MockClient_ContainerStart_Call) Run(...) *MockClient_ContainerStart_Call
- func (_c *MockClient_ContainerStart_Call) RunAndReturn(run func(context.Context, string, container.StartOptions) error) *MockClient_ContainerStart_Call
- type MockClient_ContainerStop_Call
- func (_c *MockClient_ContainerStop_Call) Return(_a0 error) *MockClient_ContainerStop_Call
- func (_c *MockClient_ContainerStop_Call) Run(...) *MockClient_ContainerStop_Call
- func (_c *MockClient_ContainerStop_Call) RunAndReturn(run func(context.Context, string, container.StopOptions) error) *MockClient_ContainerStop_Call
- type MockClient_ContainerWait_Call
- func (_c *MockClient_ContainerWait_Call) Return(_a0 <-chan container.WaitResponse, _a1 <-chan error) *MockClient_ContainerWait_Call
- func (_c *MockClient_ContainerWait_Call) Run(...) *MockClient_ContainerWait_Call
- func (_c *MockClient_ContainerWait_Call) RunAndReturn(...) *MockClient_ContainerWait_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) ContainerCreate(ctx interface{}, config interface{}, hostConfig interface{}, ...) *MockClient_ContainerCreate_Call
- func (_e *MockClient_Expecter) ContainerInspect(ctx interface{}, containerID interface{}) *MockClient_ContainerInspect_Call
- func (_e *MockClient_Expecter) ContainerLogs(ctx interface{}, _a1 interface{}, options interface{}) *MockClient_ContainerLogs_Call
- func (_e *MockClient_Expecter) ContainerRemove(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerRemove_Call
- func (_e *MockClient_Expecter) ContainerStart(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStart_Call
- func (_e *MockClient_Expecter) ContainerStop(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStop_Call
- func (_e *MockClient_Expecter) ContainerWait(ctx interface{}, containerID interface{}, condition interface{}) *MockClient_ContainerWait_Call
- func (_e *MockClient_Expecter) ImagePull(ctx interface{}, refStr interface{}, options interface{}) *MockClient_ImagePull_Call
- func (_e *MockClient_Expecter) NetworkCreate(ctx interface{}, name interface{}, options interface{}) *MockClient_NetworkCreate_Call
- func (_e *MockClient_Expecter) NetworkRemove(ctx interface{}, networkID interface{}) *MockClient_NetworkRemove_Call
- type MockClient_ImagePull_Call
- func (_c *MockClient_ImagePull_Call) Return(_a0 io.ReadCloser, _a1 error) *MockClient_ImagePull_Call
- func (_c *MockClient_ImagePull_Call) Run(run func(ctx context.Context, refStr string, options image.PullOptions)) *MockClient_ImagePull_Call
- func (_c *MockClient_ImagePull_Call) RunAndReturn(run func(context.Context, string, image.PullOptions) (io.ReadCloser, error)) *MockClient_ImagePull_Call
- type MockClient_NetworkCreate_Call
- func (_c *MockClient_NetworkCreate_Call) Return(_a0 network.CreateResponse, _a1 error) *MockClient_NetworkCreate_Call
- func (_c *MockClient_NetworkCreate_Call) Run(run func(ctx context.Context, name string, options network.CreateOptions)) *MockClient_NetworkCreate_Call
- func (_c *MockClient_NetworkCreate_Call) RunAndReturn(...) *MockClient_NetworkCreate_Call
- type MockClient_NetworkRemove_Call
- func (_c *MockClient_NetworkRemove_Call) Return(_a0 error) *MockClient_NetworkRemove_Call
- func (_c *MockClient_NetworkRemove_Call) Run(run func(ctx context.Context, networkID string)) *MockClient_NetworkRemove_Call
- func (_c *MockClient_NetworkRemove_Call) RunAndReturn(run func(context.Context, string) error) *MockClient_NetworkRemove_Call
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_Make_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) ContainerCreate ¶
func (_m *MockClient) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string) (container.CreateResponse, error)
ContainerCreate provides a mock function with given fields: ctx, config, hostConfig, networkingConfig, platform, containerName
func (*MockClient) ContainerInspect ¶
func (_m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
ContainerInspect provides a mock function with given fields: ctx, containerID
func (*MockClient) ContainerLogs ¶
func (_m *MockClient) ContainerLogs(ctx context.Context, _a1 string, options container.LogsOptions) (io.ReadCloser, error)
ContainerLogs provides a mock function with given fields: ctx, _a1, options
func (*MockClient) ContainerRemove ¶
func (_m *MockClient) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error
ContainerRemove provides a mock function with given fields: ctx, containerID, options
func (*MockClient) ContainerStart ¶
func (_m *MockClient) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error
ContainerStart provides a mock function with given fields: ctx, containerID, options
func (*MockClient) ContainerStop ¶
func (_m *MockClient) ContainerStop(ctx context.Context, containerID string, options container.StopOptions) error
ContainerStop provides a mock function with given fields: ctx, containerID, options
func (*MockClient) ContainerWait ¶
func (_m *MockClient) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error)
ContainerWait provides a mock function with given fields: ctx, containerID, condition
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) ImagePull ¶
func (_m *MockClient) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)
ImagePull provides a mock function with given fields: ctx, refStr, options
func (*MockClient) NetworkCreate ¶
func (_m *MockClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error)
NetworkCreate provides a mock function with given fields: ctx, name, options
func (*MockClient) NetworkRemove ¶
func (_m *MockClient) NetworkRemove(ctx context.Context, networkID string) error
NetworkRemove provides a mock function with given fields: ctx, networkID
type MockClient_ContainerCreate_Call ¶
MockClient_ContainerCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerCreate'
func (*MockClient_ContainerCreate_Call) Return ¶
func (_c *MockClient_ContainerCreate_Call) Return(_a0 container.CreateResponse, _a1 error) *MockClient_ContainerCreate_Call
func (*MockClient_ContainerCreate_Call) Run ¶
func (_c *MockClient_ContainerCreate_Call) Run(run func(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string)) *MockClient_ContainerCreate_Call
func (*MockClient_ContainerCreate_Call) RunAndReturn ¶
func (_c *MockClient_ContainerCreate_Call) RunAndReturn(run func(context.Context, *container.Config, *container.HostConfig, *network.NetworkingConfig, *v1.Platform, string) (container.CreateResponse, error)) *MockClient_ContainerCreate_Call
type MockClient_ContainerInspect_Call ¶
MockClient_ContainerInspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerInspect'
func (*MockClient_ContainerInspect_Call) Return ¶
func (_c *MockClient_ContainerInspect_Call) Return(_a0 types.ContainerJSON, _a1 error) *MockClient_ContainerInspect_Call
func (*MockClient_ContainerInspect_Call) Run ¶
func (_c *MockClient_ContainerInspect_Call) Run(run func(ctx context.Context, containerID string)) *MockClient_ContainerInspect_Call
func (*MockClient_ContainerInspect_Call) RunAndReturn ¶
func (_c *MockClient_ContainerInspect_Call) RunAndReturn(run func(context.Context, string) (types.ContainerJSON, error)) *MockClient_ContainerInspect_Call
type MockClient_ContainerLogs_Call ¶
MockClient_ContainerLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerLogs'
func (*MockClient_ContainerLogs_Call) Return ¶
func (_c *MockClient_ContainerLogs_Call) Return(_a0 io.ReadCloser, _a1 error) *MockClient_ContainerLogs_Call
func (*MockClient_ContainerLogs_Call) Run ¶
func (_c *MockClient_ContainerLogs_Call) Run(run func(ctx context.Context, _a1 string, options container.LogsOptions)) *MockClient_ContainerLogs_Call
func (*MockClient_ContainerLogs_Call) RunAndReturn ¶
func (_c *MockClient_ContainerLogs_Call) RunAndReturn(run func(context.Context, string, container.LogsOptions) (io.ReadCloser, error)) *MockClient_ContainerLogs_Call
type MockClient_ContainerRemove_Call ¶
MockClient_ContainerRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerRemove'
func (*MockClient_ContainerRemove_Call) Return ¶
func (_c *MockClient_ContainerRemove_Call) Return(_a0 error) *MockClient_ContainerRemove_Call
func (*MockClient_ContainerRemove_Call) Run ¶
func (_c *MockClient_ContainerRemove_Call) Run(run func(ctx context.Context, containerID string, options container.RemoveOptions)) *MockClient_ContainerRemove_Call
func (*MockClient_ContainerRemove_Call) RunAndReturn ¶
func (_c *MockClient_ContainerRemove_Call) RunAndReturn(run func(context.Context, string, container.RemoveOptions) error) *MockClient_ContainerRemove_Call
type MockClient_ContainerStart_Call ¶
MockClient_ContainerStart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStart'
func (*MockClient_ContainerStart_Call) Return ¶
func (_c *MockClient_ContainerStart_Call) Return(_a0 error) *MockClient_ContainerStart_Call
func (*MockClient_ContainerStart_Call) Run ¶
func (_c *MockClient_ContainerStart_Call) Run(run func(ctx context.Context, containerID string, options container.StartOptions)) *MockClient_ContainerStart_Call
func (*MockClient_ContainerStart_Call) RunAndReturn ¶
func (_c *MockClient_ContainerStart_Call) RunAndReturn(run func(context.Context, string, container.StartOptions) error) *MockClient_ContainerStart_Call
type MockClient_ContainerStop_Call ¶
MockClient_ContainerStop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStop'
func (*MockClient_ContainerStop_Call) Return ¶
func (_c *MockClient_ContainerStop_Call) Return(_a0 error) *MockClient_ContainerStop_Call
func (*MockClient_ContainerStop_Call) Run ¶
func (_c *MockClient_ContainerStop_Call) Run(run func(ctx context.Context, containerID string, options container.StopOptions)) *MockClient_ContainerStop_Call
func (*MockClient_ContainerStop_Call) RunAndReturn ¶
func (_c *MockClient_ContainerStop_Call) RunAndReturn(run func(context.Context, string, container.StopOptions) error) *MockClient_ContainerStop_Call
type MockClient_ContainerWait_Call ¶
MockClient_ContainerWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerWait'
func (*MockClient_ContainerWait_Call) Return ¶
func (_c *MockClient_ContainerWait_Call) Return(_a0 <-chan container.WaitResponse, _a1 <-chan error) *MockClient_ContainerWait_Call
func (*MockClient_ContainerWait_Call) Run ¶
func (_c *MockClient_ContainerWait_Call) Run(run func(ctx context.Context, containerID string, condition container.WaitCondition)) *MockClient_ContainerWait_Call
func (*MockClient_ContainerWait_Call) RunAndReturn ¶
func (_c *MockClient_ContainerWait_Call) RunAndReturn(run func(context.Context, string, container.WaitCondition) (<-chan container.WaitResponse, <-chan error)) *MockClient_ContainerWait_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) ContainerCreate ¶
func (_e *MockClient_Expecter) ContainerCreate(ctx interface{}, config interface{}, hostConfig interface{}, networkingConfig interface{}, platform interface{}, containerName interface{}) *MockClient_ContainerCreate_Call
ContainerCreate is a helper method to define mock.On call
- ctx context.Context
- config *container.Config
- hostConfig *container.HostConfig
- networkingConfig *network.NetworkingConfig
- platform *v1.Platform
- containerName string
func (*MockClient_Expecter) ContainerInspect ¶
func (_e *MockClient_Expecter) ContainerInspect(ctx interface{}, containerID interface{}) *MockClient_ContainerInspect_Call
ContainerInspect is a helper method to define mock.On call
- ctx context.Context
- containerID string
func (*MockClient_Expecter) ContainerLogs ¶
func (_e *MockClient_Expecter) ContainerLogs(ctx interface{}, _a1 interface{}, options interface{}) *MockClient_ContainerLogs_Call
ContainerLogs is a helper method to define mock.On call
- ctx context.Context
- _a1 string
- options container.LogsOptions
func (*MockClient_Expecter) ContainerRemove ¶
func (_e *MockClient_Expecter) ContainerRemove(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerRemove_Call
ContainerRemove is a helper method to define mock.On call
- ctx context.Context
- containerID string
- options container.RemoveOptions
func (*MockClient_Expecter) ContainerStart ¶
func (_e *MockClient_Expecter) ContainerStart(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStart_Call
ContainerStart is a helper method to define mock.On call
- ctx context.Context
- containerID string
- options container.StartOptions
func (*MockClient_Expecter) ContainerStop ¶
func (_e *MockClient_Expecter) ContainerStop(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStop_Call
ContainerStop is a helper method to define mock.On call
- ctx context.Context
- containerID string
- options container.StopOptions
func (*MockClient_Expecter) ContainerWait ¶
func (_e *MockClient_Expecter) ContainerWait(ctx interface{}, containerID interface{}, condition interface{}) *MockClient_ContainerWait_Call
ContainerWait is a helper method to define mock.On call
- ctx context.Context
- containerID string
- condition container.WaitCondition
func (*MockClient_Expecter) ImagePull ¶
func (_e *MockClient_Expecter) ImagePull(ctx interface{}, refStr interface{}, options interface{}) *MockClient_ImagePull_Call
ImagePull is a helper method to define mock.On call
- ctx context.Context
- refStr string
- options image.PullOptions
func (*MockClient_Expecter) NetworkCreate ¶
func (_e *MockClient_Expecter) NetworkCreate(ctx interface{}, name interface{}, options interface{}) *MockClient_NetworkCreate_Call
NetworkCreate is a helper method to define mock.On call
- ctx context.Context
- name string
- options network.CreateOptions
func (*MockClient_Expecter) NetworkRemove ¶
func (_e *MockClient_Expecter) NetworkRemove(ctx interface{}, networkID interface{}) *MockClient_NetworkRemove_Call
NetworkRemove is a helper method to define mock.On call
- ctx context.Context
- networkID string
type MockClient_ImagePull_Call ¶
MockClient_ImagePull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImagePull'
func (*MockClient_ImagePull_Call) Return ¶
func (_c *MockClient_ImagePull_Call) Return(_a0 io.ReadCloser, _a1 error) *MockClient_ImagePull_Call
func (*MockClient_ImagePull_Call) Run ¶
func (_c *MockClient_ImagePull_Call) Run(run func(ctx context.Context, refStr string, options image.PullOptions)) *MockClient_ImagePull_Call
func (*MockClient_ImagePull_Call) RunAndReturn ¶
func (_c *MockClient_ImagePull_Call) RunAndReturn(run func(context.Context, string, image.PullOptions) (io.ReadCloser, error)) *MockClient_ImagePull_Call
type MockClient_NetworkCreate_Call ¶
MockClient_NetworkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkCreate'
func (*MockClient_NetworkCreate_Call) Return ¶
func (_c *MockClient_NetworkCreate_Call) Return(_a0 network.CreateResponse, _a1 error) *MockClient_NetworkCreate_Call
func (*MockClient_NetworkCreate_Call) Run ¶
func (_c *MockClient_NetworkCreate_Call) Run(run func(ctx context.Context, name string, options network.CreateOptions)) *MockClient_NetworkCreate_Call
func (*MockClient_NetworkCreate_Call) RunAndReturn ¶
func (_c *MockClient_NetworkCreate_Call) RunAndReturn(run func(context.Context, string, network.CreateOptions) (network.CreateResponse, error)) *MockClient_NetworkCreate_Call
type MockClient_NetworkRemove_Call ¶
MockClient_NetworkRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkRemove'
func (*MockClient_NetworkRemove_Call) Return ¶
func (_c *MockClient_NetworkRemove_Call) Return(_a0 error) *MockClient_NetworkRemove_Call
func (*MockClient_NetworkRemove_Call) Run ¶
func (_c *MockClient_NetworkRemove_Call) Run(run func(ctx context.Context, networkID string)) *MockClient_NetworkRemove_Call
func (*MockClient_NetworkRemove_Call) RunAndReturn ¶
func (_c *MockClient_NetworkRemove_Call) RunAndReturn(run func(context.Context, string) error) *MockClient_NetworkRemove_Call
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) Make ¶
func (_e *MockMaker_Expecter) Make() *MockMaker_Make_Call
Make is a helper method to define mock.On call
type MockMaker_Make_Call ¶
MockMaker_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*MockMaker_Make_Call) Return ¶
func (_c *MockMaker_Make_Call) Return(_a0 client.Client, _a1 error) *MockMaker_Make_Call
func (*MockMaker_Make_Call) Run ¶
func (_c *MockMaker_Make_Call) Run(run func()) *MockMaker_Make_Call
func (*MockMaker_Make_Call) RunAndReturn ¶
func (_c *MockMaker_Make_Call) RunAndReturn(run func() (client.Client, error)) *MockMaker_Make_Call