Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 0-待初始化,1-流程执行中,2-实例有效,-2-已隔离(包年包月实例),-3-已隔离(按量计费实例) // 参考文档: https://console.cloud.tencent.com/api/explorer?Product=mongodb&Version=2019-07-25&Action=DescribeDBInstances&SignVersion= STATUS_MAP = map[int64]mongodb.STATUS{ 0: mongodb.STATUS_PENDING, 1: mongodb.STATUS_PENDING, 2: mongodb.STATUS_RUNNING, -2: mongodb.STATUS_ISOLATIONED, -3: mongodb.STATUS_ISOLATIONED, } )
Functions ¶
func ParseClusterType ¶
Types ¶
type MongoOperator ¶
type MongoOperator struct {
// contains filtered or unexported fields
}
func NewMongoOperator ¶
func NewMongoOperator(client *mongodb.Client) *MongoOperator
func (*MongoOperator) PageQueryMongoDB ¶
func (o *MongoOperator) PageQueryMongoDB(req *provider.QueryRequest) pager.Pager
func (*MongoOperator) Query ¶
func (o *MongoOperator) Query(ctx context.Context, req *mongo.DescribeDBInstancesRequest) (*mongodb.MongoDBSet, error)
查询实例列表 https://console.cloud.tencent.com/api/explorer?Product=mongodb&Version=2019-07-25&Action=DescribeDBInstances&SignVersion= 查询实例客户端连接信息 https://console.cloud.tencent.com/api/explorer?Product=mongodb&Version=2019-07-25&Action=DescribeClientConnections
Click to show internal directories.
Click to hide internal directories.