fedvolumebackupschedule

package
v1.6.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 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 VolumeBackupSchedule
	UpdateBackupSchedule(volumeBackupSchedule *v1alpha1.VolumeBackupSchedule) error
}

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

func NewDefaultVolumeBackupScheduleControl

func NewDefaultVolumeBackupScheduleControl(
	statusUpdater controller.VolumeBackupScheduleStatusUpdaterInterface,
	backupScheduleManager fedvolumebackup.BackupScheduleManager) ControlInterface

NewDefaultVolumeBackupScheduleControl returns a new instance of the default VolumeBackupSchedule ControlInterface implementation.

type Controller

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

Controller controls VolumeBackupSchedule.

func NewController

func NewController(deps *controller.BrFedDependencies) *Controller

NewController creates a VolumeBackupSchedule controller.

func (*Controller) Name

func (c *Controller) Name() string

Name returns VolumeBackupSchedule controller name.

func (*Controller) Run

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

Run runs the VolumeBackupSchedule controller.

type FakeBackupScheduleControl

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

FakeBackupScheduleControl is a fake BackupScheduleControlInterface

func NewFakeBackupScheduleControl

func NewFakeBackupScheduleControl(bsInformer informers.VolumeBackupScheduleInformer) *FakeBackupScheduleControl

NewFakeBackupScheduleControl returns a FakeBackupScheduleControl

func (*FakeBackupScheduleControl) SetUpdateBackupError

func (c *FakeBackupScheduleControl) SetUpdateBackupError(err error, after int)

SetUpdateBackupError sets the error attributes of updateBackupTracker

func (*FakeBackupScheduleControl) UpdateBackupSchedule

func (c *FakeBackupScheduleControl) UpdateBackupSchedule(volumeBackupSchedule *v1alpha1.VolumeBackupSchedule) error

UpdateBackupSchedule updates the VolumeBackupSchedule to BackupScheduleIndexer

Jump to

Keyboard shortcuts

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