Documentation ¶
Index ¶
- Constants
- func RunAllMigration(sqlDB *db.SqlDB, logger lager.Logger) error
- func RunMigrations(sqlDB *db.SqlDB, migrations []Migration, logger lager.Logger) error
- type Migration
- type MigrationData
- type Runner
- type V0InitMigration
- type V2UpdateRgMigration
- type V3UpdateTcpRouteMigration
- type V4AddRgUniqIdxTCPRoute
- type V5SniHostnameMigration
- type V6TCPTLSRoutes
- type V7TCPTLSRoutes
Constants ¶
View Source
const MigrationKey = "routing-api-migration"
Variables ¶
This section is empty.
Functions ¶
func RunAllMigration ¶
Types ¶
type Migration ¶
func InitializeMigrations ¶
func InitializeMigrations() []Migration
type MigrationData ¶
type V0InitMigration ¶
type V0InitMigration struct{}
func NewV0InitMigration ¶
func NewV0InitMigration() *V0InitMigration
func (*V0InitMigration) Version ¶
func (v *V0InitMigration) Version() int
type V2UpdateRgMigration ¶
type V2UpdateRgMigration struct{}
func NewV2UpdateRgMigration ¶
func NewV2UpdateRgMigration() *V2UpdateRgMigration
func (*V2UpdateRgMigration) Version ¶
func (v *V2UpdateRgMigration) Version() int
type V3UpdateTcpRouteMigration ¶
type V3UpdateTcpRouteMigration struct{}
func NewV3UpdateTcpRouteMigration ¶
func NewV3UpdateTcpRouteMigration() *V3UpdateTcpRouteMigration
func (*V3UpdateTcpRouteMigration) Run ¶
func (v *V3UpdateTcpRouteMigration) Run(sqlDB *db.SqlDB) error
func (*V3UpdateTcpRouteMigration) Version ¶
func (v *V3UpdateTcpRouteMigration) Version() int
type V4AddRgUniqIdxTCPRoute ¶
type V4AddRgUniqIdxTCPRoute struct{}
func NewV4AddRgUniqIdxTCPRouteMigration ¶
func NewV4AddRgUniqIdxTCPRouteMigration() *V4AddRgUniqIdxTCPRoute
func (*V4AddRgUniqIdxTCPRoute) Version ¶
func (v *V4AddRgUniqIdxTCPRoute) Version() int
type V5SniHostnameMigration ¶
type V5SniHostnameMigration struct{}
func NewV5SniHostnameMigration ¶
func NewV5SniHostnameMigration() *V5SniHostnameMigration
func (*V5SniHostnameMigration) Version ¶
func (v *V5SniHostnameMigration) Version() int
type V6TCPTLSRoutes ¶
type V6TCPTLSRoutes struct{}
func NewV6TCPTLSRoutes ¶
func NewV6TCPTLSRoutes() *V6TCPTLSRoutes
func (*V6TCPTLSRoutes) Version ¶
func (v *V6TCPTLSRoutes) Version() int
type V7TCPTLSRoutes ¶
type V7TCPTLSRoutes struct{}
func NewV7TCPTLSRoutes ¶
func NewV7TCPTLSRoutes() *V7TCPTLSRoutes
func (*V7TCPTLSRoutes) Version ¶
func (v *V7TCPTLSRoutes) Version() int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.