mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user