Documentation ¶
Index ¶
- func NewDefaultTiDBNGMonitoringControl(deps *controller.Dependencies, ngmMnger manager.TiDBNGMonitoringManager, ...) *defaultTiDBNGMonitoringControl
- type ControlInterface
- type Controller
- type FakeTiDBNGMonitoringControl
- func (c *FakeTiDBNGMonitoringControl) MockReconcile(reconcile func(*v1alpha1.TidbNGMonitoring) error)
- func (c *FakeTiDBNGMonitoringControl) MockUpdate(update func(*v1alpha1.TidbNGMonitoring) (*v1alpha1.TidbNGMonitoring, error))
- func (c *FakeTiDBNGMonitoringControl) Reconcile(tngm *v1alpha1.TidbNGMonitoring) error
- func (c *FakeTiDBNGMonitoringControl) Update(tngm *v1alpha1.TidbNGMonitoring) (*v1alpha1.TidbNGMonitoring, error)
- type ReclaimPolicyManager
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 (c *FakeTiDBNGMonitoringControl) MockUpdate(update func(*v1alpha1.TidbNGMonitoring) (*v1alpha1.TidbNGMonitoring, error))
func (*FakeTiDBNGMonitoringControl) Reconcile ¶
func (c *FakeTiDBNGMonitoringControl) Reconcile(tngm *v1alpha1.TidbNGMonitoring) error
func (*FakeTiDBNGMonitoringControl) Update ¶
func (c *FakeTiDBNGMonitoringControl) Update(tngm *v1alpha1.TidbNGMonitoring) (*v1alpha1.TidbNGMonitoring, error)
type ReclaimPolicyManager ¶
type ReclaimPolicyManager interface {
SyncTiDBNGMonitoring(monitor *v1alpha1.TidbNGMonitoring) error
}
Click to show internal directories.
Click to hide internal directories.