phase

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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 PhasedObject

type PhasedObject interface {
	client.Object
	core.ConditionObject

	GetPhase() hephv1.Phase
	SetPhase(p hephv1.Phase)
}

type TransitionConditions

type TransitionConditions struct {
	Initialize func() (string, string)
	Running    func() (string, string)
	Success    func() (string, string)
}

type TransitionHelper

type TransitionHelper struct {
	Client         client.Client
	ConditionMeta  TransitionConditions
	ReadyCondition string
}

func (*TransitionHelper) SetFailed

func (h *TransitionHelper) SetFailed(ctx *core.Context, obj PhasedObject, err error) error

func (*TransitionHelper) SetInitializing

func (h *TransitionHelper) SetInitializing(ctx *core.Context, obj PhasedObject)

func (*TransitionHelper) SetRunning

func (h *TransitionHelper) SetRunning(ctx *core.Context, obj PhasedObject)

func (*TransitionHelper) SetSucceeded

func (h *TransitionHelper) SetSucceeded(ctx *core.Context, obj PhasedObject)

Jump to

Keyboard shortcuts

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