From 03983f090715be56811b01ac9de139f31d434303 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 2 Jul 2015 22:44:09 +0200 Subject: [PATCH] repository: Rename Load() -> LoadAndDecrypt() --- cmd/restic/cmd_cat.go | 2 +- repository/repository.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/restic/cmd_cat.go b/cmd/restic/cmd_cat.go index 6f22670ea..17e616994 100644 --- a/cmd/restic/cmd_cat.go +++ b/cmd/restic/cmd_cat.go @@ -79,7 +79,7 @@ func (cmd CmdCat) Execute(args []string) error { fmt.Println(string(buf)) return nil case "index": - buf, err := repo.Load(backend.Index, id) + buf, err := repo.LoadAndDecrypt(backend.Index, id) if err != nil { return err } diff --git a/repository/repository.go b/repository/repository.go index 616295f2c..23d7afa3f 100644 --- a/repository/repository.go +++ b/repository/repository.go @@ -49,9 +49,9 @@ func (r *Repository) PrefixLength(t backend.Type) (int, error) { 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. -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()) // load blob from pack