restorecontroller

package
v1.11.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDestroyEvent

func IsDestroyEvent(rst *apis.CStorRestore) bool

IsDestroyEvent is to check if the call is for restore destroy.

func IsDoneStatus

func IsDoneStatus(rst *apis.CStorRestore) bool

IsDoneStatus is to check if the restore is completed or not

func IsFailedStatus

func IsFailedStatus(rst *apis.CStorRestore) bool

IsFailedStatus is to check if the restore is failed or not

func IsInProgressStatus

func IsInProgressStatus(rst *apis.CStorRestore) bool

IsInProgressStatus is to check if the restore is in in-progress state.

func IsInitStatus

func IsInitStatus(rst *apis.CStorRestore) bool

IsInitStatus is to check if the restore is in init state.

func IsOnlyStatusChange

func IsOnlyStatusChange(oldrst, newrst *apis.CStorRestore) bool

IsOnlyStatusChange is to check only status change of restore object.

func IsPendingStatus

func IsPendingStatus(rst *apis.CStorRestore) bool

IsPendingStatus is to check if the restore is in a pending state.

func IsRightCStorPoolMgmt

func IsRightCStorPoolMgmt(rst *apis.CStorRestore) bool

IsRightCStorPoolMgmt is to check if the restore request is for particular pod/application.

Types

type RestoreController

type RestoreController struct {

	// RestoreSynced is used for caches sync to get populated
	RestoreSynced cache.InformerSynced
	// contains filtered or unexported fields
}

RestoreController is the controller implementation for CStorRestore resources.

func NewCStorRestoreController

func NewCStorRestoreController(
	kubeclientset kubernetes.Interface,
	clientset clientset.Interface,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	cStorInformerFactory informers.SharedInformerFactory) *RestoreController

NewCStorRestoreController returns a new cStor restore controller instance

func (*RestoreController) Run

func (c *RestoreController) Run(threadiness int, stopCh <-chan struct{}) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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