Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Project ¶
type Project struct {
Name string
Graph *dag.Graph
Containers map[string]string // service name -> container ID
ConfigFiles []string // compose files used to create the project
}
Project is a single Docker Compose stack with a dependency graph.
type Snapshot ¶
type Snapshot struct {
Projects []Project
Standalone []Standalone
}
Snapshot is the full discovery result shown in the TUI.
func FromContainers ¶
func FromContainers(containers []docker.ContainerInfo) (*Snapshot, error)
FromContainers builds a Snapshot from pre-fetched container metadata (testable without Docker).
func FromDocker ¶
FromDocker lists all containers and builds a Snapshot.
func (*Snapshot) ApplyStatesFrom ¶
ApplyStatesFrom copies runtime state from other into s without changing graph topology. SameStructure must be true.
func (*Snapshot) SameStructure ¶
SameStructure reports whether two snapshots have identical project/service topology (names and depends_on). Container state and IDs may differ.
type Standalone ¶
type Standalone struct {
ID string
Name string
Image string
State docker.ContainerState
}
Standalone is a container not managed by Docker Compose.
Click to show internal directories.
Click to hide internal directories.