Documentation
¶
Index ¶
- Constants
- Variables
- func NewRawClient() (*client.Client, error)
- type Client
- func (c *Client) BuildCachePrune(ctx context.Context, all bool) (build.CachePruneReport, error)
- func (c *Client) Close() error
- func (c *Client) ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)
- func (c *Client) ContainerList(ctx context.Context, filterLabels map[string][]string) ([]container.Summary, error)
- func (c *Client) ContainerPrune(ctx context.Context) (container.PruneReport, error)
- func (c *Client) ContainerRemove(ctx context.Context, containerID string, ...) error
- func (c *Client) ContainerStart(ctx context.Context, containerID string) error
- func (c *Client) ContainerStats(ctx context.Context, containerID string, stream bool) (container.StatsResponseReader, error)
- func (c *Client) ContainerStop(ctx context.Context, containerID string) error
- func (c *Client) CreateVolume(ctx context.Context, name, driver string, driverOpts, labels map[string]string) (volume.Volume, error)
- func (c *Client) GetNetworksByLabels(ctx context.Context, labels map[string]string) ([]network.Summary, error)
- func (c *Client) GetVolumesByLabels(ctx context.Context, labels map[string]string) ([]*volume.Volume, error)
- func (c *Client) ImageHistory(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error)
- func (c *Client) ImageInspect(ctx context.Context, imageID string) (image.InspectResponse, error)
- func (c *Client) ImagePrune(ctx context.Context, all bool) (image.PruneReport, error)
- func (c *Client) ImageRemove(ctx context.Context, imageID string) ([]image.DeleteResponse, error)
- func (c *Client) InspectNetwork(ctx context.Context, networkID string) (network.Inspect, error)
- func (c *Client) InspectVolume(ctx context.Context, volumeID string) (*volume.Volume, error)
- func (c *Client) ListNetworks(ctx context.Context) ([]network.Summary, error)
- func (c *Client) ListVolumes(ctx context.Context) (volume.ListResponse, error)
- func (c *Client) NetworkPrune(ctx context.Context) (network.PruneReport, error)
- func (c *Client) NetworkRemove(ctx context.Context, networkID string) error
- func (c *Client) RunContainer(ctx context.Context, spec ContainerRunSpec, stdout, stderr io.Writer) (int, error)
- func (c *Client) SystemDiskUsage(ctx context.Context) (types.DiskUsage, error)
- func (c *Client) SystemInfo(ctx context.Context) (system.Info, error)
- func (c *Client) SystemPrune(ctx context.Context, all bool) (SystemPruneReport, error)
- func (c *Client) SystemVersion(ctx context.Context) (types.Version, error)
- func (c *Client) VolumePrune(ctx context.Context, all bool) (volume.PruneReport, error)
- func (c *Client) VolumeRemove(ctx context.Context, volumeID string) error
- type CommandExecutor
- type ContainerRunSpec
- type SystemPruneReport
Constants ¶
View Source
const ( LabelComposeProject = "com.docker.compose.project" LabelComposeService = "com.docker.compose.service" LabelComposeContainerNumber = "com.docker.compose.container-number" LabelComposeWorkingDir = "com.docker.compose.project.working_dir" )
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewClient), fx.Provide(NewRawClient), )
Functions ¶
func NewRawClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildCachePrune ¶
func (*Client) ContainerInspect ¶
func (*Client) ContainerList ¶
func (*Client) ContainerPrune ¶
func (*Client) ContainerRemove ¶
func (*Client) ContainerStart ¶ added in v0.5.1
func (*Client) ContainerStats ¶
func (*Client) ContainerStop ¶ added in v0.5.1
func (*Client) CreateVolume ¶ added in v0.5.1
func (*Client) GetNetworksByLabels ¶
func (*Client) GetVolumesByLabels ¶
func (*Client) ImageHistory ¶
func (*Client) ImageInspect ¶
func (*Client) ImagePrune ¶
func (*Client) ImageRemove ¶
func (*Client) InspectNetwork ¶
func (*Client) InspectVolume ¶
func (*Client) ListNetworks ¶
func (*Client) ListVolumes ¶
func (*Client) NetworkPrune ¶
func (*Client) NetworkRemove ¶
func (*Client) RunContainer ¶ added in v0.5.1
func (*Client) SystemDiskUsage ¶
func (*Client) SystemPrune ¶
func (*Client) SystemVersion ¶
func (*Client) VolumePrune ¶
type CommandExecutor ¶
type CommandExecutor struct {
// contains filtered or unexported fields
}
func NewCommandExecutor ¶
func NewCommandExecutor(stackLocation string) *CommandExecutor
func (*CommandExecutor) ExecuteComposeCommand ¶
type ContainerRunSpec ¶ added in v0.5.1
type SystemPruneReport ¶
Click to show internal directories.
Click to hide internal directories.