mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Initial work for xml list objects
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user