Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultDeployerRegistry = registry.New( deployer.Any(docker.NewFactory()), deployer.Any(kubernetes.NewFactory()), deployer.Any(podman.NewFactory()), )
DefaultDeployerRegistry contains the deployers.
var ErrEmptyWorkflowFile = fmt.Errorf("empty workflow file provided in context")
ErrEmptyWorkflowFile signals that the workflow file was provided, but it was empty.
var ErrNoSteps = fmt.Errorf("no steps defined in workflow")
ErrNoSteps signals that the workflow has no steps defined.
var ErrNoWorkflowFile = fmt.Errorf("no workflow file provided in context")
ErrNoWorkflowFile signals that no workflow file was provided in the context.
var ErrWorkflowAborted = fmt.Errorf("workflow execution aborted")
ErrWorkflowAborted indicates that the workflow execution was intentionally aborted.
Functions ¶
This section is empty.
Types ¶
type ErrInvalidInput ¶
type ErrInvalidInput struct {
Cause error
}
ErrInvalidInput indicates that the input data is invalid because it does not match the declared schema.
func (ErrInvalidInput) Error ¶
func (e ErrInvalidInput) Error() string
func (ErrInvalidInput) Unwrap ¶
func (e ErrInvalidInput) Unwrap() error
type ErrInvalidInputYAML ¶
type ErrInvalidInputYAML struct {
Cause error
}
ErrInvalidInputYAML indicates that the input YAML is syntactically invalid.
func (ErrInvalidInputYAML) Error ¶
func (e ErrInvalidInputYAML) Error() string
func (ErrInvalidInputYAML) Unwrap ¶
func (e ErrInvalidInputYAML) Unwrap() error
type ErrInvalidWorkflow ¶
type ErrInvalidWorkflow struct {
Cause error
}
ErrInvalidWorkflow indicates that the workflow structure was invalid.
func (ErrInvalidWorkflow) Error ¶
func (e ErrInvalidWorkflow) Error() string
func (ErrInvalidWorkflow) Unwrap ¶
func (e ErrInvalidWorkflow) Unwrap() error
type ErrInvalidWorkflowYAML ¶
type ErrInvalidWorkflowYAML struct {
Cause error
}
ErrInvalidWorkflowYAML signals an invalid YAML in the workflow file.
func (ErrInvalidWorkflowYAML) Error ¶
func (e ErrInvalidWorkflowYAML) Error() string
func (ErrInvalidWorkflowYAML) Unwrap ¶
func (e ErrInvalidWorkflowYAML) Unwrap() error
type WorkflowEngine ¶
type WorkflowEngine interface { // RunWorkflow executes a workflow from the passed workflow files as parameters. One of the files must be designated // as a workflow file, which will be parsed from the YAML format. Additional files may be passed so that the // workflow may access them (e.g. a kubeconfig file). The workflow input is passed as a separate file. RunWorkflow( ctx context.Context, input []byte, files map[string][]byte, workflowFileName string, ) ( outputData any, err error, ) }
WorkflowEngine is responsible for executing workflows and returning their result.