glance.db.simple package¶
Submodules¶
glance.db.simple.api module¶
-
glance.db.simple.api.
clear_db_env
(*args, **kwargs)[source]¶ Setup global environment configuration variables.
We have no connection-oriented environment variables, so this is a NOOP.
-
glance.db.simple.api.
image_member_count
(*args, **kwargs)[source]¶ Return the number of image members for this image
Parameters: image_id – identifier of image entity
-
glance.db.simple.api.
is_image_mutable
(context, image)[source]¶ Return True if the image is mutable in this context.
-
glance.db.simple.api.
is_image_visible
(context, image, status=None)[source]¶ Return True if the image is visible in this context.
-
glance.db.simple.api.
metadef_namespace_delete_content
(*args, **kwargs)[source]¶ Delete a namespace content
-
glance.db.simple.api.
metadef_object_count
(*args, **kwargs)[source]¶ Get metadef object count in a namespace
-
glance.db.simple.api.
metadef_object_delete_namespace_content
(context, namespace_name, session=None)[source]¶ Delete an object or raise if namespace or object doesn’t exist.
-
glance.db.simple.api.
metadef_property_count
(*args, **kwargs)[source]¶ Get properties count in a namespace
-
glance.db.simple.api.
metadef_property_delete_namespace_content
(context, namespace_name, session=None)[source]¶ Delete a property or raise if it or namespace doesn’t exist.
-
glance.db.simple.api.
metadef_property_get_all
(*args, **kwargs)[source]¶ Get a metadef properties list
-
glance.db.simple.api.
metadef_resource_type_association_get_all_by_namespace
(*args, **kwargs)[source]¶
-
glance.db.simple.api.
metadef_resource_type_create
(*args, **kwargs)[source]¶ Create a metadef resource type
-
glance.db.simple.api.
metadef_resource_type_get_all
(*args, **kwargs)[source]¶ List all resource types
-
glance.db.simple.api.
metadef_tag_count
(*args, **kwargs)[source]¶ Get metadef tag count in a namespace
Create a metadef tag
-
glance.db.simple.api.
metadef_tag_delete_namespace_content
(context, namespace_name, session=None)[source]¶ Delete an tag or raise if namespace or tag doesn’t exist.
-
glance.db.simple.api.
task_get_all
(*args, **kwargs)[source]¶ Get all tasks that match zero or more filters.
Parameters: - filters – dict of filter keys and values.
- marker – task id after which to start page
- limit – maximum number of tasks to return
- sort_key – task attribute by which results should be sorted
- sort_dir – direction in which results should be sorted (asc, desc)
Returns: tasks set