Opens a new window with list of versions in this module.
Published: Jan 29, 2024
Opens a new window with license information.
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Package retry provides methods for retrying operations. It is a thin wrapper
around k8s.io/apimachinery/pkg/util/wait to make certain operations easier.
Ever returns true if the context was wrapped by Never.
IsNotNil returns true if err is not nil.
IsTemporary returns true if err implements Temporary() and it returns true.
Never returns a context that signals something should not be retried.
This is a hack and can be used to communicate across package boundaries
to avoid retry amplification.
Retry retries a given function, f, until a predicate is satisfied, using
exponential backoff. If the predicate is never satisfied, it will return the
last error returned by f.
Backoff is an alias of our own wait.Backoff to avoid name conflicts with
the kubernetes wait package. Typing retry.Backoff is aesier than fixing
the wrong import every time you use wait.Backoff.
Predicate determines whether an error should be retried.
Package wait is a subset of k8s.io/apimachinery to avoid conflicts in dependencies (specifically, logging).
|Package wait is a subset of k8s.io/apimachinery to avoid conflicts in dependencies (specifically, logging).
Click to show internal directories.
Click to hide internal directories.