Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "ctx", Usage: "context commands", ArgsUsage: "[CONTEXT]", Flags: []cli.Flag{ &cli.StringFlag{ Name: "kubeconfig", Usage: "path to kubeconfig from where export context", }, }, Subcommands: []*cli.Command{ mv.Cmd, rm.Cmd, ls.Cmd, }, Action: func(cCtx *cli.Context) error { k8sContext := cCtx.Args().First() if k8sContext != "" { return directChange(cCtx, k8sContext) } else { return showTUI(cCtx) } }, }
Functions ¶
This section is empty.
Types ¶
type ContextItem ¶
type ContextItem struct { Context *apiv1.NamedContext Kconf *kconf.KubeConfig }
func (ContextItem) Description ¶
func (i ContextItem) Description() string
func (ContextItem) FilterValue ¶
func (i ContextItem) FilterValue() string
func (ContextItem) Title ¶
func (i ContextItem) Title() string
type Model ¶
func (*Model) SwitchToCtxView ¶
func (m *Model) SwitchToCtxView()
Click to show internal directories.
Click to hide internal directories.