reconcileutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineReconcileResults

func CombineReconcileResults(results ...reconcile.Result) reconcile.Result

Given a list of reconcile results, returns the one with the closest restart time.

func ErrorStrings

func ErrorStrings(errs ...error) []string

convert a list of errors into a list of string.

func ToReconcileResult

func ToReconcileResult(errs ...error) (reconcile.Result, error)

convert a list of errors into a result as returned by reconcile.Reconciler.

Types

type CombinedError

type CombinedError struct {
	Sources []error
}

an error implementing the error interface, that has multiple sources.

func (*CombinedError) Error

func (e *CombinedError) Error() string

type TemporaryError

type TemporaryError struct {
	Source       error
	RequeueAfter time.Duration
}

wrapper around an error that may be solved after waiting some time.

func (*TemporaryError) Error

func (e *TemporaryError) Error() string

func (*TemporaryError) Is

func (e *TemporaryError) Is(target error) bool

func (*TemporaryError) ToReconcileResult

func (e *TemporaryError) ToReconcileResult() reconcile.Result

func (*TemporaryError) Unwrap

func (e *TemporaryError) Unwrap() error

Jump to

Keyboard shortcuts

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