Initial work for xml list objects

This commit is contained in:
Frederick F. Kautz IV
2015-01-20 16:08:14 -08:00
parent 5a4f472638
commit 53190e1210
6 changed files with 148 additions and 10 deletions
+29
View File
@@ -0,0 +1,29 @@
package minioapi
import (
"encoding/xml"
)
type ListResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
Prefix string
Marker string
MaxKeys int32
IsTruncated bool
Contents []Content `xml:"Contents",innerxml`
}
type Content struct {
Key string
LastModified string
ETag string
Size uint64
StorageClass string
Owner Owner
}
type Owner struct {
ID string
DisplayName string
}