dds

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 15 Imported by: 0

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

根据指定条件查询实例列表和详情 参考文档: https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=DDS&api=ListInstances

Jump to

Keyboard shortcuts

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