Versions in this module Expand all Collapse all v1 v1.1.0 Jul 19, 2021 Changes in this version + var ERR_STRINGS = map[string]string + var SHARED_ERR_STRINGS = map[string]string + func IsError(message string) bool + func IsFailoverNotOnReplica(err error) bool + func IsGenericError(err error) bool + func IsLoading(err error) bool + func IsNodeIsNotMaster(err error) bool + func Pprint(str interface{}) string + func SortACLFields(acl *RedisACL) + type ByName []RedisACLUser + func (a ByName) Len() int + func (a ByName) Less(i, j int) bool + func (a ByName) Swap(i, j int) + type RedisACL struct + Users []RedisACLUser + func NewRedisACL(rawData string) (*RedisACL, error) + func (r *RedisACL) String() string + type RedisACLChannels struct + AllChannels bool + Patterns []string + ResetChannels bool + func (t *RedisACLChannels) String() string + type RedisACLCommands struct + AllCommands bool + Commands []string + NoCommands bool + RmCommands []string + func (t *RedisACLCommands) String() string + type RedisACLKeys struct + AllKeys bool + Patterns []string + ResetKeys bool + func (t *RedisACLKeys) String() string + type RedisACLPasswords struct + Hashes []string + NoPass bool + Passwords []string + ResetPass bool + RmHashes []string + RmPasswords []string + func (t *RedisACLPasswords) String() string + type RedisACLUser struct + Channels RedisACLChannels + Commands RedisACLCommands + Keys RedisACLKeys + Name string + On bool + Passwords RedisACLPasswords + Reset bool + type RedisAuth struct + User string + type RedisCLI struct + Auth *RedisAuth + Log logr.Logger + func NewRedisCLI(log *logr.Logger) *RedisCLI + func (r *RedisCLI) ACLList(nodeIP string) (*RedisACL, error) + func (r *RedisCLI) ACLLoad(nodeIP string) (string, error) + func (r *RedisCLI) AddFollower(newNodeIP string, nodeIP string, leaderID string) (string, error) + func (r *RedisCLI) ClusterCheck(nodeIP string) (string, error) + func (r *RedisCLI) ClusterCreate(leaderIPs []string) (string, error) + func (r *RedisCLI) ClusterFailover(nodeIP string, opt ...string) (string, error) + func (r *RedisCLI) ClusterForget(nodeIP string, forgetNodeID string) (string, error) + func (r *RedisCLI) ClusterInfo(nodeIP string) (*RedisClusterInfo, error) + func (r *RedisCLI) ClusterMeet(nodeIP string, newNodeIP string, newNodePort string, newNodeBusPort ...string) (string, error) + func (r *RedisCLI) ClusterNodes(nodeIP string) (*RedisClusterNodes, error) + func (r *RedisCLI) ClusterReplicas(nodeIP string, leaderNodeID string) (*RedisClusterNodes, error) + func (r *RedisCLI) ClusterReplicate(nodeIP string, leaderID string) (string, error) + func (r *RedisCLI) ClusterReset(nodeIP string, opt ...string) (string, error) + func (r *RedisCLI) DelNode(nodeIP string, nodeID string) (string, error) + func (r *RedisCLI) Flushall(nodeIP string, opt ...string) (string, error) + func (r *RedisCLI) Info(nodeIP string) (*RedisInfo, error) + func (r *RedisCLI) MyClusterID(nodeIP string) (string, error) + func (r *RedisCLI) Ping(nodeIP string, message ...string) (string, error) + type RedisClusterInfo map[string]string + func NewRedisClusterInfo(rawData string) *RedisClusterInfo + func (r *RedisClusterInfo) IsClusterFail() bool + type RedisClusterNode struct + Addr string + ConfigEpoch string + Flags string + ID string + Leader string + LinkState string + PingRecv string + PingSend string + func (r *RedisClusterNode) IsFailing() bool + type RedisClusterNodes []RedisClusterNode + func NewRedisClusterNodes(rawData string) *RedisClusterNodes + func (r *RedisClusterNodes) GetIDForIP(ip string) string + func (r *RedisClusterNodes) GetIPForID(id string) (string, string) + type RedisInfo struct + CPU map[string]string + Clients map[string]string + Cluster map[string]string + Keyspace map[string]string + Memory map[string]string + Modules map[string]string + Persistence map[string]string + Replication map[string]string + Server map[string]string + Stats map[string]string + func NewRedisInfo(rawInfo string) *RedisInfo + func (r *RedisInfo) GetLoadETA() string + func (r *RedisInfo) GetSyncStatus() string v1.1.0-rc1 Jul 8, 2021