cloudmesh-cloud.cloudmesh.data.api.storage.StorageProviderABC

Module Contents

Classes

StorageProviderABC

Abstract Base Class for supported cloud providers.

class cloudmesh-cloud.cloudmesh.data.api.storage.StorageProviderABC.StorageProviderABC

Abstract Base Class for supported cloud providers.

abstract get(self, source, destination)

get a file stored with this provider

Parameters
  • source – the cloud file entry being retrieved

  • destination – download destination

Returns

the downloaded cloud file binary

abstract put(self, source)

upload a file

Parameters

source – a CloudFile. todo

Returns

a CloudFile with resource information filled in

abstract delete(self, name)

delete a file from the provider

Parameters

name – the cloud file entry being deleted

abstract exists(self, name)

if a file exists in the remote storage provider

Parameters

name – a file name to check