Documentation ¶
Index ¶
- func Contains(list []string, s string) bool
- func FindAPISchemeCondition(conditions []cloudingressv1alpha1.APISchemeCondition, ...) *cloudingressv1alpha1.APISchemeCondition
- func GetLastAPISchemeCondition(conditions []cloudingressv1alpha1.APISchemeCondition) *cloudingressv1alpha1.APISchemeCondition
- func Remove(list []string, s string) []string
- func SetAPISchemeCondition(conditions []cloudingressv1alpha1.APISchemeCondition, ...) []cloudingressv1alpha1.APISchemeCondition
- func UpdateConditionAlways(_, _, _, _ string) bool
- func UpdateConditionIfReasonOrMessageChange(oldReason, oldMessage, newReason, newMessage string) bool
- func UpdateConditionNever(_, _, _, _ string) bool
- type UpdateConditionCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAPISchemeCondition ¶
func FindAPISchemeCondition(conditions []cloudingressv1alpha1.APISchemeCondition, conditionType cloudingressv1alpha1.APISchemeConditionType) *cloudingressv1alpha1.APISchemeCondition
FindAPISchemeCondition finds in the condition that has the matching condition type
func GetLastAPISchemeCondition ¶
func GetLastAPISchemeCondition(conditions []cloudingressv1alpha1.APISchemeCondition) *cloudingressv1alpha1.APISchemeCondition
func SetAPISchemeCondition ¶
func SetAPISchemeCondition( conditions []cloudingressv1alpha1.APISchemeCondition, conditionType cloudingressv1alpha1.APISchemeConditionType, status corev1.ConditionStatus, reason string, message string, updateConditionCheck UpdateConditionCheck, ) []cloudingressv1alpha1.APISchemeCondition
SetAPISchemeCondition sets a condition on a APIScheme resource's status
func UpdateConditionAlways ¶
UpdateConditionAlways returns true. The condition will always be updated.
func UpdateConditionIfReasonOrMessageChange ¶
func UpdateConditionIfReasonOrMessageChange(oldReason, oldMessage, newReason, newMessage string) bool
UpdateConditionIfReasonOrMessageChange returns true if there is a change in the reason or the message of the condition.
func UpdateConditionNever ¶
UpdateConditionNever return false. The condition will never be updated, unless there is a change in the status of the condition.
Types ¶
type UpdateConditionCheck ¶
UpdateConditionCheck tests whether a condition should be updated from the old condition to the new condition. Returns true if the condition should be updated.
Click to show internal directories.
Click to hide internal directories.