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