controllers

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 44 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"
)
View Source
const (
	// IBMApp registration name
	IBMApp = "ibm"
	// CouchBaseApp registration name
	CouchBaseApp = "couchbase"
	// RedisClusterApp registration name
	RedisClusterApp = "redis"
	// CassandraApp registration name
	CassandraApp = "cassandra"
	// WeblogicDomainApp registration name
	WeblogicDomainApp = "weblogic"
)

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 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) 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

Jump to

Keyboard shortcuts

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