tidbdashboard

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 23 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 {
	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

type ReclaimPolicyManager

type ReclaimPolicyManager interface {
	SyncTiDBDashboard(dashboard *v1alpha1.TidbDashboard) error
}

ReclaimPolicyManager abstracts the logic of reclaiming the pv object of TiDBDashboard.

Jump to

Keyboard shortcuts

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