Michael Eischer
f2ff05f840
Merge pull request #21848 from restic/shrink-repository-interface
...
move restic.{Blob,Blobs,PackedBlob} types to `./internal/repository/pack` package
2026-06-13 19:11:33 +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
9f9a3472aa
Merge pull request #21850 from MichaelEischer/misc-cleanups
...
Cleanup `ui/*` package and minor cleanups in `test` and `walker`
2026-06-13 17:12:14 +02: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
Michael Eischer
2d02a1ad39
doc: clarify forget --prune --json output ( #21878 )
2026-06-13 16:47:15 +02:00
Michael Eischer
bae49d00ee
stats: hide progress bar for json output ( #21871 )
2026-06-13 15:13:26 +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
bf56d71b09
Merge pull request #21876 from MichaelEischer/cleanup-mount-validation
...
mount: refactor mountpoint validation
2026-06-12 23:34:44 +02:00
Michael Eischer
e94ec65efb
mount: unify mountpoint validation error messages
2026-06-12 22:30:53 +02:00
Michael Eischer
49f9e67520
mount: factor out mountpoint validation into helper
2026-06-12 22:29:45 +02:00
Michael Eischer
3a4b0e3b8c
Merge pull request #5348 from zmanda/fix-gh-5234-prevent-mount-command-over-repository
...
mount: prevent mounting over repository
2026-06-12 22:27:50 +02: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
a15b1579ff
Merge pull request #21846 from restic/repository-cleanups
...
Cleanup repository package
2026-06-10 22:36:04 +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
5683180a3b
upgrade compress library
2026-06-10 22:03:56 +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
v0.19.0
2026-06-09 18:49:04 +02:00