MCPcopy
hub / github.com/restic/restic / Migration

Interface Migration

internal/migrations/interface.go:10–24  ·  view source on GitHub ↗

Migration implements a data migration.

Source from the content-addressed store, hash-verified

8
9// Migration implements a data migration.
10type 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}

Callers 14

KDFFunction · 0.65
checkMigrationsFunction · 0.65
applyMigrationsFunction · 0.65
runBackupFunction · 0.65
applyMigrationsFunction · 0.65
TestOptionsApplyFunction · 0.65
TestOptionsApplyInvalidFunction · 0.65
parseConfigFunction · 0.65
ParseVSSConfigFunction · 0.65
TestSetFlagFunction · 0.65
TestEmptyApplyFunction · 0.65
TestFeatureApplyFunction · 0.65

Implementers 1

UpgradeRepoV2internal/migrations/upgrade_repo_v2.go

Calls

no outgoing calls

Tested by

no test coverage detected