cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version        string
	KubeconfigPath string

	RootCmd = &cobra.Command{}
)

Functions

func InitPodFlags

func InitPodFlags(cmd *cobra.Command, flags *PodFlags)

func RestConfig

func RestConfig() *rest.Config

Types

type PodFlags

type PodFlags struct {
	Namespace           string
	AllNamespaces       bool
	Label               string
	FieldSelector       string
	PrometheusNamespace string
	PrometheusLabel     string
}

func (PodFlags) ToConfig

func (f PodFlags) ToConfig(args []string) internal.Config

Jump to

Keyboard shortcuts

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