From 393e49fc890094ffc1f6936209c4bcf055bcdac6 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 10 Oct 2025 23:32:31 +0200 Subject: [PATCH] repository: update comment --- internal/restic/repository.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/restic/repository.go b/internal/restic/repository.go index 236171cd2..cf3ec7834 100644 --- a/internal/restic/repository.go +++ b/internal/restic/repository.go @@ -53,8 +53,9 @@ type Repository interface { LoadRaw(ctx context.Context, t FileType, id ID) (data []byte, err error) // LoadUnpacked loads and decrypts the file with the given type and ID. LoadUnpacked(ctx context.Context, t FileType, id ID) (data []byte, err error) + // SaveUnpacked stores a file in the repository. This is restricted to snapshots. SaveUnpacked(ctx context.Context, t WriteableFileType, buf []byte) (ID, error) - // RemoveUnpacked removes a file from the repository. This will eventually be restricted to deleting only snapshots. + // RemoveUnpacked removes a file from the repository. This is restricted to snapshots. RemoveUnpacked(ctx context.Context, t WriteableFileType, id ID) error // StartWarmup creates a new warmup job, requesting the backend to warmup the specified packs.