Documentation ¶
Index ¶
- type RedisClient
- func (c *RedisClient) CreateBackup(request *redis.CreateBackupRequest) (*redis.CreateBackupResponse, error)
- func (c *RedisClient) CreateCacheAnalysis(request *redis.CreateCacheAnalysisRequest) (*redis.CreateCacheAnalysisResponse, error)
- func (c *RedisClient) CreateCacheInstance(request *redis.CreateCacheInstanceRequest) (*redis.CreateCacheInstanceResponse, error)
- func (c *RedisClient) DeleteCacheInstance(request *redis.DeleteCacheInstanceRequest) (*redis.DeleteCacheInstanceResponse, error)
- func (c *RedisClient) DescribeAnalysisTime(request *redis.DescribeAnalysisTimeRequest) (*redis.DescribeAnalysisTimeResponse, error)
- func (c *RedisClient) DescribeBackupPolicy(request *redis.DescribeBackupPolicyRequest) (*redis.DescribeBackupPolicyResponse, error)
- func (c *RedisClient) DescribeBackups(request *redis.DescribeBackupsRequest) (*redis.DescribeBackupsResponse, error)
- func (c *RedisClient) DescribeCacheAnalysisList(request *redis.DescribeCacheAnalysisListRequest) (*redis.DescribeCacheAnalysisListResponse, error)
- func (c *RedisClient) DescribeCacheAnalysisResult(request *redis.DescribeCacheAnalysisResultRequest) (*redis.DescribeCacheAnalysisResultResponse, error)
- func (c *RedisClient) DescribeCacheInstance(request *redis.DescribeCacheInstanceRequest) (*redis.DescribeCacheInstanceResponse, error)
- func (c *RedisClient) DescribeCacheInstances(request *redis.DescribeCacheInstancesRequest) (*redis.DescribeCacheInstancesResponse, error)
- func (c *RedisClient) DescribeClientIpDetail(request *redis.DescribeClientIpDetailRequest) (*redis.DescribeClientIpDetailResponse, error)
- func (c *RedisClient) DescribeClientList(request *redis.DescribeClientListRequest) (*redis.DescribeClientListResponse, error)
- func (c *RedisClient) DescribeClusterInfo(request *redis.DescribeClusterInfoRequest) (*redis.DescribeClusterInfoResponse, error)
- func (c *RedisClient) DescribeDownloadUrl(request *redis.DescribeDownloadUrlRequest) (*redis.DescribeDownloadUrlResponse, error)
- func (c *RedisClient) DescribeInstanceClass(request *redis.DescribeInstanceClassRequest) (*redis.DescribeInstanceClassResponse, error)
- func (c *RedisClient) DescribeInstanceConfig(request *redis.DescribeInstanceConfigRequest) (*redis.DescribeInstanceConfigResponse, error)
- func (c *RedisClient) DescribeIpWhiteList(request *redis.DescribeIpWhiteListRequest) (*redis.DescribeIpWhiteListResponse, error)
- func (c *RedisClient) DescribeSlowLog(request *redis.DescribeSlowLogRequest) (*redis.DescribeSlowLogResponse, error)
- func (c *RedisClient) DescribeSpecConfig(request *redis.DescribeSpecConfigRequest) (*redis.DescribeSpecConfigResponse, error)
- func (c *RedisClient) DescribeUserQuota(request *redis.DescribeUserQuotaRequest) (*redis.DescribeUserQuotaResponse, error)
- func (c *RedisClient) DisableLogger()
- func (c *RedisClient) ModifyAnalysisTime(request *redis.ModifyAnalysisTimeRequest) (*redis.ModifyAnalysisTimeResponse, error)
- func (c *RedisClient) ModifyBackupPolicy(request *redis.ModifyBackupPolicyRequest) (*redis.ModifyBackupPolicyResponse, error)
- func (c *RedisClient) ModifyCacheInstanceAttribute(request *redis.ModifyCacheInstanceAttributeRequest) (*redis.ModifyCacheInstanceAttributeResponse, error)
- func (c *RedisClient) ModifyCacheInstanceClass(request *redis.ModifyCacheInstanceClassRequest) (*redis.ModifyCacheInstanceClassResponse, error)
- func (c *RedisClient) ModifyInstanceConfig(request *redis.ModifyInstanceConfigRequest) (*redis.ModifyInstanceConfigResponse, error)
- func (c *RedisClient) ModifyIpWhiteList(request *redis.ModifyIpWhiteListRequest) (*redis.ModifyIpWhiteListResponse, error)
- func (c *RedisClient) ResetCacheInstancePassword(request *redis.ResetCacheInstancePasswordRequest) (*redis.ResetCacheInstancePasswordResponse, error)
- func (c *RedisClient) RestoreInstance(request *redis.RestoreInstanceRequest) (*redis.RestoreInstanceResponse, error)
- func (c *RedisClient) SetConfig(config *core.Config)
- func (c *RedisClient) SetLogger(logger core.Logger)
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
func (c *RedisClient) CreateCacheAnalysis(request *redis.CreateCacheAnalysisRequest) (*redis.CreateCacheAnalysisResponse, error)
创建缓存分析任务,一天最多创建12次分析任务
func (*RedisClient) CreateCacheInstance ¶
func (c *RedisClient) CreateCacheInstance(request *redis.CreateCacheInstanceRequest) (*redis.CreateCacheInstanceResponse, error)
创建一个指定配置的缓存Redis实例:可选择版本、类型、规格(按CPU核数、内存容量、磁盘容量、带宽等划分),自定义分片规格可通过describeSpecConfig接口获取,老规格代码请参考,https://docs.jdcloud.com/cn/jcs-for-redis/specifications
func (*RedisClient) DeleteCacheInstance ¶
func (c *RedisClient) DeleteCacheInstance(request *redis.DeleteCacheInstanceRequest) (*redis.DeleteCacheInstanceResponse, error)
删除按配置计费、或包年包月已到期的缓存Redis实例,包年包月未到期不可删除。
只有处于运行running或者错误error状态才可以删除,其余状态不可以删除。 白名单用户不能删除包年包月已到期的缓存Redis实例。
func (*RedisClient) DescribeAnalysisTime ¶ added in v1.20.0
func (c *RedisClient) DescribeAnalysisTime(request *redis.DescribeAnalysisTimeRequest) (*redis.DescribeAnalysisTimeResponse, error)
获取自动缓存分析时间
func (*RedisClient) DescribeBackupPolicy ¶ added in v1.12.0
func (c *RedisClient) DescribeBackupPolicy(request *redis.DescribeBackupPolicyRequest) (*redis.DescribeBackupPolicyResponse, error)
查询缓存Redis实例的自动备份策略
func (*RedisClient) DescribeBackups ¶ added in v1.12.0
func (c *RedisClient) DescribeBackups(request *redis.DescribeBackupsRequest) (*redis.DescribeBackupsResponse, error)
查询缓存Redis实例的备份任务(文件)列表,可分页、可指定起止时间或备份任务ID
func (*RedisClient) DescribeCacheAnalysisList ¶ added in v1.20.0
func (c *RedisClient) DescribeCacheAnalysisList(request *redis.DescribeCacheAnalysisListRequest) (*redis.DescribeCacheAnalysisListResponse, error)
查询缓存分析任务列表
func (*RedisClient) DescribeCacheAnalysisResult ¶ added in v1.20.0
func (c *RedisClient) DescribeCacheAnalysisResult(request *redis.DescribeCacheAnalysisResultRequest) (*redis.DescribeCacheAnalysisResultResponse, error)
查询缓存分析任务详情,最多查询到30天前的数据
func (*RedisClient) DescribeCacheInstance ¶
func (c *RedisClient) DescribeCacheInstance(request *redis.DescribeCacheInstanceRequest) (*redis.DescribeCacheInstanceResponse, error)
查询缓存Redis实例的详细信息
func (*RedisClient) DescribeCacheInstances ¶
func (c *RedisClient) DescribeCacheInstances(request *redis.DescribeCacheInstancesRequest) (*redis.DescribeCacheInstancesResponse, error)
查询缓存Redis实例列表,可分页、可排序、可搜索、可过滤
func (*RedisClient) DescribeClientIpDetail ¶ added in v1.44.0
func (c *RedisClient) DescribeClientIpDetail(request *redis.DescribeClientIpDetailRequest) (*redis.DescribeClientIpDetailResponse, error)
查询指定客户端IP的连接详细信息
func (*RedisClient) DescribeClientList ¶ added in v1.44.0
func (c *RedisClient) DescribeClientList(request *redis.DescribeClientListRequest) (*redis.DescribeClientListResponse, error)
查询当前客户端IP列表
func (*RedisClient) DescribeClusterInfo ¶ added in v1.10.0
func (c *RedisClient) DescribeClusterInfo(request *redis.DescribeClusterInfoRequest) (*redis.DescribeClusterInfoResponse, error)
查询Redis实例的集群内部信息
func (*RedisClient) DescribeDownloadUrl ¶ added in v1.12.0
func (c *RedisClient) DescribeDownloadUrl(request *redis.DescribeDownloadUrlRequest) (*redis.DescribeDownloadUrlResponse, error)
获取缓存Redis实例的备份文件临时下载地址(1个小时有效期)
func (*RedisClient) DescribeInstanceClass ¶
func (c *RedisClient) DescribeInstanceClass(request *redis.DescribeInstanceClassRequest) (*redis.DescribeInstanceClassResponse, error)
查询缓存Redis实例的规格列表
func (*RedisClient) DescribeInstanceConfig ¶ added in v1.12.0
func (c *RedisClient) DescribeInstanceConfig(request *redis.DescribeInstanceConfigRequest) (*redis.DescribeInstanceConfigResponse, error)
查看缓存Redis实例的当前配置参数
func (*RedisClient) DescribeIpWhiteList ¶ added in v1.20.0
func (c *RedisClient) DescribeIpWhiteList(request *redis.DescribeIpWhiteListRequest) (*redis.DescribeIpWhiteListResponse, error)
获取Redis实例的IP白名单(只有白名单内的IP、网络才能访问该实例)
func (*RedisClient) DescribeSlowLog ¶ added in v1.13.0
func (c *RedisClient) DescribeSlowLog(request *redis.DescribeSlowLogRequest) (*redis.DescribeSlowLogResponse, error)
获取缓存Redis实例的慢查询日志,可分页、可搜索
func (*RedisClient) DescribeSpecConfig ¶ added in v1.20.0
func (c *RedisClient) DescribeSpecConfig(request *redis.DescribeSpecConfigRequest) (*redis.DescribeSpecConfigResponse, error)
查询缓存Redis实例的规格配置信息
func (*RedisClient) DescribeUserQuota ¶
func (c *RedisClient) DescribeUserQuota(request *redis.DescribeUserQuotaRequest) (*redis.DescribeUserQuotaResponse, error)
查询账户的缓存Redis配额信息
func (*RedisClient) DisableLogger ¶ added in v1.13.0
func (c *RedisClient) DisableLogger()
func (*RedisClient) ModifyAnalysisTime ¶ added in v1.20.0
func (c *RedisClient) ModifyAnalysisTime(request *redis.ModifyAnalysisTimeRequest) (*redis.ModifyAnalysisTimeResponse, error)
设置自动缓存分析时间
func (*RedisClient) ModifyBackupPolicy ¶ added in v1.12.0
func (c *RedisClient) ModifyBackupPolicy(request *redis.ModifyBackupPolicyRequest) (*redis.ModifyBackupPolicyResponse, error)
开启或更新缓存Redis实例的自动备份策略,可修改备份周期和备份时间
func (*RedisClient) ModifyCacheInstanceAttribute ¶
func (c *RedisClient) ModifyCacheInstanceAttribute(request *redis.ModifyCacheInstanceAttributeRequest) (*redis.ModifyCacheInstanceAttributeResponse, error)
修改缓存Redis实例的资源名称或描述,二者至少选一
func (*RedisClient) ModifyCacheInstanceClass ¶
func (c *RedisClient) ModifyCacheInstanceClass(request *redis.ModifyCacheInstanceClassRequest) (*redis.ModifyCacheInstanceClassResponse, error)
变更缓存Redis实例规格(变配),实例运行时可以变配,新规格不能与之前的老规格相同,新规格内存大小不能小于实例的已使用内存
func (*RedisClient) ModifyInstanceConfig ¶ added in v1.12.0
func (c *RedisClient) ModifyInstanceConfig(request *redis.ModifyInstanceConfigRequest) (*redis.ModifyInstanceConfigResponse, error)
修改缓存Redis实例的配置参数,支持部分配置参数修改
func (*RedisClient) ModifyIpWhiteList ¶ added in v1.20.0
func (c *RedisClient) ModifyIpWhiteList(request *redis.ModifyIpWhiteListRequest) (*redis.ModifyIpWhiteListResponse, error)
修改Redis实例的IP白名单
func (*RedisClient) ResetCacheInstancePassword ¶
func (c *RedisClient) ResetCacheInstancePassword(request *redis.ResetCacheInstancePasswordRequest) (*redis.ResetCacheInstancePasswordResponse, error)
修改缓存Redis实例的密码,可为空
func (*RedisClient) RestoreInstance ¶ added in v1.12.0
func (c *RedisClient) RestoreInstance(request *redis.RestoreInstanceRequest) (*redis.RestoreInstanceResponse, error)
恢复缓存Redis实例的某次备份
func (*RedisClient) SetConfig ¶
func (c *RedisClient) SetConfig(config *core.Config)
func (*RedisClient) SetLogger ¶
func (c *RedisClient) SetLogger(logger core.Logger)