Documentation ¶
Overview ¶
Package services contains different functions and services used into the FLUIDOS environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFlavors ¶ added in v0.1.0
func GetAllFlavors(cl client.Client) ([]nodecorev1alpha1.Flavor, error)
GetAllFlavors returns all the Flavors in the cluster.
func GetAvailableFlavors ¶ added in v0.1.0
func GetAvailableFlavors(cl client.Client) ([]nodecorev1alpha1.Flavor, error)
GetAvailableFlavors returns all the available Flavors in the cluster.
func GetFlavorByID ¶ added in v0.1.0
GetFlavorByID returns the entire Flavor CR (not only spec) in the cluster that matches the flavorID.
Types ¶
type FlavorService ¶ added in v0.1.0
type FlavorService interface { sync.Mutex GetAllFlavors() ([]nodecorev1alpha1.Flavor, error) GetFlavorByID(flavorID string) (*nodecorev1alpha1.Flavor, error) }
FlavorService is the interface that wraps the basic Flavor methods and allows to manage the concurrent access to the Flavor CRs.
Click to show internal directories.
Click to hide internal directories.