config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBasePath    = "config.base.yaml"
	DefaultOverlayPath = "config.yaml"
	DefaultRootID      = "runner.default"
)

Variables

This section is empty.

Functions

func LoadDocument

func LoadDocument(basePath string, overlayPaths ...string) (manager.Document, error)

LoadDocument loads L0 base config and optional L1 overlays, prunes unreachable instances, then parses. Overlays apply in order, so a later one wins.

func MergeFromFiles

func MergeFromFiles(basePath string, overlayPaths ...string) ([]byte, error)

MergeFromFiles is an alias for ResolveFiles.

func MergeYAML

func MergeYAML(base, overlay []byte) ([]byte, error)

MergeYAML merges two instance graphs. Overlay keys replace base entries entirely.

func ResolveFiles

func ResolveFiles(basePath string, overlayPaths ...string) ([]byte, error)

ResolveFiles merges L0 with each L1 overlay in order and prunes instances unreachable from root. Chaining lets a capability stack live in one preset and a transport swap in another, instead of every preset restating the whole graph.

func ResolveYAML

func ResolveYAML(base []byte, overlays ...[]byte) ([]byte, error)

ResolveYAML merges base with each overlay in order and prunes unreachable instances.

func SplitOverlayPaths

func SplitOverlayPaths(spec string) []string

SplitOverlayPaths parses a comma-separated overlay list, e.g. "presets/autonomous.yaml,presets/daemon.yaml".

Types

This section is empty.

Jump to

Keyboard shortcuts

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