config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeOverrides

func AttributeOverrides(cwd string, files []string) ([]model.OverrideNote, error)

AttributeOverrides compares per-file parses and explains port (and image) overrides.

func Capture

func Capture(cwd string, composeFiles []string, composeArgs []string, runner Runner) (*model.EffectiveConfig, error)

Capture runs docker compose config and builds EffectiveConfig with override notes.

func ParseMerged

func ParseMerged(raw []byte) (*model.EffectiveConfig, error)

ParseMerged parses `docker compose config` YAML into EffectiveConfig.

func WriteTempCompose

func WriteTempCompose(dir, name, contents string) (string, error)

WriteTempCompose is a test helper exported for fixtures under this package.

Types

type ExecRunner

type ExecRunner struct{}

ExecRunner shells out to docker compose config.

func (ExecRunner) ComposeConfig

func (ExecRunner) ComposeConfig(cwd string, composeArgs []string) ([]byte, error)

ComposeConfig runs `docker compose … config`.

type Runner

type Runner interface {
	ComposeConfig(cwd string, composeArgs []string) ([]byte, error)
}

Runner executes docker compose config (mockable).

Jump to

Keyboard shortcuts

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