Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlInterface ¶
type ControlInterface interface { // UpdateBackup implements the control logic for VolumeBackup's creation, deletion UpdateBackup(volumeBackup *v1alpha1.VolumeBackup) error // UpdateStatus updates the status for a VolumeBackup, include condition and status info // NOTE(federation): add a separate struct for newStatus as non-federation backup control did if needed UpdateStatus(volumeBackup *v1alpha1.VolumeBackup, newStatus *v1alpha1.VolumeBackupStatus) error }
ControlInterface implements the control logic for updating VolumeBackup It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.
func NewDefaultVolumeBackupControl ¶
func NewDefaultVolumeBackupControl( cli versioned.Interface, backupManager fedvolumebackup.BackupManager) ControlInterface
NewDefaultVolumeBackupControl returns a new instance of the default VolumeBackup ControlInterface implementation.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls VolumeBackup.
func NewController ¶
func NewController(deps *controller.BrFedDependencies) *Controller
NewController creates a VolumeBackup controller.
func (*Controller) Name ¶
func (c *Controller) Name() string
Name returns VolumeBackup controller name.
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{})
Run runs the VolumeBackup controller.
type FakeBackupControl ¶
type FakeBackupControl struct {
// contains filtered or unexported fields
}
FakeBackupControl is a fake BackupControlInterface
func NewFakeBackupControl ¶
func NewFakeBackupControl(backupInformer informers.VolumeBackupInformer) *FakeBackupControl
NewFakeBackupControl returns a FakeBackupControl
func (*FakeBackupControl) SetUpdateBackupError ¶
func (c *FakeBackupControl) SetUpdateBackupError(err error, after int)
SetUpdateBackupError sets the error attributes of updateBackupTracker
func (*FakeBackupControl) UpdateBackup ¶
func (c *FakeBackupControl) UpdateBackup(volumeBackup *v1alpha1.VolumeBackup) error
UpdateBackup adds the VolumeBackup to BackupIndexer
func (*FakeBackupControl) UpdateStatus ¶
func (c *FakeBackupControl) UpdateStatus(_ *v1alpha1.VolumeBackup, newStatus *v1alpha1.VolumeBackupStatus) error
UpdateStatus updates the status for a VolumeBackup, include condition and status info