mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
Remove Repository.Remove()
This commit is contained in:
parent
eb6dfcf58c
commit
af381c2ab0
2 changed files with 2 additions and 6 deletions
|
@ -79,7 +79,7 @@ func deleteKey(repo *repository.Repository, name string) error {
|
|||
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 {
|
||||
return err
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ func changePassword(s *repository.Repository) error {
|
|||
}
|
||||
|
||||
// remove old key
|
||||
err = s.Remove(backend.Key, s.KeyName())
|
||||
err = s.Backend().Remove(backend.Key, s.KeyName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -676,10 +676,6 @@ func (s *Repository) List(t backend.Type, done <-chan struct{}) <-chan backend.I
|
|||
return outCh
|
||||
}
|
||||
|
||||
func (s *Repository) Remove(t backend.Type, name string) error {
|
||||
return s.be.Remove(t, name)
|
||||
}
|
||||
|
||||
func (s *Repository) Close() error {
|
||||
return s.be.Close()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue