cmd

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewDebugCommand

func NewDebugCommand(logger logr.Logger, debugs map[string]debug.Debug) (*cobra.Command, error)

func NewLogsCmd

func NewLogsCmd() (*cobra.Command, error)

func NewPhysicalMachineCommand

func NewPhysicalMachineCommand() (*cobra.Command, error)

func NewRecoverCommand

func NewRecoverCommand(logger logr.Logger, builders map[string]recover.RecovererBuilder) (*cobra.Command, error)

Types

type Component

type Component string
const (
	Manager   Component = "MANAGER"
	Daemon    Component = "DAEMON"
	Dashboard Component = "DASHBOARD"
	DnsServer Component = "DNSSERVER"
)

type DebugOptions

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

func (*DebugOptions) List

func (o *DebugOptions) List(debugger debug.Debugger) ([]string, cobra.ShellCompDirective)

Run debug

func (*DebugOptions) Run

func (o *DebugOptions) Run(debugger debug.Debugger, args []string) error

Run debug

type RecoverOptions

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

func (*RecoverOptions) List

List pods to recover

func (*RecoverOptions) Run

func (o *RecoverOptions) Run(recover recover.Recoverer, client *ctrlclient.CtrlClient, args []string) error

Run recover

Jump to

Keyboard shortcuts

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