builtin

package
v0.8.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectedOutputs

func CollectedOutputs(step oamv1alpha1.WorkflowStep) []string

CollectedOutputs names the variables a forEach step writes as lists once it succeeds.

func ForEach

ForEach is the runner for a step with forEach: it runs the step, or a step-group's sub-steps, once per item.

func IsForEachContextKey

func IsForEachContextKey(key string) bool

IsForEachContextKey reports whether a workflow context key holds a forEach step's pinned list or its item keys.

func ItemLabels

func ItemLabels(get func(paths ...string) string, stepID string) []string

ItemLabels returns the keys a forEach step's items were named by, read with get (a workflow context's GetMutableValue, or a lookup in its ConfigMap), or nil when the loop is index-named or has not run.

func ItemLabelsKey

func ItemLabelsKey(stepID string) string

ItemLabelsKey is where a keyed forEach step's item keys are kept in the workflow context, under the ID of the step's current run.

func IterationIndex

func IterationIndex(step oamv1alpha1.WorkflowStep, labels []string, name string) (int, bool)

IterationIndex returns the index of the pass the iteration step called name belongs to.

func IterationTemplate

func IterationTemplate(step oamv1alpha1.WorkflowStep, labels []string, name string) (oamv1alpha1.WorkflowStepBase, bool)

IterationTemplate returns the body step that the iteration step called name was expanded from, for a caller that holds only the status of a forEach step's passes. labels are the loop's stored keys (ItemLabels), nil for an index-named loop.

func IterationVarIndex

func IterationVarIndex(step oamv1alpha1.WorkflowStep, labels []string, label string) (int, bool)

IterationVarIndex returns the index of the pass a workflow variable belongs to: the {item, index} one, or an output scoped to that pass.

func IterationVarName

func IterationVarName(step oamv1alpha1.WorkflowStep, labels []string, index int, name string) string

IterationVarName is the name a body output, or the loop variable, has in pass index.

func PinnedItemsKey

func PinnedItemsKey(stepID string) string

PinnedItemsKey is where a forEach step's resolved items are kept in the workflow context, under the ID of the step's current run.

func StepGroup

StepGroup is the step group runner

func ValidateForEachSteps

func ValidateForEachSteps(base *field.Path, steps []oamv1alpha1.WorkflowStep, allowExpression bool) field.ErrorList

ValidateForEachSteps checks the forEach of each step at admission. base is the path of the steps list. allowExpression lets forEach.items be a single $( ) expression, which only a caller that resolves expressions before the workflow runs can accept.

Types

This section is empty.

Jump to

Keyboard shortcuts

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