wrapper

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package wrapper is a generated GoMock package.

Index

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

func NewClientWithOpts(ctx context.Context, ops ...client.Opt) (DockerClient, error)

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) Close

func (m *MockDockerClient) Close() error

Close mocks base method.

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

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

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.

func (*MockDockerClientMockRecorder) ImagePull

func (mr *MockDockerClientMockRecorder) ImagePull(refStr, options any) *gomock.Call

ImagePull indicates an expected call of ImagePull.

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL