glance.db package

Subpackages

Submodules

glance.db.metadata module

Metadata setup commands.

glance.db.metadata.export_metadefs()[source]

Export metadefinitions from database to files

glance.db.metadata.get_backend()[source]
glance.db.metadata.load_metadefs()[source]

Read metadefinition files and insert data into the database

glance.db.metadata.unload_metadefs()[source]

Unload metadefinitions from database

glance.db.migration module

Database setup and migration commands.

glance.db.migration.db_sync(version=None, init_version=0, engine=None)[source]

Migrate the database to version or the most recent version.

glance.db.migration.get_backend()[source]

Module contents

class glance.db.ArtifactRepo(context, db_api, plugins)[source]

Bases: object

add(artifact)[source]
fields = ['id', 'name', 'version', 'type_name', 'type_version', 'visibility', 'state', 'owner', 'scope', 'created_at', 'updated_at', 'tags', 'dependencies', 'blobs', 'properties']
get(artifact_id, type_name=None, type_version=None, show_level=None, include_deleted=False)[source]
list(marker=None, limit=None, sort_keys=None, sort_dirs=None, filters=None, show_level=None)[source]
publish(artifact)[source]
remove(artifact)[source]
save(artifact)[source]
class glance.db.ImageMemberRepo(context, db_api, image)[source]

Bases: object

add(image_member)[source]
get(member_id)[source]
list()[source]
remove(image_member)[source]
save(image_member, from_state=None)[source]
class glance.db.ImageProxy(image, context, db_api)[source]

Bases: glance.domain.proxy.Image

class glance.db.ImageRepo(context, db_api)[source]

Bases: object

add(image)[source]
get(image_id)[source]
list(marker=None, limit=None, sort_key=None, sort_dir=None, filters=None, member_status='accepted')[source]
remove(image)[source]
save(image, from_state=None)[source]
class glance.db.MetadefNamespaceRepo(context, db_api)[source]

Bases: object

add(namespace)[source]
get(namespace)[source]
list(marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
object_count(namespace_name)[source]
property_count(namespace_name)[source]
remove(namespace)[source]
remove_objects(namespace)[source]
remove_properties(namespace)[source]
remove_tags(namespace)[source]
save(namespace)[source]
class glance.db.MetadefObjectRepo(context, db_api)[source]

Bases: object

add(metadata_object)[source]
get(namespace, object_name)[source]
list(marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
remove(metadata_object)[source]
save(metadata_object)[source]
class glance.db.MetadefPropertyRepo(context, db_api)[source]

Bases: object

add(property)[source]
get(namespace, property_name)[source]
list(marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
remove(property)[source]
save(property)[source]
class glance.db.MetadefResourceTypeRepo(context, db_api)[source]

Bases: object

add(resource_type)[source]
get(resource_type, namespace)[source]
list(filters=None)[source]
remove(resource_type)[source]
class glance.db.MetadefTagRepo(context, db_api)[source]

Bases: object

add(metadata_tag)[source]
add_tags(metadata_tags)[source]
get(namespace, name)[source]
list(marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
remove(metadata_tag)[source]
save(metadata_tag)[source]
class glance.db.TaskRepo(context, db_api)[source]

Bases: object

add(task)[source]
get(task_id)[source]
list(marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
remove(task)[source]
save(task)[source]
glance.db.get_api()[source]
glance.db.unwrap(db_api)[source]

Table Of Contents

Previous topic

glance.contrib.plugins.image_artifact.v2 package

Next topic

glance.db.registry package

Project Source

This Page