Documentation ¶
Index ¶
- Constants
- func GetObjectPath(backup *stork_api.ApplicationBackup) string
- func IsResourceTypePVC(backup *stork_api.ApplicationBackup) bool
- func IsVolsToBeBackedUp(backup *stork_api.ApplicationBackup) bool
- func RegisterDefaultCRDs() error
- type ApplicationBackupController
- type ApplicationBackupScheduleController
- type ApplicationCloneController
- type ApplicationRestoreController
- type BackupSyncController
- type WatchFunc
Constants ¶
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" // ApplicationBackupObjectLockRetentionAnnotation - object lock retention period annotation // Since this annotation is used in the px-backup, creating with portworx.io annotation prefix. ApplicationBackupObjectLockRetentionAnnotation = "portworx.io/" + "object-lock-retention-period" )
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 ¶
func NewApplicationBackup(mgr manager.Manager, r record.EventRecorder, rc resourcecollector.ResourceCollector) *ApplicationBackupController
NewApplicationBackup creates a new instance of ApplicationBackupController.
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.
type ApplicationCloneController ¶
type ApplicationCloneController struct {
// contains filtered or unexported fields
}
ApplicationCloneController reconciles applicationclone objects
func NewApplicationClone ¶
func NewApplicationClone(mgr manager.Manager, d volume.Driver, r record.EventRecorder, rc resourcecollector.ResourceCollector) *ApplicationCloneController
NewApplicationClone create a new instance of ApplicationCloneController.
type ApplicationRestoreController ¶
type ApplicationRestoreController struct {
// contains filtered or unexported fields
}
ApplicationRestoreController reconciles applicationrestore objects
func NewApplicationRestore ¶
func NewApplicationRestore(mgr manager.Manager, r record.EventRecorder, rc resourcecollector.ResourceCollector) *ApplicationRestoreController
NewApplicationRestore creates a new instance of ApplicationRestoreController.
type BackupSyncController ¶
type BackupSyncController struct { Recorder record.EventRecorder SyncInterval time.Duration // contains filtered or unexported fields }
BackupSyncController reconciles applicationbackup objects