Rename package

* github.com/restic/restic -> restic
This commit is contained in:
Alexander Neumann 2016-02-14 15:29:28 +01:00
parent 0a8ef79dad
commit c0bd660a9e
168 changed files with 263 additions and 263 deletions

View file

@ -12,11 +12,11 @@ import (
"time" "time"
"github.com/restic/chunker" "github.com/restic/chunker"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/pipe" "restic/pipe"
"github.com/restic/restic/repository" "restic/repository"
"github.com/juju/errors" "github.com/juju/errors"
) )

View file

@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
) )
const parallelSaves = 50 const parallelSaves = 50

View file

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/restic/restic/pipe" "restic/pipe"
) )
var treeJobs = []string{ var treeJobs = []string{

View file

@ -8,13 +8,13 @@ import (
"time" "time"
"github.com/restic/chunker" "github.com/restic/chunker"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/checker" "restic/checker"
"github.com/restic/restic/crypto" "restic/crypto"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
. "github.com/restic/restic/test" . "restic/test"
) )
var testPol = chunker.Pol(0x3DA3358B4DC173) var testPol = chunker.Pol(0x3DA3358B4DC173)

View file

@ -3,8 +3,8 @@ package backend_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
. "github.com/restic/restic/test" . "restic/test"
) )
type mockBackend struct { type mockBackend struct {

View file

@ -3,8 +3,8 @@ package backend_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
. "github.com/restic/restic/test" . "restic/test"
) )
var TestStrings = []struct { var TestStrings = []struct {

View file

@ -4,8 +4,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
. "github.com/restic/restic/test" . "restic/test"
) )
var uniqTests = []struct { var uniqTests = []struct {

View file

@ -3,8 +3,8 @@ package backend_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
. "github.com/restic/restic/test" . "restic/test"
) )
var idsetTests = []struct { var idsetTests = []struct {

View file

@ -4,7 +4,7 @@ package local_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -8,8 +8,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
) )
// Local is a backend in a local directory. // Local is a backend in a local directory.

View file

@ -5,9 +5,9 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/local" "restic/backend/local"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var tempBackendDir string var tempBackendDir string

View file

@ -4,7 +4,7 @@ package mem_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -5,8 +5,8 @@ import (
"io" "io"
"sync" "sync"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
) )
type entry struct { type entry struct {

View file

@ -3,9 +3,9 @@ package mem_test
import ( import (
"errors" "errors"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/mem" "restic/backend/mem"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var be backend.Backend var be backend.Backend

View file

@ -4,7 +4,7 @@ package s3_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -8,8 +8,8 @@ import (
"github.com/minio/minio-go" "github.com/minio/minio-go"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
) )
const connLimit = 10 const connLimit = 10

View file

@ -6,10 +6,10 @@ import (
"net/url" "net/url"
"os" "os"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/s3" "restic/backend/s3"
"github.com/restic/restic/backend/test" "restic/backend/test"
. "github.com/restic/restic/test" . "restic/test"
) )
//go:generate go run ../test/generate_backend_tests.go //go:generate go run ../test/generate_backend_tests.go

View file

@ -4,7 +4,7 @@ package sftp_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -13,8 +13,8 @@ import (
"github.com/juju/errors" "github.com/juju/errors"
"github.com/pkg/sftp" "github.com/pkg/sftp"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
) )
const ( const (

View file

@ -7,11 +7,11 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/sftp" "restic/backend/sftp"
"github.com/restic/restic/backend/test" "restic/backend/test"
. "github.com/restic/restic/test" . "restic/test"
) )
var tempBackendDir string var tempBackendDir string

View file

@ -4,7 +4,7 @@ package test_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -30,7 +30,7 @@ package {{ .Package }}
import ( import (
"testing" "testing"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var SkipMessage string var SkipMessage string

View file

@ -10,8 +10,8 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
. "github.com/restic/restic/test" . "restic/test"
) )
// CreateFn is a function that creates a temporary repository for the tests. // CreateFn is a function that creates a temporary repository for the tests.

View file

@ -3,9 +3,9 @@ package test_test
import ( import (
"errors" "errors"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/mem" "restic/backend/mem"
"github.com/restic/restic/backend/test" "restic/backend/test"
) )
var be backend.Backend var be backend.Backend

View file

@ -5,9 +5,9 @@ import (
"math/rand" "math/rand"
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/mem" "restic/backend/mem"
. "github.com/restic/restic/test" . "restic/test"
) )
const KiB = 1 << 10 const KiB = 1 << 10

View file

@ -9,9 +9,9 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/repository" "restic/repository"
) )
// Cache is used to locally cache items from a repository. // Cache is used to locally cache items from a repository.

View file

@ -3,8 +3,8 @@ package restic_test
import ( import (
"testing" "testing"
"github.com/restic/restic" "restic"
. "github.com/restic/restic/test" . "restic/test"
) )
func TestCache(t *testing.T) { func TestCache(t *testing.T) {

View file

@ -6,12 +6,12 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/crypto" "restic/crypto"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
) )
// Checker runs various checks on a repository. It is advisable to create an // Checker runs various checks on a repository. It is advisable to create an

View file

@ -7,12 +7,12 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/backend/mem" "restic/backend/mem"
"github.com/restic/restic/checker" "restic/checker"
"github.com/restic/restic/repository" "restic/repository"
. "github.com/restic/restic/test" . "restic/test"
) )
var checkerTestData = filepath.Join("testdata", "checker-test-repo.tar.gz") var checkerTestData = filepath.Join("testdata", "checker-test-repo.tar.gz")

View file

@ -3,9 +3,9 @@ package checker
import ( import (
"errors" "errors"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/repository" "restic/repository"
) )
// Repacker extracts still used blobs from packs with unused blobs and creates // Repacker extracts still used blobs from packs with unused blobs and creates

View file

@ -3,10 +3,10 @@ package checker_test
import ( import (
"testing" "testing"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/checker" "restic/checker"
. "github.com/restic/restic/test" . "restic/test"
) )
var findPackTests = []struct { var findPackTests = []struct {

View file

@ -7,7 +7,7 @@ import (
"sync" "sync"
"syscall" "syscall"
"github.com/restic/restic/debug" "restic/debug"
) )
var cleanupHandlers struct { var cleanupHandlers struct {

View file

@ -8,12 +8,12 @@ import (
"strings" "strings"
"time" "time"
"github.com/restic/restic"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/filter"
"github.com/restic/restic/repository"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
"restic"
"restic/backend"
"restic/debug"
"restic/filter"
"restic/repository"
) )
type CmdBackup struct { type CmdBackup struct {

View file

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/restic/restic" "restic"
) )
type CmdCache struct { type CmdCache struct {

View file

@ -6,11 +6,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdCat struct { type CmdCat struct {

View file

@ -8,8 +8,8 @@ import (
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
"github.com/restic/restic" "restic"
"github.com/restic/restic/checker" "restic/checker"
) )
type CmdCheck struct { type CmdCheck struct {

View file

@ -9,10 +9,10 @@ import (
"os" "os"
"github.com/juju/errors" "github.com/juju/errors"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdDump struct { type CmdDump struct {

View file

@ -5,10 +5,10 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/repository" "restic/repository"
) )
type findResult struct { type findResult struct {

View file

@ -3,7 +3,7 @@ package main
import ( import (
"errors" "errors"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdInit struct { type CmdInit struct {

View file

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdKey struct { type CmdKey struct {

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/restic/restic/backend" "restic/backend"
) )
type CmdList struct { type CmdList struct {

View file

@ -5,9 +5,9 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdLs struct { type CmdLs struct {

View file

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/restic/restic/fuse" "restic/fuse"
systemFuse "bazil.org/fuse" systemFuse "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"

View file

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/checker" "restic/checker"
) )
type CmdOptimize struct { type CmdOptimize struct {

View file

@ -4,10 +4,10 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/pack" "restic/pack"
"github.com/restic/restic/repository" "restic/repository"
) )
type CmdRebuildIndex struct { type CmdRebuildIndex struct {

View file

@ -4,9 +4,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/restic/restic" "restic"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/filter" "restic/filter"
) )
type CmdRestore struct { type CmdRestore struct {

View file

@ -8,8 +8,8 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
) )
type Table struct { type Table struct {

View file

@ -1,6 +1,6 @@
package main package main
import "github.com/restic/restic" import "restic"
type CmdUnlock struct { type CmdUnlock struct {
RemoveAll bool `long:"remove-all" description:"Remove all locks, even stale ones"` RemoveAll bool `long:"remove-all" description:"Remove all locks, even stale ones"`

View file

@ -9,14 +9,14 @@ import (
"syscall" "syscall"
"github.com/jessevdk/go-flags" "github.com/jessevdk/go-flags"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/local"
"github.com/restic/restic/backend/s3"
"github.com/restic/restic/backend/sftp"
"github.com/restic/restic/debug"
"github.com/restic/restic/location"
"github.com/restic/restic/repository"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
"restic/backend"
"restic/backend/local"
"restic/backend/s3"
"restic/backend/sftp"
"restic/debug"
"restic/location"
"restic/repository"
) )
var version = "compiled manually" var version = "compiled manually"

View file

@ -11,10 +11,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/restic/restic" "restic"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/repository" "restic/repository"
. "github.com/restic/restic/test" . "restic/test"
) )
const ( const (

View file

@ -8,7 +8,7 @@ import (
"runtime" "runtime"
"testing" "testing"
. "github.com/restic/restic/test" . "restic/test"
) )
type dirEntry struct { type dirEntry struct {

View file

@ -15,11 +15,11 @@ import (
"testing" "testing"
"time" "time"
"github.com/restic/restic/backend" "restic/backend"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/filter" "restic/filter"
"github.com/restic/restic/repository" "restic/repository"
. "github.com/restic/restic/test" . "restic/test"
) )
func parseIDsFromReader(t testing.TB, rd io.Reader) backend.IDs { func parseIDsFromReader(t testing.TB, rd io.Reader) backend.IDs {

View file

@ -6,9 +6,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/restic/restic" "restic"
"github.com/restic/restic/debug" "restic/debug"
"github.com/restic/restic/repository" "restic/repository"
) )
var globalLocks struct { var globalLocks struct {

View file

@ -6,8 +6,8 @@ import (
"runtime" "runtime"
"github.com/jessevdk/go-flags" "github.com/jessevdk/go-flags"
"github.com/restic/restic" "restic"
"github.com/restic/restic/debug" "restic/debug"
) )
func init() { func init() {

View file

@ -8,8 +8,8 @@ import (
"testing" "testing"
"github.com/restic/chunker" "github.com/restic/chunker"
"github.com/restic/restic/crypto" "restic/crypto"
. "github.com/restic/restic/test" . "restic/test"
) )
const testLargeCrypto = false const testLargeCrypto = false

Some files were not shown because too many files have changed in this diff Show more