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

@@ -7,9 +7,8 @@ import (
"sync"
"time"
"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 (
"bytes"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -9,9 +9,8 @@ import (
"os/user"
"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/crypto"

View File

@@ -4,9 +4,8 @@ import (
"context"
"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

@@ -7,10 +7,9 @@ import (
"os"
"sync"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/hashing"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/debug"

View File

@@ -7,11 +7,11 @@ import (
"os"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/mock"
"github.com/restic/restic/internal/restic"
)
type randReader struct {

View File

@@ -4,9 +4,8 @@ import (
"context"
"sync"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic"
)
// ParallelWorkFunc gets one file ID to work on. If an error is returned,

View File

@@ -6,9 +6,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/repository"
. "github.com/restic/restic/internal/test"

View File

@@ -5,11 +5,11 @@ import (
"crypto/sha256"
"io"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/hashing"
"github.com/restic/restic/internal/pack"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/errors"
)

View File

@@ -6,9 +6,9 @@ import (
"math/rand"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/index"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
func randomSize(min, max int) int {

View File

@@ -7,9 +7,8 @@ import (
"fmt"
"os"
"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/crypto"

View File

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

View File

@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/local"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
"github.com/restic/chunker"