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. |
Return pricing for the provided driver. @type driver_type: C{str} @param driver_type: Driver type ('compute' or 'storage') @type driver_name: C{str} @param driver_name: Driver name @rtype: C{dict} @return: Dictionary with pricing where a key name is size ID and the value is a price.
Populate the driver pricing dictionary. @type driver_type: C{str} @param driver_type: Driver type ('compute' or 'storage') @type driver_name: C{str} @param driver_name: Driver name @type pricing: C{dict} @param pricing: Dictionary where a key is a size ID and a value is a price.
Return price for the provided size. @type driver_type: C{str} @param driver_type: Driver type ('compute' or 'storage') @type driver_name: C{str} @param driver_name: Driver name @type size_id: C{int/str} @param size_id: Unique size ID (can be an integer or a string - depends on the driver) @rtype: C{int} @return: Size price.
Invalidate the cache for the specified driver. @type driver_type: C{str} @param driver_type: Driver type ('compute' or 'storage') @type driver_name: C{str} @param driver_name: Driver name