Documentation ¶
Overview ¶
Package wrapper is a generated GoMock package.
Index ¶
- type DockerClient
- type MockDockerClient
- func (m *MockDockerClient) Close() error
- func (m *MockDockerClient) ContainerCreate(config *container.Config) (container.CreateResponse, error)
- func (m *MockDockerClient) ContainerExecAttach(execID string, config container.ExecAttachOptions) (types.HijackedResponse, error)
- func (m *MockDockerClient) ContainerExecCreate(container string, options container.ExecOptions) (types.IDResponse, error)
- func (m *MockDockerClient) ContainerExecInspect(execID string) (container.ExecInspect, error)
- func (m *MockDockerClient) ContainerExecStart(execID string, config container.ExecStartOptions) error
- func (m *MockDockerClient) ContainerRemove(containerID string, options container.RemoveOptions) error
- func (m *MockDockerClient) ContainerStart(containerID string, options container.StartOptions) error
- func (m *MockDockerClient) CopyFromContainer(containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
- func (m *MockDockerClient) CopyToContainer(containerID, dstPath string, content io.Reader, ...) error
- func (m *MockDockerClient) EXPECT() *MockDockerClientMockRecorder
- func (m *MockDockerClient) ImagePull(refStr string, options image.PullOptions) (io.ReadCloser, error)
- type MockDockerClientMockRecorder
- func (mr *MockDockerClientMockRecorder) Close() *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerCreate(config any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerExecAttach(execID, config any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerExecCreate(container, options any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerExecInspect(execID any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerExecStart(execID, config any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerRemove(containerID, options any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ContainerStart(containerID, options any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) CopyFromContainer(containerID, srcPath any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) CopyToContainer(containerID, dstPath, content, options any) *gomock.Call
- func (mr *MockDockerClientMockRecorder) ImagePull(refStr, options any) *gomock.Call
- type WrapperClient
- func (wc *WrapperClient) Close() error
- func (wc *WrapperClient) ContainerCreate(config *container.Config) (container.CreateResponse, error)
- func (wc *WrapperClient) ContainerExecAttach(execID string, config container.ExecAttachOptions) (types.HijackedResponse, error)
- func (wc *WrapperClient) ContainerExecCreate(container string, options container.ExecOptions) (types.IDResponse, error)
- func (wc *WrapperClient) ContainerExecInspect(execID string) (container.ExecInspect, error)
- func (wc *WrapperClient) ContainerExecStart(execID string, config container.ExecStartOptions) error
- func (wc *WrapperClient) ContainerRemove(containerID string, options container.RemoveOptions) error
- func (wc *WrapperClient) ContainerStart(containerID string, options container.StartOptions) error
- func (wc *WrapperClient) CopyFromContainer(containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
- func (wc *WrapperClient) CopyToContainer(containerID, dstPath string, content io.Reader, ...) error
- func (wc *WrapperClient) ImagePull(refStr string, options image.PullOptions) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient interface { ContainerRemove(containerID string, options container.RemoveOptions) error ImagePull(refStr string, options image.PullOptions) (io.ReadCloser, error) ContainerCreate(config *container.Config) (container.CreateResponse, error) ContainerStart(containerID string, options container.StartOptions) error ContainerExecCreate(container string, options container.ExecOptions) (types.IDResponse, error) ContainerExecAttach(execID string, config container.ExecAttachOptions) (types.HijackedResponse, error) ContainerExecStart(execID string, config container.ExecStartOptions) error ContainerExecInspect(execID string) (container.ExecInspect, error) CopyToContainer(containerID, dstPath string, content io.Reader, options container.CopyToContainerOptions) error CopyFromContainer(containerID, srcPath string) (io.ReadCloser, container.PathStat, error) Close() error }
func NewClientWithOpts ¶
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) ContainerCreate ¶
func (m *MockDockerClient) ContainerCreate(config *container.Config) (container.CreateResponse, error)
ContainerCreate mocks base method.
func (*MockDockerClient) ContainerExecAttach ¶
func (m *MockDockerClient) ContainerExecAttach(execID string, config container.ExecAttachOptions) (types.HijackedResponse, error)
ContainerExecAttach mocks base method.
func (*MockDockerClient) ContainerExecCreate ¶
func (m *MockDockerClient) ContainerExecCreate(container string, options container.ExecOptions) (types.IDResponse, error)
ContainerExecCreate mocks base method.
func (*MockDockerClient) ContainerExecInspect ¶
func (m *MockDockerClient) ContainerExecInspect(execID string) (container.ExecInspect, error)
ContainerExecInspect mocks base method.
func (*MockDockerClient) ContainerExecStart ¶
func (m *MockDockerClient) ContainerExecStart(execID string, config container.ExecStartOptions) error
ContainerExecStart mocks base method.
func (*MockDockerClient) ContainerRemove ¶
func (m *MockDockerClient) ContainerRemove(containerID string, options container.RemoveOptions) error
ContainerRemove mocks base method.
func (*MockDockerClient) ContainerStart ¶
func (m *MockDockerClient) ContainerStart(containerID string, options container.StartOptions) error
ContainerStart mocks base method.
func (*MockDockerClient) CopyFromContainer ¶
func (m *MockDockerClient) CopyFromContainer(containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
CopyFromContainer mocks base method.
func (*MockDockerClient) CopyToContainer ¶
func (m *MockDockerClient) CopyToContainer(containerID, dstPath string, content io.Reader, options container.CopyToContainerOptions) error
CopyToContainer 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) ImagePull ¶
func (m *MockDockerClient) ImagePull(refStr string, options image.PullOptions) (io.ReadCloser, error)
ImagePull mocks base method.
type MockDockerClientMockRecorder ¶
type MockDockerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDockerClientMockRecorder is the mock recorder for MockDockerClient.
func (*MockDockerClientMockRecorder) Close ¶
func (mr *MockDockerClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDockerClientMockRecorder) ContainerCreate ¶
func (mr *MockDockerClientMockRecorder) ContainerCreate(config any) *gomock.Call
ContainerCreate indicates an expected call of ContainerCreate.
func (*MockDockerClientMockRecorder) ContainerExecAttach ¶
func (mr *MockDockerClientMockRecorder) ContainerExecAttach(execID, config any) *gomock.Call
ContainerExecAttach indicates an expected call of ContainerExecAttach.
func (*MockDockerClientMockRecorder) ContainerExecCreate ¶
func (mr *MockDockerClientMockRecorder) ContainerExecCreate(container, options any) *gomock.Call
ContainerExecCreate indicates an expected call of ContainerExecCreate.
func (*MockDockerClientMockRecorder) ContainerExecInspect ¶
func (mr *MockDockerClientMockRecorder) ContainerExecInspect(execID any) *gomock.Call
ContainerExecInspect indicates an expected call of ContainerExecInspect.
func (*MockDockerClientMockRecorder) ContainerExecStart ¶
func (mr *MockDockerClientMockRecorder) ContainerExecStart(execID, config any) *gomock.Call
ContainerExecStart indicates an expected call of ContainerExecStart.
func (*MockDockerClientMockRecorder) ContainerRemove ¶
func (mr *MockDockerClientMockRecorder) ContainerRemove(containerID, options any) *gomock.Call
ContainerRemove indicates an expected call of ContainerRemove.
func (*MockDockerClientMockRecorder) ContainerStart ¶
func (mr *MockDockerClientMockRecorder) ContainerStart(containerID, options any) *gomock.Call
ContainerStart indicates an expected call of ContainerStart.
func (*MockDockerClientMockRecorder) CopyFromContainer ¶
func (mr *MockDockerClientMockRecorder) CopyFromContainer(containerID, srcPath any) *gomock.Call
CopyFromContainer indicates an expected call of CopyFromContainer.
func (*MockDockerClientMockRecorder) CopyToContainer ¶
func (mr *MockDockerClientMockRecorder) CopyToContainer(containerID, dstPath, content, options any) *gomock.Call
CopyToContainer indicates an expected call of CopyToContainer.
type WrapperClient ¶
type WrapperClient struct {
// contains filtered or unexported fields
}
func (*WrapperClient) Close ¶
func (wc *WrapperClient) Close() error
func (*WrapperClient) ContainerCreate ¶
func (wc *WrapperClient) ContainerCreate(config *container.Config) (container.CreateResponse, error)
func (*WrapperClient) ContainerExecAttach ¶
func (wc *WrapperClient) ContainerExecAttach(execID string, config container.ExecAttachOptions) (types.HijackedResponse, error)
func (*WrapperClient) ContainerExecCreate ¶
func (wc *WrapperClient) ContainerExecCreate(container string, options container.ExecOptions) (types.IDResponse, error)
func (*WrapperClient) ContainerExecInspect ¶
func (wc *WrapperClient) ContainerExecInspect(execID string) (container.ExecInspect, error)
func (*WrapperClient) ContainerExecStart ¶
func (wc *WrapperClient) ContainerExecStart(execID string, config container.ExecStartOptions) error
func (*WrapperClient) ContainerRemove ¶
func (wc *WrapperClient) ContainerRemove(containerID string, options container.RemoveOptions) error
func (*WrapperClient) ContainerStart ¶
func (wc *WrapperClient) ContainerStart(containerID string, options container.StartOptions) error
func (*WrapperClient) CopyFromContainer ¶
func (wc *WrapperClient) CopyFromContainer(containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
func (*WrapperClient) CopyToContainer ¶
func (wc *WrapperClient) CopyToContainer(containerID, dstPath string, content io.Reader, options container.CopyToContainerOptions) error
func (*WrapperClient) ImagePull ¶
func (wc *WrapperClient) ImagePull(refStr string, options image.PullOptions) (io.ReadCloser, error)