mirror of
https://github.com/restic/restic.git
synced 2025-10-10 07:21:53 +00:00
Rename 'Repo' -> 'Repository'
This commit is contained in:
4
cache.go
4
cache.go
@@ -18,7 +18,7 @@ type Cache struct {
|
||||
base string
|
||||
}
|
||||
|
||||
func NewCache(repo *repository.Repo) (*Cache, error) {
|
||||
func NewCache(repo *repository.Repository) (*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 repository any more.
|
||||
func (c *Cache) Clear(repo *repository.Repo) error {
|
||||
func (c *Cache) Clear(repo *repository.Repository) error {
|
||||
list, err := c.list(backend.Snapshot)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user