func Sign(req *request.Request)
Sign requests with signature version 2.
Will sign the requests with the service config's Credentials object Signing is skipped if the credentials is the credentials.AnonymousCredentials object.
Driver is a storagedriver.StorageDriver implementation backed by Amazon S3 Objects are stored at absolute keys in the provided bucket.
type Driver struct {
// contains filtered or unexported fields
}
func FromParameters(parameters map[string]interface{}) (*Driver, error)
FromParameters constructs a new Driver with a given parameters map Required parameters: - accesskey - secretkey - region - bucket - encrypt
func New(params DriverParameters) (*Driver, error)
New constructs a new Driver with the given AWS credentials, region, encryption flag, and bucketName
func (d *Driver) S3BucketKey(path string) string
S3BucketKey returns the s3 bucket key for the given storage driver path.
DriverParameters A struct that encapsulates all of the driver parameters after all values have been set
type DriverParameters struct { AccessKey string SecretKey string Bucket string Region string RegionEndpoint string Encrypt bool KeyID string Secure bool SkipVerify bool V4Auth bool ChunkSize int64 MultipartCopyChunkSize int64 MultipartCopyMaxConcurrency int64 MultipartCopyThresholdSize int64 RootDirectory string StorageClass string UserAgent string ObjectACL string SessionToken string }