Part of libcloud.storage.drivers.azure_blobs View Source View In Hierarchy
A class to help in leasing an azure blob and renewing the lease
Method | __init__ | @param driver: The Azure storage driver that is being used @type driver: L{AzureStorageDriver} |
Method | renew | Renew the lease if it is older than a predefined time period |
Method | update_headers | Update the lease id in the headers |
Method | __enter__ | Undocumented |
Method | __exit__ | Undocumented |
@param driver: The Azure storage driver that is being used @type driver: L{AzureStorageDriver} @param object_path: The path of the object we need to lease @type object_path: C{str} @param use_lease: Indicates if we must take a lease or not @type use_lease: C{bool}