workflow

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowExecute

type WorkflowExecute struct {
	// ExecutorList is a list of executors
	ExecutorList []execute.Executor
	// ContinueOnError is a flag to continue on error
	ContinueOnError bool
	// Trace is a flag to trace the execution
	Trace bool
}

func NewWorkflowExecute

func NewWorkflowExecute(e ...execute.Executor) *WorkflowExecute

NewWorkflowExecute creates a new WorkflowExecute

func (*WorkflowExecute) AppendExecutor

func (e *WorkflowExecute) AppendExecutor(executor execute.Executor) *WorkflowExecute

AppendExecutor appends an executor to the list

func (*WorkflowExecute) Execute

func (e *WorkflowExecute) Execute(ctx context.Context) error

Execute runs the executors

func (*WorkflowExecute) WithContinueOnError

func (e *WorkflowExecute) WithContinueOnError() *WorkflowExecute

WithContinueOnError sets the continue on error flag to true

func (*WorkflowExecute) WithTrace

func (e *WorkflowExecute) WithTrace() *WorkflowExecute

WithTrace sets the trace flag to true

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL