Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeVersionedUserAgent ¶ added in v1.11.0
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
Click to show internal directories.
Click to hide internal directories.