Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { Cluster string // K8s cluster (defaults to cluster in kubeconfig) ServerURL string // ServerURL - The address of the Kubernetes API server. Overrides any value in kubeconfig. Burst int // Burst - Maximum burst for throttle. QPS float64 // QPS - Maximum QPS to the server from the client. Kubeconfig string // Kubeconfig - Path to a kubeconfig. Current casing is present for backwards compatibility }
ClientConfig holds the information about the environment and can be configured with flags
func (*ClientConfig) GetRESTConfig ¶
func (c *ClientConfig) GetRESTConfig() (*rest.Config, error)
func (*ClientConfig) InitFlags ¶
func (c *ClientConfig) InitFlags(fs *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.