mirror of
https://github.com/restic/restic.git
synced 2025-08-13 22:07:42 +00:00
Add ID to repository
This allows identifying a repository regardless if it's accessed over SFTP or locally. Introduced for having a per-repository cache.
This commit is contained in:
@@ -62,6 +62,10 @@ type Locationer interface {
|
||||
Location() string
|
||||
}
|
||||
|
||||
type IDer interface {
|
||||
ID() ID
|
||||
}
|
||||
|
||||
type Backend interface {
|
||||
Lister
|
||||
Getter
|
||||
@@ -69,4 +73,5 @@ type Backend interface {
|
||||
Tester
|
||||
Remover
|
||||
Closer
|
||||
IDer
|
||||
}
|
||||
|
Reference in New Issue
Block a user