glance.db package¶
Subpackages¶
Module contents¶
-
class
glance.db.
ImageProxy
(image, context, db_api)[source]¶ Bases:
glance.domain.proxy.Image
-
class
glance.db.
ImageRepo
(context, db_api)[source]¶ Bases:
object
-
glance.db.
get_api
(v1_mode=False)[source]¶ When using v2_registry with v2_api or alone, it is essential that the opt ‘data_api’ be set to ‘glance.db.registry.api’. This requires us to differentiate what this method returns as the db api. i.e., we do not want to return ‘glance.db.registry.api’ for a call from v1 api. Reference bug #1516706