Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Restart ¶
func Restart(sentinelStsName, namespace string, clientset *kubernetes.Clientset, restcfg *restclient.Config) error
func Sync ¶
func Sync(slavePodName, masterPodName, containerName, namespace string, port int, clientset *kubernetes.Clientset, restcfg *restclient.Config, wait bool) error
Types ¶
type MasterPod ¶
func (*MasterPod) GetPodName ¶
func (*MasterPod) PrettyPrint ¶
func (m *MasterPod) PrettyPrint()
type RedisPod ¶
type RedisPod struct { Name string Port int Pod *corev1.Pod ContainerName string IP string RoleReported string Flags string PortForwarder *common.PortForwarder // contains filtered or unexported fields }
func NewRedisPod ¶
func NewRedisPod(podName, containerName, namespace string, port int, clientset *kubernetes.Clientset, restcfg *restclient.Config) (*RedisPod, error)
type SentinelPod ¶
type SentinelPod struct {
// contains filtered or unexported fields
}
func NewSentinelPod ¶
func NewSentinelPod(sentinelPodName string, sentinelContainerName string, namespace string, sentinelPort, redisPort int, clientset *kubernetes.Clientset, restcfg *restclient.Config) (*SentinelPod, error)
func (*SentinelPod) Check ¶
func (s *SentinelPod) Check(name string) error
func (*SentinelPod) Failover ¶
func (s *SentinelPod) Failover(name string) error
func (*SentinelPod) Info ¶
func (s *SentinelPod) Info() error
func (*SentinelPod) Master ¶
func (s *SentinelPod) Master(name string) error
func (*SentinelPod) Masters ¶
func (s *SentinelPod) Masters() error
Click to show internal directories.
Click to hide internal directories.