minio/pkg/webapi/minioapi/definitions.go

30 lines
491 B
Go
Raw Normal View History

2015-01-20 19:08:14 -05:00
package minioapi
import (
"encoding/xml"
)
type ListResponse struct {
XMLName xml.Name `xml:"ListBucketResult"`
Name string `xml:"Name"`
2015-01-20 21:39:30 -05:00
toragerefix string
2015-01-20 19:08:14 -05:00
Marker string
2015-01-20 21:39:30 -05:00
MaxKeys int
2015-01-20 19:08:14 -05:00
IsTruncated bool
Contents []Content `xml:"Contents",innerxml`
}
type Content struct {
Key string
LastModified string
ETag string
2015-01-20 21:39:30 -05:00
Size int
2015-01-20 19:08:14 -05:00
StorageClass string
Owner Owner
}
type Owner struct {
ID string
DisplayName string
}