Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
// Base API URL - service endpoints will be constructed from this
CLOUDCIX_API_URL string
CLOUDCIX_API_VERSION string
CLOUDCIX_API_USERNAME string
CLOUDCIX_API_PASSWORD string
CLOUDCIX_API_KEY string
// Default region ID for creating resources
CLOUDCIX_REGION_ID int
}
Settings holds all configuration values for the CloudCIX SDK
func DefaultSettings ¶
func DefaultSettings() *Settings
DefaultSettings returns the default configuration
func LoadSettings ¶
LoadSettings loads configuration from environment variables and optionally from a file
func (*Settings) ComputeURL ¶
ComputeURL returns the compute API URL
func (*Settings) GetRegionID ¶
GetRegionID returns the configured region ID
func (*Settings) MembershipURL ¶
MembershipURL returns the membership API URL
Click to show internal directories.
Click to hide internal directories.