compose

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPatterns = []string{
	"compose.y*ml",
	"docker-compose.y*ml",
}

Functions

This section is empty.

Types

type ServiceInfo

type ServiceInfo struct {
	Name    string            `json:"name"`
	Labels  map[string]string `json:"labels"`
	Volumes []VolumeEntry     `json:"volumes"`
}

type StackInfo

type StackInfo struct {
	Path     string        `json:"path"`
	Services []ServiceInfo `json:"services"`
}

func Discover

func Discover(dir string, maxDepth int, patterns []string, resolveEnv bool) ([]StackInfo, error)

type VolumeEntry

type VolumeEntry struct {
	Service     string `json:"service"`
	Type        string `json:"type"`
	Source      string `json:"source"`
	Destination string `json:"destination"`
	Mode        string `json:"mode"`
	Resolved    string `json:"resolved,omitempty"`
}

Jump to

Keyboard shortcuts

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