Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Primary services (latest API version)
LoadBalancer *lbv2.LoadBalancerServiceV2
Compute *computev2.ComputeServiceV2
Network *networkv2.NetworkServiceV2
Volume *volumev2.VolumeServiceV2
DNS *dnsv1.VDnsServiceV1
GLB *glbv1.GLBServiceV1
Portal *portalv2.PortalServiceV2
Identity *identityv2.IdentityServiceV2
// Legacy API versions
ComputeV1 *computev1.ComputeServiceV1
NetworkV1 *networkv1.NetworkServiceV1
VolumeV1 *volumev1.VolumeServiceV1
PortalV1 *portalv1.PortalServiceV1
}
Client provides flat access to all service APIs.
type Config ¶
type Config struct {
Region string // e.g. "hcm-3", "han-1" — derives default endpoint URLs
ClientID string
ClientSecret string
ProjectID string
UserID string
ZoneID string
UserAgent string
IAMAuth *auth.IAMUserAuth // optional — enables IAM user auth instead of client credentials
RetryCount int
SleepDuration time.Duration
IAMEndpoint string
VServerEndpoint string
VLBEndpoint string
VNetworkEndpoint string
GLBEndpoint string
DNSEndpoint string
}
Config holds all configuration needed to create an SDK client.
Click to show internal directories.
Click to hide internal directories.