peeringconditionsutils

package
v0.3.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package peeringconditionsutils contains shared utility methods to handle the PeeringCondition resource.

Index

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

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.

Jump to

Keyboard shortcuts

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