migrate: Allow migrations to request a check run
This is currently only used by upgrade_repo_v2.
This commit is contained in:
parent
59eb132dcd
commit
c1bbbcd0dc
4 changed files with 26 additions and 0 deletions
|
@ -37,6 +37,10 @@ func (m *S3Layout) Check(ctx context.Context, repo restic.Repository) (bool, err
|
|||
return true, nil
|
||||
}
|
||||
|
||||
func (m *S3Layout) RepoCheckOptions() *RepositoryCheckOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func retry(max int, fail func(err error), f func() error) error {
|
||||
var err error
|
||||
for i := 0; i < max; i++ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue