Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DownPlugin ¶ added in v0.4.0
Types ¶
type MigrateDown ¶
type MigrateDown struct {
// contains filtered or unexported fields
}
func (*MigrateDown) Flags ¶
func (mu *MigrateDown) Flags() *pflag.FlagSet
func (MigrateDown) HelpText ¶ added in v0.4.0
func (mu MigrateDown) HelpText() string
func (MigrateDown) Name ¶
func (mu MigrateDown) Name() string
func (MigrateDown) ParentName ¶ added in v0.4.0
func (mu MigrateDown) ParentName() string
func (*MigrateDown) ParseFlags ¶
func (mu *MigrateDown) ParseFlags(args []string)
type MigrateUp ¶
type MigrateUp struct {
// contains filtered or unexported fields
}
func (MigrateUp) ParentName ¶ added in v0.4.0
func (*MigrateUp) ParseFlags ¶
type Migrator ¶
type Migrator interface {
CommandName() string
RunMigrations(ctx context.Context, root string, args []string) error
}
Migrator type allows to identify migration runner plugins.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ParentName ¶
func (*Plugin) Subcommands ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.