migrate

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListCommand

type ListCommand struct {
	*SharedOptions

	TargetVersion string
	ShowAll       bool
	// contains filtered or unexported fields
}

func NewListCommand

func NewListCommand(streams genericiooptions.IOStreams) *ListCommand

func (*ListCommand) AddFlags

func (c *ListCommand) AddFlags(fs *pflag.FlagSet)

func (*ListCommand) Complete

func (c *ListCommand) Complete() error

func (*ListCommand) Run

func (c *ListCommand) Run(ctx context.Context) error

func (*ListCommand) Validate

func (c *ListCommand) Validate() error

type OutputFormat

type OutputFormat string
const (
	OutputFormatTable OutputFormat = "table"
	OutputFormatJSON  OutputFormat = "json"
	OutputFormatYAML  OutputFormat = "yaml"

	DefaultTimeout = 10 * time.Minute
)

func (OutputFormat) Validate

func (o OutputFormat) Validate() error

type PrepareCommand added in v0.0.15

type PrepareCommand struct {
	*SharedOptions

	DryRun        bool
	Yes           bool
	OutputDir     string
	MigrationIDs  []string
	TargetVersion string
	// contains filtered or unexported fields
}

func NewPrepareCommand added in v0.0.15

func NewPrepareCommand(streams genericiooptions.IOStreams) *PrepareCommand

func (*PrepareCommand) AddFlags added in v0.0.15

func (c *PrepareCommand) AddFlags(fs *pflag.FlagSet)

func (*PrepareCommand) Complete added in v0.0.15

func (c *PrepareCommand) Complete() error

func (*PrepareCommand) Run added in v0.0.15

func (c *PrepareCommand) Run(ctx context.Context) error

func (*PrepareCommand) Validate added in v0.0.15

func (c *PrepareCommand) Validate() error

type RunCommand

type RunCommand struct {
	*SharedOptions

	DryRun        bool
	Yes           bool
	MigrationIDs  []string
	TargetVersion string
	// contains filtered or unexported fields
}

func NewRunCommand

func NewRunCommand(streams genericiooptions.IOStreams) *RunCommand

func (*RunCommand) AddFlags

func (c *RunCommand) AddFlags(fs *pflag.FlagSet)

func (*RunCommand) Complete

func (c *RunCommand) Complete() error

func (*RunCommand) Run

func (c *RunCommand) Run(ctx context.Context) error

func (*RunCommand) Validate

func (c *RunCommand) Validate() error

type SharedOptions

type SharedOptions struct {
	IO           iostreams.Interface
	ConfigFlags  *genericclioptions.ConfigFlags
	OutputFormat OutputFormat
	Verbose      bool
	Timeout      time.Duration
	Client       client.Client

	// Throttling settings for Kubernetes API client
	QPS   float32
	Burst int
}

func NewSharedOptions

func NewSharedOptions(streams genericiooptions.IOStreams) *SharedOptions

func (*SharedOptions) Complete

func (o *SharedOptions) Complete() error

func (*SharedOptions) Validate

func (o *SharedOptions) Validate() error

Directories

Path Synopsis
actions

Jump to

Keyboard shortcuts

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