Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceOverridePolicy ¶ added in v1.16.0
func EnforceOverridePolicy(intent *model.Intent, policy *model.StackOverridePolicySpec, stackProfiles map[string]model.ExecutionProfile) error
EnforceOverridePolicy validates that intent-level overrides comply with the stack's override policy. Returns nil if no policy is set (all overrides allowed) or if all overrides are valid.
func MergeStackResources ¶ added in v1.16.0
func MergeStackResources(normalized *model.NormalizedIntent, resources *StackResources)
MergeStackResources merges stack-provided profiles, triggers, and override policy into the normalized intent. Stack profiles serve as defaults; intent profiles override. Stack triggers are appended after intent triggers (intent triggers match first).
func NormalizeIntent ¶
func NormalizeIntent(intent *model.Intent) (*model.NormalizedIntent, error)
NormalizeIntent transforms raw intent into canonical form
Types ¶
type StackResources ¶ added in v1.16.0
type StackResources struct {
Profiles map[string]model.ExecutionProfile
Triggers []model.AutomationTrigger
OverridePolicy *model.StackOverridePolicySpec
}
StackResources holds resources loaded from stack packages.
Click to show internal directories.
Click to hide internal directories.