mirror of
https://github.com/restic/restic.git
synced 2026-10-25 18:08:53 +00:00
backend: Add Delete() to restic.Backend interface
This commit is contained in:
1 parent
3736f33ebf
commit
0e722efb09
4 files changed
+40
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user