Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlInterface ¶
type ControlInterface interface { // ReconcileTidbInitializer implements the reconcile logic of TidbInitializer ReconcileTidbInitializer(ti *v1alpha1.TidbInitializer) error }
ControlInterface reconciles TidbInitializer
func NewDefaultTidbInitializerControl ¶
func NewDefaultTidbInitializerControl(manager member.InitManager) ControlInterface
NewDefaultTidbInitializerControl returns a new instance of the default TidbInitializer ControlInterface
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller syncs TidbInitializer
func NewController ¶
func NewController(deps *controller.Dependencies) *Controller
NewController creates a backup controller.
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{})
Run run workers
type FakeTidbInitializerControl ¶
type FakeTidbInitializerControl struct {
// contains filtered or unexported fields
}
FakeTidbInitializerControl is a fake TidbInitializer ControlInterface
func NewFakeTidbInitializerControl ¶
func NewFakeTidbInitializerControl() *FakeTidbInitializerControl
NewFakeTidbInitializerControl returns a FakeTidbInitializerControl
func (*FakeTidbInitializerControl) ReconcileTidbInitializer ¶
func (tic *FakeTidbInitializerControl) ReconcileTidbInitializer(ti *v1alpha1.TidbInitializer) error
ReconcileTidbInitializer fake ReconcileTidbInitializer
func (*FakeTidbInitializerControl) SetReconcileTidbInitializerError ¶
func (tic *FakeTidbInitializerControl) SetReconcileTidbInitializerError(err error)
SetReconcileTidbInitializerError sets error for TidbInitializerControl
Click to show internal directories.
Click to hide internal directories.