mirror of
https://github.com/restic/restic.git
synced 2026-10-22 08:58:11 +00:00
Add 'version' file to local backend
This commit is contained in:
1 parent
30ab03b7b7
commit
bfd99a9be6
2 files changed
+79
-9
No files matched your search
@@ -10,12 +10,17 @@ const (
|
||||
Tree = "tree"
|
||||
)
|
||||
|
||||
const (
|
||||
BackendVersion = 1
|
||||
)
|
||||
|
||||
type Server interface {
|
||||
Create(Type, []byte) (ID, error)
|
||||
Get(Type, ID) ([]byte, error)
|
||||
List(Type) (IDs, error)
|
||||
Test(Type, ID) (bool, error)
|
||||
Remove(Type, ID) error
|
||||
Version() uint
|
||||
|
||||
Location() string
|
||||
}
|
||||
Reference in new issue
Block a user