Add XML Naming for structure, ignore location constraint
This commit is contained in:
Generated
+1
-1
@@ -32,7 +32,7 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/minio/minio-go",
|
||||
"Rev": "76a773cadcbf32c9d437a2871b1e449b80be255b"
|
||||
"Rev": "b867992492c229ad22953ba160d09f3d2184e041"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/minio/minio/pkg/iodine",
|
||||
|
||||
+3
@@ -507,6 +507,9 @@ func (a api) MakeBucket(bucket string, acl BucketACL) error {
|
||||
if location == "milkyway" {
|
||||
location = ""
|
||||
}
|
||||
if location == "us-east-1" {
|
||||
location = ""
|
||||
}
|
||||
return a.putBucket(bucket, string(acl), location)
|
||||
}
|
||||
|
||||
|
||||
+10
-4
@@ -16,7 +16,10 @@
|
||||
|
||||
package minio
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"encoding/xml"
|
||||
"time"
|
||||
)
|
||||
|
||||
// listAllMyBucketsResult container for ListBucets response
|
||||
type listAllMyBucketsResult struct {
|
||||
@@ -134,7 +137,7 @@ type initiateMultipartUploadResult struct {
|
||||
UploadID string `xml:"UploadId"`
|
||||
}
|
||||
|
||||
// completeMultipartUploadResult containe for completed multipart upload response
|
||||
// completeMultipartUploadResult container for completed multipart upload response
|
||||
type completeMultipartUploadResult struct {
|
||||
Location string
|
||||
Bucket string
|
||||
@@ -144,18 +147,21 @@ type completeMultipartUploadResult struct {
|
||||
|
||||
// completePart sub container lists individual part numbers and their md5sum, part of CompleteMultipartUpload
|
||||
type completePart struct {
|
||||
XMLName xml.Name `xml:"http://doc.s3.amazonaws.com/2006-03-01 Part" json:"-"`
|
||||
PartNumber int
|
||||
ETag string
|
||||
}
|
||||
|
||||
// completeMultipartUpload container for completing multipart upload
|
||||
type completeMultipartUpload struct {
|
||||
Part []completePart
|
||||
XMLName xml.Name `xml:"http://doc.s3.amazonaws.com/2006-03-01 CompleteMultipartUpload" json:"-"`
|
||||
Part []completePart
|
||||
}
|
||||
|
||||
// createBucketConfiguration container for bucket configuration
|
||||
type createBucketConfiguration struct {
|
||||
Location string `xml:"LocationConstraint"`
|
||||
XMLName xml.Name `xml:"http://doc.s3.amazonaws.com/2006-03-01 CreateBucketConfiguration" json:"-"`
|
||||
Location string `xml:"LocationConstraint"`
|
||||
}
|
||||
|
||||
type grant struct {
|
||||
|
||||
Reference in New Issue
Block a user