migrate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const MigratorImage = "europe-north1-docker.pkg.dev/nais-io/nais/images/cloudsql-migrator"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command string
const (
	CommandFinalize Command = "finalize"
	CommandPromote  Command = "promote"
	CommandRollback Command = "rollback"
	CommandSetup    Command = "setup"
)

func (Command) JobName

func (c Command) JobName(cfg config.Config) string

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(client ctrl.Client, clientset kubernetes.Interface, cfg config.Config, dryRun bool, noWait bool) *Migrator

func (*Migrator) ConfigureTarget

func (m *Migrator) ConfigureTarget()

func (*Migrator) Create

func (m *Migrator) Create(ctx context.Context, obj ctrl.Object) error

func (*Migrator) Delete

func (m *Migrator) Delete(ctx context.Context, obj ctrl.Object) error

func (*Migrator) Finalize

func (m *Migrator) Finalize(ctx context.Context) error

func (*Migrator) LookupGcpProjectId

func (m *Migrator) LookupGcpProjectId(ctx context.Context) (string, error)

func (*Migrator) Promote

func (m *Migrator) Promote(ctx context.Context) error

func (*Migrator) Rollback

func (m *Migrator) Rollback(ctx context.Context) error

func (*Migrator) Setup

func (m *Migrator) Setup(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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