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 // Update tidbmonitor status UpdateTidbMonitor(*v1alpha1.TidbMonitor) (*v1alpha1.TidbMonitor, error) }
ControlInterface reconciles TidbMonitor
func NewDefaultTidbMonitorControl ¶
func NewDefaultTidbMonitorControl(deps *controller.Dependencies, 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(deps *controller.Dependencies) *Controller
NewController creates a backup controller.
func (*Controller) Run ¶
func (c *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)
func (*FakeTidbMonitorControl) UpdateTidbMonitor ¶ added in v1.2.0
func (tmc *FakeTidbMonitorControl) UpdateTidbMonitor(tm *v1alpha1.TidbMonitor) (*v1alpha1.TidbMonitor, error)
CreateBackup adds the backup to BackupIndexer
Click to show internal directories.
Click to hide internal directories.