cmd

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func ExecuteStart

func ExecuteStart(ctx context.Context, options *StartOptions) error

func NewCpCommand added in v0.19.0

func NewCpCommand() *cobra.Command

func NewPortForwardCommand added in v0.23.3

func NewPortForwardCommand() *cobra.Command

func NewRestoreCommand added in v0.24.0

func NewRestoreCommand() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

func NewSnapshotCommand added in v0.24.0

func NewSnapshotCommand() *cobra.Command

func NewStartCommand

func NewStartCommand() *cobra.Command

func RunRoot added in v0.20.0

func RunRoot()

func StartLeaderElection added in v0.15.1

func StartLeaderElection(ctx *synccontext.ControllerContext, startLeading func() error) error

Types

type PortForwardOptions added in v0.23.3

type PortForwardOptions struct {
	Namespace     string
	PodName       string
	RESTClient    restclient.Interface
	Config        *restclient.Config
	PodClient     corev1client.PodsGetter
	Address       []string
	Ports         []string
	PortForwarder portForwarder
	StopChannel   chan struct{}
	ReadyChannel  chan struct{}
}

PortForwardOptions contains all the options for running the port-forward cli command.

func NewDefaultPortForwardOptions added in v0.23.3

func NewDefaultPortForwardOptions(streams genericiooptions.IOStreams) *PortForwardOptions

func (*PortForwardOptions) Complete added in v0.23.3

func (o *PortForwardOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options for port-forward cmd.

func (PortForwardOptions) RunPortForwardContext added in v0.23.3

func (o PortForwardOptions) RunPortForwardContext(ctx context.Context) error

RunPortForwardContext implements all the necessary functionality for port-forward cmd. It ends portforwarding when an error is received from the backend, or an os.Interrupt signal is received, or the provided context is done.

func (PortForwardOptions) Validate added in v0.23.3

func (o PortForwardOptions) Validate() error

Validate validates all the required options for port-forward cmd.

type RestoreOptions added in v0.24.0

type RestoreOptions struct {
	Snapshot snapshot.Options

	NewVCluster bool
}

func (*RestoreOptions) Run added in v0.24.0

func (o *RestoreOptions) Run(ctx context.Context) error

type SnapshotOptions added in v0.24.0

type SnapshotOptions struct {
	Snapshot snapshot.Options
}

func (*SnapshotOptions) Run added in v0.24.0

func (o *SnapshotOptions) Run(ctx context.Context) error

type StartOptions added in v0.20.0

type StartOptions struct {
	Config string

	SetValues []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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