Documentation
¶
Index ¶
- func CollectedOutputs(step oamv1alpha1.WorkflowStep) []string
- func ForEach(step oamv1alpha1.WorkflowStep, opt *types.TaskGeneratorOptions) (types.TaskRunner, error)
- func IsForEachContextKey(key string) bool
- func ItemLabels(get func(paths ...string) string, stepID string) []string
- func ItemLabelsKey(stepID string) string
- func IterationIndex(step oamv1alpha1.WorkflowStep, labels []string, name string) (int, bool)
- func IterationTemplate(step oamv1alpha1.WorkflowStep, labels []string, name string) (oamv1alpha1.WorkflowStepBase, bool)
- func IterationVarIndex(step oamv1alpha1.WorkflowStep, labels []string, label string) (int, bool)
- func IterationVarName(step oamv1alpha1.WorkflowStep, labels []string, index int, name string) string
- func PinnedItemsKey(stepID string) string
- func StepGroup(step oamv1alpha1.WorkflowStep, opt *types.TaskGeneratorOptions) (types.TaskRunner, error)
- func ValidateForEachSteps(base *field.Path, steps []oamv1alpha1.WorkflowStep, allowExpression bool) field.ErrorList
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 ¶
func ForEach(step oamv1alpha1.WorkflowStep, opt *types.TaskGeneratorOptions) (types.TaskRunner, error)
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 ¶
IsForEachContextKey reports whether a workflow context key holds a forEach step's pinned list or its item keys.
func ItemLabels ¶
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 ¶
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 ¶
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 ¶
func StepGroup(step oamv1alpha1.WorkflowStep, opt *types.TaskGeneratorOptions) (types.TaskRunner, error)
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.