# Functions
CapacityPoolCreate save new capacity pool to the database.
CapacityReservationCreate saves a new capacity reservation to the database.
CapacityReservationGet loads a capacity reservation with the given id.
GetExpiredPools returns a list of all expired pools.
GetNextExpiredPool gets the first pool to expire after the given timestamp.
GetPool from the database with the given ID.
GetPools gets all pools from the database.
GetPoolsByOwner gets all pools for an owner.
NewPool sets up a new pool, ready to use, with the given data.
Setup sets up indexes for types, must be called at least Onetime during the life time of the object.
UpdatePool updates the pool in the database.
# Constants
CapacityPoolCollection db collection name.
CapacityReservationCollection db collection name.
# Variables
ErrPoolNotFound is returned when looking for a specific pool, which is not there.
ErrReservationNotFound is returned when a reservation with a given ID is not there.
# Structs
No description provided by the author
PoolResult wrapper object that holds errors.
No description provided by the author
No description provided by the author