Documentation ¶
Index ¶
- type Interface
- type Mock
- func (m *Mock) ContainerCreate(_ context.Context, _ *containertypes.Config, _ *containertypes.HostConfig, ...) (containertypes.ContainerCreateCreatedBody, error)
- func (m *Mock) ContainerList(_ context.Context, _ types.ContainerListOptions) ([]types.Container, error)
- func (m *Mock) ContainerLogs(_ context.Context, _ string, _ types.ContainerLogsOptions) (io.ReadCloser, error)
- func (m *Mock) ContainerRemove(_ context.Context, _ string, _ types.ContainerRemoveOptions) error
- func (m *Mock) ContainerStart(_ context.Context, _ string, _ types.ContainerStartOptions) error
- func (m *Mock) ContainerWait(_ context.Context, _ string, _ containertypes.WaitCondition) (<-chan containertypes.ContainerWaitOKBody, <-chan error)
- func (m *Mock) ImageList(_ context.Context, _ types.ImageListOptions) ([]types.ImageSummary, error)
- func (m *Mock) ImagePull(_ context.Context, _ string, _ types.ImagePullOptions) (io.ReadCloser, error)
- func (m *Mock) Ping(_ context.Context) (types.Ping, error)
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 *containertypes.Config, hostConfig *containertypes.HostConfig, networkingConfig *networktypes.NetworkingConfig, platform *specs.Platform, containerName string) ( containertypes.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, condition containertypes.WaitCondition) ( <-chan containertypes.ContainerWaitOKBody, <-chan error) ContainerLogs(ctx context.Context, containerID 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 ¶
func (*Mock) ContainerCreate ¶
func (m *Mock) ContainerCreate(_ context.Context, _ *containertypes.Config, _ *containertypes.HostConfig, _ *networktypes.NetworkingConfig, _ *specs.Platform, _ string) (containertypes.ContainerCreateCreatedBody, error)
func (*Mock) ContainerList ¶
func (*Mock) ContainerLogs ¶
func (m *Mock) ContainerLogs(_ context.Context, _ string, _ types.ContainerLogsOptions) (io.ReadCloser, error)
func (*Mock) ContainerRemove ¶
func (*Mock) ContainerStart ¶
func (*Mock) ContainerWait ¶
func (m *Mock) ContainerWait(_ context.Context, _ string, _ containertypes.WaitCondition) ( <-chan containertypes.ContainerWaitOKBody, <-chan error)
func (*Mock) ImageList ¶
func (m *Mock) ImageList(_ context.Context, _ types.ImageListOptions) ([]types.ImageSummary, error)
Click to show internal directories.
Click to hide internal directories.