backup

package
v0.0.0-...-146a38b Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackupCompleteCondition

func GetBackupCompleteCondition(status v1alpha1.BackupStatus) *v1alpha1.BackupCondition

GetBackupCompleteCondition extracts the Backup complete condition from the given status and returns that. Returns nil if the condition is not present.

func GetBackupCondition

func GetBackupCondition(status *v1alpha1.BackupStatus, conditionType v1alpha1.BackupConditionType) (int, *v1alpha1.BackupCondition)

GetBackupCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.

func IsBackupComplete

func IsBackupComplete(backup *v1alpha1.Backup) bool

IsBackupComplete returns true if a Backup has successfully completed

func IsBackupCompleteConditionTrue

func IsBackupCompleteConditionTrue(status v1alpha1.BackupStatus) bool

IsBackupCompleteConditionTrue returns true if a Backup is complete; false otherwise.

func UpdateBackupCondition

func UpdateBackupCondition(status *v1alpha1.BackupStatus, condition *v1alpha1.BackupCondition) bool

UpdateBackupCondition updates existing Backup condition or creates a new one. Sets LastTransitionTime to now if the status has changed. Returns true if Backup condition has changed or has been added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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