client

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig,
		networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)
	ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error
	ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
	ContainerWait(ctx context.Context, containerID string) (int64, error)
	ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
	ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
	ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
	ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)
	Ping(ctx context.Context) (types.Ping, error)
}

func NewDockerClient

func NewDockerClient() Interface

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) ContainerCreate

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

func (*Mock) ContainerList

func (m *Mock) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)

func (*Mock) ContainerLogs

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

func (*Mock) ContainerRemove

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

func (*Mock) ContainerStart

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

func (*Mock) ContainerWait

func (m *Mock) ContainerWait(ctx context.Context, containerID string) (int64, error)

func (*Mock) ImageList

func (m *Mock) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)

func (*Mock) ImagePull

func (m *Mock) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)

func (*Mock) Ping

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

Jump to

Keyboard shortcuts

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