Documentation
¶
Index ¶
Constants ¶
View Source
const ( EndpointAmazonAWS = ".amazonaws.com" EndpointDigitalOceanSpaces = ".digitaloceanspaces.com" )
S3 Provider Endpoints.
Variables ¶
View Source
var ( EndpointDigitalOceanSpacesRegion = func(region string) string { return region + EndpointDigitalOceanSpaces } EndpointAmazonAWSRegion = func(region string) string { return "s3." + region + EndpointDigitalOceanSpaces } )
S3 Provider Endpoints with region.
Functions ¶
This section is empty.
Types ¶
type ProgressReader ¶
type ProgressReader struct { Progress int // contains filtered or unexported fields }
ProgressReader for uploading progress.
type ProgressWriter ¶
type ProgressWriter struct {
// contains filtered or unexported fields
}
ProgressWriter tracks the download progress.
type S3 ¶
type S3 struct { Progress progress Writer *ProgressWriter Reader *ProgressReader Endpoint string AccessKey string SecretKey string Region string InboundBucket string OutboundBucket string }
S3 creates a new S3 instance.
func (*S3) S3Download ¶
S3Download downloads source files from S3.
func (*S3) S3ListFiles ¶
func (s *S3) S3ListFiles(prefix string) (*s3.ListObjectsV2Output, error)
S3ListFiles lists s3 objects for a given prefix.
Click to show internal directories.
Click to hide internal directories.