options

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const MaxInFlightDefault = 25

Variables

This section is empty.

Functions

func GetGenricCliFlags

func GetGenricCliFlags() *genericclioptions.ConfigFlags

Types

type KetAllConfigFlags added in v1.1.4

type KetAllConfigFlags struct {
	*genericclioptions.ConfigFlags
	KubeConfig *rest.Config `json:"kubeConfig,omitempty"`
}

KetAllConfigFlags is a wrapper around genericclioptions.ConfigFlags to support kubeconfig directly without needing the kubeconfig path.

func (*KetAllConfigFlags) ToDiscoveryClient added in v1.1.6

func (t *KetAllConfigFlags) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*KetAllConfigFlags) ToRESTConfig added in v1.1.5

func (t *KetAllConfigFlags) ToRESTConfig() (*rest.Config, error)

func (*KetAllConfigFlags) ToRESTMapper added in v1.1.6

func (t *KetAllConfigFlags) ToRESTMapper() (meta.RESTMapper, error)

type KetallOptions

type KetallOptions struct {
	UseCache        bool     `json:"useCache,omitempty"`
	AllowIncomplete bool     `json:"allowIncomplete,omitempty"`
	Scope           string   `json:"scope,omitempty"`
	Since           string   `json:"since,omitempty"`
	Selector        string   `json:"selector,omitempty"`
	FieldSelector   string   `json:"fieldSelector,omitempty"`
	MaxInflight     int64    `json:"maxInflight,omitempty"`
	Namespace       string   `json:"namespace.omitempty"`
	Exclusions      []string `json:"exclusions,omitempty"` // Exclude resources by name or kind or shortname
	Kind            string   `json:"kind,omitempty"`       // Limits results on a specific kind

	Flags *KetAllConfigFlags
}

func NewDefaultCmdOptions

func NewDefaultCmdOptions() *KetallOptions

Jump to

Keyboard shortcuts

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