Documentation ¶
Overview ¶
Package common contains common functions used by other packagess
Index ¶
- func CheckSelector(selector *models.Selector) error
- func DiscoveryStatusCheck(solver *nodecorev1alpha1.Solver, discovery *advertisementv1alpha1.Discovery)
- func FilterFlavour(selector *models.Selector, f *nodecorev1alpha1.Flavour) bool
- func FilterFlavoursBySelector(flavours []nodecorev1alpha1.Flavour, selector *models.Selector) ([]nodecorev1alpha1.Flavour, error)
- func FilterPeeringCandidate(selector *nodecorev1alpha1.FlavourSelector, ...) bool
- func ReservationStatusCheck(solver *nodecorev1alpha1.Solver, reservation *reservationv1alpha1.Reservation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSelector ¶
CheckSelector ia a func to check if the syntax of the Selector is right. Strict and range syntax cannot be used together.
func DiscoveryStatusCheck ¶
func DiscoveryStatusCheck(solver *nodecorev1alpha1.Solver, discovery *advertisementv1alpha1.Discovery)
DiscoveryStatusCheck checks the status of the discovery.
func FilterFlavour ¶
func FilterFlavour(selector *models.Selector, f *nodecorev1alpha1.Flavour) bool
FilterFlavour filters the Flavour CRs in the cluster that match the selector.
func FilterFlavoursBySelector ¶
func FilterFlavoursBySelector(flavours []nodecorev1alpha1.Flavour, selector *models.Selector) ([]nodecorev1alpha1.Flavour, error)
FilterFlavoursBySelector returns the Flavour CRs in the cluster that match the selector.
func FilterPeeringCandidate ¶
func FilterPeeringCandidate(selector *nodecorev1alpha1.FlavourSelector, pc *advertisementv1alpha1.PeeringCandidate) bool
FilterPeeringCandidate filters the peering candidate based on the solver's flavour selector.
func ReservationStatusCheck ¶
func ReservationStatusCheck(solver *nodecorev1alpha1.Solver, reservation *reservationv1alpha1.Reservation)
ReservationStatusCheck checks the status of the reservation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.