Move restic package to internal/restic

This commit is contained in:
Alexander Neumann
2017-07-24 17:42:25 +02:00
parent 94030a12cf
commit 23c903074c
179 changed files with 100 additions and 136 deletions

View File

@@ -6,11 +6,10 @@ import (
"path"
"strings"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/kurin/blazer/b2"
)

View File

@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/b2"
"github.com/restic/restic/internal/backend/test"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -6,10 +6,10 @@ import (
"path/filepath"
"regexp"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/restic"
)
// Layout computes paths for file name storage.

View File

@@ -3,7 +3,7 @@ package backend
import (
"encoding/hex"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
)
// DefaultLayout implements the default layout for local and sftp backends, as

View File

@@ -1,6 +1,6 @@
package backend
import "github.com/restic/restic/internal"
import "github.com/restic/restic/internal/restic"
// RESTLayout implements the default layout for the REST protocol.
type RESTLayout struct {

View File

@@ -1,6 +1,6 @@
package backend
import "github.com/restic/restic/internal"
import "github.com/restic/restic/internal/restic"
// S3LegacyLayout implements the old layout used for s3 cloud storage backends, as
// described in the Design document.

View File

@@ -8,7 +8,7 @@ import (
"sort"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -6,9 +6,8 @@ import (
"os"
"path/filepath"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/debug"

View File

@@ -4,10 +4,9 @@ import (
"io/ioutil"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/local"
"github.com/restic/restic/internal/backend/test"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -7,9 +7,8 @@ import (
"io/ioutil"
"sync"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/debug"
)

View File

@@ -4,9 +4,8 @@ import (
"context"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/backend/test"

View File

@@ -11,12 +11,11 @@ import (
"path"
"strings"
"github.com/restic/restic/internal"
"golang.org/x/net/context/ctxhttp"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend"
)

View File

@@ -10,10 +10,9 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/rest"
"github.com/restic/restic/internal/backend/test"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -10,10 +10,9 @@ import (
"strings"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/minio/minio-go"
"github.com/minio/minio-go/pkg/credentials"

View File

@@ -14,10 +14,9 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/s3"
"github.com/restic/restic/internal/backend/test"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -6,8 +6,8 @@ import (
"path/filepath"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/sftp"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -11,9 +11,8 @@ import (
"strings"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/debug"

View File

@@ -8,10 +8,10 @@ import (
"strings"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/sftp"
"github.com/restic/restic/internal/backend/test"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -10,10 +10,10 @@ import (
"strings"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/ncw/swift"
)

View File

@@ -7,9 +7,8 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
"github.com/restic/restic/internal/backend/swift"

View File

@@ -6,7 +6,7 @@ import (
"io"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
)

View File

@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
)

View File

@@ -14,8 +14,8 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"

View File

@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/backend/test"

View File

@@ -5,7 +5,7 @@ import (
"io"
"io/ioutil"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
)
// LoadAll reads all data stored in the backend for the handle.

View File

@@ -6,10 +6,9 @@ import (
"math/rand"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)