# Packages
No description provided by the author
# Functions
Create function creates workload in data base.
Delete function deletes workload from data base.
DeleteByID handles DELETE /v1/workloads/{id}.
Enforce a user request workload based on defined policy.
Get handles GET /v1/workloads.
GetAll gets list of workloads.
GetByID handle GET /v1/workloads/{id}.
GetByUUID function gets workload from database by UUID (OpenStack instance identifier).
GetWorkloadByID function gets workload from data base by ID.
Init responsible for database creation this function should be exported to give possibility to use DB for example by Openstack without need of registering workload module.
NewWorkload handle POST /v1/workloads sample POST request data body : '{ "core_ids" : ["1","2"], "policy": "gold" }' body : '{ "task_ids" : ["123"], "policy" : "silver" }' body : '{ "core_ids" : ["123"], "rdt" : { "cache" : { "max" : 4, "min": 2 } } }.
Patch handles PATCH /v1/workloads/{id}.
Register add handlers for /v1/workloads endpoint.
Release Cos of the workload.
Update a workload.
Validate the request workload object is validated.