repository: move crypto package to internal/repository/crypto

This commit is contained in:
Michael Eischer
2026-06-05 13:26:29 +02:00
parent ee53632ec6
commit 09f82bcf12
22 changed files with 16 additions and 16 deletions
@@ -6,7 +6,7 @@ import (
"io"
"testing"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
rtest "github.com/restic/restic/internal/test"
"github.com/restic/chunker"
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/klauspost/compress/zstd"
"golang.org/x/sync/errgroup"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/index"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
@@ -5,7 +5,7 @@ import (
"slices"
"testing"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
+1 -1
View File
@@ -13,8 +13,8 @@ import (
"sync"
"time"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
@@ -10,9 +10,9 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/restic/restic/internal/checker"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/data"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/index"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
+1 -1
View File
@@ -12,8 +12,8 @@ import (
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/repository/crypto"
)
var (
+1 -1
View File
@@ -3,7 +3,7 @@ package pack
import (
"fmt"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/restic"
)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
)
// ErrBroken is returned by Add and Finalize after a write error. The packer
@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/restic"
rtest "github.com/restic/restic/internal/test"
)
+1 -1
View File
@@ -11,8 +11,8 @@ import (
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
rtest "github.com/restic/restic/internal/test"
+1 -1
View File
@@ -15,9 +15,9 @@ import (
"github.com/restic/restic/internal/repository/hashing"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/pack"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
"testing"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
)
+1 -1
View File
@@ -14,9 +14,9 @@ import (
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/backend/cache"
"github.com/restic/restic/internal/backend/dryrun"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/index"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
@@ -14,8 +14,8 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/klauspost/compress/zstd"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/index"
"github.com/restic/restic/internal/repository/pack"
"github.com/restic/restic/internal/restic"
+1 -1
View File
@@ -18,9 +18,9 @@ import (
"github.com/restic/restic/internal/backend/cache"
"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/errors"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/repository/index"
"github.com/restic/restic/internal/restic"
rtest "github.com/restic/restic/internal/test"
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/restic/restic/internal/backend/local"
"github.com/restic/restic/internal/backend/mem"
"github.com/restic/restic/internal/backend/retry"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository/crypto"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"