Documentation ¶
Index ¶
- type RedisNode
- type RedisPod
- func (r *RedisPod) Call(cmd ...string) (string, error)
- func (r *RedisPod) ClusterAddNode(newPod *RedisPod, slave bool) (result string, err error)
- func (r *RedisPod) ClusterCheck() error
- func (r *RedisPod) ClusterCreate(replicas int, yes bool, pods ...*RedisPod) (string, error)
- func (r *RedisPod) ClusterDelNode(nodeID string) (result string, err error)
- func (r *RedisPod) ClusterFailover(force, takeover bool) (string, error)
- func (r *RedisPod) ClusterInfo() (string, error)
- func (r *RedisPod) ClusterNodes() (nodes []*RedisNode, err error)
- func (r *RedisPod) ClusterRebalance(weights map[string]string, useEmptyMasters bool, timeout int, simulate bool, ...) (string, error)
- func (r *RedisPod) ClusterSlots() ([]*Slots, error)
- func (r *RedisPod) ConfigGet(key string) (string, error)
- func (r *RedisPod) ConfigSet(key, value string) (string, error)
- func (r *RedisPod) GetIP() string
- func (r *RedisPod) GetName() string
- func (r *RedisPod) GetNodeID() (nodeID string, err error)
- func (r *RedisPod) Ping() (string, error)
- type Slots
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisNode ¶
type RedisNode struct { ID string Pod *corev1.Pod IP string Flags []string MasterID string Epoch int LinkState string Slots []string }
func NewRedisNode ¶
func (*RedisNode) SlotsCount ¶
type RedisPod ¶
type RedisPod struct {
// contains filtered or unexported fields
}
func NewRedisPod ¶
func NewRedisPod(podname string, redisContainerName string, namespace string, port int, clientset *kubernetes.Clientset, restcfg *restclient.Config) (*RedisPod, error)
func NewRedisPodWithPod ¶
func NewRedisPodWithPod(pod *corev1.Pod, redisContainerName string, port int, clientset *kubernetes.Clientset, restcfg *restclient.Config) *RedisPod
func (*RedisPod) ClusterAddNode ¶
func (*RedisPod) ClusterCheck ¶
func (*RedisPod) ClusterCreate ¶
func (*RedisPod) ClusterDelNode ¶
func (*RedisPod) ClusterFailover ¶
func (*RedisPod) ClusterInfo ¶
func (*RedisPod) ClusterNodes ¶
ClusterNodes return redis nodes with pod info
func (*RedisPod) ClusterRebalance ¶
func (*RedisPod) ClusterSlots ¶
Click to show internal directories.
Click to hide internal directories.