Documentation ¶
Index ¶
- func FindExistingAuthInfoName(haystack clientcmdapi.Config, needle clientcmdapi.AuthInfo) string
- func FindExistingClusterName(haystack clientcmdapi.Config, needle clientcmdapi.Cluster) string
- func FindExistingContextName(haystack clientcmdapi.Config, needle clientcmdapi.Context) string
- func MergeConfig(haystack, toModify, addition clientcmdapi.Config) (*clientcmdapi.Config, error)
- func NewCmdLogin(f *osclientcmd.Factory, parentName, name string) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindExistingAuthInfoName ¶
func FindExistingAuthInfoName(haystack clientcmdapi.Config, needle clientcmdapi.AuthInfo) string
FindExistingAuthInfoName finds the nickname for the passed auth info
func FindExistingClusterName ¶
func FindExistingClusterName(haystack clientcmdapi.Config, needle clientcmdapi.Cluster) string
FindExistingClusterName finds the nickname for the passed cluster config
func FindExistingContextName ¶
func FindExistingContextName(haystack clientcmdapi.Config, needle clientcmdapi.Context) string
FindExistingContextName finds the nickname for the passed context
func MergeConfig ¶
func MergeConfig(haystack, toModify, addition clientcmdapi.Config) (*clientcmdapi.Config, error)
MergeConfig takes a haystack to look for existing stanzas in (probably the merged config), a config object to modify (probably either the local or envvar config), and the new additions to merge in. It tries to find equivalents for the addition inside of the haystack and uses the mapping to avoid creating additional stanzas with duplicate information. It either locates or original stanzas or creates new ones for clusters and users. Then it uses the mapped names to build the correct contexts
func NewCmdLogin ¶
func NewCmdLogin(f *osclientcmd.Factory, parentName, name string) *cobra.Command
Types ¶
This section is empty.