client

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	core.JDCloudClient
}

func NewRedisClient

func NewRedisClient(credential *core.Credential) *RedisClient

func (*RedisClient) CreateCacheInstance

创建一个指定配置的缓存Redis实例:可选择主从版或集群版,每种类型又分为多种规格(按CPU核数、内存容量、磁盘容量、带宽等划分),具体可参考产品规格代码,https://docs.jdcloud.com/cn/jcs-for-redis/specifications

func (*RedisClient) DeleteCacheInstance

删除按配置计费、或包年包月已到期的缓存Redis实例,包年包月未到期不可删除。

只有处于运行running或者错误error状态才可以删除,其余状态不可以删除。 白名单用户不能删除包年包月已到期的缓存Redis实例。

func (*RedisClient) DescribeCacheInstance

查询缓存Redis实例的详细信息

func (*RedisClient) DescribeCacheInstances

查询缓存Redis实例列表,可分页、可排序、可搜索、可过滤

func (*RedisClient) DescribeInstanceClass

查询某区域下的缓存Redis实例规格列表

func (*RedisClient) DescribeUserQuota

查询账户的缓存Redis配额信息

func (*RedisClient) ModifyCacheInstanceAttribute

修改缓存Redis实例的资源名称或描述,二者至少选一

func (*RedisClient) ModifyCacheInstanceClass

变更缓存Redis实例规格(变配),只能变更运行状态的实例规格,变更的规格不能与之前的相同。

预付费用户,从集群版变配到主从版,新规格的内存大小要大于老规格的内存大小,从主从版到集群版,新规格的内存大小要不小于老规格的内存大小。

func (*RedisClient) ResetCacheInstancePassword

重置缓存Redis实例的密码,可为空

func (*RedisClient) SetConfig

func (c *RedisClient) SetConfig(config *core.Config)

func (*RedisClient) SetLogger

func (c *RedisClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

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