package
2.0.0-alpha.3
Repository: https://github.com/k0sproject/rig.git
Documentation: pkg.go.dev

# Functions

Backoff is a functional option that sets the backoff factor.
Delay is a functional option that sets the delay between retries.
Do runs the function until it returns nil or the context is done or canceled.
DoFor retries the function until it returns nil or the given duration has passed.
DoForWithContext retries the function and passes the context to it until it returns nil or the given duration has passed.
DoWithContext runs the function and passes the context to it until it returns nil or the context is done or canceled.
Get is a generic alternative of Do that returns the result of a function that returns a value and an error.
GetWithContext is a generic alternative of DoWithContext that returns the result of a function that returns a value and an error.
If is a functional option that sets the function to determine if an error should continue the retry.
MaxRetries is a functional option that sets the maximum number of retries.
NewOptions returns a new Options with the given options applied.
RescuePanic is a functional option that controls if panics should be rescued.

# Variables

ErrAbort is returned when retrying an operation will not result in a different outcome.
ErrPanic is returned when a panic is rescued.

# Structs

Options for retry.

# Type aliases

Option is a functional option function for Options.