Documentation ¶
Index ¶
- func NewPVC(cr *api.PerconaXtraDBClusterBackup) *corev1.PersistentVolumeClaim
- func PVCRestoreJob(cr *api.PerconaXtraDBClusterRestore, cluster api.PerconaXtraDBClusterSpec) (*batchv1.Job, error)
- func PVCRestorePod(cr *api.PerconaXtraDBClusterRestore, bcpStorageName, pvcName string, ...) (*corev1.Pod, error)
- func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore) *corev1.Service
- func S3RestoreJob(cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, ...) (*batchv1.Job, error)
- type Backup
- func (*Backup) Job(cr *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster) *batchv1.Job
- func (bcp *Backup) JobSpec(spec api.PXCBackupSpec, cluster api.PerconaXtraDBClusterSpec, job *batchv1.Job) (batchv1.JobSpec, error)
- func (bcp *Backup) Scheduled(spec *api.PXCScheduledBackupSchedule, strg *api.BackupStorageSpec, ...) (*batchv1beta1.CronJob, error)
- func (Backup) SetStoragePVC(job *batchv1.JobSpec, cr *api.PerconaXtraDBCluster, volName string) error
- func (Backup) SetStorageS3(job *batchv1.JobSpec, cr *api.PerconaXtraDBCluster, s3 api.BackupStorageS3Spec, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPVC ¶
func NewPVC(cr *api.PerconaXtraDBClusterBackup) *corev1.PersistentVolumeClaim
NewPVC returns the list of PersistentVolumeClaims for the backups
func PVCRestoreJob ¶ added in v1.0.0
func PVCRestoreJob(cr *api.PerconaXtraDBClusterRestore, cluster api.PerconaXtraDBClusterSpec) (*batchv1.Job, error)
func PVCRestorePod ¶ added in v1.0.0
func PVCRestorePod(cr *api.PerconaXtraDBClusterRestore, bcpStorageName, pvcName string, cluster api.PerconaXtraDBClusterSpec) (*corev1.Pod, error)
func PVCRestoreService ¶ added in v1.0.0
func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore) *corev1.Service
func S3RestoreJob ¶ added in v1.0.0
func S3RestoreJob(cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, s3dest string, cluster api.PerconaXtraDBClusterSpec, pitr bool) (*batchv1.Job, error)
S3RestoreJob returns restore job object for s3
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
func New ¶
func New(cr *api.PerconaXtraDBCluster) *Backup
func (*Backup) Job ¶
func (*Backup) Job(cr *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster) *batchv1.Job
func (*Backup) JobSpec ¶
func (bcp *Backup) JobSpec(spec api.PXCBackupSpec, cluster api.PerconaXtraDBClusterSpec, job *batchv1.Job) (batchv1.JobSpec, error)
func (*Backup) Scheduled ¶
func (bcp *Backup) Scheduled(spec *api.PXCScheduledBackupSchedule, strg *api.BackupStorageSpec, operatorPod corev1.Pod) (*batchv1beta1.CronJob, error)
func (Backup) SetStoragePVC ¶ added in v0.3.0
func (Backup) SetStorageS3 ¶ added in v0.3.0
func (Backup) SetStorageS3(job *batchv1.JobSpec, cr *api.PerconaXtraDBCluster, s3 api.BackupStorageS3Spec, destination string) error
Click to show internal directories.
Click to hide internal directories.