Documentation ¶
Index ¶
Constants ¶
View Source
const KeyringServiceName = "kam"
KeyringServiceName refers to service name used to set the accesstoken in the keyring
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
GetAccessToken returns the token from either that is stored in the keyring or the environment variable in this order.
func GetEnvVarName ¶
GetEnvVarName contains the logic for the naming convention of the environment variable that contains the accesstoken
func HostFromURL ¶
HostFromURL extracts the hostname from the url passed
func SetAccessToken ¶
SetSecret sets the secret in the keyring
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.