docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDockerAvailable

func IsDockerAvailable(ctx context.Context) bool

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.

Jump to

Keyboard shortcuts

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