Documentation ¶
Index ¶
- Variables
- type RedisOperator
- func (o *RedisOperator) DescribeRedis(ctx context.Context, r *provider.DescribeRequest) (*cmdbRedis.Redis, error)
- func (o *RedisOperator) PageQueryRedis(req *provider.QueryRequest) pager.Pager
- func (o *RedisOperator) ParseType(t *int64) string
- func (o *RedisOperator) Query(ctx context.Context, req *redis.DescribeInstancesRequest) (*cmdbRedis.Set, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STATUS_MAP = map[int64]redis.STATUS{ 0: redis.STATUS_PENDING, 1: redis.STATUS_PENDING, 2: redis.STATUS_RUNNING, -2: redis.STATUS_ISOLATIONED, -3: redis.STATUS_DESTROYED, } )
+ 0-待初始化 + 1-流程中 + 2-运行中 + -2-已隔离 + -3-待删除
Functions ¶
This section is empty.
Types ¶
type RedisOperator ¶
type RedisOperator struct {
// contains filtered or unexported fields
}
func NewRedisOperator ¶
func NewRedisOperator(client *redis.Client) *RedisOperator
func (*RedisOperator) DescribeRedis ¶
func (o *RedisOperator) DescribeRedis(ctx context.Context, r *provider.DescribeRequest) ( *cmdbRedis.Redis, error)
func (*RedisOperator) PageQueryRedis ¶
func (o *RedisOperator) PageQueryRedis(req *provider.QueryRequest) pager.Pager
func (*RedisOperator) ParseType ¶
func (o *RedisOperator) ParseType(t *int64) string
func (*RedisOperator) Query ¶
func (o *RedisOperator) Query(ctx context.Context, req *redis.DescribeInstancesRequest) (*cmdbRedis.Set, error)
查询Redis实例列表 参考: https://console.cloud.tencent.com/api/explorer?Product=redis&Version=2018-04-12&Action=DescribeInstances&SignVersion=
Click to show internal directories.
Click to hide internal directories.