tardis.adapters.sites.cloudstack module
- class tardis.adapters.sites.cloudstack.CloudStackAdapter(machine_type: str, site_name: str)[source]
Bases:
SiteAdapter- async deploy_resource(resource_attributes: AttributeDict) AttributeDict[source]
Abstract method to define the interface to deploy a new resource at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the
Droneimplementation! :return: Contains updated describing attributes of the resource.
- handle_exceptions()[source]
Abstract method defining the interface to handle exception occurring during interacting with the resource provider.
- async resource_status(resource_attributes: AttributeDict) AttributeDict[source]
Abstract method to define the interface to check the status of resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the
Droneimplementation! :return: Contains updated describing attributes of the resource.
- async stop_resource(resource_attributes: AttributeDict)[source]
Abstract method to define the interface to stop resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the
Droneimplementation!
- async terminate_resource(resource_attributes: AttributeDict)[source]
Abstract method to define the interface to terminate resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the
Droneimplementation!