Donut dummy services - StorageStats, RebalaceStats

This commit is contained in:
Krishna Srinivas
2015-09-22 15:39:07 -07:00
parent 099b6fcf92
commit 2607ab559a
2 changed files with 32 additions and 0 deletions
+17
View File
@@ -115,3 +115,20 @@ type AuthRep struct {
AccessKeyID string `json:"accessKeyId"`
SecretAccessKey string `json:"secretAccessKey"`
}
// BucketStorage bucket-name and storage used
type BucketStorage struct {
Name string `json:"name"`
Used uint64 `json:"used"`
}
// StorageStatsRep array of buckets-storage-stats
type StorageStatsRep struct {
Buckets []BucketStorage `json:"buckets"`
}
// RebalanceStatsRep rebalance information
type RebalanceStatsRep struct {
Inprogress []string `json:"inprogress"`
Done []string `json:"done"`
}