Documentation
¶
Overview ¶
Package yaml implements the yaml file manager: in-place field writes on existing YAML files (values files, extra config, and similar), configured via `options.set: [{path, from, format}]`. It reuses Atmos's own format-preserving YAML editor (pkg/yaml, the same engine behind `atmos config set` and `atmos stack set`), which edits via a yq expression rather than a full unmarshal/remarshal, so comments, anchors, and key order on untouched fields survive the write. Path syntax is the same dot-notation used by those commands (e.g. `sources[0].version`, `metadata."weird.key"`), not the sjson/gjson dialect the json manager uses.
Index ¶
Constants ¶
const Name = "yaml"
Name is the manager's registry name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct{}
Manager writes locked values into YAML files at configured field paths.
func (Manager) DefaultPaths ¶
DefaultPaths is empty: like the json manager, there is no generically-safe default glob for "YAML files this tool owns" -- the yaml manager only runs over configured paths.