# Functions
ApplyQueryFilter parese the query string.
ApplyQueryFilterWorkload parses the query string.
GetUserConversion loads a conversion for a user.
NewPipeline creates a reservation pipeline, all reservation must be processes through the pipeline before any action is taken.
NewWorkloaderPipeline creates a reservation pipeline, all reservation must be processes through the pipeline before any action is taken.
ReservationCreate save new reservation to database.
ReservationLastID get the current last ID number in the reservations collection.
ReservationPushSignature push signature to reservation.
ReservationSetNextAction update the reservation next action in db.
ReservationToDeploy marks a reservation to deploy and schedule the workloads for the nodes it's a short cut to SetNextAction then PushWorkloads.
ResultPush pushes result to a reservation result array.
SaveUserConversion saves a conversion for a user.
Setup sets up indexes for types, must be called at least Onetime during the life time of the object.
SetUserConversionSucceeded updates the converted field.
WorkloadCreate save new workload to database.
WorkloadPop removes workload from queue.
WorkloadPush pushes a workload to the queue.
WorkloadPushSignature push signature to workload.
WorkloadResultPush pushes result to a reservation result array.
WorkloadSetNextAction update the workload next action in db.
WorkloadsLastID get the current last ID number in the workloads collection.
WorkloadToDeploy marks a workload to deploy and schedule it for the nodes it's a short cut to SetNextAction then PushWorkloads.
WorkloadTypePop removes workload from queue.
WorkloadTypePush pushes a workload to the queue.
# Constants
ConversionCollection name.
Create action.
Delete action.
Deleted action.
Deploy action.
Invalid action.
Pay action.
ReservationCollection db collection name.
Sign action.
SignatureDelete mode.
SignatureProvision mode.
WorkloadCollection db collection name.
# Variables
ErrNoConversion means no conversion is saved for a user.
# Structs
ConversionDoc holds some data about a geenrated conversion for a user.
Pipeline changes Reservation R as defined by the reservation pipeline returns new reservation object, and true if the reservation has changed.
Workload is a wrapper around generated TfgridWorkloadsReservationWorkload1 type.
WorkloaderType is a wrapper struct around the Workloader interface.
WorkloadPipeline changes WorkloaderType W as defined by the workload pipeline returns new workload object, and true if the workload has changed.
# Type aliases
QueueFilter for workloads in temporary queue.
Reservation is a wrapper around generated type.
ReservationFilter type.
Result is a wrapper around TfgridWorkloadsReservationResult1 type.
SignatureMode type.
WorkloadFilter type.