minio/pkg/webapi/minioapi/definitions.go

30 lines
491 B
Go
Raw Normal View History

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