cloudmesh-cloud.cloudmesh.data.api.storage.AzureStorageProvider
¶
Module Contents¶
Classes¶
-
class
cloudmesh-cloud.cloudmesh.data.api.storage.AzureStorageProvider.
AzureStorageProvider
(account_name, access_key, container='cmdata')¶ Bases:
cloudmesh.data.api.storage.StorageProviderABC
-
put
(self, local_path)¶ Upload a new file.
- Parameters
local_path – Path to a file that will be stored.
- Returns
a CloudFile with resource information filled in
-
get
(self, cloud_file, local_dest)¶ Download the file from the cloud_file.url to a local folder.
- Parameters
cloud_file – A cloud file entry from the db.
local_dest – A local path where the cloud file will be downloaded.
-
delete
(self, cloud_file)¶ Delete a file from the database
- Parameters
cloud_file – the cloud file entry being deleted
-
exists
(self, cloud_file_name)¶ Tell if a file is present in the remote storage.
- Parameters
cloud_file_name – An instance of CloudFile
- Returns
True if the object exists.
-
_get_object
(self, obj_name)¶ Gets and object that can be used with the storage driver’s methods.
-