mirror of https://github.com/restic/restic.git
Remove Repository.Remove()
This commit is contained in:
parent
eb6dfcf58c
commit
af381c2ab0
|
@ -79,7 +79,7 @@ func deleteKey(repo *repository.Repository, name string) error {
|
||||||
return errors.New("refusing to remove key currently used to access repository")
|
return errors.New("refusing to remove key currently used to access repository")
|
||||||
}
|
}
|
||||||
|
|
||||||
err := repo.Remove(backend.Key, name)
|
err := repo.Backend().Remove(backend.Key, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ func changePassword(s *repository.Repository) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove old key
|
// remove old key
|
||||||
err = s.Remove(backend.Key, s.KeyName())
|
err = s.Backend().Remove(backend.Key, s.KeyName())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -676,10 +676,6 @@ func (s *Repository) List(t backend.Type, done <-chan struct{}) <-chan backend.I
|
||||||
return outCh
|
return outCh
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Repository) Remove(t backend.Type, name string) error {
|
|
||||||
return s.be.Remove(t, name)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *Repository) Close() error {
|
func (s *Repository) Close() error {
|
||||||
return s.be.Close()
|
return s.be.Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue