Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldsWithSensitiveDataInConfigFile = []string{ constants.CfgUsername, constants.CfgPassword, constants.CfgToken, }
Functions ¶
func GetConfigFilePath ¶
func GetConfigFilePath() string
GetConfigFilePath sanitizes the --config flag input and returns the path to the config file. If none set, it returns the default config path.
func GetServerUrl ¶
func GetServerUrl() string
GetServerUrl returns the server URL the SDK should use, with support for layered fallbacks.
func GetServerUrlOrApiIonos ¶
func GetServerUrlOrApiIonos() string
GetServerUrlOrApiIonos calls GetServerUrl and returns https://api.ionos.com if empty
It is a useful func for informing the user of the behaviour of the SDKs - For the SDKs if the server URL is empty, they will default to https://api.ionos.com
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.