mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Move package 'repo' to package 'repository'
This commit is contained in:
1 parent
b2dcdf00e3
commit
232c472836
22 files changed
+62
-62
No files matched your search
+2
-2
@@ -9,7 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/restic/restic/backend"
|
||||
"github.com/restic/restic/repo"
|
||||
"github.com/restic/restic/repository"
|
||||
)
|
||||
|
||||
type Snapshot struct {
|
||||
@@ -50,7 +50,7 @@ func NewSnapshot(paths []string) (*Snapshot, error) {
|
||||
return sn, nil
|
||||
}
|
||||
|
||||
func LoadSnapshot(repo *repo.Repo, id backend.ID) (*Snapshot, error) {
|
||||
func LoadSnapshot(repo *repository.Repo, id backend.ID) (*Snapshot, error) {
|
||||
sn := &Snapshot{id: id}
|
||||
err := repo.LoadJSONUnpacked(backend.Snapshot, id, sn)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user