backend: Add Delete() to restic.Backend interface

This commit is contained in:
Alexander Neumann committed 2017-10-14 15:56:25 +02:00
1 parent 3736f33ebf
commit 0e722efb09
4 files changed
+40 -1

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ type Backend interface {
// IsNotExist returns true if the error was caused by a non-existing file
// in the backend.
IsNotExist(err error) bool
// Delete removes all data in the backend.
Delete(ctx context.Context) error
}
// FileInfo is returned by Stat() and contains information about a file in the