Documentation
¶
Index ¶
- Variables
- type TencentCloudClient
- func (me *TencentCloudClient) UseAsClient() *as.Client
- func (me *TencentCloudClient) UseCbsClient() *cbs.Client
- func (me *TencentCloudClient) UseCosClient() *s3.S3
- func (me *TencentCloudClient) UseMysqlClient() *cdb.Client
- func (me *TencentCloudClient) UseRedisClient() *redis.Client
- func (me *TencentCloudClient) UseVpcClient() *vpc.Client
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSupportedRegions = []string{regions.Beijing, regions.Chengdu, regions.Chongqing, regions.Guangzhou, regions.GuangzhouOpen, regions.HongKong, regions.Mumbai, regions.Seoul, regions.Shanghai, regions.ShanghaiFSI, regions.ShenzhenFSI, regions.Singapore, regions.Frankfurt, regions.Moscow, regions.Ashburn, regions.SiliconValley, regions.Toronto}
View Source
var MysqlSupportedRegions = AllSupportedRegions
Functions ¶
This section is empty.
Types ¶
type TencentCloudClient ¶
type TencentCloudClient struct {
Region string
SecretId string
SecretKey string
// contains filtered or unexported fields
}
client for all TencentCloud service
func NewTencentCloudClient ¶
func NewTencentCloudClient(secretId, secretKey, region string) *TencentCloudClient
func (*TencentCloudClient) UseAsClient ¶ added in v1.8.0
func (me *TencentCloudClient) UseAsClient() *as.Client
func (*TencentCloudClient) UseCbsClient ¶ added in v1.10.0
func (me *TencentCloudClient) UseCbsClient() *cbs.Client
func (*TencentCloudClient) UseCosClient ¶ added in v1.6.0
func (me *TencentCloudClient) UseCosClient() *s3.S3
get cos client for service
func (*TencentCloudClient) UseMysqlClient ¶
func (me *TencentCloudClient) UseMysqlClient() *cdb.Client
get mysql(cdb) client for service
func (*TencentCloudClient) UseRedisClient ¶ added in v1.7.0
func (me *TencentCloudClient) UseRedisClient() *redis.Client
get redis client for service
func (*TencentCloudClient) UseVpcClient ¶ added in v1.10.0
func (me *TencentCloudClient) UseVpcClient() *vpc.Client
get vpc client for service
Click to show internal directories.
Click to hide internal directories.