mock_docker

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: container.go

Generated by this command:

mockgen -source=container.go -destination=mocks/container.go

Package mock_docker is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: exec.go

Generated by this command:

mockgen -source=exec.go -destination=mocks/exec.go

Package mock_docker is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: image.go

Generated by this command:

mockgen -source=image.go -destination=mocks/image.go

Package mock_docker is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: io_streamer.go

Generated by this command:

mockgen -source=io_streamer.go -destination=mocks/io_streamer.go

Package mock_docker is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: wrapper.go

Generated by this command:

mockgen -source=wrapper.go -destination=mocks/wrapper.go

Package mock_docker is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainer

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

MockContainer is a mock of Container interface.

func NewMockContainer

func NewMockContainer(ctrl *gomock.Controller) *MockContainer

NewMockContainer creates a new mock instance.

func (*MockContainer) AttachIO

AttachIO mocks base method.

func (*MockContainer) Create

func (m *MockContainer) Create(ctx context.Context, w docker.Wrapper) error

Create mocks base method.

func (*MockContainer) EXPECT

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

func (*MockContainer) Exec

Exec mocks base method.

func (*MockContainer) ID

func (m *MockContainer) ID() string

ID mocks base method.

func (*MockContainer) Inspect

Inspect mocks base method.

func (*MockContainer) Remove

func (m *MockContainer) Remove(ctx context.Context, w docker.Wrapper) error

Remove mocks base method.

func (*MockContainer) Start

func (m *MockContainer) Start(ctx context.Context, w docker.Wrapper, timeout time.Duration) error

Start mocks base method.

func (*MockContainer) Stop

func (m *MockContainer) Stop(ctx context.Context, w docker.Wrapper) error

Stop mocks base method.

func (*MockContainer) Wait

func (m *MockContainer) Wait(ctx context.Context, w docker.Wrapper) error

Wait mocks base method.

type MockContainerMockRecorder

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

MockContainerMockRecorder is the mock recorder for MockContainer.

func (*MockContainerMockRecorder) AttachIO

func (mr *MockContainerMockRecorder) AttachIO(ctx, w any) *gomock.Call

AttachIO indicates an expected call of AttachIO.

func (*MockContainerMockRecorder) Create

func (mr *MockContainerMockRecorder) Create(ctx, w any) *gomock.Call

Create indicates an expected call of Create.

func (*MockContainerMockRecorder) Exec

func (mr *MockContainerMockRecorder) Exec(ctx, w, cmd any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockContainerMockRecorder) ID

ID indicates an expected call of ID.

func (*MockContainerMockRecorder) Inspect

func (mr *MockContainerMockRecorder) Inspect(ctx, w any) *gomock.Call

Inspect indicates an expected call of Inspect.

func (*MockContainerMockRecorder) Remove

func (mr *MockContainerMockRecorder) Remove(ctx, w any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockContainerMockRecorder) Start

func (mr *MockContainerMockRecorder) Start(ctx, w, timeout any) *gomock.Call

Start indicates an expected call of Start.

func (*MockContainerMockRecorder) Stop

func (mr *MockContainerMockRecorder) Stop(ctx, w any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockContainerMockRecorder) Wait

func (mr *MockContainerMockRecorder) Wait(ctx, w any) *gomock.Call

Wait indicates an expected call of Wait.

type MockExec

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

MockExec is a mock of Exec interface.

func NewMockExec

func NewMockExec(ctrl *gomock.Controller) *MockExec

NewMockExec creates a new mock instance.

func (*MockExec) AttachIO

func (m *MockExec) AttachIO(ctx context.Context, w docker.Wrapper) (docker.IOStreamer, error)

AttachIO mocks base method.

func (*MockExec) EXPECT

func (m *MockExec) EXPECT() *MockExecMockRecorder

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

func (*MockExec) Start

func (m *MockExec) Start(ctx context.Context, w docker.Wrapper) error

Start mocks base method.

func (*MockExec) Wait

func (m *MockExec) Wait(ctx context.Context, w docker.Wrapper) error

Wait mocks base method.

type MockExecMockRecorder

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

MockExecMockRecorder is the mock recorder for MockExec.

func (*MockExecMockRecorder) AttachIO

func (mr *MockExecMockRecorder) AttachIO(ctx, w any) *gomock.Call

AttachIO indicates an expected call of AttachIO.

func (*MockExecMockRecorder) Start

func (mr *MockExecMockRecorder) Start(ctx, w any) *gomock.Call

Start indicates an expected call of Start.

func (*MockExecMockRecorder) Wait

func (mr *MockExecMockRecorder) Wait(ctx, w any) *gomock.Call

Wait indicates an expected call of Wait.

type MockIOStreamer

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

MockIOStreamer is a mock of IOStreamer interface.

func NewMockIOStreamer

func NewMockIOStreamer(ctrl *gomock.Controller) *MockIOStreamer

NewMockIOStreamer creates a new mock instance.

func (*MockIOStreamer) EXPECT

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

func (*MockIOStreamer) Start

func (m *MockIOStreamer) Start()

Start mocks base method.

func (*MockIOStreamer) Wait

func (m *MockIOStreamer) Wait(ctx context.Context) error

Wait mocks base method.

type MockIOStreamerMockRecorder

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

MockIOStreamerMockRecorder is the mock recorder for MockIOStreamer.

func (*MockIOStreamerMockRecorder) Start

func (mr *MockIOStreamerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockIOStreamerMockRecorder) Wait

func (mr *MockIOStreamerMockRecorder) Wait(ctx any) *gomock.Call

Wait indicates an expected call of Wait.

type MockImage

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

MockImage is a mock of Image interface.

func NewMockImage

func NewMockImage(ctrl *gomock.Controller) *MockImage

NewMockImage creates a new mock instance.

func (*MockImage) EXPECT

func (m *MockImage) EXPECT() *MockImageMockRecorder

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

func (*MockImage) Inspect

Inspect mocks base method.

func (*MockImage) Pull

func (m *MockImage) Pull(ctx context.Context, w docker.Wrapper) error

Pull mocks base method.

type MockImageMockRecorder

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

MockImageMockRecorder is the mock recorder for MockImage.

func (*MockImageMockRecorder) Inspect

func (mr *MockImageMockRecorder) Inspect(ctx, w any) *gomock.Call

Inspect indicates an expected call of Inspect.

func (*MockImageMockRecorder) Pull

func (mr *MockImageMockRecorder) Pull(ctx, w any) *gomock.Call

Pull indicates an expected call of Pull.

type MockWrapper

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

MockWrapper is a mock of Wrapper interface.

func NewMockWrapper

func NewMockWrapper(ctrl *gomock.Controller) *MockWrapper

NewMockWrapper creates a new mock instance.

func (*MockWrapper) Cli

func (m *MockWrapper) Cli() client.APIClient

Cli mocks base method.

func (*MockWrapper) ContainerCreate

func (m *MockWrapper) ContainerCreate(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)

ContainerCreate mocks base method.

func (*MockWrapper) ContainerStart

func (m *MockWrapper) ContainerStart(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)

ContainerStart mocks base method.

func (*MockWrapper) EXPECT

func (m *MockWrapper) EXPECT() *MockWrapperMockRecorder

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

func (*MockWrapper) Err

func (m *MockWrapper) Err() io.Writer

Err mocks base method.

func (*MockWrapper) In

func (m *MockWrapper) In() io.Reader

In mocks base method.

func (*MockWrapper) Logger

func (m *MockWrapper) Logger() *zap.Logger

Logger mocks base method.

func (*MockWrapper) Out

func (m *MockWrapper) Out() io.Writer

Out mocks base method.

type MockWrapperMockRecorder

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

MockWrapperMockRecorder is the mock recorder for MockWrapper.

func (*MockWrapperMockRecorder) Cli

func (mr *MockWrapperMockRecorder) Cli() *gomock.Call

Cli indicates an expected call of Cli.

func (*MockWrapperMockRecorder) ContainerCreate

func (mr *MockWrapperMockRecorder) ContainerCreate(ctx, cfg any) *gomock.Call

ContainerCreate indicates an expected call of ContainerCreate.

func (*MockWrapperMockRecorder) ContainerStart

func (mr *MockWrapperMockRecorder) ContainerStart(ctx, cfg any) *gomock.Call

ContainerStart indicates an expected call of ContainerStart.

func (*MockWrapperMockRecorder) Err

func (mr *MockWrapperMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockWrapperMockRecorder) In

In indicates an expected call of In.

func (*MockWrapperMockRecorder) Logger

func (mr *MockWrapperMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockWrapperMockRecorder) Out

func (mr *MockWrapperMockRecorder) Out() *gomock.Call

Out indicates an expected call of Out.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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