step

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobState

func JobState(o runtime.Object) (state clusterv2.StepJobState, reason string)

JobState returns the job state

func ObjectState

func ObjectState(o runtime.Object) (state clusterv2.StepObjectState, reason string)

ObjectState returns the object state of runtime object

Types

type Handler

type Handler interface {
	// Handle executes the step
	Handle(ctx context.Context, owner metav1.Object, step clusterv2.StepTemplate) (status clusterv2.StepStatus)
	// Status returns new status for current status
	HandleStatus(ctx context.Context, owner metav1.Object, original clusterv2.StepStatus) (current clusterv2.StepStatus)
	// Delete deletes a given step
	HandleDelete(ctx context.Context, owner metav1.Object, stage clusterv2.StageSpec) error
}

Handler is the interface for working with steps

func NewHandler

func NewHandler(a apply.Applier) Handler

NewHandler returns object handler that handles step object

Jump to

Keyboard shortcuts

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