step

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const StepNamePrefix = "workflow-step-execution-"

Variables

This section is empty.

Functions

func GetStepManager

func GetStepManager(opts types.CreateOptions) (types.StepManager, error)

func NewApprovalStepManager

func NewApprovalStepManager(opts types.CreateOptions) types.StepManager

func NewServiceStepManager

func NewServiceStepManager(opts types.CreateOptions) types.StepManager

NewServiceStepManager.

func StepTemplateName

func StepTemplateName(stepExecution *model.WorkflowStepExecution) string

Types

type ApprovalStepManager

type ApprovalStepManager struct {
	// contains filtered or unexported fields
}

func (*ApprovalStepManager) GenerateTemplates

func (m *ApprovalStepManager) GenerateTemplates(
	ctx context.Context,
	stepExecution *model.WorkflowStepExecution,
) (main *wfv1.Template, subTemplates []*wfv1.Template, err error)

type ServiceStepManager

type ServiceStepManager struct {
	// contains filtered or unexported fields
}

ServiceStepManager is service to generate service configs.

func (*ServiceStepManager) GenerateTemplates

func (s *ServiceStepManager) GenerateTemplates(
	ctx context.Context,
	stepExecution *model.WorkflowStepExecution,
) (main *wfv1.Template, subTemplates []*wfv1.Template, err error)

GenerateTemplates generate service templates. If service exist in environment, job type is upgrade. Otherwise, job type is create.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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