mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
XL: Introduce new API StorageInfo. (#1770)
This is necessary for calculating the total storage capacity from object layer. This value is also needed for browser UI. Buckets used to carry this information, this patch deprecates this feature.
This commit is contained in:
committed by
Harshavardhana
parent
b2293c2bf4
commit
34e9ad24aa
@@ -20,6 +20,9 @@ import "io"
|
||||
|
||||
// ObjectLayer implements primitives for object API layer.
|
||||
type ObjectLayer interface {
|
||||
// Storage operations.
|
||||
StorageInfo() StorageInfo
|
||||
|
||||
// Bucket operations.
|
||||
MakeBucket(bucket string) error
|
||||
GetBucketInfo(bucket string) (bucketInfo BucketInfo, err error)
|
||||
|
||||
Reference in New Issue
Block a user