Move package 'repo' to package 'repository'

This commit is contained in:
Alexander Neumann
2015-05-09 23:52:03 +02:00
parent b2dcdf00e3
commit 232c472836
22 changed files with 62 additions and 62 deletions

View File

@@ -7,14 +7,14 @@ import (
"syscall"
"github.com/restic/restic/backend"
"github.com/restic/restic/repo"
"github.com/restic/restic/repository"
"github.com/juju/errors"
)
// Restorer is used to restore a snapshot to a directory.
type Restorer struct {
repo *repo.Repo
repo *repository.Repo
sn *Snapshot
Error func(dir string, node *Node, err error) error
@@ -24,7 +24,7 @@ type Restorer struct {
var restorerAbortOnAllErrors = func(str string, node *Node, err error) error { return err }
// NewRestorer creates a restorer preloaded with the content from the snapshot id.
func NewRestorer(repo *repo.Repo, id backend.ID) (*Restorer, error) {
func NewRestorer(repo *repository.Repo, id backend.ID) (*Restorer, error) {
r := &Restorer{repo: repo, Error: restorerAbortOnAllErrors}
var err error