genericclioptions

package
v1.11.5-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 9 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 {
	Kubeconfig    string
	QPS           float32
	Burst         int
	UserAgentName 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 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