...

Package cmd

import "github.com/chaos-mesh/chaos-mesh/pkg/chaosctl/cmd"
Overview
Index

Overview ▾

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)

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

func (o *RecoverOptions) List(client *ctrlclient.CtrlClient) ([]string, cobra.ShellCompDirective)

List pods to recover

func (*RecoverOptions) Run

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

Run recover