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(cfg iaws.Config) *s3manager.Downloader
NewS3Downloader returns a configured Downloader 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(cfg iaws.Config)
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.
func (*UploaderAPI) Setup ¶
func (a *UploaderAPI) Setup(cfg iaws.Config)
Setup creates a new Uploader client.
Click to show internal directories.
Click to hide internal directories.