Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func New(auth aws.Auth, region aws.Region) *S3 {
return &S3{auth, region, 0, 0, aws.V2Signature, 0}
}

// New creates a new S3.
func NewV4(auth aws.Auth, region aws.Region) *S3 {
return &S3{auth, region, 0, 0, aws.V4Signature, 0}
}

// Bucket returns a Bucket with the given name.
func (s3 *S3) Bucket(name string) *Bucket {
if s3.Region.S3BucketEndpoint != "" || s3.Region.S3LowercaseBucket {
Expand Down