Documentation ¶
Index ¶
- func LoadClientFromEnv() error
- type TencentCloudClient
- func (me *TencentCloudClient) Account() (string, error)
- func (me *TencentCloudClient) AuditClient() *cloudaudit.Client
- func (me *TencentCloudClient) BillingClient() *billing.Client
- func (me *TencentCloudClient) CBSClient() *cbs.Client
- func (me *TencentCloudClient) CDBClient() *cdb.Client
- func (me *TencentCloudClient) ClbClient() *clb.Client
- func (me *TencentCloudClient) CosClient() *cos.Client
- func (me *TencentCloudClient) CvmClient() *cvm.Client
- func (me *TencentCloudClient) DnsClient() *dnspod.Client
- func (me *TencentCloudClient) MongoClient() *mongodb.Client
- func (me *TencentCloudClient) RedisClient() *redis.Client
- func (me *TencentCloudClient) SQLServerClient() *sqlserver.Client
- func (me *TencentCloudClient) VpcClient() *vpc.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClientFromEnv ¶
func LoadClientFromEnv() error
Types ¶
type TencentCloudClient ¶
type TencentCloudClient struct { Region string `env:"TX_CLOUD_REGION"` SecretID string `env:"TX_CLOUD_SECRET_ID"` SecretKey string `env:"TX_CLOUD_SECRET_KEY"` // contains filtered or unexported fields }
TencentCloudClient client for all TencentCloud service
func C ¶
func C() *TencentCloudClient
func NewTencentCloudClient ¶
func NewTencentCloudClient(credentialID, credentialKey, region string) *TencentCloudClient
NewTencentCloudClient client
func (*TencentCloudClient) Account ¶
func (me *TencentCloudClient) Account() (string, error)
获取客户端账号ID
func (*TencentCloudClient) AuditClient ¶
func (me *TencentCloudClient) AuditClient() *cloudaudit.Client
UseCvmClient cvm
func (*TencentCloudClient) BillingClient ¶
func (me *TencentCloudClient) BillingClient() *billing.Client
UseBillingClient billing客户端
func (*TencentCloudClient) CBSClient ¶
func (me *TencentCloudClient) CBSClient() *cbs.Client
UseCvmClient cvm
func (*TencentCloudClient) CDBClient ¶
func (me *TencentCloudClient) CDBClient() *cdb.Client
CDBClient cdb
func (*TencentCloudClient) ClbClient ¶
func (me *TencentCloudClient) ClbClient() *clb.Client
UseCvmClient cvm
func (*TencentCloudClient) CosClient ¶
func (me *TencentCloudClient) CosClient() *cos.Client
CDBClient cdb
func (*TencentCloudClient) CvmClient ¶
func (me *TencentCloudClient) CvmClient() *cvm.Client
UseCvmClient cvm
func (*TencentCloudClient) DnsClient ¶
func (me *TencentCloudClient) DnsClient() *dnspod.Client
UseCvmClient cvm
func (*TencentCloudClient) MongoClient ¶
func (me *TencentCloudClient) MongoClient() *mongodb.Client
RedisClient cdb
func (*TencentCloudClient) RedisClient ¶
func (me *TencentCloudClient) RedisClient() *redis.Client
RedisClient cdb
func (*TencentCloudClient) SQLServerClient ¶
func (me *TencentCloudClient) SQLServerClient() *sqlserver.Client
CDBClient cdb
func (*TencentCloudClient) VpcClient ¶
func (me *TencentCloudClient) VpcClient() *vpc.Client
UseCvmClient cvm
Click to show internal directories.
Click to hide internal directories.