Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveIfNecessary ¶
A simplified remove-container-if-necessary helper.
Types ¶
type CLI ¶ added in v0.8.21
type CLI interface { Client() Client AuthInfo(ctx context.Context, repoInfo *registry.RepositoryInfo, cmdName string) (string, types.RequestPrivilegeFunc, error) }
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.CreateResponse, error) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error ServerVersion(ctx context.Context) (types.Version, error) Info(ctx context.Context) (types.Info, error) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error }
Docker Container client.
func NewAPIClient ¶ added in v0.8.0
func NewAPIClient(streams genericclioptions.IOStreams) (Client, error)
Click to show internal directories.
Click to hide internal directories.