Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseConstraint ¶
func MustParseConstraint(input string) *semver.Constraints
Types ¶
type InlineMigration ¶
type InlineMigration struct { MigrationName string ActivateOnVersion *semver.Constraints ActivateFunc func(*semver.Version) bool HookFunc func(context.Context) (*storage.Client, error) CleanupFunc func(context.Context) error }
func (*InlineMigration) Check ¶
func (im *InlineMigration) Check(clusterVersion *semver.Version, ctx context.Context) (bool, error)
func (*InlineMigration) Name ¶
func (im *InlineMigration) Name() string
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func (*Migrator) AddMigration ¶
func (*Migrator) GetClusterVersion ¶
Click to show internal directories.
Click to hide internal directories.