libcloud.common.providers module
Common methods for obtaining a reference to the provider driver class.
- libcloud.common.providers.get_driver(drivers, provider, deprecated_providers=None, deprecated_constants=None)[source]
Get a driver.
- Parameters:
drivers (
dict
) – Dictionary containing valid providers.provider (
libcloud.types.Provider
) – Id (constant) of provider to get the driver for.
- Param:
deprecated_providers: Dictionary with information about the deprecated drivers.
- Param:
deprecated_constants: Dictionary with information about the deprecated provider constants.