Documentation ¶
Index ¶
- Variables
- func GetCondition(conditions []resourcesv1alpha1.ManagedResourceCondition, ...) *resourcesv1alpha1.ManagedResourceCondition
- func GetOrInitCondition(conditions []resourcesv1alpha1.ManagedResourceCondition, ...) resourcesv1alpha1.ManagedResourceCondition
- func InitCondition(conditionType resourcesv1alpha1.ConditionType) resourcesv1alpha1.ManagedResourceCondition
- func MergeConditions(oldConditions []resourcesv1alpha1.ManagedResourceCondition, ...) []resourcesv1alpha1.ManagedResourceCondition
- func UpdatedCondition(condition resourcesv1alpha1.ManagedResourceCondition, ...) resourcesv1alpha1.ManagedResourceCondition
Constants ¶
This section is empty.
Variables ¶
var Now = metav1.Now
Now determines the current metav1.Time.
Functions ¶
func GetCondition ¶
func GetCondition(conditions []resourcesv1alpha1.ManagedResourceCondition, conditionType resourcesv1alpha1.ConditionType) *resourcesv1alpha1.ManagedResourceCondition
GetCondition returns the condition with the given <conditionType> out of the list of <conditions>. In case the required type could not be found, it returns nil.
func GetOrInitCondition ¶
func GetOrInitCondition(conditions []resourcesv1alpha1.ManagedResourceCondition, conditionType resourcesv1alpha1.ConditionType) resourcesv1alpha1.ManagedResourceCondition
GetOrInitCondition tries to retrieve the condition with the given condition type from the given conditions. If the condition could not be found, it returns an initialized condition of the given type.
func InitCondition ¶
func InitCondition(conditionType resourcesv1alpha1.ConditionType) resourcesv1alpha1.ManagedResourceCondition
InitCondition initializes a new Condition with an Unknown status.
func MergeConditions ¶
func MergeConditions(oldConditions []resourcesv1alpha1.ManagedResourceCondition, newConditions ...resourcesv1alpha1.ManagedResourceCondition) []resourcesv1alpha1.ManagedResourceCondition
MergeConditions merges the given <oldConditions> with the <newConditions>. Existing conditions are superseded by the <newConditions> (depending on the condition type).
func UpdatedCondition ¶
func UpdatedCondition(condition resourcesv1alpha1.ManagedResourceCondition, status resourcesv1alpha1.ConditionStatus, reason, message string) resourcesv1alpha1.ManagedResourceCondition
UpdatedCondition updates the properties of one specific condition.
Types ¶
This section is empty.