Help us shape the future of Go! Take the 2026 Go Developer Survey

specgen

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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