cloudmesh-cloud.cloudmesh.data.api.db.DBProviderABC

Module Contents

Classes

DBProviderABC

Abstract Base Class for supported database providers.

class cloudmesh-cloud.cloudmesh.data.api.db.DBProviderABC.DBProviderABC

Abstract Base Class for supported database providers.

abstract list_files(self)

get a list of stored files

Returns

a list of CloudFiles

abstract add(self, cloud_file)

add a new CloudFile to the database

Parameters

cloud_file – a CloudFile. todo

Returns

a CloudFile with resource information filled in

abstract delete(self, cloud_file)

delete a file from the database

Parameters

cloud_file – the cloud file entry being deleted

abstract update(self, cloud_file)

update a file

Parameters

cloud_file – the cloud file entry being updated

Returns

the updated CloudFile