Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 参考: https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=DDS&api=ListInstances // normal,表示实例正常。 // abnormal,表示实例异常。 // creating,表示实例创建中。 // frozen,表示实例被冻结。 // data_disk_full,表示实例磁盘已满。 // createfail,表示实例创建失败。 // enlargefail,表示实例扩容节点个数失败。 STATUS_MAP = map[string]mongodb.STATUS{ "creating": mongodb.STATUS_PENDING, "normal": mongodb.STATUS_RUNNING, "abnormal": mongodb.STATUS_ERROR, "frozen": mongodb.STATUS_LOCKED, "data_disk_full": mongodb.STATUS_STORAGE_FULL, "createfail": mongodb.STATUS_CREATE_FAILED, "enlargefail": mongodb.STATUS_ERROR, } )
Functions ¶
This section is empty.
Types ¶
type DdsOperator ¶
type DdsOperator struct {
// contains filtered or unexported fields
}
func NewDdsOperator ¶
func NewDdsOperator(client *dds.DdsClient) *DdsOperator
func (*DdsOperator) PageQueryMongo ¶
func (o *DdsOperator) PageQueryMongo(req *provider.QueryRequest) pager.Pager
func (*DdsOperator) Query ¶
func (o *DdsOperator) Query(req *model.ListInstancesRequest) (*mongodb.MongoDBSet, error)
根据指定条件查询实例列表和详情 参考文档: https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=DDS&api=ListInstances
Click to show internal directories.
Click to hide internal directories.