Documentation
¶
Overview ¶
Package resourcesetinput owns ResourceSet input composition and template evaluation.
Index ¶
- Variables
- func Build(spec *fluxopv1.ResourceSetSpec, inputs []map[string]any, partial bool) ([]map[string]any, error)
- func Combine(groups []Group, strategy *fluxopv1.InputStrategySpec) ([]map[string]any, error)
- func Permute(groups []Group, includeEmpty bool) ([]map[string]any, error)
- func Provider(kind, name, namespace string) map[string]any
- func ValidateSteps(spec *fluxopv1.ResourceSetSpec) error
- type Group
- type ResourceKey
- type Template
Constants ¶
This section is empty.
Variables ¶
var ErrDocument = errors.New("invalid ResourceSet document")
ErrDocument identifies a document error that the renderer reports as input failure.
Functions ¶
func Build ¶ added in v0.8.1
func Build(spec *fluxopv1.ResourceSetSpec, inputs []map[string]any, partial bool) ([]map[string]any, error)
Build applies Flux's precedence to rendered documents. Partial builds retain successful evaluations for projection and return the first error.
func ValidateSteps ¶ added in v0.8.1
func ValidateSteps(spec *fluxopv1.ResourceSetSpec) error
ValidateSteps applies the ResourceSet step requirements before input evaluation.
Types ¶
type ResourceKey ¶ added in v0.8.1
type ResourceKey struct {
Group, Kind, Namespace, Name string
}
ResourceKey is the identity used to deduplicate authored documents.
func Key ¶ added in v0.8.1
func Key(doc map[string]any) ResourceKey
Key extracts a resource identity before namespace defaulting.
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template holds one sequential template execution context.