docker

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)
	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)
}

func NewClient

func NewClient(cli command.Cli) Client

Jump to

Keyboard shortcuts

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