Versions in this module Expand all Collapse all v1 v1.0.0 Sep 2, 2020 Changes in this version + var DefaultDownloadConcurrency = 5 + var DefaultDownloadOptions = &DownloadOptions + var DefaultDownloadPartSize int64 = 1024 * 1024 * 5 + var DefaultUploadConcurrency = 5 + var DefaultUploadOptions = &UploadOptions + var DefaultUploadPartSize = MinUploadPartSize + var MaxUploadParts = 10000 + var MinUploadPartSize int64 = 1024 * 1024 * 5 + type DownloadOptions struct + Concurrency int + PartSize int64 + S3 *s3.S3 + type Downloader struct + func NewDownloader(opts *DownloadOptions) *Downloader + func (d *Downloader) Download(w io.WriterAt, input *s3.GetObjectInput) (n int64, err error) + type MultiUploadFailure interface + UploadID func() string + type UploadInput struct + ACL *string + Body io.Reader + Bucket *string + CacheControl *string + ContentDisposition *string + ContentEncoding *string + ContentLanguage *string + ContentType *string + Expires *time.Time + GrantFullControl *string + GrantRead *string + GrantReadACP *string + GrantWriteACP *string + Key *string + Metadata map[string]*string + RequestPayer *string + SSECustomerAlgorithm *string + SSECustomerKey *string + SSECustomerKeyMD5 *string + SSEKMSKeyID *string + ServerSideEncryption *string + StorageClass *string + WebsiteRedirectLocation *string + type UploadOptions struct + Concurrency int + LeavePartsOnError bool + PartSize int64 + S3 *s3.S3 + type UploadOutput struct + Location string + UploadID string + type Uploader struct + func NewUploader(opts *UploadOptions) *Uploader + func (u *Uploader) Upload(input *UploadInput) (*UploadOutput, error)