Documentation
¶
Index ¶
- func AgentContainer(cr *api.PerconaServerMongoDB, replsetName string, replsetSize int32) (corev1.Container, error)
- func BackupCronJob(backup *api.BackupTaskSpec, crName, namespace string, ...) *batchv1b.CronJob
- func HasActiveJobs(cl client.Client, cluster *api.PerconaServerMongoDB, current Job, ...) (bool, error)
- func IsPITRLock(l pbm.LockHeader) bool
- func NewBackupCronJobLabels(crName string) map[string]string
- func NotPITRLock(l pbm.LockHeader) bool
- type Job
- type JobType
- type LockHeaderPredicate
- type PBM
- func (b *PBM) Close() error
- func (b *PBM) GetLastPITRChunk() (*pbm.PITRChunk, error)
- func (b *PBM) GetLatestTimelinePITR() (pbm.Timeline, error)
- func (b *PBM) GetPITRChunkContains(unixTS int64) (*pbm.PITRChunk, error)
- func (b *PBM) GetTimelinesPITR() ([]pbm.Timeline, error)
- func (b *PBM) HasLocks(predicates ...LockHeaderPredicate) (bool, error)
- func (b *PBM) SetConfig(stg api.BackupStorageSpec, pitr api.PITRSpec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentContainer ¶
func AgentContainer(cr *api.PerconaServerMongoDB, replsetName string, replsetSize int32) (corev1.Container, error)
AgentContainer creates the container object for a backup agent
func BackupCronJob ¶
func BackupCronJob(backup *api.BackupTaskSpec, crName, namespace string, backupSpec api.BackupSpec, imagePullSecrets []corev1.LocalObjectReference) *batchv1b.CronJob
func HasActiveJobs ¶ added in v1.4.0
func HasActiveJobs(cl client.Client, cluster *api.PerconaServerMongoDB, current Job, allowLock ...LockHeaderPredicate) (bool, error)
HasActiveJobs returns true if there are running backups or restores in given cluster and namestpace
func IsPITRLock ¶ added in v1.8.0
func IsPITRLock(l pbm.LockHeader) bool
func NewBackupCronJobLabels ¶ added in v1.2.0
func NotPITRLock ¶ added in v1.8.0
func NotPITRLock(l pbm.LockHeader) bool
Types ¶
type Job ¶ added in v1.4.0
func NewBackupJob ¶ added in v1.8.0
func NewRestoreJob ¶ added in v1.8.0
func NewRestoreJob(cr *api.PerconaServerMongoDBRestore) Job
type LockHeaderPredicate ¶ added in v1.8.0
type LockHeaderPredicate func(pbm.LockHeader) bool
func NotJobLock ¶ added in v1.8.0
func NotJobLock(j Job) LockHeaderPredicate
type PBM ¶ added in v1.4.0
func NewPBM ¶ added in v1.4.0
NewPBM creates a new connection to PBM. It should be closed after the last use with.
func (*PBM) GetLastPITRChunk ¶ added in v1.8.0
func (*PBM) GetLatestTimelinePITR ¶ added in v1.8.0
func (*PBM) GetPITRChunkContains ¶ added in v1.8.0
func (*PBM) GetTimelinesPITR ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.