workflow

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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(_ 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"
)

Jump to

Keyboard shortcuts

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