Documentation ¶
Index ¶
- func GetBackupCompleteCondition(status v1alpha1.BackupStatus) *v1alpha1.BackupCondition
- func GetBackupCondition(status *v1alpha1.BackupStatus, conditionType v1alpha1.BackupConditionType) (int, *v1alpha1.BackupCondition)
- func IsBackupComplete(backup *v1alpha1.Backup) bool
- func IsBackupCompleteConditionTrue(status v1alpha1.BackupStatus) bool
- func UpdateBackupCondition(status *v1alpha1.BackupStatus, condition *v1alpha1.BackupCondition) bool
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 ¶
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.