tidbmonitor

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 20 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

	// 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 tidbmonitor controller.

func (*Controller) Name added in v1.4.5

func (c *Controller) Name() string

Name returns the name of the 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

Jump to

Keyboard shortcuts

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