Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration0001 ¶ added in v2.16.0
type Migration0001 struct{}
type Migration0002 ¶ added in v2.16.0
type Migration0002 struct{}
type Migration0003 ¶ added in v2.16.0
type Migration0003 struct{}
type Migration0004 ¶ added in v2.16.0
type Migration0004 struct{}
type Migration0005 ¶ added in v2.16.0
type Migration0005 struct{}
type MigrationState ¶ added in v2.16.0
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 (*Migrator) Migrations ¶ added in v2.16.0
func (m *Migrator) Migrations() (map[string]MigrationState, error)
Migrations returns the list of migrations and their states
func (*Migrator) RunMigration ¶ added in v2.16.0
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.