awsretry

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDeniedRetryer added in v1.9.0

type AccessDeniedRetryer struct {
	*ConnectionErrRetryer
}

AccessDeniedRetryer wraps the ConnectionErrRetryer with extra logic that retries AccessDenied exceptions TODO: This could be refactored slightly for a more composable type of Retryer where each caller can pick different retry strategies depending on their needs

func NewAccessDeniedRetryer added in v1.9.0

func NewAccessDeniedRetryer(maxRetries int) *AccessDeniedRetryer

func (AccessDeniedRetryer) ShouldRetry added in v1.9.0

func (r AccessDeniedRetryer) ShouldRetry(req *request.Request) bool

type ConnectionErrRetryer

type ConnectionErrRetryer struct {
	client.DefaultRetryer
}

ConnectionErrRetryer wraps the SDK's built in DefaultRetryer adding customization to retry `connection reset by peer` errors. Not that this retryer should be used for either idempotent operations, or for operations where performing duplicate requests to AWS is acceptable. See also: https://github.com/aws/aws-sdk-go/issues/3027#issuecomment-567269161

func NewConnectionErrRetryer

func NewConnectionErrRetryer(maxRetries int) *ConnectionErrRetryer

func (ConnectionErrRetryer) ShouldRetry

func (r ConnectionErrRetryer) ShouldRetry(req *request.Request) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL