Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration0001 ¶
type Migration0001 struct{}
type Migration0002 ¶
type Migration0002 struct{}
type Migration0003 ¶
type Migration0003 struct{}
type Migration0004 ¶
type Migration0004 struct{}
type Migration0005 ¶
type Migration0005 struct{}
type MigrationState ¶
MigrationState holds the state of a migration
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator runs migrations on an existing decomposedfs
func New ¶
func New(lu node.PathLookup, log *zerolog.Logger) Migrator
New returns a new Migrator instance
func (*Migrator) Migrations ¶
func (m *Migrator) Migrations() (map[string]MigrationState, error)
Migrations returns the list of migrations and their states
func (*Migrator) RunMigration ¶
RunMigration runs or rolls back a migration
func (*Migrator) RunMigrations ¶
RunMigrations runs all migrations in sequence. Note this sequence must not be changed or it might damage existing decomposed fs.
Click to show internal directories.
Click to hide internal directories.