Help us shape the future of Go! Take the 2026 Go Developer Survey

controllers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 53 Imported by: 10

Documentation

Index

Constants

View Source
const (

	// ApplicationBackupScheduleNameAnnotation Annotation used to specify the name of schedule that
	// created the backup
	ApplicationBackupScheduleNameAnnotation = annotationPrefix + "applicationBackupScheduleName"
	// ApplicationBackupSchedulePolicyTypeAnnotation Annotation used to specify the type of the
	// policy that triggered the backup
	ApplicationBackupSchedulePolicyTypeAnnotation = annotationPrefix + "applicationBackupSchedulePolicyType"
)

Variables

This section is empty.

Functions

func GetObjectPath

func GetObjectPath(
	backup *stork_api.ApplicationBackup,
) string

GetObjectPath construct the full base path for a given backup The format is "namespace/backupName/backupUID" which will be unique for each backup

func IsResourceTypePVC

func IsResourceTypePVC(backup *stork_api.ApplicationBackup) bool

IsResourceTypePVC check if given ResourceType is PVC

func IsVolsToBeBackedUp

func IsVolsToBeBackedUp(backup *stork_api.ApplicationBackup) bool

IsVolsToBeBackedUp for a given backupspec do we need to have volumes backed up

func RegisterDefaultCRDs

func RegisterDefaultCRDs() error

RegisterDefaultCRDs registered already supported CRDs

Types

type ApplicationBackupController

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

ApplicationBackupController reconciles applicationbackup objects

func NewApplicationBackup

NewApplicationBackup creates a new instance of ApplicationBackupController.

func (*ApplicationBackupController) Init

func (a *ApplicationBackupController) Init(mgr manager.Manager, backupAdminNamespace string, syncTime int64) error

Init Initialize the application backup controller

func (*ApplicationBackupController) Reconcile

Reconcile updates for ApplicationBackup objects.

type ApplicationBackupScheduleController

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

ApplicationBackupScheduleController reconciles ApplicationBackupSchedule objects

func NewApplicationBackupSchedule

func NewApplicationBackupSchedule(mgr manager.Manager, r record.EventRecorder) *ApplicationBackupScheduleController

NewApplicationBackupSchedule creates a new instance of ApplicationBackupScheduleController.

func (*ApplicationBackupScheduleController) Init

Init Initialize the backup schedule controller

func (*ApplicationBackupScheduleController) Reconcile

Reconcile updates for ApplicationBackupSchedule objects.

type ApplicationCloneController

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

ApplicationCloneController reconciles applicationclone objects

func NewApplicationClone

NewApplicationClone create a new instance of ApplicationCloneController.

func (*ApplicationCloneController) Init

func (a *ApplicationCloneController) Init(mgr manager.Manager, adminNamespace string) error

Init Initialize the application clone controller

func (*ApplicationCloneController) Reconcile

Reconcile updates for ApplicationClone objects.

type ApplicationRestoreController

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

ApplicationRestoreController reconciles applicationrestore objects

func NewApplicationRestore

NewApplicationRestore creates a new instance of ApplicationRestoreController.

func (*ApplicationRestoreController) Init

func (a *ApplicationRestoreController) Init(mgr manager.Manager, restoreAdminNamespace string) error

Init Initialize the application restore controller

func (*ApplicationRestoreController) Reconcile

Reconcile updates for ApplicationRestore objects.

type BackupSyncController

type BackupSyncController struct {
	Recorder     record.EventRecorder
	SyncInterval time.Duration
	// contains filtered or unexported fields
}

BackupSyncController reconciles applicationbackup objects

func (*BackupSyncController) Init

func (b *BackupSyncController) Init(stopChannel chan os.Signal) error

Init Initializes the backup sync controller

type WatchFunc

type WatchFunc func(object runtime.Object)

WatchFunc is a callback provided to the Watch functions

Jump to

Keyboard shortcuts

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