tencentcloud

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 (*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

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

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 {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL