glance.db.simple package

Submodules

glance.db.simple.api module

glance.db.simple.api.artifact_create(*args, **kwargs)[source]
glance.db.simple.api.artifact_get(*args, **kwargs)[source]
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_create(*args, **kwargs)[source]
glance.db.simple.api.image_destroy(*args, **kwargs)[source]
glance.db.simple.api.image_get(*args, **kwargs)[source]
glance.db.simple.api.image_get_all(*args, **kwargs)[source]
glance.db.simple.api.image_location_delete(*args, **kwargs)[source]
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.image_member_create(*args, **kwargs)[source]
glance.db.simple.api.image_member_delete(*args, **kwargs)[source]
glance.db.simple.api.image_member_find(*args, **kwargs)[source]
glance.db.simple.api.image_member_update(*args, **kwargs)[source]
glance.db.simple.api.image_property_create(*args, **kwargs)[source]
glance.db.simple.api.image_property_delete(*args, **kwargs)[source]
glance.db.simple.api.image_tag_delete(*args, **kwargs)[source]
glance.db.simple.api.image_tag_get(*args, **kwargs)[source]
glance.db.simple.api.image_tag_get_all(*args, **kwargs)[source]
glance.db.simple.api.image_tag_set_all(*args, **kwargs)[source]
glance.db.simple.api.image_update(*args, **kwargs)[source]
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.log_call(func)[source]
glance.db.simple.api.metadef_namespace_create(*args, **kwargs)[source]

Create a namespace object

glance.db.simple.api.metadef_namespace_delete(*args, **kwargs)[source]

Delete a namespace object

glance.db.simple.api.metadef_namespace_delete_content(*args, **kwargs)[source]

Delete a namespace content

glance.db.simple.api.metadef_namespace_get(*args, **kwargs)[source]

Get a namespace object

glance.db.simple.api.metadef_namespace_get_all(*args, **kwargs)[source]

Get a namespaces list

glance.db.simple.api.metadef_namespace_get_by_id(*args, **kwargs)[source]

Get a namespace object

glance.db.simple.api.metadef_namespace_update(*args, **kwargs)[source]

Update a namespace object

glance.db.simple.api.metadef_object_count(*args, **kwargs)[source]

Get metadef object count in a namespace

glance.db.simple.api.metadef_object_create(*args, **kwargs)[source]

Create a metadef object

glance.db.simple.api.metadef_object_delete(*args, **kwargs)[source]

Delete a metadef object

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_object_get(*args, **kwargs)[source]

Get a metadef object

glance.db.simple.api.metadef_object_get_all(*args, **kwargs)[source]

Get a metadef objects list

glance.db.simple.api.metadef_object_get_by_id(*args, **kwargs)[source]

Get a metadef object

glance.db.simple.api.metadef_object_update(*args, **kwargs)[source]

Update a metadef object

glance.db.simple.api.metadef_property_count(*args, **kwargs)[source]

Get properties count in a namespace

glance.db.simple.api.metadef_property_create(*args, **kwargs)[source]

Create a metadef property

glance.db.simple.api.metadef_property_delete(*args, **kwargs)[source]

Delete a metadef property

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(*args, **kwargs)[source]

Get a metadef property

glance.db.simple.api.metadef_property_get_all(*args, **kwargs)[source]

Get a metadef properties list

glance.db.simple.api.metadef_property_get_by_id(*args, **kwargs)[source]

Get a metadef property

glance.db.simple.api.metadef_property_update(*args, **kwargs)[source]

Update a metadef property

glance.db.simple.api.metadef_resource_type_association_create(*args, **kwargs)[source]
glance.db.simple.api.metadef_resource_type_association_delete(*args, **kwargs)[source]
glance.db.simple.api.metadef_resource_type_association_get(*args, **kwargs)[source]
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(*args, **kwargs)[source]

Get a 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

glance.db.simple.api.metadef_tag_create(*args, **kwargs)[source]

Create a metadef tag

glance.db.simple.api.metadef_tag_create_tags(*args, **kwargs)[source]

Create a metadef tag

glance.db.simple.api.metadef_tag_delete(*args, **kwargs)[source]

Delete 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.metadef_tag_get(*args, **kwargs)[source]

Get a metadef tag

glance.db.simple.api.metadef_tag_get_all(*args, **kwargs)[source]

Get a metadef tags list

glance.db.simple.api.metadef_tag_get_by_id(*args, **kwargs)[source]

Get a metadef tag

glance.db.simple.api.metadef_tag_update(*args, **kwargs)[source]

Update a metadef tag

glance.db.simple.api.reset()[source]
glance.db.simple.api.task_create(*args, **kwargs)[source]

Create a task object

glance.db.simple.api.task_delete(*args, **kwargs)[source]
glance.db.simple.api.task_get(*args, **kwargs)[source]
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

glance.db.simple.api.task_update(*args, **kwargs)[source]

Update a task object

glance.db.simple.api.user_get_storage_usage(context, owner_id, image_id=None, session=None)[source]

Module contents

Table Of Contents

Previous topic

glance.db.registry package

Next topic

glance.db.sqlalchemy package

Project Source

This Page