Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlwaysRetryFunc = func(err error) bool { return true }
AlwaysRetryFunc returns always true and thus indicates that always should be tried until the retrier hits its limit.
View Source
var TestableRetryFunc = func(err error) bool { _, ok := err.(*TestableRetrierError) return ok }
TestableRetryFunc returns true if the returned error is a TestableRetrierError and indicates that an action should be tried until the retrier hits its limit.
Functions ¶
func OnConflict ¶ added in v0.24.0
OnConflict provides a K8s-way "retrier" mechanism to avoid conflicts on resource updates.
Types ¶
type TestableRetrierError ¶
type TestableRetrierError struct {
Err error
}
TestableRetrierError marks errors that indicate that a previously executed action should be retried with again. It must wrap an existing error.
func (*TestableRetrierError) Error ¶
func (tre *TestableRetrierError) Error() string
Error returns the error's string representation.
Click to show internal directories.
Click to hide internal directories.