Documentation
¶
Overview ¶
Package docker provides Docker client functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// InspectImage returns detailed information about an image.
InspectImage(ctx context.Context, imageRef string) (*ImageInspect, error)
// GetImageHistory returns the history of an image.
GetImageHistory(ctx context.Context, imageRef string) ([]ImageHistoryResponseItem, error)
// ImageExists checks if an image exists locally.
ImageExists(ctx context.Context, imageRef string) bool
// PullImage pulls an image from a registry.
PullImage(ctx context.Context, imageRef string) error
// Close closes the client connection.
Close() error
}
Client defines the interface for Docker operations.
type ContainerConfig ¶
type ContainerConfig struct {
Hostname string
Domainname string
User string
AttachStdin bool
AttachStdout bool
AttachStderr bool
ExposedPorts map[string]struct{}
Tty bool
OpenStdin bool
StdinOnce bool
Env []string
Cmd []string
Image string
Volumes map[string]struct{}
WorkingDir string
Entrypoint []string
OnBuild []string
Labels map[string]string
StopSignal string
StopTimeout int
Shell []string
}
ContainerConfig holds container configuration.
type GraphDriverData ¶
GraphDriverData stores information about the storage driver.
type ImageHistoryResponseItem ¶
type ImageHistoryResponseItem struct {
ID string
Created int64
CreatedBy string
Tags []string
Size int64
Comment string
}
ImageHistoryResponseItem represents an item in the image history.
type ImageInspect ¶
type ImageInspect struct {
ID string
RepoTags []string
RepoDigests []string
Parent string
Comment string
Created time.Time
Container string
ContainerConfig ContainerConfig
DockerVersion string
Author string
Config *ContainerConfig
Architecture string
OS string
Size int64
VirtualSize int64
GraphDriver GraphDriverData
RootFS RootFS
Metadata ImageMetadata
}
ImageInspect contains the result of inspecting an image.
type ImageMetadata ¶
ImageMetadata contains image metadata.
Click to show internal directories.
Click to hide internal directories.