mirror of
https://github.com/minio/minio.git
synced 2026-11-21 07:07:18 +00:00
Add PutBucket and ListBuckets service
This commit is contained in:
1 parent
e22ae2475a
commit
5b67da7d96
6 files changed
+197
-25
No files matched your search
@@ -20,14 +20,24 @@ import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
type ListResponse struct {
|
||||
XMLName xml.Name `xml:"ListBucketResult"`
|
||||
Name string `xml:"Name"`
|
||||
storagerefix string
|
||||
Marker string
|
||||
MaxKeys int
|
||||
IsTruncated bool
|
||||
Contents []Content `xml:"Contents",innerxml`
|
||||
type ObjectListResponse struct {
|
||||
XMLName xml.Name `xml:"ListBucketResult"`
|
||||
Name string `xml:"Name"`
|
||||
Marker string
|
||||
MaxKeys int
|
||||
IsTruncated bool
|
||||
Contents []Content `xml:"Contents",innerxml`
|
||||
}
|
||||
|
||||
type BucketListResponse struct {
|
||||
XMLName xml.Name `xml:"ListAllMyBucketsResult"`
|
||||
Owner Owner
|
||||
Buckets []Bucket `xml:"Buckets",innerxml`
|
||||
}
|
||||
|
||||
type Bucket struct {
|
||||
Name string
|
||||
CreationDate string
|
||||
}
|
||||
|
||||
type Content struct {
|
||||
|
||||
Reference in new issue
Block a user