Documentation ¶
Overview ¶
Package results has functions to work with controller-runtime reconcile.Result objects.
Index ¶
- type Builder
- func (a *Builder) Error(err error) (reconcile.Result, error)
- func (a *Builder) Merge(otherResult reconcile.Result, otherErr error) (reconcile.Result, error)
- func (a *Builder) Requeue() (reconcile.Result, error)
- func (a *Builder) RequeueAfter(delay time.Duration) (reconcile.Result, error)
- func (a *Builder) Result() (reconcile.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder aggregates an overall reconcile.Result as you go, so you don't have to quit on the first error, in case there are multiple things you want to attempt that don't depend on each other.
func (*Builder) Error ¶
Error sets the resulting error if an error has not yet been set. It has no effect if an error has already been set. In either case, after this is called, the ultimate reconcile result will be failure. It returns the aggregated result and error so far.
func (*Builder) Merge ¶
Merge aggregates another result into this one. It returns the aggregated result and error so far.
func (*Builder) Requeue ¶
Requeue marks that an immediate requeue should be requested, even if the ultimate result is success. It returns the aggregated result and error so far.
func (*Builder) RequeueAfter ¶
RequeueAfter marks that a delayed requeue should be requested, even if the ultimate result is success. It has no effect if an immediate requeue or a less-delayed (sooner) requeue has already been requested. It returns the aggregated result and error so far.