mirror of https://github.com/restic/restic.git
In preparation for `restic backup --max-repo-size` extend interface definition
of repository to include: MaxCapacityExceeded() bool IsRepositoryLimitActive() bool
This commit is contained in:
parent
4ffb6f2c55
commit
3d02451498
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue