cloudmesh-storage.cloudmesh.storage.provider.parallelazureblob.Provider

Module Contents

Classes

Provider

class cloudmesh-storage.cloudmesh.storage.provider.parallelazureblob.Provider.Provider(service=None, config='~/.cloudmesh/cloudmesh.yaml', parallelism=4)

Bases: cloudmesh.storage.provider.StorageQueue.StorageQueue

kind = parallelazureblob
sample
status = ['completed', 'waiting', 'inprogress', 'canceled']
output
cloud_path(self, srv_path)
local_path(self, source_path)
get_run(self, specification)

Downloads file from Destination(Service) to Source(local)

Parameters
  • source – the source can be a directory or file

  • destination – the destination can be a directory or file

  • recursive – in case of directory the recursive refers to all subdirectories in the specified source

Returns

dict

put_run(self, specification)

Uploads file from Source(local) to Destination(Service)

Parameters
  • source – the source can be a directory or file

  • destination – the destination can be a directory or file

  • recursive – in case of directory the recursive refers to all subdirectories in the specified source

Returns

dict

delete_run(self, specification)

Deletes the source from cloud service

Parameters

source – the source can be a directory or file

Returns

None

mkdir_run(self, specification)

Creates a directory in the cloud service

Parameters

directory – directory is a folder

Returns

dict

search_run(self, specification)

searches the filename in the directory

Parameters
  • directory – directory on cloud service

  • filename – filename to be searched

  • recursive – in case of directory the recursive refers to all subdirectories in the specified directory

Returns

dict

list_run(self, specification)

lists all files specified in the source

Parameters
  • source – this can be a file or directory

  • recursive – in case of directory the recursive refers to all subdirectories in the specified source

  • dir_only – boolean, enlist only directories

Returns

dict

cloudmesh-storage.cloudmesh.storage.provider.parallelazureblob.Provider.p