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 }
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( kubeCli kubernetes.Interface, cli versioned.Interface, informerFactory informers.SharedInformerFactory, kubeInformerFactory kubeinformers.SharedInformerFactory, ) *Controller
NewController creates a restore controller.
func (*Controller) Run ¶
func (rsc *Controller) Run(workers int, stopCh <-chan struct{})
Run runs the restore controller.
Click to show internal directories.
Click to hide internal directories.