Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeSeeker ¶
type KubeSeeker struct {
// contains filtered or unexported fields
}
func NewKubeSeeker ¶
func NewKubeSeeker(clientSet *kubernetes.Clientset) *KubeSeeker
func (*KubeSeeker) GetHostInfoByClusterID ¶
func (s *KubeSeeker) GetHostInfoByClusterID(clusterID string) (hosts []*HostInfo, err error)
func (*KubeSeeker) GetHostInfoByHostname ¶
func (s *KubeSeeker) GetHostInfoByHostname(hostname string) (host *HostInfo, err error)
type ReplicationService ¶
type ReplicationService struct {
// contains filtered or unexported fields
}
func NewReplicationService ¶
func NewReplicationService(engine *xorm.Engine, replication config.Replication, seeker Seeker) *ReplicationService
func (*ReplicationService) BuildMasterSlave ¶
func (r *ReplicationService) BuildMasterSlave() (err error)
func (*ReplicationService) CheckSlaveStatus ¶
func (r *ReplicationService) CheckSlaveStatus() (ready bool, err error)
func (*ReplicationService) RefreshMaster ¶
func (r *ReplicationService) RefreshMaster(replication config.Replication)
RefreshMaster when the master changes, refresh master
func (*ReplicationService) Start ¶
func (r *ReplicationService) Start()
Start service of replication
Click to show internal directories.
Click to hide internal directories.