Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDockerAvailable ¶
IsDockerAvailable checks if Docker CLI is installed and accessible.
Types ¶
type ComposeProject ¶
type ComposeProject struct {
Name string `json:"name"`
Status string `json:"status"`
ConfigFile string `json:"config_file"`
Services []ComposeService `json:"services"`
}
ComposeProject represents a discovered Docker Compose project.
func DiscoverComposeProjects ¶
func DiscoverComposeProjects(ctx context.Context) ([]ComposeProject, error)
DiscoverComposeProjects lists running Docker Compose projects.
type ComposeService ¶
type ComposeService struct {
Name string `json:"name"`
Image string `json:"image"`
Status string `json:"status"`
Volumes []string `json:"volumes"`
}
ComposeService is a service within a compose project.
type DockerVolume ¶
type DockerVolume struct {
Name string `json:"name"`
Driver string `json:"driver"`
Mountpoint string `json:"mountpoint"`
Labels map[string]string `json:"labels"`
Scope string `json:"scope"`
Containers []string `json:"containers"` // container names using this volume
}
DockerVolume represents a discovered Docker volume.
func DiscoverVolumes ¶
func DiscoverVolumes(ctx context.Context) ([]DockerVolume, error)
DiscoverVolumes lists all Docker volumes on the host.
Click to show internal directories.
Click to hide internal directories.