client

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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) CreateBackup added in v1.12.0

func (c *RedisClient) CreateBackup(request *redis.CreateBackupRequest) (*redis.CreateBackupResponse, error)

创建并执行缓存Redis实例的备份任务,只能为手动备份,可设置备份文件名称

func (*RedisClient) CreateCacheAnalysis added in v1.20.0

创建缓存分析任务,一天最多创建12次分析任务

func (*RedisClient) CreateCacheInstance

创建一个指定配置的缓存Redis实例:可选择版本、类型、规格(按CPU核数、内存容量、磁盘容量、带宽等划分),自定义分片规格可通过describeSpecConfig接口获取,老规格代码请参考,https://docs.jdcloud.com/cn/jcs-for-redis/specifications

func (*RedisClient) DeleteCacheInstance

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

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

func (*RedisClient) DescribeAnalysisTime added in v1.20.0

获取自动缓存分析时间

func (*RedisClient) DescribeBackupPolicy added in v1.12.0

查询缓存Redis实例的自动备份策略

func (*RedisClient) DescribeBackups added in v1.12.0

查询缓存Redis实例的备份任务(文件)列表,可分页、可指定起止时间或备份任务ID

func (*RedisClient) DescribeCacheAnalysisList added in v1.20.0

查询缓存分析任务列表

func (*RedisClient) DescribeCacheAnalysisResult added in v1.20.0

查询缓存分析任务详情,最多查询到30天前的数据

func (*RedisClient) DescribeCacheInstance

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

func (*RedisClient) DescribeCacheInstances

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

func (*RedisClient) DescribeClientIpDetail added in v1.44.0

查询指定客户端IP的连接详细信息

func (*RedisClient) DescribeClientList added in v1.44.0

查询当前客户端IP列表

func (*RedisClient) DescribeClusterInfo added in v1.10.0

查询Redis实例的集群内部信息

func (*RedisClient) DescribeDownloadUrl added in v1.12.0

获取缓存Redis实例的备份文件临时下载地址(1个小时有效期)

func (*RedisClient) DescribeInstanceClass

查询缓存Redis实例的规格列表

func (*RedisClient) DescribeInstanceConfig added in v1.12.0

查看缓存Redis实例的当前配置参数

func (*RedisClient) DescribeIpWhiteList added in v1.20.0

获取Redis实例的IP白名单(只有白名单内的IP、网络才能访问该实例)

func (*RedisClient) DescribeSlowLog added in v1.13.0

获取缓存Redis实例的慢查询日志,可分页、可搜索

func (*RedisClient) DescribeSpecConfig added in v1.20.0

查询缓存Redis实例的规格配置信息

func (*RedisClient) DescribeUserQuota

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

func (*RedisClient) DisableLogger added in v1.13.0

func (c *RedisClient) DisableLogger()

func (*RedisClient) ModifyAnalysisTime added in v1.20.0

设置自动缓存分析时间

func (*RedisClient) ModifyBackupPolicy added in v1.12.0

开启或更新缓存Redis实例的自动备份策略,可修改备份周期和备份时间

func (*RedisClient) ModifyCacheInstanceAttribute

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

func (*RedisClient) ModifyCacheInstanceClass

变更缓存Redis实例规格(变配),实例运行时可以变配,新规格不能与之前的老规格相同,新规格内存大小不能小于实例的已使用内存

func (*RedisClient) ModifyInstanceConfig added in v1.12.0

修改缓存Redis实例的配置参数,支持部分配置参数修改

func (*RedisClient) ModifyIpWhiteList added in v1.20.0

修改Redis实例的IP白名单

func (*RedisClient) ResetCacheInstancePassword

修改缓存Redis实例的密码,可为空

func (*RedisClient) RestoreInstance added in v1.12.0

恢复缓存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