Documentation
¶
Overview ¶
Package specgen serialises []interfaces.ResourceSpec to YAML in the resource-spec schema shape consumed by iac/specparse.ParseResourceSpecs.
SpecToYAML is the inverse of specparse.ParseResourceSpecs: it emits the same field names ("name", "type", "config", "size", "depends_on", "hints") so that a re-parse round-trips without loss. secret:// references in Config values are emitted verbatim — no expansion is performed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpecToYAML ¶
func SpecToYAML(specs []interfaces.ResourceSpec) ([]byte, error)
SpecToYAML marshals specs to YAML in the resource-spec schema. Each spec becomes a mapping with fields name, type, size (omitted when empty), config (omitted when nil), depends_on (omitted when empty), and hints (omitted when nil, with empty subfields omitted). secret:// refs survive verbatim.
Types ¶
This section is empty.