mirror of
https://github.com/restic/restic.git
synced 2026-11-17 14:54:04 +00:00
repository: remove GetDecryptReader()
This commit is contained in:
1 parent
3191778d33
commit
782a1bf7b0
2 files changed
+3
-14
No files matched your search
@@ -495,17 +495,6 @@ func LoadIndex(repo *Repository, id string) (*Index, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// GetDecryptReader opens the file id stored in the backend and returns a
|
||||
// reader that yields the decrypted content. The reader must be closed.
|
||||
func (r *Repository) GetDecryptReader(t backend.Type, id string) (io.ReadCloser, error) {
|
||||
rd, err := r.be.GetReader(t, id, 0, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return newDecryptReadCloser(r.key, rd)
|
||||
}
|
||||
|
||||
// SearchKey finds a key with the supplied password, afterwards the config is
|
||||
// read and parsed.
|
||||
func (r *Repository) SearchKey(password string) error {
|
||||
|
||||
Reference in new issue
Block a user