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 12:06:27 +01:00
parent 8156d4481d
commit f69a39cff5
4 changed files with 146 additions and 26 deletions
+4
View File
@@ -414,3 +414,7 @@ func (s Server) Delete() error {
return errors.New("Delete() called for backend that does not implement this method")
}
func (s Server) ID() backend.ID {
return s.be.ID()
}