Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIClient ¶ added in v0.8.0
func NewAPIClient(streams genericclioptions.IOStreams) (client.APIClient, error)
func RemoveIfNecessary ¶
A simplified remove-container-if-necessary helper.
Types ¶
type Client ¶
type Client interface { DaemonHost() string ImagePull(ctx context.Context, image string, options types.ImagePullOptions) (io.ReadCloser, error) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) ContainerRemove(ctx context.Context, id string, options types.ContainerRemoveOptions) error ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *specs.Platform, containerName string) (container.ContainerCreateCreatedBody, error) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error }
Docker Container client.
Click to show internal directories.
Click to hide internal directories.