l.pricing : module documentation

Part of libcloud View Source

No module docstring
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.
def clear_pricing_data(): (source)
Undocumented
def get_pricing_file_path(file_path=None): (source)
Undocumented
def get_pricing(driver_type, driver_name, pricing_file_path=None): (source)
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.
def set_pricing(driver_type, driver_name, pricing): (source)
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.
def get_size_price(driver_type, driver_name, size_id): (source)
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.
def invalidate_pricing_cache(): (source)
Invalidate the cache for all the drivers.
def invalidate_module_pricing_cache(driver_type, driver_name): (source)
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
API Documentation for libcloud, generated by pydoctor at 2013-07-01 17:02:02.