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:
parent
8156d4481d
commit
f69a39cff5
4 changed files with 146 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue