workflow

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PowerControlWorkflowName      = "PowerControl"
	FirmwareControlWorkflowName   = "FirmwareControl"
	InjectExpectationWorkflowName = "InjectExpectation"
	BringUpWorkflowName           = "BringUp"
)

Variables

This section is empty.

Functions

func BringUp

func BringUp(
	ctx workflow.Context,
	reqInfo task.ExecutionInfo,
	info *operations.BringUpTaskInfo,
) error

BringUp orchestrates the rack bring-up sequence using operation rules. The execution sequence is driven by the RuleDefinition attached to the task, falling back to a hardcoded default when no custom rule exists.

func FirmwareControl

func FirmwareControl(
	ctx workflow.Context,
	reqInfo task.ExecutionInfo,
	info *operations.FirmwareControlTaskInfo,
) error

FirmwareControl orchestrates firmware updates using operation rules. The execution sequence is driven by the RuleDefinition attached to the task, falling back to a hardcoded default when no custom rule exists.

func GenericComponentStepWorkflow

func GenericComponentStepWorkflow(
	ctx workflow.Context,
	step operationrules.SequenceStep,
	target common.Target,
	activityName string,
	activityInfo any,
	allTargets map[devicetypes.ComponentType]common.Target,
) error

GenericComponentStepWorkflow is a generic child workflow that handles any operation for a single component type. It processes components in batches according to the step's max_parallel setting. This provides better isolation, visibility, and independent lifecycle per component type.

func GetAllWorkflows

func GetAllWorkflows() []any

func InjectExpectation

func InjectExpectation(
	ctx workflow.Context,
	reqInfo task.ExecutionInfo,
	info *operations.InjectExpectationTaskInfo,
) error

InjectExpectation orchestrates injecting expected component configurations to their respective component manager services. Each component is processed via the InjectExpectation activity which delegates to the appropriate component manager.

func PowerControl

func PowerControl(
	ctx workflow.Context,
	reqInfo task.ExecutionInfo,
	info operations.PowerControlTaskInfo,
) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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