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
1 changed files with 5 additions and 0 deletions

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