Documentation ¶
Overview ¶
Package s3 provides a client for accessing S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(vl func(f string, v ...interface{}))
Configure sets the logger for this package.
func NewS3Client ¶
func NewS3Client(awsAccessKey, awsSecretKey, s3Endpoint, bucket string) (fetchclient.FetchClient, error)
NewS3Client creates a new configured instance of s3Client. You can either pass the AWS credentials as arguments to the function or pass empty strings. In this case environment variables will be used for the credentials. Supported environment variables are AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and S3_ENDPOINT.
Types ¶
Click to show internal directories.
Click to hide internal directories.