Documentation ¶
Overview ¶
Package s3 provides simplified aws s3 functionality in order to reduce the amount of duplicated s3 code we have across all of our Go projects
Package s3 provides simplified aws s3 functionality in order to reduce the amount of duplicated s3 code we have across all of our Go projects
Index ¶
Constants ¶
const ( AwsRequestTimeout = "RequestTimeout" AwsSlowDown = "SlowDown" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func New ¶
New produces a new s3 client. The basic usage is as follows:
s, err := s3.New() s, err := s3.New(s3.WithService(s3crypto.NewDecryptionClient()) cfg, err := external.LoadDefaultAWSConfig( external.WithSharedConfigProfile("exampleProfile"), ) s, err := s3.New(s3.WithConfig(cfg))
func WithConfig ¶
WithConfig allows passing in an already established configuration object
func WithService ¶
WithService allows passing in an already established service object
Types ¶
type ParameterError ¶
ParameterError allows type switching to more easily know if Key() and Value() can be called on the error object
type RequestError ¶
RequestError allows type switching to more easily know if Temporary() and Url() can be called on the error object. For now, Temporary() will be set to true if AWS comes back with a "RequestTimeout", "ServiceUnavailable", or "SlowDown" coded error.