tidbmonitor

package
v1.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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(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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL