Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baas ¶
type Baas struct {
// contains filtered or unexported fields
}
Baas will ensure that the backups are running accordingly.
func (*Baas) DeleteBackup ¶
DeleteBackup satisfies Syncer interface.
func (*Baas) EnsureBackup ¶
func (b *Baas) EnsureBackup(backup *backupv1alpha1.Backup) error
EnsureBackup satisfies Syncer interface.
type Backupper ¶
type Backupper interface { Stop() error SameSpec(baas *backupv1alpha1.Backup) bool Start() error }
Backupper is an interface that a backup service has to satisfy
func NewPVCBackupper ¶
func NewPVCBackupper( backup *backupv1alpha1.Backup, k8sCLI kubernetes.Interface, baasCLI baas8scli.Interface, log log.Logger, cron *cron.Cron, metrics *operatorMetrics, clusterWideState clusterWideState, config config) Backupper
NewPVCBackupper returns a new PVCBackupper
type PVCBackupper ¶
type PVCBackupper struct {
// contains filtered or unexported fields
}
PVCBackupper implements the Backupper interface
func (*PVCBackupper) SameSpec ¶
func (p *PVCBackupper) SameSpec(baas *backupv1alpha1.Backup) bool
SameSpec checks if the Backup Spec was changed
func (*PVCBackupper) Start ¶
func (p *PVCBackupper) Start() error
Start registeres the schedule for an instance of this resource
type Syncer ¶
type Syncer interface { // EnsureBackup will ensure that the backup schedule is correctly registered EnsureBackup(pt *backupv1alpha1.Backup) error // DeleteBackup will stop and delete the schedule. Kubernetes will handle // the deletion of all child items. DeleteBackup(name string) error }
Syncer is the interface that each Baas implementation has to satisfy.
Click to show internal directories.
Click to hide internal directories.