genericclioptions

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeVersionedUserAgent added in v1.11.0

func MakeVersionedUserAgent(baseName string) string

Types

type ClientConfig

type ClientConfig struct {
	ClientConfigBase
	Kubeconfig  string
	RestConfig  *restclient.Config
	ProtoConfig *restclient.Config
}

func NewClientConfig

func NewClientConfig(userAgentName string) ClientConfig

func (*ClientConfig) AddFlags

func (cc *ClientConfig) AddFlags(cmd *cobra.Command)

func (*ClientConfig) Complete

func (cc *ClientConfig) Complete() error

func (*ClientConfig) Validate

func (cc *ClientConfig) Validate() error

type ClientConfigBase added in v1.13.0

type ClientConfigBase struct {
	QPS           float32
	Burst         int
	UserAgentName string
}

func NewDefaultClientConfigBase added in v1.13.0

func NewDefaultClientConfigBase(userAgentName string) ClientConfigBase

func (*ClientConfigBase) AddFlags added in v1.13.0

func (ccb *ClientConfigBase) AddFlags(cmd *cobra.Command)

func (*ClientConfigBase) Complete added in v1.13.0

func (ccb *ClientConfigBase) Complete() error

func (*ClientConfigBase) Validate added in v1.13.0

func (ccb *ClientConfigBase) Validate() error

type ClientConfigSet added in v1.13.0

type ClientConfigSet struct {
	ClientConfigBase

	ClientConfigs []ClientConfig
	// contains filtered or unexported fields
}

func NewClientConfigSet added in v1.13.0

func NewClientConfigSet(userAgentName string) ClientConfigSet

func (*ClientConfigSet) AddFlags added in v1.13.0

func (ccs *ClientConfigSet) AddFlags(cmd *cobra.Command)

func (*ClientConfigSet) Complete added in v1.13.0

func (ccs *ClientConfigSet) Complete() error

func (*ClientConfigSet) Validate added in v1.13.0

func (ccs *ClientConfigSet) Validate() error

type IOStreams

type IOStreams struct {
	// In think, os.Stdin
	In io.Reader
	// Out think, os.Stdout
	Out io.Writer
	// ErrOut think, os.Stderr
	ErrOut io.Writer
}

IOStreams is a structure containing all standard streams.

type InClusterReflection added in v1.4.0

type InClusterReflection struct {
	Namespace string
}

func (*InClusterReflection) AddFlags added in v1.4.0

func (o *InClusterReflection) AddFlags(cmd *cobra.Command)

func (*InClusterReflection) Complete added in v1.4.0

func (o *InClusterReflection) Complete() error

func (*InClusterReflection) Validate added in v1.4.0

func (o *InClusterReflection) Validate() error

type LeaderElection added in v1.4.0

type LeaderElection struct {
	LeaderElectionLeaseDuration time.Duration
	LeaderElectionRenewDeadline time.Duration
	LeaderElectionRetryPeriod   time.Duration
}

func NewLeaderElection added in v1.4.0

func NewLeaderElection() LeaderElection

func (*LeaderElection) AddFlags added in v1.4.0

func (le *LeaderElection) AddFlags(cmd *cobra.Command)

func (*LeaderElection) Complete added in v1.4.0

func (le *LeaderElection) Complete() error

func (*LeaderElection) Validate added in v1.4.0

func (le *LeaderElection) Validate() error

Jump to

Keyboard shortcuts

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