workflowstep

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStateFromSteps

func GetStateFromSteps[T kclient.Object](ctx context.Context, client kclient.Client, generation int64, steps ...T) (lastRun string, output string, _ types.WorkflowState, _ error)

func NewStep

func NewStep(namespace, workflowExecutionName, afterStepName string, generation int64, step types.Step) *v1.WorkflowStep

func WorkflowStepMatchesStepID

func WorkflowStepMatchesStepID(step *v1.WorkflowStep, stepID string) bool

Types

type Handler

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

func New

func New(invoker *invoke.Invoker) *Handler

func (*Handler) Preconditions

func (h *Handler) Preconditions(next router.Handler) router.Handler

func (*Handler) RunIf

func (h *Handler) RunIf(req router.Request, resp router.Response) (err error)

func (*Handler) RunInvoke

func (h *Handler) RunInvoke(req router.Request, resp router.Response) error

func (*Handler) RunSubflow

func (h *Handler) RunSubflow(req router.Request, resp router.Response) error

func (*Handler) RunWhile

func (h *Handler) RunWhile(req router.Request, _ router.Response) (err error)

Jump to

Keyboard shortcuts

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