Documentation ¶
Index ¶
- Constants
- type NacosCloud
- type RealTencentCloud
- func (r *RealTencentCloud) CreateNacos(nacos *appv1.Nacos) (response *tse.CreateEngineResponse, err error)
- func (r *RealTencentCloud) CreateRedis(in *appv1.Redis) (redis.CreateInstancesResponseParams, error)
- func (r *RealTencentCloud) DefaultSecurityGroup() (string, error)
- func (r *RealTencentCloud) DeleteNacos(id string) (response *tse.DeleteEngineResponse, err error)
- func (r *RealTencentCloud) DescribeRedis(id string) (redis.DescribeInstancesResponseParams, error)
- func (r *RealTencentCloud) DestroyRedis(id string, isPrepaid bool) (string, error)
- func (r *RealTencentCloud) QueryAccessAddress(id string) (*tse.DescribeSREInstanceAccessAddressResponse, error)
- func (r *RealTencentCloud) QueryNacos(id string) (response *tse.DescribeSREInstancesResponse, err error)
- func (r *RealTencentCloud) QueryRedisOrderInfo(orderId []string) (*redis.DescribeInstanceDealDetailResponseParams, error)
- func (r *RealTencentCloud) QueryRedisTaskInfo(taskId uint64) (*redis.DescribeTaskInfoResponseParams, error)
- func (r *RealTencentCloud) QueryRedisTaskListInfo(id string) (*redis.DescribeTaskListResponseParams, error)
- func (r *RealTencentCloud) RedisRecover(id string) (*int64, error)
- func (r *RealTencentCloud) RedisWanAddress(id string, enable bool) error
- func (r *RealTencentCloud) ResetRedisPassword(id string, passwd string) bool
- func (r *RealTencentCloud) UpdateInternetAccess(id string, isEnabled bool) error
- type RedisCloud
- type TencentCloud
- type VpcNetwork
Constants ¶
View Source
const ( DefaultRegion string = "ap-shanghai" TseEndpoint string = "tse.tencentcloudapi.com" RedisEndpoint string = "redis.tencentcloudapi.com" VpcEndpoint string = "vpc.tencentcloudapi.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NacosCloud ¶
type NacosCloud interface { CreateNacos(nacos *appv1.Nacos) (*tse.CreateEngineResponse, error) DeleteNacos(id string) (*tse.DeleteEngineResponse, error) QueryNacos(id string) (*tse.DescribeSREInstancesResponse, error) QueryAccessAddress(id string) (*tse.DescribeSREInstanceAccessAddressResponse, error) UpdateInternetAccess(id string, isEnabled bool) error }
type RealTencentCloud ¶
type RealTencentCloud struct {
// contains filtered or unexported fields
}
func NewRealTencentCloud ¶
func NewRealTencentCloud(secretId, secretKey string) *RealTencentCloud
func (*RealTencentCloud) CreateNacos ¶
func (r *RealTencentCloud) CreateNacos(nacos *appv1.Nacos) (response *tse.CreateEngineResponse, err error)
CreateNacos 创建nacos实例
func (*RealTencentCloud) CreateRedis ¶ added in v0.0.2
func (r *RealTencentCloud) CreateRedis(in *appv1.Redis) (redis.CreateInstancesResponseParams, error)
func (*RealTencentCloud) DefaultSecurityGroup ¶ added in v0.0.2
func (r *RealTencentCloud) DefaultSecurityGroup() (string, error)
func (*RealTencentCloud) DeleteNacos ¶
func (r *RealTencentCloud) DeleteNacos(id string) (response *tse.DeleteEngineResponse, err error)
DeleteNacos 删除nacos实例
func (*RealTencentCloud) DescribeRedis ¶ added in v0.0.2
func (r *RealTencentCloud) DescribeRedis(id string) (redis.DescribeInstancesResponseParams, error)
DescribeRedis 获取redis实例
func (*RealTencentCloud) DestroyRedis ¶ added in v0.0.2
func (r *RealTencentCloud) DestroyRedis(id string, isPrepaid bool) (string, error)
DestroyRedis 销毁redis实例
func (*RealTencentCloud) QueryAccessAddress ¶
func (r *RealTencentCloud) QueryAccessAddress(id string) (*tse.DescribeSREInstanceAccessAddressResponse, error)
QueryAccessAddress 查询访问地址
func (*RealTencentCloud) QueryNacos ¶
func (r *RealTencentCloud) QueryNacos(id string) (response *tse.DescribeSREInstancesResponse, err error)
QueryNacos 查询nacos实例
func (*RealTencentCloud) QueryRedisOrderInfo ¶ added in v0.0.2
func (r *RealTencentCloud) QueryRedisOrderInfo(orderId []string) (*redis.DescribeInstanceDealDetailResponseParams, error)
QueryRedisOrderInfo 查询redis订单信息
func (*RealTencentCloud) QueryRedisTaskInfo ¶ added in v0.0.2
func (r *RealTencentCloud) QueryRedisTaskInfo(taskId uint64) (*redis.DescribeTaskInfoResponseParams, error)
QueryRedisTaskInfo 查询redis实例任务信息
func (*RealTencentCloud) QueryRedisTaskListInfo ¶ added in v0.0.2
func (r *RealTencentCloud) QueryRedisTaskListInfo(id string) (*redis.DescribeTaskListResponseParams, error)
QueryRedisTaskListInfo 查询redis任务列表信息
func (*RealTencentCloud) RedisRecover ¶ added in v0.0.2
func (r *RealTencentCloud) RedisRecover(id string) (*int64, error)
RedisRecover redis实例回收
func (*RealTencentCloud) RedisWanAddress ¶ added in v0.0.2
func (r *RealTencentCloud) RedisWanAddress(id string, enable bool) error
RedisWanAddress 开启或关闭redis公网地址
func (*RealTencentCloud) ResetRedisPassword ¶ added in v0.0.2
func (r *RealTencentCloud) ResetRedisPassword(id string, passwd string) bool
ResetRedisPassword 重置Redis密码
func (*RealTencentCloud) UpdateInternetAccess ¶
func (r *RealTencentCloud) UpdateInternetAccess(id string, isEnabled bool) error
UpdateInternetAccess 开启或关闭公网地址访问
type RedisCloud ¶ added in v0.0.2
type RedisCloud interface { CreateRedis(*appv1.Redis) (redis.CreateInstancesResponseParams, error) DescribeRedis(string) (redis.DescribeInstancesResponseParams, error) RedisWanAddress(string, bool) error ResetRedisPassword(string, string) bool QueryRedisTaskInfo(uint64) (*redis.DescribeTaskInfoResponseParams, error) DestroyRedis(string, bool) (string, error) QueryRedisTaskListInfo(string) (*redis.DescribeTaskListResponseParams, error) QueryRedisOrderInfo([]string) (*redis.DescribeInstanceDealDetailResponseParams, error) RedisRecover(string) (*int64, error) }
type TencentCloud ¶
type TencentCloud interface { NacosCloud }
type VpcNetwork ¶ added in v0.0.2
type VpcNetwork interface { }
Click to show internal directories.
Click to hide internal directories.