restore

package
v0.0.0-...-398e186 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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 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

func IsRestoreComplete(restore *v1alpha1.Restore) bool

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.

Jump to

Keyboard shortcuts

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