restore

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 {
	// UpdateRestore implements the control logic for restore job creation, update, and deletion
	UpdateRestore(restore *v1alpha1.Restore) error
	// UpdateCondition updates the condition for a Restore.
	UpdateCondition(restore *v1alpha1.Restore, condition *v1alpha1.RestoreCondition) error
}

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

func NewDefaultRestoreControl

func NewDefaultRestoreControl(restoreManager backup.RestoreManager) ControlInterface

NewDefaultRestoreControl returns a new instance of the default implementation RestoreControlInterface that implements the documented semantics for Restore.

type Controller

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

Controller controls restore.

func NewController

func NewController(deps *controller.Dependencies) *Controller

NewController creates a restore controller.

func (*Controller) Name added in v1.4.5

func (c *Controller) Name() string

Name returns the name of the restore controller

func (*Controller) Run

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

Run runs the restore controller.

type FakeRestoreControl

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

FakeRestoreControl is a fake RestoreControlInterface

func NewFakeRestoreControl

func NewFakeRestoreControl(restoreInformer informers.RestoreInformer) *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) UpdateCondition added in v1.1.10

func (c *FakeRestoreControl) UpdateCondition(_ *v1alpha1.Restore, condition *v1alpha1.RestoreCondition) error

UpdateCondition updates the condition for a Restore.

func (*FakeRestoreControl) UpdateRestore

func (c *FakeRestoreControl) UpdateRestore(backup *v1alpha1.Restore) error

UpdateRestore adds the backup to RestoreIndexer

Jump to

Keyboard shortcuts

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