Part of libcloud View Source
Function | clear_pricing_data | Undocumented |
Function | get_pricing_file_path | Undocumented |
Function | get_pricing | Return pricing for the provided driver. |
Function | set_pricing | Populate the driver pricing dictionary. |
Function | get_size_price | Return price for the provided size. |
Function | invalidate_pricing_cache | Invalidate the cache for all the drivers. |
Function | invalidate_module_pricing_cache | Invalidate the cache for the specified driver. |
Parameters | driver_type | Driver type ('compute' or 'storage') (type: str ) |
driver_name | Driver name (type: str ) | |
Returns | Dictionary with pricing where a key name is size ID and the value is a
price. (type: dict ) |
Parameters | driver_type | Driver type ('compute' or 'storage') (type: str ) |
driver_name | Driver name (type: str ) | |
pricing | Dictionary where a key is a size ID and a value is a price. (type: dict ) |
Parameters | driver_type | Driver type ('compute' or 'storage') (type: str ) |
driver_name | Driver name (type: str ) | |
size_id | Unique size ID (can be an integer or a string - depends on the driver) (type: int/str ) | |
Returns | Size price. (type: int ) |
Parameters | driver_type | Driver type ('compute' or 'storage') (type: str ) |
driver_name | Driver name (type: str ) |