Documentation
¶
Index ¶
- Constants
- func LoadDocument(basePath string, overlayPaths ...string) (manager.Document, error)
- func MergeFromFiles(basePath string, overlayPaths ...string) ([]byte, error)
- func MergeYAML(base, overlay []byte) ([]byte, error)
- func ResolveFiles(basePath string, overlayPaths ...string) ([]byte, error)
- func ResolveYAML(base []byte, overlays ...[]byte) ([]byte, error)
- func SplitOverlayPaths(spec string) []string
Constants ¶
View Source
const ( DefaultBasePath = "config.base.yaml" DefaultOverlayPath = "config.yaml" DefaultRootID = "runner.default" )
Variables ¶
This section is empty.
Functions ¶
func LoadDocument ¶
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 ¶
MergeFromFiles is an alias for ResolveFiles.
func ResolveFiles ¶
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 ¶
ResolveYAML merges base with each overlay in order and prunes unreachable instances.
func SplitOverlayPaths ¶
SplitOverlayPaths parses a comma-separated overlay list, e.g. "presets/autonomous.yaml,presets/daemon.yaml".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.