Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIKeyCallbackFunc = WaitForAPIKeyCallback
APIKeyCallbackFunc is a variable that holds the function for retrieving API keys. This can be overridden in tests to mock the browser-based authentication flow.
Functions ¶
func EnsureAuthenticated ¶
EnsureAuthenticated checks if valid authentication exists, and if not, triggers the login flow automatically. This is a non-interactive version intended for use in automated workflows. Returns true if authentication is valid or was successfully obtained.
func EnsureAuthenticatedE ¶
EnsureAuthenticatedE checks if valid authentication exists, and if not, triggers the login flow automatically. Returns an error if authentication fails, suitable for use in Cobra PreRunE hooks.
func SetURLAction ¶
func SetURLAction(askForHostChange bool)
func WaitForAPIKeyCallback ¶
func WriteConfigFile ¶
func WriteConfigFile()
func WriteConfigFileSilent ¶
func WriteConfigFileSilent()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.