Implement RetryBackend.List()

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
This commit is contained in:
Igor Fedorenko committed 2018-01-29 22:14:12 -05:00
1 parent c40002246d
commit aa333f4d49
4 files changed
+55

No files matched your search

+3
View File
@@ -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