Migration implements a data migration.
| 8 | |
| 9 | // Migration implements a data migration. |
| 10 | type Migration interface { |
| 11 | // Check returns true if the migration can be applied to a repo. If the option is not applicable it can return a specific reason. |
| 12 | Check(context.Context, restic.Repository) (bool, string, error) |
| 13 | |
| 14 | RepoCheck() bool |
| 15 | |
| 16 | // Apply runs the migration. |
| 17 | Apply(context.Context, restic.Repository) error |
| 18 | |
| 19 | // Name returns a short name. |
| 20 | Name() string |
| 21 | |
| 22 | // Desc returns a description what the migration does. |
| 23 | Desc() string |
| 24 | } |
no outgoing calls
no test coverage detected