Documentation ¶
Index ¶
- func GetClusterCondition(status *v1alpha1.BrokerClusterStatus, ...) (int, *v1alpha1.BrokerClusterCondition)
- func GetClusterReadyCondition(status v1alpha1.BrokerClusterStatus) *v1alpha1.BrokerClusterCondition
- func IsClusterReady(cluster *v1alpha1.BrokerCluster) bool
- func IsClusterReadyConditionTrue(status v1alpha1.BrokerClusterStatus) bool
- func UpdateClusterCondition(status *v1alpha1.BrokerClusterStatus, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterCondition ¶
func GetClusterCondition(status *v1alpha1.BrokerClusterStatus, conditionType v1alpha1.BrokerClusterConditionType) (int, *v1alpha1.BrokerClusterCondition)
GetClusterCondition 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 GetClusterReadyCondition ¶
func GetClusterReadyCondition(status v1alpha1.BrokerClusterStatus) *v1alpha1.BrokerClusterCondition
GetClusterReadyCondition extracts the Cluster ready condition from the given status and returns that. Returns nil if the condition is not present.
func IsClusterReady ¶
func IsClusterReady(cluster *v1alpha1.BrokerCluster) bool
IsClusterReady returns true if a Cluster is ready; false otherwise.
func IsClusterReadyConditionTrue ¶
func IsClusterReadyConditionTrue(status v1alpha1.BrokerClusterStatus) bool
IsClusterReadyConditionTrue returns true if a Cluster is ready; false otherwise.
func UpdateClusterCondition ¶
func UpdateClusterCondition(status *v1alpha1.BrokerClusterStatus, condition *v1alpha1.BrokerClusterCondition) bool
UpdateClusterCondition updates existing Cluster condition or creates a new one. Sets LastTransitionTime to now if the status has changed. Returns true if Cluster condition has changed or has been added.
Types ¶
This section is empty.