tidbngmonitoring

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultTiDBNGMonitoringControl

func NewDefaultTiDBNGMonitoringControl(
	deps *controller.Dependencies,
	ngmMnger manager.TiDBNGMonitoringManager,
	assetMnger manager.TiDBNGMonitoringManager,
	reclaimPolicyManager ReclaimPolicyManager,
	recorder record.EventRecorder,
) *defaultTiDBNGMonitoringControl

Types

type ControlInterface

type ControlInterface interface {
	// Reconcile a TidbNGMonitoring
	Reconcile(*v1alpha1.TidbNGMonitoring) error

	// Update a TidbNGMonitoring
	Update(*v1alpha1.TidbNGMonitoring) (*v1alpha1.TidbNGMonitoring, error)
}

ControlInterface provide function about control TidbNGMonitoring

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller sync TidbNGMonitoring

func NewController

func NewController(deps *controller.Dependencies) *Controller

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

type FakeTiDBNGMonitoringControl

type FakeTiDBNGMonitoringControl struct {
	// contains filtered or unexported fields
}

func (*FakeTiDBNGMonitoringControl) MockReconcile

func (c *FakeTiDBNGMonitoringControl) MockReconcile(reconcile func(*v1alpha1.TidbNGMonitoring) error)

func (*FakeTiDBNGMonitoringControl) MockUpdate

func (*FakeTiDBNGMonitoringControl) Reconcile

func (*FakeTiDBNGMonitoringControl) Update

type ReclaimPolicyManager

type ReclaimPolicyManager interface {
	SyncTiDBNGMonitoring(monitor *v1alpha1.TidbNGMonitoring) error
}

Jump to

Keyboard shortcuts

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