Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimedOut = errors.New("timed out performing task")
ErrTimedOut is returned when an operation times out
Functions ¶
func DoRetryWithTimeout ¶
func DoRetryWithTimeout(t func() (interface{}, bool, error), timeout, timeBeforeRetry time.Duration, log logr.Logger) (interface{}, error)
DoRetryWithTimeout performs given task with given timeout and timeBeforeRetry. The function t returns a result out, a boolean to retry, and an error containing the reason for failure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.