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
+4
-4
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/restic/restic/backend/local"
|
||||
"github.com/restic/restic/backend/sftp"
|
||||
"github.com/restic/restic/debug"
|
||||
"github.com/restic/restic/server"
|
||||
"github.com/restic/restic/repo"
|
||||
)
|
||||
|
||||
var version = "compiled manually"
|
||||
@@ -72,7 +72,7 @@ func (cmd CmdInit) Execute(args []string) error {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
s := server.NewServer(be)
|
||||
s := repo.NewServer(be)
|
||||
err = s.Init(pw)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "creating key in backend at %s failed: %v\n", opts.Repo, err)
|
||||
@@ -133,7 +133,7 @@ func create(u string) (backend.Backend, error) {
|
||||
return sftp.Create(url.Path[1:], "ssh", args...)
|
||||
}
|
||||
|
||||
func OpenRepo() (*server.Server, error) {
|
||||
func OpenRepo() (*repo.Server, error) {
|
||||
if opts.Repo == "" {
|
||||
return nil, errors.New("Please specify repository location (-r)")
|
||||
}
|
||||
@@ -143,7 +143,7 @@ func OpenRepo() (*server.Server, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
s := server.NewServer(be)
|
||||
s := repo.NewServer(be)
|
||||
|
||||
err = s.SearchKey(readPassword("RESTIC_PASSWORD", "enter password for repository: "))
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user