forked from TrueCloudLab/frostfs-node
[#1367] fstree: Add IterateInfo method
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
b142b6f48e
commit
2dd3a6f7a8
3 changed files with 81 additions and 0 deletions
|
@ -13,6 +13,7 @@ type Metrics interface {
|
|||
Close()
|
||||
|
||||
Iterate(d time.Duration, success bool)
|
||||
IterateInfo(d time.Duration, success bool)
|
||||
Delete(d time.Duration, success bool)
|
||||
Exists(d time.Duration, success bool)
|
||||
Put(d time.Duration, size int, success bool)
|
||||
|
@ -27,6 +28,7 @@ func (m *noopMetrics) SetParentID(string) {}
|
|||
func (m *noopMetrics) SetMode(mode.ComponentMode) {}
|
||||
func (m *noopMetrics) Close() {}
|
||||
func (m *noopMetrics) Iterate(time.Duration, bool) {}
|
||||
func (m *noopMetrics) IterateInfo(time.Duration, bool) {}
|
||||
func (m *noopMetrics) Delete(time.Duration, bool) {}
|
||||
func (m *noopMetrics) Exists(time.Duration, bool) {}
|
||||
func (m *noopMetrics) Put(time.Duration, int, bool) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue