mirror of
https://github.com/restic/restic.git
synced 2025-12-12 07:01:56 +00:00
repository: add Checker() method to repository to replace unchecked cast
This commit is contained in:
@@ -178,6 +178,10 @@ func (r *Repository) SetDryRun() {
|
||||
r.be = dryrun.New(r.be)
|
||||
}
|
||||
|
||||
func (r *Repository) Checker() *Checker {
|
||||
return NewChecker(r)
|
||||
}
|
||||
|
||||
// LoadUnpacked loads and decrypts the file with the given type and ID.
|
||||
func (r *Repository) LoadUnpacked(ctx context.Context, t restic.FileType, id restic.ID) ([]byte, error) {
|
||||
debug.Log("load %v with id %v", t, id)
|
||||
|
||||
Reference in New Issue
Block a user