Documentation ¶
Overview ¶
Package peeringconditionsutils contains shared utility methods to handle the PeeringCondition resource.
Index ¶
- func EnsureStatus(foreignCluster *discoveryv1alpha1.ForeignCluster, ...)
- func GetMessage(foreignCluster *discoveryv1alpha1.ForeignCluster, ...) string
- func GetReason(foreignCluster *discoveryv1alpha1.ForeignCluster, ...) string
- func GetStatus(foreignCluster *discoveryv1alpha1.ForeignCluster, ...) discoveryv1alpha1.PeeringConditionStatusType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureStatus ¶
func EnsureStatus( foreignCluster *discoveryv1alpha1.ForeignCluster, conditionType discoveryv1alpha1.PeeringConditionType, status discoveryv1alpha1.PeeringConditionStatusType, reason, message string)
EnsureStatus ensures the status for the given peering condition.
func GetMessage ¶
func GetMessage(foreignCluster *discoveryv1alpha1.ForeignCluster, conditionType discoveryv1alpha1.PeeringConditionType) string
GetMessage returns the message for the given peering condition. If the condition is not set, it returns an empty string.
func GetReason ¶
func GetReason(foreignCluster *discoveryv1alpha1.ForeignCluster, conditionType discoveryv1alpha1.PeeringConditionType) string
GetReason returns the reason for the given peering condition. If the condition is not set, it returns an empty string.
func GetStatus ¶
func GetStatus(foreignCluster *discoveryv1alpha1.ForeignCluster, conditionType discoveryv1alpha1.PeeringConditionType) discoveryv1alpha1.PeeringConditionStatusType
GetStatus returns the status for the given peering condition. If the condition is not set, it returns the None status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.