Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdGetPods = &cobra.Command{ Use: "pods", Example: " powerctl get pod", Short: "Get Pod Info", Run: func(cmd *cobra.Command, args []string) { pods, err := kube.Client.GetAllPods() if err != nil { fmt.Println(err) os.Exit(1) } switch { case len(args) > 0: pods = pods.Search(args...) } for _, p := range pods.Items { fmt.Println(p.Name) } }, }
CmdGetPods gets pods.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.