feat: Add ListBucketsWithMetadata extension API (#13219)

This commit is contained in:
Harshavardhana
2021-09-16 09:52:41 -07:00
committed by GitHub
parent 78dc08bdc2
commit 45bcf73185
5 changed files with 105 additions and 7 deletions

View File

@@ -859,7 +859,10 @@ func (s *erasureSets) ListBuckets(ctx context.Context) (buckets []BucketInfo, er
}
for _, v := range healBuckets {
listBuckets = append(listBuckets, BucketInfo(v))
listBuckets = append(listBuckets, BucketInfo{
Name: v.Name,
Created: v.Created,
})
}
sort.Slice(listBuckets, func(i, j int) bool {