[#1085] writecache: allow to ignore errors during iteration

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-01-20 19:52:30 +03:00 committed by LeL
parent cd75638ce3
commit 36eebb5932
3 changed files with 26 additions and 7 deletions

View file

@ -20,7 +20,7 @@ type Cache interface {
Get(*objectSDK.Address) (*object.Object, error)
Head(*objectSDK.Address) (*object.Object, error)
Delete(*objectSDK.Address) error
Iterate(func(data []byte) error) error
Iterate(*IterationPrm) error
Put(*object.Object) error
SetMode(Mode)
DumpInfo() Info