migrate

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debuger

type Debuger interface {
	DbgPrint(format string, args ...any)
}

type MigrateOptions

type MigrateOptions struct {
	Environ []string
	From    string
	To      string
	StepEnd int
	Squeeze bool
	LFS     bool
	Quiet   bool
	Verbose bool
	Values  []string
	Debuger Debuger
}

type Migrator

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

func NewMigrator

func NewMigrator(ctx context.Context, opts *MigrateOptions) (*Migrator, error)

func (*Migrator) Close

func (m *Migrator) Close() error

func (*Migrator) Execute

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

type ProgressBar

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

func NewBar

func NewBar(description string, total int, stepCurrent, stepEnd int, verbose bool) *ProgressBar

func (*ProgressBar) Add

func (b *ProgressBar) Add(n int)

func (*ProgressBar) Done

func (b *ProgressBar) Done()

Jump to

Keyboard shortcuts

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