2020-11-19 13:52:37 +00:00
|
|
|
package blobstor
|
|
|
|
|
2021-06-23 13:29:46 +00:00
|
|
|
// DumpInfo returns information about blob stor.
|
2022-10-05 12:41:36 +00:00
|
|
|
func (b *BlobStor) DumpInfo() Info {
|
2022-11-15 12:33:48 +00:00
|
|
|
b.modeMtx.RLock()
|
|
|
|
defer b.modeMtx.RUnlock()
|
|
|
|
|
2022-10-05 12:41:36 +00:00
|
|
|
sub := make([]SubStorageInfo, len(b.storage))
|
2022-07-11 12:34:17 +00:00
|
|
|
for i := range b.storage {
|
2022-10-05 12:41:36 +00:00
|
|
|
sub[i].Path = b.storage[i].Storage.Path()
|
|
|
|
sub[i].Type = b.storage[i].Storage.Type()
|
|
|
|
}
|
|
|
|
|
|
|
|
return Info{
|
|
|
|
SubStorages: sub,
|
2022-07-11 12:34:17 +00:00
|
|
|
}
|
2020-11-19 13:52:37 +00:00
|
|
|
}
|