trigger

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatErrors added in v1.26.0

func FormatErrors(errs []error) error

FormatErrors joins multiple validation errors into a single message.

func MatchAnyPattern added in v1.26.0

func MatchAnyPattern(value string, patterns []string) bool

MatchAnyPattern checks if a value matches any of the provided glob patterns.

func MatchTrigger added in v1.26.0

func MatchTrigger(binding model.TriggerBinding, event *model.NormalizedEvent) bool

MatchTrigger returns true if the normalized event matches the trigger binding criteria.

func NormalizeGitHubEvent added in v1.26.0

func NormalizeGitHubEvent(eventName string, raw map[string]any) *model.NormalizedEvent

NormalizeGitHubEvent converts a raw GitHub event payload into a NormalizedEvent.

func ParseEventFile added in v1.26.0

func ParseEventFile(provider string, eventData []byte) (*model.NormalizedEvent, error)

ParseEventFile reads and normalizes a provider event file.

func ParseEventFileWithName added in v1.26.0

func ParseEventFileWithName(provider, eventName string, eventData []byte) (*model.NormalizedEvent, error)

ParseEventFileWithName reads and normalizes a provider event file when the event name is known.

func ResolveActiveEnvironments added in v1.26.0

func ResolveActiveEnvironments(
	intent *model.Intent,
	triggerCtx model.TriggerContext,
	explicitEnv string,
) ([]string, *model.TriggerResolution, error)

ResolveActiveEnvironments determines which environments are activated by the trigger context, respecting explicit --env filtering.

func ResolvePath added in v1.26.0

func ResolvePath(raw map[string]any, path string) (string, bool)

ResolvePath resolves a dot-separated path against the raw event payload.

func ValidateIntent added in v1.26.0

func ValidateIntent(intent *model.Intent) []error

ValidateIntent performs static validation of trigger bindings and environment activation references.

func ValidateTriggerContext added in v1.26.0

func ValidateTriggerContext(intent *model.Intent, ctx model.TriggerContext) error

ValidateTriggerContext performs event-time validation.

func ValidateWarnings added in v1.26.0

func ValidateWarnings(intent *model.Intent) []string

ValidateWarnings returns non-fatal warnings (e.g., unreferenced bindings).

Types

This section is empty.

Jump to

Keyboard shortcuts

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