2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-06 19:10:49 +00:00

repository: Rename Load() -> LoadAndDecrypt()

This commit is contained in:
Alexander Neumann 2015-07-02 22:44:09 +02:00
parent c553a57e0d
commit 03983f0907
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ func (cmd CmdCat) Execute(args []string) error {
fmt.Println(string(buf)) fmt.Println(string(buf))
return nil return nil
case "index": case "index":
buf, err := repo.Load(backend.Index, id) buf, err := repo.LoadAndDecrypt(backend.Index, id)
if err != nil { if err != nil {
return err return err
} }

View File

@ -49,9 +49,9 @@ func (r *Repository) PrefixLength(t backend.Type) (int, error) {
return backend.PrefixLength(r.be, t) return backend.PrefixLength(r.be, t)
} }
// Load tries to load and decrypt content identified by t and id from the // LoadAndDecrypt loads and decrypts data identified by t and id from the
// backend. // backend.
func (r *Repository) Load(t backend.Type, id backend.ID) ([]byte, error) { func (r *Repository) LoadAndDecrypt(t backend.Type, id backend.ID) ([]byte, error) {
debug.Log("Repo.Load", "load %v with id %v", t, id.Str()) debug.Log("Repo.Load", "load %v with id %v", t, id.Str())
// load blob from pack // load blob from pack