backupschedule

package
v0.0.0-...-9aebcc3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 25 Imported by: 12

Documentation

Index

Constants

View Source
const (
	// CronScheduleValidationError is used as part of the Event 'reason' when a
	// BackupSchedule fails validation due to an invalid Cron schedule string.
	CronScheduleValidationError = "CronScheduleValidationError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller watches the Kubernetes API for changes to BackupSchedule resources.

func NewController

func NewController(
	opClient mysqlop.Interface,
	kubeClient kubernetes.Interface,
	backupScheduleInformer opinformers.BackupScheduleInformer,
	syncPeriod time.Duration,
	namespace string,
) *Controller

NewController creates a new BackupScheduleController.

func (*Controller) Run

func (controller *Controller) Run(ctx context.Context, numWorkers int) error

Run is a blocking function that runs the specified number of worker goroutines to process items in the work queue.

Jump to

Keyboard shortcuts

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