Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2026 Changes in this version + func BindingName(connectorExpr string) (name string, ok bool) + func ReferencedBindingNames(def *Definition) []string v0.4.0 Aug 7, 2026 v0.3.2 Aug 7, 2026 v0.3.1 Aug 7, 2026 v0.3.0 Aug 7, 2026 v0.2.5 Aug 6, 2026 v0.2.4 Aug 6, 2026 v0.2.3 Aug 6, 2026 v0.2.2 Aug 6, 2026 v0.2.1 Aug 6, 2026 v0.2.0 Aug 5, 2026 Changes in this version + type KnownAction struct + InputSchema map[string]any v0.1.5 Aug 5, 2026 v0.1.4 Aug 5, 2026 v0.1.3 Aug 5, 2026 v0.1.2 Aug 5, 2026 v0.1.1 Aug 5, 2026 v0.1.0 Aug 5, 2026 Changes in this version + const FileExtension + const ScaffoldTemplateForeach + const ScaffoldTemplateMinimal + const SupportedSchemaVersion + var ErrInvalidInputs = errors.New("invalid workflow inputs") + func PrepareInputs(defs []InputDef, provided map[string]any) (map[string]any, error) + func ResolveConnector(connector string, ctx ExprContext) (string, error) + func ResolveForeach(foreachValue any, ctx ExprContext) ([]any, error) + func ResolveIf(ifValue any, ctx ExprContext) (bool, error) + func ResolveInputs(with map[string]any, ctx ExprContext) (map[string]any, error) + func RewriteVersion(source []byte, version int) []byte + func Scaffold(path, id string, version int) error + func ScaffoldTemplate(path, id string, version int, template string) error + func Validate(def *Definition, knownActions map[string]struct{}) error + func ValidateRunTransition(from, to RunStatus) error + func ValidateStepTransition(from, to StepStatus) error + type Definition struct + ID string + Inputs []InputDef + SchemaVersion int + Steps []Step + Trigger Trigger + Version int + func Parse(source []byte) (*Definition, error) + type ExprContext struct + Bindings map[string]string + Each any + HasEach bool + Inputs map[string]any + StepOutputs map[string]map[string]any + type InputDef struct + Default any + Description string + Enum []string + Name string + Required bool + Type string + type ParseError struct + Err error + func (e *ParseError) Error() string + func (e *ParseError) Unwrap() error + type RunStatus string + const RunCancelled + const RunFailed + const RunQueued + const RunRunning + const RunSucceeded + type Step struct + Connector string + ElseOf string + Foreach any + ID string + If any + StopIfFalse bool + Uses string + With map[string]any + type StepStatus string + const StepCancelled + const StepFailed + const StepPending + const StepRunning + const StepSkipped + const StepSucceeded + type Trigger struct + Cron string + OnMissed string + SecretRef secrets.Reference + Type string