Documentation ¶
Index ¶
- func ByContext(cfg *configapi.Config, name string) *configapi.Config
- func ByContexts(cfg *configapi.Config, names ...string) *configapi.Config
- func GetAuthInfoByName(cfg *configapi.Config, name string) configapi.NamedAuthInfo
- func GetClusterByName(cfg *configapi.Config, name string) configapi.NamedCluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByContext ¶
ByContext returns a new Config object containing the resources attached to the provided `name` context.
func ByContexts ¶
ByContexts returns a new Config object containing the resources attached to the provided `names` contexts.
func GetAuthInfoByName ¶
func GetAuthInfoByName(cfg *configapi.Config, name string) configapi.NamedAuthInfo
GetAuthInfoByName returns the AuthInfo that matches the `name`
func GetClusterByName ¶
func GetClusterByName(cfg *configapi.Config, name string) configapi.NamedCluster
GetClusterByName returns the Cluster that matches the `name`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.