Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlInterface ¶
type ControlInterface interface { // ReconcileTidbMonitor implements the reconcile logic of TidbMonitor ReconcileTidbMonitor(tm *v1alpha1.TidbMonitor) error }
ControlInterface reconciles TidbMonitor
func NewDefaultTidbMonitorControl ¶
func NewDefaultTidbMonitorControl(recorder record.EventRecorder, ctrl controller.TypedControlInterface, monitorManager monitor.MonitorManager) ControlInterface
NewDefaultTidbMonitorControl returns a new instance of the default TidbMonitor ControlInterface
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller syncs TidbMonitor
func NewController ¶
func NewController( kubeCli kubernetes.Interface, genericCli client.Client, cli versioned.Interface, informerFactory informers.SharedInformerFactory, kubeInformerFactory kubeinformers.SharedInformerFactory, ) *Controller
NewController creates a backup controller.
func (*Controller) Run ¶
func (tmc *Controller) Run(workers int, stopCh <-chan struct{})
type FakeTidbMonitorControl ¶
type FakeTidbMonitorControl struct {
// contains filtered or unexported fields
}
FakeTidbMonitorControl is a fake TidbMonitor ControlInterface
func NewFakeTidbMonitorControl ¶
func NewFakeTidbMonitorControl() *FakeTidbMonitorControl
NewFakeTidbMonitorControl returns a FakeBackupScheduleControl
func (*FakeTidbMonitorControl) ReconcileTidbMonitor ¶
func (tmc *FakeTidbMonitorControl) ReconcileTidbMonitor(tm *v1alpha1.TidbMonitor) error
CreateBackup adds the backup to BackupIndexer
func (*FakeTidbMonitorControl) SetReconcileTidbMonitorError ¶
func (tmc *FakeTidbMonitorControl) SetReconcileTidbMonitorError(err error)
Click to show internal directories.
Click to hide internal directories.