Documentation
¶
Index ¶
Constants ¶
View Source
const ( Username = "userdata.name" Password = "userdata.password" Token = "userdata.token" ServerUrl = "userdata.api-url" CLIHttpUserAgent = "cli-user-agent" )
View Source
const ( RequestInfoMessage = "Request ID: %v Execution Time: %v" RequestTimeMessage = "Request Execution Time: %v" StatusDeletingAll = "Status: Deleting %v with ID: %v..." StatusRemovingAll = "Status: Removing %v with ID: %v..." DeleteAllAppendErr = "error occurred removing %v with ID: %v. error: %w" WaitDeleteAllAppendErr = "error occurred waiting on removing %v with ID: %v. error: %w" )
Some legacy messages, which might need looking into
Variables ¶
This section is empty.
Functions ¶
func GetConfigFile ¶
func GetConfigFile() string
func GetServerUrl ¶
func GetServerUrl() string
GetServerUrl returns the API URL from flags, config or env in order of priority. The caller must ensure to load config or env vars beforehand, so they can be included.
Priority: 1. Explicit flag 2. Env/config file 3. Flag default value
func GetUserData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.