Versions in this module Expand all Collapse all v1 v1.0.1 Aug 8, 2022 v1.0.0 Aug 8, 2022 Changes in this version + var ErrEmptyResult = &EmptyResultError + var ErrTooManyResults = &TooManyResultsError + func NewEmptyResultError(lastRequest interface{}) error + func NewTooManyResultsError(count int, lastRequest interface{}) error + func NotFound(err error) bool + func RetryConfigContext(ctx context.Context, delay time.Duration, delayRand time.Duration, ...) error + func RetryUntilNotFound(timeout time.Duration, f func() (interface{}, error)) (interface{}, error) + func RetryUntilNotFoundContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error)) (interface{}, error) + func RetryWhen(timeout time.Duration, f func() (interface{}, error), retryable Retryable) (interface{}, error) + func RetryWhenAWSErrCodeEquals(timeout time.Duration, f func() (interface{}, error), codes ...string) (interface{}, error) + func RetryWhenAWSErrCodeEqualsContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error), ...) (interface{}, error) + func RetryWhenAWSErrMessageContains(timeout time.Duration, f func() (interface{}, error), code, message string) (interface{}, error) + func RetryWhenAWSErrMessageContainsContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error), ...) (interface{}, error) + func RetryWhenContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error), ...) (interface{}, error) + func RetryWhenNewResourceNotFound(timeout time.Duration, f func() (interface{}, error), isNewResource bool) (interface{}, error) + func RetryWhenNewResourceNotFoundContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error), ...) (interface{}, error) + func RetryWhenNotFound(timeout time.Duration, f func() (interface{}, error)) (interface{}, error) + func RetryWhenNotFoundContext(ctx context.Context, timeout time.Duration, f func() (interface{}, error)) (interface{}, error) + func SetLastError(err, lastErr error) + func SingularDataSourceFindError(resourceType string, err error) error + func TimedOut(err error) bool + func WaitUntil(timeout time.Duration, f func() (bool, error), opts WaitOpts) error + func WaitUntilContext(ctx context.Context, timeout time.Duration, f func() (bool, error), ...) error + type EmptyResultError struct + LastRequest interface{} + func (e *EmptyResultError) As(target interface{}) bool + func (e *EmptyResultError) Error() string + func (e *EmptyResultError) Is(err error) bool + type Retryable func(error) (bool, error) + type TooManyResultsError struct + Count int + LastRequest interface{} + func (e *TooManyResultsError) As(target interface{}) bool + func (e *TooManyResultsError) Error() string + func (e *TooManyResultsError) Is(err error) bool + type WaitOpts struct + ContinuousTargetOccurence int + Delay time.Duration + MinTimeout time.Duration + PollInterval time.Duration