migrate

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	Run(context.Context) error
	BackupV1(context.Context, io.Writer) error
	BackupV2(context.Context, io.Writer) error
	Restore(context.Context, string) error
	Clean(context.Context) error
}

func NewResourceMigrator

func NewResourceMigrator(
	opts *MigratorOpts,
) Migrator

type MigratorOpts

type MigratorOpts struct {
	Config        *rest.Config
	WorkloadKinds string
	Interval      time.Duration
	ListLimit     int64
	AutoYes       bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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