Documentation
¶
Index ¶
- type ContainerDetail
- type Manager
- func (m *Manager) ContainerDetails(stackNames []string) (map[string][]ContainerDetail, error)
- func (m *Manager) DiscoverStacks() ([]Stack, error)
- func (m *Manager) Down(stackNames []string, removeVolumes bool) error
- func (m *Manager) EnsureSharedNetwork() error
- func (m *Manager) Logs(stackName string, follow bool, tail string) error
- func (m *Manager) Pull(stackNames []string) error
- func (m *Manager) Status(stackNames []string) ([]Stack, error)
- func (m *Manager) Up(stackNames []string, envName string, detach, build bool) error
- type Publisher
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerDetail ¶ added in v1.28.0
type ContainerDetail struct {
ID string `json:"ID"`
Name string `json:"Name"`
Service string `json:"Service"`
State string `json:"State"`
Status string `json:"Status"`
Health string `json:"Health"`
Image string `json:"Image"`
Publishers []Publisher `json:"Publishers"`
}
ContainerDetail holds full metadata for an individual container.
type Manager ¶
type Manager struct {
BasePath string
}
Manager handles Docker Compose stack operations.
func NewManager ¶
NewManager creates a new containers Manager targeting the specified base path.
func (*Manager) ContainerDetails ¶ added in v1.28.0
func (m *Manager) ContainerDetails(stackNames []string) (map[string][]ContainerDetail, error)
ContainerDetails returns detailed container information for target stack(s).
func (*Manager) DiscoverStacks ¶
DiscoverStacks scans the containers path for valid Compose files.
func (*Manager) EnsureSharedNetwork ¶
EnsureSharedNetwork checks if eng-shared-net exists, creating it if necessary.
Click to show internal directories.
Click to hide internal directories.