migrations

package
v1.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AssociateApisWithBundleMigrationKey = 6
View Source
const BundlePathMigrationKey = 2
View Source
const BundlePathPkgMigrationKey = 10
View Source
const DependenciesMigrationKey = 8
View Source
const DeprecatedMigrationKey = 12
View Source
const PropertiesMigrationKey = 9
View Source
const RelatedImagesMigrationKey = 1
View Source
const ReplacesSkipsMigrationKey = 7
View Source
const RequiredApiMigrationKey = 3
View Source
const RmTruncatedDeprecationsMigrationKey = 13
View Source
const SkipRangeAnnotationKey = "olm.skipRange"
View Source
const SubstitutesForMigrationKey = 11
View Source
const VersionSkipRangeMigrationKey = 5

Variables

View Source
var CascadeDeleteMigrationKey = 4
View Source
var InitMigrationKey = 0

Functions

func SplitCRDName

func SplitCRDName(crdName string) (plural, group string, err error)

Types

type Migration

type Migration struct {
	Id   int
	Up   func(context.Context, *sql.Tx) error
	Down func(context.Context, *sql.Tx) error
}

type MigrationSet

type MigrationSet map[int]*Migration

func All

func All() MigrationSet

All returns the full set

func (MigrationSet) From

func (m MigrationSet) From(key int) Migrations

From returns a set of migrations, starting at key

func (MigrationSet) Only

func (m MigrationSet) Only(key int) Migrations

Only returns a set of one migration

func (MigrationSet) To

func (m MigrationSet) To(key int) Migrations

To returns a set of migrations, up to and including key

type Migrations

type Migrations []*Migration

func From

func From(key int) Migrations

From returns a set of migrations, starting at key

func Only

func Only(key int) Migrations

Only returns a set of one migration

func To

func To(key int) Migrations

To returns a set of migrations, up to and including key

func (Migrations) Len

func (m Migrations) Len() int

func (Migrations) Less

func (m Migrations) Less(i, j int) bool

func (Migrations) Swap

func (m Migrations) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL