Documentation ¶
Index ¶
- Variables
- type CDBOperator
- func (o *CDBOperator) DescribeRds(ctx context.Context, r *provider.DescribeRequest) (*cmdbRds.Rds, error)
- func (o *CDBOperator) PageQueryRds(req *provider.QueryRequest) pager.Pager
- func (o *CDBOperator) ParsePAY_MODE(id *int64) string
- func (o *CDBOperator) ParseType(id *int64) string
- func (o *CDBOperator) Query(ctx context.Context, req *cdb.DescribeDBInstancesRequest) (*rds.RdsSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STATUS_MAP = map[int64]rds.STATUS{ 0: rds.STATUS_PENDING, 1: rds.STATUS_RUNNING, 4: rds.STATUS_ISOLATIONING, 5: rds.STATUS_ISOLATIONED, } )
实例状态,可取值: + 0 - 创建中 + 1 - 运行中 + 4 - 正在进行隔离操作 + 5 - 隔离中(可在回收站恢复开机)
View Source
var ( TASK_STATUS_MAP = map[int64]rds.STATUS{ 1: rds.STATUS_UPGRADING, 2: rds.STATUS_IMPORTING, 6: rds.STATUS_RESTORING, 10: rds.STATUS_REBOOTING, 12: rds.STATUS_TRANSING, 14: rds.STATUS_GUARD_CREATING, 15: rds.STATUS_UPGRADING, 16: rds.STATUS_UPGRADING, 17: rds.STATUS_UPGRADING, 4: rds.STATUS_NET_CHANGING, 7: rds.STATUS_NET_CHANGING, 3: rds.STATUS_MODIFYING, 5: rds.STATUS_MODIFYING, 8: rds.STATUS_MODIFYING, 9: rds.STATUS_MODIFYING, 13: rds.STATUS_MODIFYING, 19: rds.STATUS_MODIFYING, } )
+ 3 - 开放Slave中 + 5 - 批量操作执行中 + 8 - 密码修改中 + 9 - 实例名修改中 + 13 - 删除库表中 + 19 - 参数设置待执行
Functions ¶
This section is empty.
Types ¶
type CDBOperator ¶
type CDBOperator struct {
// contains filtered or unexported fields
}
func NewCDBOperator ¶
func NewCDBOperator(client *cdb.Client) *CDBOperator
func (*CDBOperator) DescribeRds ¶
func (o *CDBOperator) DescribeRds(ctx context.Context, r *provider.DescribeRequest) ( *cmdbRds.Rds, error)
func (*CDBOperator) PageQueryRds ¶
func (o *CDBOperator) PageQueryRds(req *provider.QueryRequest) pager.Pager
func (*CDBOperator) ParsePAY_MODE ¶
func (o *CDBOperator) ParsePAY_MODE(id *int64) string
付费类型,可能的返回值:0-包年包月;1-包年包月
func (*CDBOperator) ParseType ¶
func (o *CDBOperator) ParseType(id *int64) string
实例类型,可能的返回值:1-主实例;2-灾备实例;3-只读实例
func (*CDBOperator) Query ¶
func (o *CDBOperator) Query(ctx context.Context, req *cdb.DescribeDBInstancesRequest) (*rds.RdsSet, error)
查询实例列表 (CDB) 参考: https://console.cloud.tencent.com/api/explorer?Product=cdb&Version=2017-03-20&Action=DescribeDBInstances&SignVersion=
Click to show internal directories.
Click to hide internal directories.