backupschedule

package
v1.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 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 {
	// UpdateBackupSchedule implements the control logic for backup schedule
	UpdateBackupSchedule(backupSchedule *v1alpha1.BackupSchedule) error
}

ControlInterface implements the control logic for updating BackupSchedule It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultBackupScheduleControl

func NewDefaultBackupScheduleControl(
	statusUpdater controller.BackupScheduleStatusUpdaterInterface,
	bsManager backup.BackupScheduleManager,
	recorder record.EventRecorder) ControlInterface

NewDefaultBackupScheduleControl returns a new instance of the default implementation BackupScheduleControlInterface that implements the documented semantics for BackupSchedule.

type Controller

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

Controller controls restore.

func NewController

func NewController(
	kubeCli kubernetes.Interface,
	cli versioned.Interface,
	informerFactory informers.SharedInformerFactory,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
) *Controller

NewController creates a backup schedule controller.

func (*Controller) Run

func (bsc *Controller) Run(workers int, stopCh <-chan struct{})

Run runs the backup schedule controller.

Jump to

Keyboard shortcuts

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