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 {
QPS float32
Burst int
UserAgentName string
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 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
type MultiDatacenterClientConfig ¶ added in v1.18.0
type MultiDatacenterClientConfig struct {
// Embedded ClientConfig refers to the main cluster, also known as the "meta" or "control-plane" cluster.
ClientConfig
// WorkerClientConfigs contains a ClientConfig for each worker cluster in a multi-datacenter setup, keyed by the cluster identifier.
WorkerClientConfigs map[string]ClientConfig
// contains filtered or unexported fields
}
func NewMultiDatacenterClientConfig ¶ added in v1.18.0
func NewMultiDatacenterClientConfig(userAgentName string) MultiDatacenterClientConfig
func (*MultiDatacenterClientConfig) AddFlags ¶ added in v1.18.0
func (mdcc *MultiDatacenterClientConfig) AddFlags(cmd *cobra.Command)
func (*MultiDatacenterClientConfig) Complete ¶ added in v1.18.0
func (mdcc *MultiDatacenterClientConfig) Complete() error
func (*MultiDatacenterClientConfig) Validate ¶ added in v1.18.0
func (mdcc *MultiDatacenterClientConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.