services

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func GetFlavorByID(flavorID string, cl client.Client) (*nodecorev1alpha1.Flavor, error)

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.

Jump to

Keyboard shortcuts

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