Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterNicknameFromURL ¶
GetClusterNicknameFromURL returns host:port of the apiServerLocation, with .'s replaced by -'s
func GetContextNickname ¶
func GetUserNicknameFromCert ¶
func GetUserNicknameFromCert(clusterNick string, chain ...*x509.Certificate) (string, error)
func NormalizeServerURL ¶
NormalizeServerURL is opinionated normalization of a string that represents a URL. Returns the URL provided matching the format expected when storing a URL in a config. Sets a scheme and port if not present, removes unnecessary trailing slashes, etc. Can be used to normalize a URL provided by user input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.