Documentation ¶
Overview ¶
package s3manager provides methods and functions for downloading and uploading objects in AWS S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3Downloader ¶
func NewS3Downloader() *s3manager.Downloader
NewS3Downloader returns a configured Downloader client.
func NewS3Uploader ¶
NewS3Uploader returns a configured Uploader client.
Types ¶
type DownloaderAPI ¶
type DownloaderAPI struct {
Client s3manageriface.DownloaderAPI
}
DownloaderAPI wraps the Downloader API interface.
func (*DownloaderAPI) Download ¶
func (a *DownloaderAPI) Download(ctx aws.Context, bucket, key string, dst io.WriterAt) (int64, error)
Download is a convenience wrapper for downloading an object from S3.
func (*DownloaderAPI) IsEnabled ¶
func (a *DownloaderAPI) IsEnabled() bool
IsEnabled returns true if the client is enabled and ready for use.
func (*DownloaderAPI) Setup ¶
func (a *DownloaderAPI) Setup()
Setup creates a new Downloader client.
type UploaderAPI ¶
type UploaderAPI struct {
Client s3manageriface.UploaderAPI
}
UploaderAPI wraps the Uploader API interface.
func (*UploaderAPI) IsEnabled ¶
func (a *UploaderAPI) IsEnabled() bool
IsEnabled returns true if the client is enabled and ready for use.
Click to show internal directories.
Click to hide internal directories.