Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConnectionMethod = errors.New("exactly one connection method has to be specified") ErrServiceAccountNamespaceEmpty = errors.New("service account namespace must be specified") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (*Config) GetClient ¶
GetClient creates a client.Client for the given API target. The second return value is a function which can be used to reload the config. This reload func is a no-op for "Kubeconfig" and "ServiceAccount" target types.
func (*Config) GetRESTConfig ¶
func (c *Config) GetRESTConfig() (*rest.Config, ReloadFunc, error)
GetRESTConfig creates a *rest.Config for the given API target. The second return value is a function which can be used to reload the config. This reload func is a no-op for "Kubeconfig" and "ServiceAccount" target types.
type ReloadFunc ¶
type ReloadFunc func() error
Click to show internal directories.
Click to hide internal directories.