tidbmonitor

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 24 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(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)

Jump to

Keyboard shortcuts

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