Documentation ¶
Index ¶
- Constants
- func Wait(checker checker.Checker, opts ...Option) error
- func WaitContext(ctx context.Context, chk checker.Checker, opts ...Option) error
- func WaitParallel(checkers []checker.Checker, opts ...Option) error
- func WaitParallelContext(ctx context.Context, checkers []checker.Checker, opts ...Option) error
- func WaitWithContext(ctx context.Context, checker checker.Checker, opts ...Option) error
- type Check
- type Option
- func WithBackoffCoefficient(backoffCoefficient float64) Option
- func WithBackoffExponentialMaxInterval(backoffExponentialMaxInterval time.Duration) Option
- func WithBackoffPolicy(backoffPolicy string) Option
- func WithInterval(interval time.Duration) Option
- func WithInvertCheck(invertCheck bool) Option
- func WithLogger(logger logr.Logger) Option
- func WithTimeout(timeout time.Duration) Option
Constants ¶
const ( // BackoffPolicyLinear indicates a linear backoff policy, BackoffPolicyLinear = "linear" // BackoffPolicyExponential indicates an exponential backoff policy. BackoffPolicyExponential = "exponential" )
Constants representing the available backoff policies for retry mechanisms.
Variables ¶
This section is empty.
Functions ¶
func WaitContext ¶
WaitContext waits for end up of check execution.
func WaitParallel ¶
WaitParallel waits for end up all of checks execution.
func WaitParallelContext ¶
WaitParallelContext waits for end up all of checks execution.
Types ¶
type Option ¶
type Option func(s *options)
Option configures an options
func WithBackoffCoefficient ¶ added in v2.14.0
WithBackoffCoefficient sets the backoffCoefficient for use in retry backoff calculations.
func WithBackoffExponentialMaxInterval ¶ added in v2.14.0
WithBackoffExponentialMaxInterval is a function that returns an Option which sets the maximum interval time duration of the exponential backoff algorithm.
func WithBackoffPolicy ¶ added in v2.14.0
WithBackoffPolicy returns an Option that sets the backoff policy for retries
func WithInterval ¶
WithInterval configures time duration for each of checking interval
func WithInvertCheck ¶
WithInvertCheck configures invert checking
func WithTimeout ¶
WithTimeout configures a time limit for whole of checking