Move Server and Key to new sub-package

This commit is contained in:
Alexander Neumann 2015-04-26 14:46:15 +02:00
parent 8498753eb7
commit d19b23d4f1
28 changed files with 317 additions and 356 deletions

View file

@ -10,6 +10,7 @@ import (
"github.com/juju/arrar"
"github.com/restic/restic/backend"
"github.com/restic/restic/server"
)
type Node struct {
@ -37,7 +38,7 @@ type Node struct {
path string
err error
blobs Blobs
blobs server.Blobs
}
func (n Node) String() string {
@ -95,7 +96,7 @@ func nodeTypeFromFileInfo(path string, fi os.FileInfo) string {
return ""
}
func CreateNodeAt(node *Node, m *Map, s Server, path string) error {
func CreateNodeAt(node *Node, m *Map, s *server.Server, path string) error {
switch node.Type {
case "dir":
err := os.Mkdir(path, node.Mode)