Rename struct member FileType -> Type

This commit is contained in:
Alexander Neumann
2016-09-01 21:19:30 +02:00
parent 88d0f24ce7
commit 5e3a41dbd2
18 changed files with 78 additions and 78 deletions

View File

@@ -98,7 +98,7 @@ func (cmd CmdCat) Execute(args []string) error {
return nil
case "key":
h := restic.Handle{FileType: restic.KeyFile, Name: id.String()}
h := restic.Handle{Type: restic.KeyFile, Name: id.String()}
buf, err := backend.LoadAll(repo.Backend(), h, nil)
if err != nil {
return err
@@ -149,7 +149,7 @@ func (cmd CmdCat) Execute(args []string) error {
switch tpe {
case "pack":
h := restic.Handle{FileType: restic.DataFile, Name: id.String()}
h := restic.Handle{Type: restic.DataFile, Name: id.String()}
buf, err := backend.LoadAll(repo.Backend(), h, nil)
if err != nil {
return err