services

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 GetAllFlavours

func GetAllFlavours(cl client.Client) ([]nodecorev1alpha1.Flavour, error)

GetAllFlavours returns all the Flavours in the cluster.

func GetFlavourByID

func GetFlavourByID(flavourID string, cl client.Client) (*nodecorev1alpha1.Flavour, error)

GetFlavourByID returns the entire Flavour CR (not only spec) in the cluster that matches the flavourID.

Types

type FlavourService added in v0.0.2

type FlavourService interface {
	sync.Mutex
	GetAllFlavours() ([]nodecorev1alpha1.Flavour, error)
	GetFlavourByID(flavourID string) (*nodecorev1alpha1.Flavour, error)
}

FlavourService is the interface that wraps the basic Flavour methods and allows to manage the concurrent access to the Flavour CRs.

Jump to

Keyboard shortcuts

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