backupscontroller

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ControllerName is the name of this controller
	ControllerName = "backupsController"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller structure

func New

func New(

	k8client kubernetes.Interface,

	myClient ticlientset.Interface,

	backupInformer tiinformers.MysqlBackupInformer,

	clusterInformer tiinformers.MysqlClusterInformer,

	eventRecorder record.EventRecorder,

	namespace string,

	jobInformer batchinformers.JobInformer,

) *Controller

New returns a new controller

func (*Controller) Start

func (c *Controller) Start(workers int, stopCh <-chan struct{}) error

Start method start workers.

func (*Controller) Sync

func (c *Controller) Sync(ctx context.Context, backup *api.MysqlBackup, ns string) error

Sync for add and update.

Jump to

Keyboard shortcuts

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