Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildParamLookup ¶
func BuildParamLookup(spec *SpecConfig) map[string]map[string]any
BuildParamLookup transforms the list of parameter sets into a nested map for easy lookups.
Types ¶
type SpecConfig ¶
type SpecConfig struct {
Templates []string `yaml:"templates"`
TargetIds []string `yaml:"targetIds"`
Parameters []ParamSet `yaml:"parameters"`
Validations []Validation `yaml:"validations"`
}
SpecConfig defines the structure of the spec.yaml file
type Validation ¶
type Validation struct {
Rule string `yaml:"rule"`
Message string `yaml:"message"`
TargetId []string `yaml:"targetId"`
}
Validations defines a set of policy rules.
Click to show internal directories.
Click to hide internal directories.