workflow

package
v1.5.0-rc-2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StageClusterInspection represents cluster inspection stage.
	StageClusterInspection wr.StageID = wr.NewStageID("add-nodes-cluster-inspection", "Gathering additional information from the target cluster")

	// StageCreateManifests represents the manifests creation stage.
	StageCreateManifests wr.StageID = wr.NewStageID("create-manifest", "Creating internal configuration manifests")

	// StageIgnition represents the ignition creation stage.
	StageIgnition wr.StageID = wr.NewStageID("ignition", "Rendering ISO ignition")

	// StageFetchBaseISO represents the base image fetching stage.
	StageFetchBaseISO wr.StageID = wr.NewStageID("fetch-base-iso", "Retrieving the base ISO image")
	// StageFetchBaseISOExtract represents the base image extraction substage.
	StageFetchBaseISOExtract wr.StageID = wr.NewStageID("fetch-base-iso.extract-image", "Extracting base image from release payload")
	// StageFetchBaseISOVerify represents the image version verification substage.
	StageFetchBaseISOVerify wr.StageID = wr.NewStageID("fetch-base-iso.verify-version", "Verifying base image version")
	// StageFetchBaseISODownload represents the base image download substage.
	StageFetchBaseISODownload wr.StageID = wr.NewStageID("fetch-base-iso.download-image", "Downloading base ISO image")

	// StageAgentArtifacts represents the agent artifact stage.
	StageAgentArtifacts wr.StageID = wr.NewStageID("create-agent-artifacts", "Creating agent artifacts for the final image")
	// StageAgentArtifactsAgentTUI represents the agent-tui embedding substage.
	StageAgentArtifactsAgentTUI wr.StageID = wr.NewStageID("create-agent-artifacts.agent-tui", "Extracting required artifacts from release payload")
	// StageAgentArtifactsPrepare represents the artifacts preparation substage.
	StageAgentArtifactsPrepare wr.StageID = wr.NewStageID("create-agent-artifacts.prepare", "Preparing artifacts")

	// StageGenerateISO represents the iso assembling stage.
	StageGenerateISO wr.StageID = wr.NewStageID("generate-iso", "Assembling ISO image")

	// StageGeneratePXE represents the pxe assembling stage.
	StageGeneratePXE wr.StageID = wr.NewStageID("generate-pxe", "Assembling PXE files")
)

Functions

This section is empty.

Types

type AgentWorkflow

type AgentWorkflow struct {
	File     *asset.File
	Workflow AgentWorkflowType
}

AgentWorkflow allows other assets to check which is the workflow currently active.

func (*AgentWorkflow) Dependencies

func (*AgentWorkflow) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*AgentWorkflow) Files

func (a *AgentWorkflow) Files() []*asset.File

Files returns the files generated by the asset.

func (*AgentWorkflow) Generate

func (a *AgentWorkflow) Generate(ctx context.Context, dependencies asset.Parents) error

Generate generates the AgentWorkflow asset.

func (*AgentWorkflow) Load

func (a *AgentWorkflow) Load(f asset.FileFetcher) (bool, error)

Load returns the asset from disk.

func (*AgentWorkflow) Name

func (*AgentWorkflow) Name() string

Name returns a human friendly name for the asset.

type AgentWorkflowAddNodes

type AgentWorkflowAddNodes struct {
	AgentWorkflow
}

AgentWorkflowAddNodes is meant just to define the add nodes workflow.

func (*AgentWorkflowAddNodes) Generate

func (a *AgentWorkflowAddNodes) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the AgentWorkflow asset.

func (*AgentWorkflowAddNodes) Name

func (*AgentWorkflowAddNodes) Name() string

Name returns a human friendly name for the asset.

type AgentWorkflowType

type AgentWorkflowType string

AgentWorkflowType defines the supported agent workflows.

const (
	// AgentWorkflowTypeInstall identifies the install workflow.
	AgentWorkflowTypeInstall AgentWorkflowType = "install"
	// AgentWorkflowTypeAddNodes identifies the add nodes workflow.
	AgentWorkflowTypeAddNodes AgentWorkflowType = "addnodes"
)

type ContextKey

type ContextKey string

ContextKey is used as a type for storing a context value.

const WorkflowTypeKey ContextKey = "workflow"

WorkflowTypeKey is used as a context key to store a value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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