backupschedule

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 17 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) 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 backupSchedules.

func NewController

func NewController(deps *controller.Dependencies) *Controller

NewController creates a backupSchedule controller.

func (*Controller) Name added in v1.4.5

func (c *Controller) Name() string

Name returns backup controller name.

func (*Controller) Run

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

Run runs the backup schedule controller.

type FakeBackupScheduleControl

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

FakeBackupScheduleControl is a fake BackupScheduleControlInterface

func NewFakeBackupScheduleControl

func NewFakeBackupScheduleControl(bsInformer informers.BackupScheduleInformer) *FakeBackupScheduleControl

NewFakeBackupScheduleControl returns a FakeBackupScheduleControl

func (*FakeBackupScheduleControl) SetUpdateBackupScheduleError

func (fbc *FakeBackupScheduleControl) SetUpdateBackupScheduleError(err error, after int)

SetUpdateBackupScheduleError sets the error attributes of updateBackupScheduleTracker

func (*FakeBackupScheduleControl) UpdateBackupSchedule

func (fbc *FakeBackupScheduleControl) UpdateBackupSchedule(bs *v1alpha1.BackupSchedule) error

UpdateBackupSchedule updates the backup to BackupIndexer

Jump to

Keyboard shortcuts

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