fedvolumerestore

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 21 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 {
	// UpdateRestore implements the control logic for VolumeRestore's creation, deletion
	UpdateRestore(volumeRestore *v1alpha1.VolumeRestore) error
	// UpdateStatus updates the status for a VolumeRestore
	UpdateStatus(volumeRestore *v1alpha1.VolumeRestore, newStatus *v1alpha1.VolumeRestoreStatus) error
}

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

func NewDefaultVolumeRestoreControl

func NewDefaultVolumeRestoreControl(
	cli versioned.Interface,
	restoreManager fedvolumebackup.RestoreManager) ControlInterface

NewDefaultVolumeRestoreControl returns a new instance of the default VolumeRestore ControlInterface implementation.

type Controller

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

Controller controls VolumeRestore.

func NewController

func NewController(deps *controller.BrFedDependencies) *Controller

NewController creates a VolumeRestore controller.

func (*Controller) Name

func (c *Controller) Name() string

Name returns VolumeRestore controller name.

func (*Controller) Run

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

Run runs the VolumeRestore controller.

type FakeRestoreControl

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

FakeRestoreControl is a fake RestoreControlInterface

func NewFakeRestoreControl

func NewFakeRestoreControl(restoreInformer informers.VolumeRestoreInformer) *FakeRestoreControl

NewFakeRestoreControl returns a FakeRestoreControl

func (*FakeRestoreControl) SetUpdateRestoreError

func (c *FakeRestoreControl) SetUpdateRestoreError(err error, after int)

SetUpdateRestoreError sets the error attributes of updateRestoreTracker

func (*FakeRestoreControl) UpdateRestore

func (c *FakeRestoreControl) UpdateRestore(volumeRestore *v1alpha1.VolumeRestore) error

UpdateRestore adds the VolumeRestore to RestoreIndexer

func (*FakeRestoreControl) UpdateStatus

UpdateStatus updates the condition for a VolumeRestore, include condition and status info

Jump to

Keyboard shortcuts

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