workflowgraph

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoTerminalSteps is returned when terminalStepIDs is empty.
	ErrNoTerminalSteps = errors.New("terminalStepIds must be non-empty")

	// ErrEmptyTerminalStepID is returned when a terminalStepIds entry is empty.
	ErrEmptyTerminalStepID = errors.New("terminalStepIds entry is empty")

	// ErrDuplicateTerminalStepID is returned when terminalStepIds repeats an id.
	ErrDuplicateTerminalStepID = errors.New("duplicate terminalStepIds entry")

	// ErrTerminalStepUnknown is returned when a terminal id is not a step id.
	ErrTerminalStepUnknown = errors.New("terminal step id not found in steps")

	// ErrTerminalStepNotEnd is returned when a terminal id does not have kind end.
	ErrTerminalStepNotEnd = errors.New("terminalStepIds entry must have kind end")

	// ErrEndStepNotTerminal is returned when a step has kind end but is not listed in terminalStepIds.
	ErrEndStepNotTerminal = errors.New("step has kind end but is not listed in terminalStepIds")
)

Functions

func BuildTerminalSet

func BuildTerminalSet(terminalStepIDs []string, stepKinds map[string]definition.StepKind) (map[string]struct{}, error)

BuildTerminalSet checks terminalStepIDs against step kinds and returns the terminal id set. stepKinds must include every step in the workflow (id->kind).

Types

This section is empty.

Jump to

Keyboard shortcuts

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