Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationTaskFn ¶
type MigrationTaskFn func(result fs.ReadInfoFileResult) (migration.NewTaskFn, bool)
MigrationTaskFn returns a fileset migration function and a boolean indicating if migration is necessary.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is responsible for migrating data filesets based on version information in the info files.
func NewMigrator ¶
NewMigrator creates a new Migrator.
type Options ¶
type Options interface {
// Validate checks that options are valid.
Validate() error
// SetMigrationTaskFn sets the function for determining if the migrator should migrate a fileset.
SetMigrationTaskFn(value MigrationTaskFn) Options
// MigrationTaskFn gets the function for determining if the migrator should migrate a fileset.
MigrationTaskFn() MigrationTaskFn
// SetInfoFilesByNamespaces sets the info file results to operate on keyed by namespace.
SetInfoFilesByNamespace(value bootstrap.InfoFilesByNamespace) Options
// InfoFilesByNamespaces returns the info file results to operate on keyed by namespace.
InfoFilesByNamespace() bootstrap.InfoFilesByNamespace
// SetMigrationOptions sets the migration options.
SetMigrationOptions(value migration.Options) Options
// MigrationOptions returns the migration options.
MigrationOptions() migration.Options
// SetFilesystemOptions sets the filesystem options.
SetFilesystemOptions(value fs.Options) Options
// FileSystemOptions returns the filesystem options.
FilesystemOptions() fs.Options
// SetInstrumentOptions sets the instrument options.
SetInstrumentOptions(value instrument.Options) Options
// InstrumentOptions returns the instrument options.
InstrumentOptions() instrument.Options
// SetStorageOptions sets the storage options.
SetStorageOptions(value storage.Options) Options
// StorageOptions returns the storage options.
StorageOptions() storage.Options
}
Options represents the options for the migrator.
Click to show internal directories.
Click to hide internal directories.