Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *execution.ActionRegistry)
Register registers all flow actions into the given registry.
Types ¶
type Choose ¶
type Choose struct{}
Choose is a conditional branch selector. It reads a boolean from its "when" slot and executes either the "then" or "else" phase.
Slots:
- when: bool — condition (resolved from a predicate action's output)
- then: string — phase ID to execute when true
- else: string — phase ID to execute when false (optional)
Result: the selected branch phase's terminal node Result. UndoState: *chooseUndoState — the branch's recovery entries.
type Elevate ¶
type Elevate struct{}
Elevate is a privilege transition flow action. It marks the boundary between unprivileged and privileged execution as an explicit graph node. In dry-run mode it reports "root required here"; the receipt records when privilege was acquired and released.
type Gather ¶
type Gather struct{}
Gather is a parallel comprehension flow action. It executes a phase body once per item with configurable concurrency, collecting terminal results.
Slots:
- items: []any — the list of items to iterate over
- do: string — phase ID of the body to execute per item
- limit: int — max concurrent iterations (default 1 = sequential)
Result: []any — terminal node Result from each iteration, in item order. UndoState: *GatherUndoState — per-iteration entries for rollback.
type PredicateFunc ¶
PredicateFunc is a re-evaluable condition for polling actions.
type WaitUntil ¶
type WaitUntil struct{}
WaitUntil is an event-driven sensor — a synchronization primitive that pauses execution until a condition is satisfied or a timeout expires.
Slots:
- target: any — the value to evaluate the predicate against (typically a promise)
- predicate: PredicateFunc — condition to evaluate
- timeout: string — maximum wait time (Go duration, e.g. "5m")
- interval: string — poll interval (Go duration, default "5s")
Result: the target value when the predicate returns true. UndoState: nil — WaitUntil observes state but does not modify it.