Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeParams ¶
MergeParams merges file params with inline params (inline takes precedence)
Types ¶
type ParameterFile ¶
type ParameterFile struct {
// Single template format
Template string `yaml:"template" json:"template"`
Parameters map[string]any `yaml:"parameters" json:"parameters"`
// Multi-template format
Templates []TemplateParams `yaml:"templates" json:"templates"`
// Secret values (kept separate from parameters for clarity)
Secrets map[string]string `yaml:"secrets,omitempty" json:"secrets,omitempty"`
}
ParameterFile supports both single and multi-template formats
func ParseFile ¶
func ParseFile(path string) (*ParameterFile, error)
ParseFile reads and parses a parameter file (YAML or JSON)
func (*ParameterFile) Normalize ¶
func (pf *ParameterFile) Normalize()
Normalize converts single-template format to multi-template format