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(recorder record.EventRecorder, 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( kubeCli kubernetes.Interface, cli versioned.Interface, genericCli client.Client, informerFactory informers.SharedInformerFactory, kubeInformerFactory kubeinformers.SharedInformerFactory, ) *Controller
NewController creates a backup controller.
func (*Controller) Run ¶
func (tic *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.