Fix page bucket: GetBucketInfo de Garage 2.x n'a pas localAliases, reponse normalisee (getBucket)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f01dad73ef
commit
8de5262c12
5 files changed
+38
-12
No files matched your search
@@ -94,7 +94,7 @@ func (b *bucket) info() map[string]any {
|
||||
wc = map[string]any{"indexDocument": b.Index, "errorDocument": b.ErrDoc}
|
||||
}
|
||||
return map[string]any{
|
||||
"id": b.ID, "created": b.Created, "globalAliases": b.Aliases, "localAliases": []any{}, "websiteAccess": b.Site, "websiteConfig": wc,
|
||||
"id": b.ID, "created": b.Created, "globalAliases": b.Aliases, "websiteAccess": b.Site, "websiteConfig": wc,
|
||||
"keys": ks, "objects": b.Objects, "bytes": b.Bytes, "unfinishedUploads": 0, "unfinishedMultipartUploads": 2,
|
||||
"unfinishedMultipartUploadParts": 5, "unfinishedMultipartUploadBytes": 30 << 20,
|
||||
"quotas": map[string]any{"maxSize": b.MaxSize, "maxObjects": b.MaxObjs},
|
||||
|
||||
Reference in new issue
Block a user