migrate: Cleanup option to request repository check
This commit is contained in:
parent
0cb6b3d80a
commit
5eba1217e7
4 changed files with 6 additions and 10 deletions
|
@ -6,15 +6,12 @@ import (
|
|||
"github.com/restic/restic/internal/restic"
|
||||
)
|
||||
|
||||
type RepositoryCheckOptions struct {
|
||||
}
|
||||
|
||||
// Migration implements a data migration.
|
||||
type Migration interface {
|
||||
// Check returns true if the migration can be applied to a repo.
|
||||
Check(context.Context, restic.Repository) (bool, error)
|
||||
|
||||
RepoCheckOptions() *RepositoryCheckOptions
|
||||
RepoCheck() bool
|
||||
|
||||
// Apply runs the migration.
|
||||
Apply(context.Context, restic.Repository) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue