Rename 'Repository' -> Repo

This commit is contained in:
Alexander Neumann 2015-05-09 17:41:28 +02:00
parent 5fc1583acc
commit ae21938f3e
15 changed files with 106 additions and 106 deletions

View file

@ -17,7 +17,7 @@ var TestPassword = flag.String("test.password", "", `use this password for repos
var TestCleanup = flag.Bool("test.cleanup", true, "clean up after running tests (remove local backend directory with all content)")
var TestTempDir = flag.String("test.tempdir", "", "use this directory for temporary storage (default: system temp dir)")
func SetupRepo(t testing.TB) *repo.Repository {
func SetupRepo(t testing.TB) *repo.Repo {
tempdir, err := ioutil.TempDir(*TestTempDir, "restic-test-")
OK(t, err)
@ -34,7 +34,7 @@ func SetupRepo(t testing.TB) *repo.Repository {
return repo
}
func TeardownRepo(t testing.TB, repo *repo.Repository) {
func TeardownRepo(t testing.TB, repo *repo.Repo) {
if !*TestCleanup {
l := repo.Backend().(*local.Local)
t.Logf("leaving local backend at %s\n", l.Location())
@ -44,7 +44,7 @@ func TeardownRepo(t testing.TB, repo *repo.Repository) {
OK(t, repo.Delete())
}
func SnapshotDir(t testing.TB, repo *repo.Repository, path string, parent backend.ID) *restic.Snapshot {
func SnapshotDir(t testing.TB, repo *repo.Repo, path string, parent backend.ID) *restic.Snapshot {
arch := restic.NewArchiver(repo)
sn, _, err := arch.Snapshot(nil, []string{path}, parent)
OK(t, err)