normalize

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 4 Imported by: 0

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
	TriggerBindings []model.AutomationTrigger
	OverridePolicy  *model.StackOverridePolicySpec
}

StackResources holds resources loaded from stack packages.

Jump to

Keyboard shortcuts

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