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:
Alexander Neumann 2015-03-14 11:56:45 +01:00
parent 8156d4481d
commit f69a39cff5
4 changed files with 146 additions and 26 deletions

View file

@ -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
}