Documentation
¶
Index ¶
- Variables
- func GetLastFullBackup(ctx context.Context, cl client.Client, clusterName, namespace string, ...) (*apiv1.PerconaServerMySQLBackup, error)
- func GetLatestIncrementalBackupInChain(ctx context.Context, cl client.Client, backup *apiv1.PerconaServerMySQLBackup) (*apiv1.PerconaServerMySQLBackup, error)
- func ListDependentIncrementalBackups(ctx context.Context, cl client.Client, backup *apiv1.PerconaServerMySQLBackup) ([]*apiv1.PerconaServerMySQLBackup, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNoIncrBackupFound = errors.New("no incremental backup found in chain")
Functions ¶
func GetLastFullBackup ¶
func GetLastFullBackup( ctx context.Context, cl client.Client, clusterName, namespace string, storage *apiv1.BackupStorageSpec, ) (*apiv1.PerconaServerMySQLBackup, error)
func GetLatestIncrementalBackupInChain ¶
func GetLatestIncrementalBackupInChain( ctx context.Context, cl client.Client, backup *apiv1.PerconaServerMySQLBackup, ) (*apiv1.PerconaServerMySQLBackup, error)
GetLatestIncrementalBackupInChain returns the most recently completed incremental backup that shares the same base (full) backup as the given backup. The "chain" is identified by the AnnotationBaseBackupName annotation: all incremental backups pointing to the same base belong to the same chain. If the input is a full backup, its destination name is used as the chain identifier; if incremental, the base annotation value is used instead.
func ListDependentIncrementalBackups ¶
func ListDependentIncrementalBackups( ctx context.Context, cl client.Client, backup *apiv1.PerconaServerMySQLBackup, ) ([]*apiv1.PerconaServerMySQLBackup, error)
ListDependentIncrementalBackups returns all incremental backups that belong to the same chain as the given backup, i.e. all incrementals whose AnnotationBaseBackupName matches this backup's base. For a full backup this lists all incrementals that depend on it; for an incremental backup this lists all siblings in the same chain. Backups are sorted by CompletedAt (oldest to newest).
Types ¶
This section is empty.