forked from TrueCloudLab/restic
Rename package
* github.com/restic/restic -> restic
This commit is contained in:
parent
0a8ef79dad
commit
c0bd660a9e
168 changed files with 263 additions and 263 deletions
|
@ -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"
|
||||||
)
|
)
|
|
@ -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
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/restic/restic/pipe"
|
"restic/pipe"
|
||||||
)
|
)
|
||||||
|
|
||||||
var treeJobs = []string{
|
var treeJobs = []string{
|
|
@ -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)
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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
|
|
@ -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.
|
|
@ -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
|
|
@ -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
|
|
@ -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 {
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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 (
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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.
|
|
@ -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
|
|
@ -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
|
|
@ -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.
|
|
@ -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) {
|
|
@ -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
|
|
@ -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")
|
|
@ -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
|
|
@ -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 {
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/restic/restic/debug"
|
"restic/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cleanupHandlers struct {
|
var cleanupHandlers struct {
|
|
@ -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 {
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/restic/restic"
|
"restic"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CmdCache struct {
|
type CmdCache struct {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/restic/restic/repository"
|
"restic/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CmdInit struct {
|
type CmdInit struct {
|
|
@ -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 {
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/restic/restic/backend"
|
"restic/backend"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CmdList struct {
|
type CmdList struct {
|
|
@ -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 {
|
|
@ -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"
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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"`
|
|
@ -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"
|
|
@ -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 (
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/restic/restic/test"
|
. "restic/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
type dirEntry struct {
|
type dirEntry struct {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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() {
|
|
@ -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
Loading…
Reference in a new issue