docker

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewRawClient

func NewRawClient() (*client.Client, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logger *logging.Logger) (*Client, error)

func (*Client) BuildCachePrune

func (c *Client) BuildCachePrune(ctx context.Context, all bool, filterMap map[string][]string) (build.CachePruneReport, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) ContainerInspect

func (c *Client) ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)

func (*Client) ContainerList

func (c *Client) ContainerList(ctx context.Context, filterLabels map[string][]string) ([]container.Summary, error)

func (*Client) ContainerListAll

func (c *Client) ContainerListAll(ctx context.Context) ([]container.Summary, error)

func (*Client) ContainerPrune

func (c *Client) ContainerPrune(ctx context.Context, filterMap map[string][]string) (container.PruneReport, error)

func (*Client) ContainerRemove

func (c *Client) ContainerRemove(ctx context.Context, containerID string, removeVolumes, removeLinks, force bool) error

func (*Client) ContainerStats

func (c *Client) ContainerStats(ctx context.Context, containerID string, stream bool) (container.StatsResponseReader, error)

func (*Client) GetNetworksByLabels

func (c *Client) GetNetworksByLabels(ctx context.Context, labels map[string]string) ([]network.Summary, error)

func (*Client) GetVolumesByLabels

func (c *Client) GetVolumesByLabels(ctx context.Context, labels map[string]string) ([]*volume.Volume, error)

func (*Client) ImageHistory

func (c *Client) ImageHistory(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error)

func (*Client) ImageInspect

func (c *Client) ImageInspect(ctx context.Context, imageID string) (image.InspectResponse, error)

func (*Client) ImageList

func (c *Client) ImageList(ctx context.Context) ([]image.Summary, error)

func (*Client) ImagePrune

func (c *Client) ImagePrune(ctx context.Context, all bool, filterMap map[string][]string) (image.PruneReport, error)

func (*Client) ImageRemove

func (c *Client) ImageRemove(ctx context.Context, imageID string, force, noPrune bool) ([]image.DeleteResponse, error)

func (*Client) InspectNetwork

func (c *Client) InspectNetwork(ctx context.Context, networkID string) (network.Inspect, error)

func (*Client) InspectVolume

func (c *Client) InspectVolume(ctx context.Context, volumeID string) (*volume.Volume, error)

func (*Client) ListNetworks

func (c *Client) ListNetworks(ctx context.Context) ([]network.Summary, error)

func (*Client) ListVolumes

func (c *Client) ListVolumes(ctx context.Context) (volume.ListResponse, error)

func (*Client) NetworkPrune

func (c *Client) NetworkPrune(ctx context.Context, filterMap map[string][]string) (network.PruneReport, error)

func (*Client) NetworkRemove

func (c *Client) NetworkRemove(ctx context.Context, networkID string) error

func (*Client) SystemDiskUsage

func (c *Client) SystemDiskUsage(ctx context.Context) (types.DiskUsage, error)

func (*Client) SystemInfo

func (c *Client) SystemInfo(ctx context.Context) (system.Info, error)

func (*Client) SystemPrune

func (c *Client) SystemPrune(ctx context.Context, all bool, filterMap map[string][]string) (SystemPruneReport, error)

func (*Client) SystemVersion

func (c *Client) SystemVersion(ctx context.Context) (types.Version, error)

func (*Client) VolumePrune

func (c *Client) VolumePrune(ctx context.Context, filterMap map[string][]string) (volume.PruneReport, error)

func (*Client) VolumeRemove

func (c *Client) VolumeRemove(ctx context.Context, volumeID string, force bool) error

type CommandExecutor

type CommandExecutor struct {
	// contains filtered or unexported fields
}

func NewCommandExecutor

func NewCommandExecutor(stackLocation string) *CommandExecutor

func (*CommandExecutor) ExecuteComposeCommand

func (e *CommandExecutor) ExecuteComposeCommand(stackName string, args ...string) (*exec.Cmd, error)

type DockerEvent

type DockerEvent struct {
	Type     string           `json:"Type"`
	Action   string           `json:"Action"`
	Actor    DockerEventActor `json:"Actor"`
	Time     int64            `json:"time"`
	TimeNano int64            `json:"timeNano"`
}

type DockerEventActor

type DockerEventActor struct {
	ID         string            `json:"ID"`
	Attributes map[string]string `json:"Attributes"`
}

type EventMonitor

type EventMonitor struct {
	// contains filtered or unexported fields
}

func NewEventMonitor

func NewEventMonitor(hub *websocket.Hub, stackLocation string, logger *logging.Logger) *EventMonitor

func (*EventMonitor) Start

func (em *EventMonitor) Start() error

func (*EventMonitor) Stop

func (em *EventMonitor) Stop()

type SystemPruneReport

type SystemPruneReport struct {
	ContainersDeleted []string
	VolumesDeleted    []string
	NetworksDeleted   []string
	ImagesDeleted     []image.DeleteResponse
	SpaceReclaimed    uint64
}

Jump to

Keyboard shortcuts

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