results

package
v0.0.0-...-4c7ea9c Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package results has functions to work with controller-runtime reconcile.Result objects.

Index

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

func (a *Builder) Error(err error) (reconcile.Result, 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

func (a *Builder) Merge(otherResult reconcile.Result, otherErr error) (reconcile.Result, error)

Merge aggregates another result into this one. It returns the aggregated result and error so far.

func (*Builder) Requeue

func (a *Builder) Requeue() (reconcile.Result, error)

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

func (a *Builder) RequeueAfter(delay time.Duration) (reconcile.Result, error)

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.

func (*Builder) Result

func (a *Builder) Result() (reconcile.Result, error)

Result returns the aggregated result and error.

Jump to

Keyboard shortcuts

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