mocks

package
v0.0.0-...-86e7852 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks provides mock implementations for testing.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIClient

type MockAPIClient struct {
	// contains filtered or unexported fields
}

MockAPIClient is a mock of APIClient interface.

func NewMockAPIClient

func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient

NewMockAPIClient creates a new mock instance.

func (*MockAPIClient) ContainerCreate

func (m *MockAPIClient) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string) (container.CreateResponse, error)

ContainerCreate mocks base method.

func (*MockAPIClient) ContainerExecAttach

func (m *MockAPIClient) ContainerExecAttach(ctx context.Context, execID string, options container.ExecStartOptions) (types.HijackedResponse, error)

ContainerExecAttach mocks base method.

func (*MockAPIClient) ContainerExecCreate

func (m *MockAPIClient) ContainerExecCreate(ctx context.Context, arg1 string, options container.ExecOptions) (common.IDResponse, error)

ContainerExecCreate mocks base method.

func (*MockAPIClient) ContainerExecInspect

func (m *MockAPIClient) ContainerExecInspect(ctx context.Context, execID string) (container.ExecInspect, error)

ContainerExecInspect mocks base method.

func (*MockAPIClient) ContainerInspect

func (m *MockAPIClient) ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)

ContainerInspect mocks base method.

func (*MockAPIClient) ContainerList

func (m *MockAPIClient) ContainerList(ctx context.Context, options container.ListOptions) ([]container.Summary, error)

ContainerList mocks base method.

func (*MockAPIClient) ContainerRemove

func (m *MockAPIClient) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error

ContainerRemove mocks base method.

func (*MockAPIClient) ContainerStart

func (m *MockAPIClient) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error

ContainerStart mocks base method.

func (*MockAPIClient) ContainerStop

func (m *MockAPIClient) ContainerStop(ctx context.Context, containerID string, options container.StopOptions) error

ContainerStop mocks base method.

func (*MockAPIClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIClient) ImageInspect

func (m *MockAPIClient) ImageInspect(ctx context.Context, imageID string, options ...client.ImageInspectOption) (image.InspectResponse, error)

ImageInspect mocks base method.

func (*MockAPIClient) ImagePull

func (m *MockAPIClient) ImagePull(ctx context.Context, ref string, options image.PullOptions) (io.ReadCloser, error)

ImagePull mocks base method.

func (*MockAPIClient) ImageRemove

func (m *MockAPIClient) ImageRemove(ctx context.Context, imageID string, options image.RemoveOptions) ([]image.DeleteResponse, error)

ImageRemove mocks base method.

func (*MockAPIClient) Ping

func (m *MockAPIClient) Ping(ctx context.Context) (types.Ping, error)

Ping mocks base method.

type MockAPIClientMockRecorder

type MockAPIClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIClientMockRecorder is the mock recorder for MockAPIClient.

func (*MockAPIClientMockRecorder) ContainerCreate

func (mr *MockAPIClientMockRecorder) ContainerCreate(ctx, config, hostConfig, networkingConfig, platform, containerName any) *gomock.Call

ContainerCreate indicates an expected call of ContainerCreate.

func (*MockAPIClientMockRecorder) ContainerExecAttach

func (mr *MockAPIClientMockRecorder) ContainerExecAttach(ctx, execID, options any) *gomock.Call

ContainerExecAttach indicates an expected call of ContainerExecAttach.

func (*MockAPIClientMockRecorder) ContainerExecCreate

func (mr *MockAPIClientMockRecorder) ContainerExecCreate(ctx, arg1, options any) *gomock.Call

ContainerExecCreate indicates an expected call of ContainerExecCreate.

func (*MockAPIClientMockRecorder) ContainerExecInspect

func (mr *MockAPIClientMockRecorder) ContainerExecInspect(ctx, execID any) *gomock.Call

ContainerExecInspect indicates an expected call of ContainerExecInspect.

func (*MockAPIClientMockRecorder) ContainerInspect

func (mr *MockAPIClientMockRecorder) ContainerInspect(ctx, containerID any) *gomock.Call

ContainerInspect indicates an expected call of ContainerInspect.

func (*MockAPIClientMockRecorder) ContainerList

func (mr *MockAPIClientMockRecorder) ContainerList(ctx, options any) *gomock.Call

ContainerList indicates an expected call of ContainerList.

func (*MockAPIClientMockRecorder) ContainerRemove

func (mr *MockAPIClientMockRecorder) ContainerRemove(ctx, containerID, options any) *gomock.Call

ContainerRemove indicates an expected call of ContainerRemove.

func (*MockAPIClientMockRecorder) ContainerStart

func (mr *MockAPIClientMockRecorder) ContainerStart(ctx, containerID, options any) *gomock.Call

ContainerStart indicates an expected call of ContainerStart.

func (*MockAPIClientMockRecorder) ContainerStop

func (mr *MockAPIClientMockRecorder) ContainerStop(ctx, containerID, options any) *gomock.Call

ContainerStop indicates an expected call of ContainerStop.

func (*MockAPIClientMockRecorder) ImageInspect

func (mr *MockAPIClientMockRecorder) ImageInspect(ctx, imageID any, options ...any) *gomock.Call

ImageInspect indicates an expected call of ImageInspect.

func (*MockAPIClientMockRecorder) ImagePull

func (mr *MockAPIClientMockRecorder) ImagePull(ctx, ref, options any) *gomock.Call

ImagePull indicates an expected call of ImagePull.

func (*MockAPIClientMockRecorder) ImageRemove

func (mr *MockAPIClientMockRecorder) ImageRemove(ctx, imageID, options any) *gomock.Call

ImageRemove indicates an expected call of ImageRemove.

func (*MockAPIClientMockRecorder) Ping

func (mr *MockAPIClientMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

type MockProvider

type MockProvider struct {
	// contains filtered or unexported fields
}

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) Create

func (m *MockProvider) Create(ctx context.Context, params docker.CreateParams) (*docker.Container, error)

Create mocks base method.

func (*MockProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProvider) Exec

func (m *MockProvider) Exec(ctx context.Context, id string, params docker.ExecParams) (*docker.ExecResult, error)

Exec mocks base method.

func (*MockProvider) ImageRemove

func (m *MockProvider) ImageRemove(ctx context.Context, image string, force bool) (*docker.ActionResult, error)

ImageRemove mocks base method.

func (*MockProvider) Inspect

func (m *MockProvider) Inspect(ctx context.Context, id string) (*docker.ContainerDetail, error)

Inspect mocks base method.

func (*MockProvider) List

func (m *MockProvider) List(ctx context.Context, params docker.ListParams) ([]docker.Container, error)

List mocks base method.

func (*MockProvider) Ping

func (m *MockProvider) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockProvider) Pull

func (m *MockProvider) Pull(ctx context.Context, image string) (*docker.PullResult, error)

Pull mocks base method.

func (*MockProvider) Remove

func (m *MockProvider) Remove(ctx context.Context, id string, force bool) (*docker.ActionResult, error)

Remove mocks base method.

func (*MockProvider) Start

func (m *MockProvider) Start(ctx context.Context, id string) (*docker.ActionResult, error)

Start mocks base method.

func (*MockProvider) Stop

func (m *MockProvider) Stop(ctx context.Context, id string, timeout *time.Duration) (*docker.ActionResult, error)

Stop mocks base method.

type MockProviderMockRecorder

type MockProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) Create

func (mr *MockProviderMockRecorder) Create(ctx, params any) *gomock.Call

Create indicates an expected call of Create.

func (*MockProviderMockRecorder) Exec

func (mr *MockProviderMockRecorder) Exec(ctx, id, params any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockProviderMockRecorder) ImageRemove

func (mr *MockProviderMockRecorder) ImageRemove(ctx, image, force any) *gomock.Call

ImageRemove indicates an expected call of ImageRemove.

func (*MockProviderMockRecorder) Inspect

func (mr *MockProviderMockRecorder) Inspect(ctx, id any) *gomock.Call

Inspect indicates an expected call of Inspect.

func (*MockProviderMockRecorder) List

func (mr *MockProviderMockRecorder) List(ctx, params any) *gomock.Call

List indicates an expected call of List.

func (*MockProviderMockRecorder) Ping

func (mr *MockProviderMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockProviderMockRecorder) Pull

func (mr *MockProviderMockRecorder) Pull(ctx, image any) *gomock.Call

Pull indicates an expected call of Pull.

func (*MockProviderMockRecorder) Remove

func (mr *MockProviderMockRecorder) Remove(ctx, id, force any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockProviderMockRecorder) Start

func (mr *MockProviderMockRecorder) Start(ctx, id any) *gomock.Call

Start indicates an expected call of Start.

func (*MockProviderMockRecorder) Stop

func (mr *MockProviderMockRecorder) Stop(ctx, id, timeout any) *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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