Michael Eischer
35caceace4
restore: unexport HardlinkIndex.Index and hardlinkKey
2026-06-13 19:12:05 +02:00
Michael Eischer
c062a78dcd
repository: move Blob, Blobs and PackedBlob to pack package
...
This removes them from the public interface. The latter now only
provides the PackBlob interface, without being bound to the type used
internally by the pack package.
2026-06-13 18:58:37 +02:00
Michael Eischer
35af104749
restic: change LookupBlob to return []PackBlob
2026-06-13 17:54:58 +02:00
Michael Eischer
ccb5ae1592
restic: change ListBlobs to return PackBlob
...
PackBlob is a limited interface that only exposes a part of the
information provided by PackedBlob. Most of the changes are switches
from direct value lookups to the interface methods, with a few larger
changes to let the tests still work.
2026-06-13 17:54:38 +02:00
Michael Eischer
97f1e99ed9
restic: add PackBlob interface and implement it on PackedBlob
...
The PackBlob interface will allow hiding details from the public
interface, in particular, the offset of a blob within a pack file.
2026-06-13 17:54:18 +02:00
Michael Eischer
c060c317d3
repository: unexport listPacksFromIndex
...
`ListPacksFromIndex` only has repository-internal callers left (besides
test code).
2026-06-13 17:54:03 +02:00
Michael Eischer
a9e0b46358
restic: list pack header via ListPackHandles
...
Replace ListPack with ListPackHandles so callers only receive blob
handles from pack headers, not layout fields.
2026-06-13 17:50:21 +02:00
Michael Eischer
8169814b38
restic: switch LoadBlobsFromPack to BlobHandles
...
LoadBlobsFromPack now resolves the handles to Blobs. Repository internal
code can still use the Blob-based method.
The loader used in the filerestorer test now has to implement sorting
the blobs by offset itself as it no longer has access to the repository-internal
dataypes.
2026-06-13 17:50:21 +02:00
Michael Eischer
f186e1e458
repository: require *Repository for CopyBlobs
...
Prepare `CopyBlobs` to allow access to unexported methods of the
Repository struct. This requires changing the test to inject the number
of backend connections via a wrapped backend instead of a wrapped
repository.
2026-06-13 17:50:21 +02:00
Winfried Plappert
0938f52f38
tests - more test cases for internal/repository/check.go ( #21830 )
...
Co-authored-by: Michael Eischer <michael.eischer@fau.de >
2026-06-13 15:35:48 +00:00
Michael Eischer
14f86a462a
stats: refactor ui progress printer into ui/stats
2026-06-13 17:00:11 +02:00
Michael Eischer
825d67ba4b
backup,restore: move CalculateProgressInterval call to their ui package
2026-06-13 16:53:57 +02:00
Michael Eischer
3b8b77e54d
test: remove unused exports
2026-06-13 16:53:57 +02:00
Michael Eischer
0bbfb072af
ui/progress: unexport NoopPrinter and add New* function
2026-06-13 16:53:57 +02:00
Michael Eischer
e8ed2434cd
ui: move NewProgressPrinter to ui/progress.NewTerminalPrinter
2026-06-13 16:53:54 +02:00
Michael Eischer
c04f3e9d6c
ui: unexport json and text progress
2026-06-13 16:53:30 +02:00
Michael Eischer
37fdbe5779
ui: inline Message into progressPrinter
2026-06-13 16:53:30 +02:00
Michael Eischer
47328afb2e
ui/progress: remove unused test helper
2026-06-13 16:53:30 +02:00
Michael Eischer
e6d054d896
walker: remove empty testing.go
2026-06-13 16:53:30 +02:00
Michael Eischer
fc81a0b6ad
ui/terminal: unexport Terminal type
2026-06-13 16:53:30 +02:00
Michael Eischer
dee28f5b0e
ui/terminal: unexport New function
2026-06-13 16:53:30 +02:00
darkdragon-001
e5dba15367
Json prune ( #5239 )
...
Co-authored-by: Alexander Weiss <alex@weissfam.de >
Co-authored-by: Michael Eischer <michael.eischer@fau.de >
2026-06-13 10:38:57 +00:00
Michael Eischer
abfc9bbdff
Merge pull request #21868 from MichaelEischer/fix-zero-sized-blobs
...
repository: fix zero-sized blobs in v2 repos
2026-06-11 20:43:38 +02:00
Michael Eischer
784812361e
Merge pull request #21858 from MichaelEischer/unexport-backends
...
Unexport several backend types
2026-06-10 22:51:32 +02:00
Michael Eischer
c745f810b3
backend/cache: use backend types not restic types ( #21860 )
2026-06-10 22:45:39 +02:00
Michael Eischer
721411e04c
backend/azure/gs/s3: remove unused Path() method
2026-06-10 22:37:07 +02:00
Michael Eischer
b07ff6cd34
backends: remove unused SetListMax method
...
It was never used. Remove the dead code.
2026-06-10 22:37:07 +02:00
Michael Eischer
8b3bbb527c
backend/s3: unexport
2026-06-10 22:37:07 +02:00
Michael Eischer
4a2d8e04aa
backend/rclone: unexport
2026-06-10 22:37:07 +02:00
Michael Eischer
a36488b706
backend/gs: unexport
2026-06-10 22:37:07 +02:00
Michael Eischer
cfb506a77a
backend/cache: unexport
2026-06-10 22:37:07 +02:00
Michael Eischer
ff95080f36
restic: move test helpers and drop unused JSONUnpackedLoader
2026-06-10 22:20:28 +02:00
Michael Eischer
119bb9d9a8
repository: require *Repository for ExaminePack
...
The function wouldn't work with a different Repository implementation
anyways.
2026-06-10 22:20:28 +02:00
Michael Eischer
8c6ee42d17
debug: move DumpPacks into repository package
...
Processing pack file internals belongs into the repository package.
2026-06-10 22:20:28 +02:00
Michael Eischer
ccddc1914d
repository: rename PackError to ErrPackMetadata
2026-06-10 22:20:28 +02:00
Michael Eischer
4bc5eca7ea
repository: merge check.go into checker.go
2026-06-10 22:20:28 +02:00
Michael Eischer
17ff3aa5f9
Merge pull request #21841 from MichaelEischer/isolate-repository
...
prevent imports of repository internals
2026-06-10 22:19:24 +02:00
Michael Eischer
0fc7444e32
repository: fix zero-sized blobs in v2 repos
2026-06-10 22:03:40 +02:00
Michael Eischer
81571775d5
fix version set by helper after release ( #21865 )
2026-06-09 22:43:18 +02:00
Alexander Neumann
16b8b8cda0
Set development version for 0.19.0
2026-06-09 18:49:09 +02:00
Alexander Neumann
12875cc48e
Add version for 0.19.0
2026-06-09 18:49:04 +02:00
Michael Eischer
522efd1175
downgrade compress library due to regression with zero-sized blobs
...
while this should only affect test cases better be safe than sorry.
2026-06-08 22:51:47 +02:00
Michael Eischer
2141fd83a9
checker: increase timeout for blob type confusion test ( #21831 )
2026-06-01 21:29:52 +02:00
Michael Eischer
7d25ca9d67
repository: omit unused headerSize from ListPack()
2026-05-31 22:53:00 +02:00
Michael Eischer
cc546b71e3
debug: move code requring internal access to repository package
2026-05-31 22:48:38 +02:00
Michael Eischer
3cb49556f5
repair index: replace full index handling integration test with unit test
2026-05-31 22:39:16 +02:00
Michael Eischer
f625190393
check: simplify index damage test
2026-05-31 22:19:15 +02:00
Michael Eischer
620f5986f8
list index: use helper in repository package
2026-05-31 22:14:01 +02:00
Michael Eischer
474c094cac
Merge pull request #21817 from eyupcanakman/fix/sftp-dir-permissions
...
sftp: Use mode 0700 for repository directories
2026-05-31 16:40:17 +02:00
Michael Eischer
a54ac48f60
restic: test that sorting nil blobs slices works
2026-05-31 16:22:58 +02:00