login

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL