backup

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPVC

NewPVC returns the list of PersistentVolumeClaims for the backups

func PVCRestoreJob added in v1.0.0

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

S3RestoreJob returns restore job object for s3

Types

type Backup

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

func New

func (*Backup) 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) SetStoragePVC(job *batchv1.JobSpec, cr *api.PerconaXtraDBCluster, volName string) error

func (Backup) SetStorageS3 added in v0.3.0

func (Backup) SetStorageS3(job *batchv1.JobSpec, cr *api.PerconaXtraDBCluster, s3 api.BackupStorageS3Spec, destination string) error

Jump to

Keyboard shortcuts

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