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 ¶
NewHandler returns object handler that handles step object
Click to show internal directories.
Click to hide internal directories.