cmd

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Version = "v0.2.0"

Variables

This section is empty.

Functions

func NewDrainCmd added in v0.0.1

func NewDrainCmd(rootCfg *RootConfig) *ffcli.Command

func NewRestartCmd

func NewRestartCmd(rootCfg *RootConfig) *ffcli.Command

func NewShowCmd added in v0.0.3

func NewShowCmd(rootCfg *RootConfig) *ffcli.Command

func NewShowNodesCmd added in v0.0.3

func NewShowNodesCmd(rootCfg *RootConfig) *ffcli.Command

func NewVersionCmd added in v0.0.5

func NewVersionCmd() *ffcli.Command

Types

type DrainConfig added in v0.0.1

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

func (*DrainConfig) Exec added in v0.0.1

func (c *DrainConfig) Exec(ctx context.Context, args []string) error

type NodeInfo added in v0.0.3

type NodeInfo struct {
	Node          v1.Node
	Deployments   []v1.Pod
	Statusfulsets []v1.Pod
	ArgoRollouts  []v1.Pod
}

type RestartConfig

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

func (*RestartConfig) Exec

func (c *RestartConfig) Exec(ctx context.Context, args []string) error

type RootConfig

type RootConfig struct {
	KubeConfig string
	Verbose    bool

	KubeClient *kubernetes.Client
}

func NewRootCmd

func NewRootCmd() (*ffcli.Command, *RootConfig)

func (*RootConfig) Exec

func (c *RootConfig) Exec(context.Context, []string) error

func (*RootConfig) RegisterFlags

func (c *RootConfig) RegisterFlags(fs *flag.FlagSet)

type ShowNodesConfig added in v0.0.3

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

func (*ShowNodesConfig) Exec added in v0.0.3

func (c *ShowNodesConfig) Exec(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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