Documentation
¶
Index ¶
Constants ¶
View Source
const ( Username = "userdata.name" Password = "userdata.password" Token = "userdata.token" ServerUrl = "userdata.api-url" CLIHttpUserAgent = "cli-user-agent" )
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 ¶
type Client ¶
type Client struct {
CloudClient *cloudv6.APIClient
AuthClient *sdkgoauth.APIClient
CertManagerClient *certmanager.APIClient
PostgresClient *postgres.APIClient
MongoClient *mongo.APIClient
DataplatformClient *dataplatform.APIClient
}
func NewTestClient ¶
NewTestClient - function used only for tests. Bypasses the singleton check, not recommended for normal use. TO BE REMOVED ONCE TESTS ARE REFACTORED
Click to show internal directories.
Click to hide internal directories.