Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhaseRunner ¶
type PhaseRunner struct {
// contains filtered or unexported fields
}
PhaseRunner allows to execute Phases in order
func NewPhaseRunner ¶
func NewPhaseRunner() PhaseRunner
NewPhaseRunner creates a new PhaseRunner without any Phases
func (PhaseRunner) Register ¶
func (r PhaseRunner) Register(phases ...Phase) PhaseRunner
Register adds a phase to the runnner
type Result ¶
Result represents the result of a reconciliation It allows to express intent for a reconciliation interruption without necessarily requeueing the request
func ResultWithRequeue ¶
ResultWithReturn creates a new Result that requeues the request after the provided duration
func ResultWithReturn ¶
func ResultWithReturn() Result
ResultWithReturn creates a new Result that interrupts the reconciliation without requeueing
func (*Result) Return ¶
Return evaluates the intent of a Result to interrupt the reconciliation process or not
func (Result) ToCtrlResult ¶
ToCtrlResult converts Result to a controller-runtime result