Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlInterface ¶
type ControlInterface interface {
Reconcile(*v1alpha1.TidbDashboard) error
}
ControlInterface abstracts the business logic for TiDBDashboard reconciliation.
func NewTiDBDashboardControl ¶
func NewTiDBDashboardControl( deps *controller.Dependencies, dashboardManager manager.TiDBDashboardManager, tlsCertManager manager.TiDBDashboardManager, reclaimPolicyManager ReclaimPolicyManager, recorder record.EventRecorder, ) ControlInterface
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller composes informer, queue and worker to a single object. It acts as a high-level manager of async event processing for TiDBDashboard crd.
func NewController ¶
func NewController(deps *controller.Dependencies) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(numOfWorkers int, stopCh <-chan struct{})
type FakeTiDBDashboardControl ¶
type FakeTiDBDashboardControl struct {
// contains filtered or unexported fields
}
func (*FakeTiDBDashboardControl) MockReconcile ¶
func (c *FakeTiDBDashboardControl) MockReconcile(reconcile func(*v1alpha1.TidbDashboard) error)
func (*FakeTiDBDashboardControl) Reconcile ¶
func (c *FakeTiDBDashboardControl) Reconcile(td *v1alpha1.TidbDashboard) error
type ReclaimPolicyManager ¶
type ReclaimPolicyManager interface {
SyncTiDBDashboard(dashboard *v1alpha1.TidbDashboard) error
}
ReclaimPolicyManager abstracts the logic of reclaiming the pv object of TiDBDashboard.
Click to show internal directories.
Click to hide internal directories.