placement

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPlacementNotFound = errors.New("placement not found")

Error when the placement is not found using Uuid

Functions

func Delete

func Delete(uuid string) error

func Get

func Get(uuid string) (v1.Placement, error)

Get retrives a placement from the DB.

func GetAll

func GetAll(count int) ([]v1.Placement, error)

Get retrives a placement from the DB. The 'count' parameter is the maximum number of placements to be returned. Set 'count' to 0 if you want the function to return all placements without limit.

func GetCountPlacementsByCloud added in v0.1.6

func GetCountPlacementsByCloud(name string) (string, error)

GetCountPlacementsByCloud return the counter for that cloud name.

func RefreshAllCounters added in v0.1.6

func RefreshAllCounters() error

RefreshAllCounters calculates and refreshes all the counters

func Save

func Save(p v1.Placement) error

Save saves a placement in the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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