Help us shape the future of Go! Take the 2026 Go Developer Survey

containers

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	BasePath string
}

Manager handles Docker Compose stack operations.

func NewManager

func NewManager(basePath string) *Manager

NewManager creates a new containers Manager targeting the specified base path.

func (*Manager) DiscoverStacks

func (m *Manager) DiscoverStacks() ([]Stack, error)

DiscoverStacks scans the containers path for valid Compose files.

func (*Manager) Down

func (m *Manager) Down(stackNames []string, removeVolumes bool) error

Down stops target stack(s) using docker compose down.

func (*Manager) EnsureSharedNetwork

func (m *Manager) EnsureSharedNetwork() error

EnsureSharedNetwork checks if eng-shared-net exists, creating it if necessary.

func (*Manager) Logs

func (m *Manager) Logs(stackName string, follow bool, tail string) error

Logs streams logs for a single stack.

func (*Manager) Pull

func (m *Manager) Pull(stackNames []string) error

Pull pulls latest images for target stack(s).

func (*Manager) Status

func (m *Manager) Status(stackNames []string) ([]Stack, error)

Status inspects the status of target stack(s).

func (*Manager) Up

func (m *Manager) Up(stackNames []string, envName string, detach, build bool) error

Up starts target stack(s) using docker compose up.

type Stack

type Stack struct {
	Name       string   `json:"name"`
	Path       string   `json:"path"`
	File       string   `json:"file"`
	Services   []string `json:"services"`
	Status     string   `json:"status"`
	Containers int      `json:"containers"`
}

Stack represents a Docker Compose stack definition.

Jump to

Keyboard shortcuts

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