cinderlib.persistence.base module¶
-
class
DB
(persistence_driver)[source]¶ Bases:
object
Replacement for DB access methods.
This will serve as replacement for methods used by:
Drivers
OVOs’ get_by_id and save methods
DB implementation
Data will be retrieved using the persistence driver we setup.
-
GET_METHODS_PER_DB_MODEL
= {cinder.objects.Volume.model: 'volume_get', cinder.objects.VolumeType.model: 'volume_type_get', cinder.objects.Snapshot.model: 'snapshot_get', cinder.objects.QualityOfServiceSpecs.model: 'qos_specs_get'}¶
-
class
PersistenceDriverBase
(**kwargs)[source]¶ Bases:
object
Provide Metadata Persistency for our resources.
This class will be used to store new resources as they are created, updated, and removed, as well as provide a mechanism for users to retrieve volumes, snapshots, and connections.
-
property
db
¶
-
property