Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
Executor runs a single step. cfg is the step's raw config map; the returned map becomes the step's result, addressable in later templates as ".<stepID>".
type RunContext ¶
RunContext carries variables and accumulated step results through a run.
func NewRunContext ¶
func NewRunContext(vars map[string]any) *RunContext
NewRunContext creates an empty run context seeded with vars.
type Step ¶
type Step struct {
ID string `yaml:"id"`
Type string `yaml:"type"`
Config map[string]any `yaml:"config"`
}
Step is a single unit of work in a workflow. Type selects a registered node executor; Config is passed to it verbatim (string fields support Go templates).
type Workflow ¶
type Workflow struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Vars map[string]any `yaml:"vars"`
Steps []Step `yaml:"steps"`
}
Workflow is a named, ordered list of steps plus initial variables.
Click to show internal directories.
Click to hide internal directories.