Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("timed out waiting for the function to complete")
)
Functions ¶
func OnError ¶
func OnError(ctx context.Context, retriable RetriableFn, fn func(ctx context.Context) error, opts ...RetryOption) error
Types ¶
type RetriableFn ¶
type RetryOption ¶
type RetryOption func(*RetryOptions)
func WithLogger ¶
func WithLogger(logger logr.Logger) RetryOption
func WithRetryIntervalSec ¶
func WithRetryIntervalSec(intervalSec int) RetryOption
func WithRetryTimoutSec ¶
func WithRetryTimoutSec(timeoutSec int) RetryOption
Click to show internal directories.
Click to hide internal directories.