mirror of
https://github.com/restic/restic.git
synced 2025-08-14 00:07:53 +00:00
Add 'version' file to local backend
This commit is contained in:
@@ -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