mirror of
https://github.com/kopia/kopia.git
synced 2026-10-24 23:28:47 -04:00
refactor(repository): moved format blob management to separate package (#2245)
* refactor(repository): moved format blob management to separate package This is completely mechanical, no behavior changes, only: - moved types and functions to a new package - adjusted visibility where needed - added missing godoc - renamed some identifiers to align with current usage - mechanically converted some top-level functions into member functions - fixed some mis-named variables * refactor(repository): moved content.FormatingOptions to format.ContentFormat
This commit is contained in:
1 parent
b8c4e23115
commit
6160ee5668
68 files changed
+1094
-998
No files matched your search
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/kopia/kopia/internal/gather"
|
||||
"github.com/kopia/kopia/internal/timetrack"
|
||||
"github.com/kopia/kopia/internal/units"
|
||||
"github.com/kopia/kopia/repo/content"
|
||||
"github.com/kopia/kopia/repo/encryption"
|
||||
"github.com/kopia/kopia/repo/format"
|
||||
"github.com/kopia/kopia/repo/hashing"
|
||||
)
|
||||
|
||||
@@ -66,7 +66,7 @@ func (c *commandBenchmarkEncryption) runBenchmark(ctx context.Context) []cryptoB
|
||||
data := make([]byte, c.blockSize)
|
||||
|
||||
for _, ea := range encryption.SupportedAlgorithms(c.deprecatedAlgorithms) {
|
||||
enc, err := encryption.CreateEncryptor(&content.FormattingOptions{
|
||||
enc, err := encryption.CreateEncryptor(&format.ContentFormat{
|
||||
Encryption: ea,
|
||||
Hash: hashing.DefaultAlgorithm,
|
||||
MasterKey: make([]byte, 32), // nolint:gomnd
|
||||
|
||||
Reference in new issue
Block a user