Versions in this module Expand all Collapse all v0 v0.0.4 Dec 4, 2019 Changes in this version + const EndpointAmazonAWS + const EndpointDigitalOceanSpaces + var EndpointAmazonAWSRegion = func(region string) string + var EndpointDigitalOceanSpacesRegion = func(region string) string + type DownloadFunc func(job types.Job) error + type ProgressReader struct + Progress int + func (r *ProgressReader) Read(p []byte) (int, error) + func (r *ProgressReader) ReadAt(p []byte, off int64) (int, error) + func (r *ProgressReader) Seek(offset int64, whence int) (int64, error) + type ProgressWriter struct + func (pw *ProgressWriter) WriteAt(p []byte, off int64) (int, error) + type S3 struct + AccessKey string + Endpoint string + InboundBucket string + OutboundBucket string + Progress progress + Reader *ProgressReader + Region string + SecretKey string + Writer *ProgressWriter + func GetDownloader() *S3 + func GetUploader() *S3 + func NewS3(accessKey, secretKey, provider, region, inboundBucket, outboundBucket string) *S3 + func (s *S3) S3Download(job types.Job) error + func (s *S3) S3ListFiles(prefix string) (*s3.ListObjectsV2Output, error) + func (s *S3) S3Upload(job types.Job) error + type UploadFunc func(job types.Job) error