types

package
v0.5.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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 CreateOptions

type CreateOptions struct {
	Type        Type
	ModelClient model.ClientSet
}

CreateOptions holds the options for creating step manager.

type Creator

type Creator func(CreateOptions) (StepManager, error)

Creator is a factory func to create step manager.

type StepManager

type StepManager interface {
	// GenerateTemplates generates templates for step.
	// Returns main template and sub templates.
	// Main template is a template that will be executed.
	// A main template can have sub templates.
	GenerateTemplates(
		context.Context,
		*model.WorkflowStepExecution,
	) (mainTemplate *wfv1.Template, subTemplates []*wfv1.Template, err error)
}

type Type

type Type string

Type is a type of step.

const (
	StepTypeService  Type = types.WorkflowStepTypeService
	StepTypeApproval Type = types.WorkflowStepTypeApproval
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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