Documentation ¶
Index ¶
- func GetRestoreCompleteCondition(status v1alpha1.RestoreStatus) *v1alpha1.RestoreCondition
- func GetRestoreCondition(status *v1alpha1.RestoreStatus, conditionType v1alpha1.RestoreConditionType) (int, *v1alpha1.RestoreCondition)
- func IsRestoreComplete(restore *v1alpha1.Restore) bool
- func IsRestoreCompleteConditionTrue(status v1alpha1.RestoreStatus) bool
- func UpdateRestoreCondition(status *v1alpha1.RestoreStatus, condition *v1alpha1.RestoreCondition) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestoreCompleteCondition ¶
func GetRestoreCompleteCondition(status v1alpha1.RestoreStatus) *v1alpha1.RestoreCondition
GetRestoreCompleteCondition extracts the Restore complete condition from the given status and returns that. Returns nil if the condition is not present.
func GetRestoreCondition ¶
func GetRestoreCondition(status *v1alpha1.RestoreStatus, conditionType v1alpha1.RestoreConditionType) (int, *v1alpha1.RestoreCondition)
GetRestoreCondition 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 IsRestoreComplete ¶
IsRestoreComplete returns true if a Restore has successfully completed
func IsRestoreCompleteConditionTrue ¶
func IsRestoreCompleteConditionTrue(status v1alpha1.RestoreStatus) bool
IsRestoreCompleteConditionTrue returns true if a Restore is complete; false otherwise.
func UpdateRestoreCondition ¶
func UpdateRestoreCondition(status *v1alpha1.RestoreStatus, condition *v1alpha1.RestoreCondition) bool
UpdateRestoreCondition updates existing Restore condition or creates a new one. Sets LastTransitionTime to now if the status has changed. Returns true if Restore condition has changed or has been added.
Types ¶
This section is empty.