Documentation
¶
Overview ¶
Package retry provides utilities for retrying AWS API calls with exponential backoff.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBackoff ¶
DefaultBackoff returns the default backoff configuration
func DefaultRetryableErrors ¶
DefaultRetryableErrors checks if an error is a retryable AWS error
func WithExponentialBackoff ¶
func WithExponentialBackoff( ctx context.Context, logger logr.Logger, operation string, fn RetryableFunc, isRetryable ErrorCategorizer, backoff wait.Backoff, ) error
WithExponentialBackoff retries a function with exponential backoff
Types ¶
type ErrorCategorizer ¶
ErrorCategorizer categorizes errors as retryable or not
type RetryableFunc ¶
RetryableFunc is a function that can be retried
func WithContext ¶
func WithContext(ctx context.Context, fn RetryableFunc) RetryableFunc
WithContext wraps a RetryableFunc with context cancellation
func WithLogging ¶
func WithLogging(logger logr.Logger, operation string, fn RetryableFunc) RetryableFunc
WithLogging wraps a RetryableFunc with logging
Click to show internal directories.
Click to hide internal directories.