Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
ContainerExists(ctx context.Context, container string) (bool, container.InspectResponse, error)
RemoveContainer(ctx context.Context, containerID string, force bool) error
StartContainer(ctx context.Context, containerID string, containerConfig container.Config, hostConfig container.HostConfig, networkingConfig network.NetworkingConfig) error
StopContainer(ctx context.Context, containerID string, timeout int) error
FindContainerByLabel(ctx context.Context, label string) (string, error)
FindAllContainersByLabel(ctx context.Context, label string) ([]string, error)
InspectContainer(ctx context.Context, containerID string) (container.InspectResponse, error)
ReadLogs(ctx context.Context, containerID string, options container.LogsOptions) (io.ReadCloser, error)
ImageExists(ctx context.Context, name string) (bool, error)
InspectImage(ctx context.Context, name string) (image.InspectResponse, error)
PullImage(ctx context.Context, name string) error
PullImages(ctx context.Context, names ...string) error
CreateNetwork(ctx context.Context, name string, internal bool, labels map[string]string) error
RemoveNetwork(ctx context.Context, name string) error
ConnectNetwork(ctx context.Context, networkName, container, hostname string) error
InspectVolume(ctx context.Context, name string) (volume.Volume, error)
ReadSecrets(ctx context.Context, names []string, lenient bool) (map[string]string, error)
}
Click to show internal directories.
Click to hide internal directories.