Get Bucket List objects compliance MaxKeys to 1000, Rename

Content struct to Item for cosmetic reasons for xml decoding
on client side
This commit is contained in:
Harshavardhana
2015-01-23 12:14:39 -08:00
parent 3e11e9a879
commit d9d80f7c22
2 changed files with 11 additions and 8 deletions
+7 -3
View File
@@ -20,13 +20,17 @@ import (
"encoding/xml"
)
const (
MAX_OBJECT_LIST = 1000
)
type ObjectListResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
Name string
Marker string
MaxKeys int
IsTruncated bool
Contents []Content `xml:"Contents",innerxml`
Contents []*Item `xml:"Contents",innerxml`
}
type BucketListResponse struct {
@@ -42,7 +46,7 @@ type Bucket struct {
CreationDate string
}
type Content struct {
type Item struct {
Key string
LastModified string
ETag string