mirror of
https://github.com/restic/restic.git
synced 2026-11-19 23:01:08 +00:00
Implement RetryBackend.List()
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
This commit is contained in:
1 parent
c40002246d
commit
aa333f4d49
4 files changed
+55
No files matched your search
@@ -35,6 +35,9 @@ type Backend interface {
|
||||
// List runs fn for each file in the backend which has the type t. When an
|
||||
// error occurs (or fn returns an error), List stops and returns it.
|
||||
//
|
||||
// The function fn is called exactly once for each file during successful
|
||||
// execution and at most once in case of an error.
|
||||
//
|
||||
// The function fn is called in the same Goroutine that List() is called
|
||||
// from.
|
||||
List(ctx context.Context, t FileType, fn func(FileInfo) error) error
|
||||
|
||||
Reference in new issue
Block a user