Rename package 'server' to 'repo'

This commit is contained in:
Alexander Neumann
2015-05-09 13:21:28 +02:00
parent 1d37fe3f97
commit 8be9e95d20
23 changed files with 63 additions and 63 deletions

View File

@@ -10,7 +10,7 @@ import (
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/server"
"github.com/restic/restic/repo"
)
// Cache is used to locally cache items from a server.
@@ -18,7 +18,7 @@ type Cache struct {
base string
}
func NewCache(s *server.Server) (*Cache, error) {
func NewCache(s *repo.Server) (*Cache, error) {
cacheDir, err := getCacheDir()
if err != nil {
return nil, err
@@ -106,7 +106,7 @@ func (c *Cache) purge(t backend.Type, subtype string, id backend.ID) error {
}
// Clear removes information from the cache that isn't present in the server any more.
func (c *Cache) Clear(s *server.Server) error {
func (c *Cache) Clear(s *repo.Server) error {
list, err := c.list(backend.Snapshot)
if err != nil {
return err