tidbinitializer

package
v1.1.0-rc.2.p1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 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 {
	// 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

Jump to

Keyboard shortcuts

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