Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteWorkflow ¶
ExecuteWorkflow executes the workflow steps
func ValidateWorkflow ¶
ValidateWorkflow validates the workflow structure and parameters
Types ¶
type Step ¶
type Step struct {
// Unique name for the step (required)
Name string `mapstructure:"name"`
// Type of operation to perform (required)
Type string `mapstructure:"type"`
// Optional human-readable description of the step
Description string `mapstructure:"description,omitempty"`
// Optional conditional execution expression
Condition string `mapstructure:"condition,omitempty"`
// Flexible parameters for the step
// Uses ",remain" to capture all additional parameters
Parameters map[string]interface{} `mapstructure:",remain"`
}
Step represents a single step in the composition workflow
type StepHandler ¶
StepHandler is a function that executes a workflow step
type Workflow ¶
type Workflow struct {
// Name of the workflow (required)
Name string `mapstructure:"name"`
// Optional description of the workflow
Description string `mapstructure:"description,omitempty"`
// Version of the workflow definition
Version string `mapstructure:"version,omitempty"`
// Author or creator of the workflow
Author string `mapstructure:"author,omitempty"`
// Ordered list of steps to execute
Steps []Step `mapstructure:"steps"`
// Variables that can be referenced in step parameters
Variables map[string]interface{} `mapstructure:"variables,omitempty"`
}
Workflow represents the entire composition workflow
func LoadWorkflow ¶
LoadWorkflow loads a composition workflow from a file
Click to show internal directories.
Click to hide internal directories.