1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

In preparation for restic backup --max-repo-size extend interface definition

of repository to include:
  MaxCapacityExceeded() bool
  IsRepositoryLimitActive() bool
This commit is contained in:
Winfried Plappert 2025-03-02 08:57:52 +00:00
parent 4ffb6f2c55
commit 3d02451498

View file

@ -63,6 +63,11 @@ type Repository interface {
// StartWarmup creates a new warmup job, requesting the backend to warmup the specified packs.
StartWarmup(ctx context.Context, packs IDSet) (WarmupJob, error)
// MaxCapacityExceeded checks if repository capacity has been exceeded
MaxCapacityExceeded() bool
// IsRepositoryLimitActive checks if maximum repository size monitoring is active
IsRepositoryLimitActive() bool
}
type FileType = backend.FileType