fix: 恢复腾讯云主机发现
This commit is contained in:
1 parent
e831ec2eb1
commit
88c41f0b2b
4 files changed
+200
-9
No files matched your search
@@ -19,10 +19,10 @@ type CloudInstance struct {
|
||||
|
||||
// CloudRegion 云平台区域(跨平台统一结构)
|
||||
type CloudRegion struct {
|
||||
RegionID string `json:"region_id"`
|
||||
LocalName string `json:"local_name"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
Status string `json:"status"`
|
||||
RegionID string `json:"region_id"`
|
||||
LocalName string `json:"local_name"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// Provider 云平台 Provider 接口
|
||||
@@ -42,8 +42,8 @@ func NewProvider(provider, accessKey, secretKey string) Provider {
|
||||
switch provider {
|
||||
case "aliyun":
|
||||
return NewAliyunProvider(accessKey, secretKey)
|
||||
// case "tencent":
|
||||
// return NewTencentProvider(accessKey, secretKey)
|
||||
case "tencent":
|
||||
return NewTencentProvider(accessKey, secretKey) // 启用腾讯云 CVM 区域与实例同步。 // Logan.Li
|
||||
// case "huawei":
|
||||
// return NewHuaweiProvider(accessKey, secretKey)
|
||||
// case "aws":
|
||||
|
||||
Reference in new issue
Block a user