mock_docker

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock_docker is a generated GoMock package.

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 MockDocker

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

MockDocker is a mock of Docker interface

func NewMockDocker

func NewMockDocker(ctrl *gomock.Controller) *MockDocker

NewMockDocker creates a new mock instance

func (*MockDocker) Build

func (m *MockDocker) Build(ctx context.Context, file io.Reader, tag docker.Tag, dockerfile docker.Dockerfile) (job.Log, error)

Build mocks base method

func (*MockDocker) EXPECT

func (m *MockDocker) EXPECT() *MockDockerMockRecorder

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

func (*MockDocker) ExitCode

func (m *MockDocker) ExitCode(ctx context.Context, containerID docker.ContainerID) (docker.ExitCode, error)

ExitCode mocks base method

func (*MockDocker) RemoveContainer

func (m *MockDocker) RemoveContainer(ctx context.Context, containerID docker.ContainerID) error

RemoveContainer mocks base method

func (*MockDocker) RemoveImage

func (m *MockDocker) RemoveImage(ctx context.Context, tag docker.Tag) error

RemoveImage mocks base method

func (*MockDocker) Run

Run mocks base method

func (*MockDocker) Status

func (m *MockDocker) Status() error

Status mocks base method

type MockDockerMockRecorder

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

MockDockerMockRecorder is the mock recorder for MockDocker

func (*MockDockerMockRecorder) Build

func (mr *MockDockerMockRecorder) Build(ctx, file, tag, dockerfile interface{}) *gomock.Call

Build indicates an expected call of Build

func (*MockDockerMockRecorder) ExitCode

func (mr *MockDockerMockRecorder) ExitCode(ctx, containerID interface{}) *gomock.Call

ExitCode indicates an expected call of ExitCode

func (*MockDockerMockRecorder) RemoveContainer

func (mr *MockDockerMockRecorder) RemoveContainer(ctx, containerID interface{}) *gomock.Call

RemoveContainer indicates an expected call of RemoveContainer

func (*MockDockerMockRecorder) RemoveImage

func (mr *MockDockerMockRecorder) RemoveImage(ctx, tag interface{}) *gomock.Call

RemoveImage indicates an expected call of RemoveImage

func (*MockDockerMockRecorder) Run

func (mr *MockDockerMockRecorder) Run(ctx, opts, tag, cmd interface{}) *gomock.Call

Run indicates an expected call of Run

func (*MockDockerMockRecorder) Status

func (mr *MockDockerMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status

type MockMoby

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

MockMoby is a mock of Moby interface

func NewMockMoby

func NewMockMoby(ctrl *gomock.Controller) *MockMoby

NewMockMoby creates a new mock instance

func (*MockMoby) ContainerCreate

func (m *MockMoby) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)

ContainerCreate mocks base method

func (*MockMoby) ContainerLogs

func (m *MockMoby) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)

ContainerLogs mocks base method

func (*MockMoby) ContainerRemove

func (m *MockMoby) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error

ContainerRemove mocks base method

func (*MockMoby) ContainerStart

func (m *MockMoby) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error

ContainerStart mocks base method

func (*MockMoby) ContainerWait

func (m *MockMoby) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error)

ContainerWait mocks base method

func (*MockMoby) EXPECT

func (m *MockMoby) EXPECT() *MockMobyMockRecorder

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

func (*MockMoby) ImageBuild

func (m *MockMoby) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)

ImageBuild mocks base method

func (*MockMoby) ImageRemove

func (m *MockMoby) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)

ImageRemove mocks base method

func (*MockMoby) Info

func (m *MockMoby) Info(ctx context.Context) (types.Info, error)

Info mocks base method

type MockMobyMockRecorder

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

MockMobyMockRecorder is the mock recorder for MockMoby

func (*MockMobyMockRecorder) ContainerCreate

func (mr *MockMobyMockRecorder) ContainerCreate(ctx, config, hostConfig, networkingConfig, containerName interface{}) *gomock.Call

ContainerCreate indicates an expected call of ContainerCreate

func (*MockMobyMockRecorder) ContainerLogs

func (mr *MockMobyMockRecorder) ContainerLogs(ctx, container, options interface{}) *gomock.Call

ContainerLogs indicates an expected call of ContainerLogs

func (*MockMobyMockRecorder) ContainerRemove

func (mr *MockMobyMockRecorder) ContainerRemove(ctx, containerID, options interface{}) *gomock.Call

ContainerRemove indicates an expected call of ContainerRemove

func (*MockMobyMockRecorder) ContainerStart

func (mr *MockMobyMockRecorder) ContainerStart(ctx, containerID, options interface{}) *gomock.Call

ContainerStart indicates an expected call of ContainerStart

func (*MockMobyMockRecorder) ContainerWait

func (mr *MockMobyMockRecorder) ContainerWait(ctx, containerID, condition interface{}) *gomock.Call

ContainerWait indicates an expected call of ContainerWait

func (*MockMobyMockRecorder) ImageBuild

func (mr *MockMobyMockRecorder) ImageBuild(ctx, buildContext, options interface{}) *gomock.Call

ImageBuild indicates an expected call of ImageBuild

func (*MockMobyMockRecorder) ImageRemove

func (mr *MockMobyMockRecorder) ImageRemove(ctx, imageID, options interface{}) *gomock.Call

ImageRemove indicates an expected call of ImageRemove

func (*MockMobyMockRecorder) Info

func (mr *MockMobyMockRecorder) Info(ctx interface{}) *gomock.Call

Info indicates an expected call of Info

Jump to

Keyboard shortcuts

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