glance package¶
Subpackages¶
- glance.api package
- Subpackages
- glance.api.glare package
- glance.api.middleware package
- glance.api.v1 package
- glance.api.v2 package
- Subpackages
- glance.api.v2.model package
- Submodules
- glance.api.v2.model.metadef_namespace module
- glance.api.v2.model.metadef_object module
- glance.api.v2.model.metadef_property_item_type module
- glance.api.v2.model.metadef_property_type module
- glance.api.v2.model.metadef_resource_type module
- glance.api.v2.model.metadef_tag module
- Module contents
- glance.api.v2.model package
- Submodules
- glance.api.v2.image_actions module
- glance.api.v2.image_data module
- glance.api.v2.image_members module
- glance.api.v2.image_tags module
- glance.api.v2.images module
- glance.api.v2.metadef_namespaces module
- glance.api.v2.metadef_objects module
- glance.api.v2.metadef_properties module
- glance.api.v2.metadef_resource_types module
- glance.api.v2.metadef_tags module
- glance.api.v2.router module
- glance.api.v2.schemas module
- glance.api.v2.tasks module
- Module contents
- Subpackages
- Submodules
- glance.api.authorization module
- glance.api.cached_images module
- glance.api.common module
- glance.api.policy module
- glance.api.property_protections module
- glance.api.versions module
- Module contents
- Subpackages
- glance.async package
- glance.cmd package
- Submodules
- glance.cmd.api module
- glance.cmd.cache_cleaner module
- glance.cmd.cache_manage module
- glance.cmd.cache_prefetcher module
- glance.cmd.cache_pruner module
- glance.cmd.control module
- glance.cmd.glare module
- glance.cmd.manage module
- glance.cmd.registry module
- glance.cmd.replicator module
- glance.cmd.scrubber module
- Module contents
- glance.common package
- Subpackages
- Submodules
- glance.common.auth module
- glance.common.client module
- glance.common.config module
- glance.common.crypt module
- glance.common.exception module
- glance.common.jsonpatchvalidator module
- glance.common.property_utils module
- glance.common.rpc module
- glance.common.semver_db module
- glance.common.store_utils module
- glance.common.swift_store_utils module
- glance.common.timeutils module
- glance.common.trust_auth module
- glance.common.utils module
- glance.common.wsgi module
- glance.common.wsme_utils module
- Module contents
- glance.contrib package
- Subpackages
- glance.contrib.plugins package
- Subpackages
- glance.contrib.plugins.artifacts_sample package
- glance.contrib.plugins.image_artifact package
- Subpackages
- Submodules
- glance.contrib.plugins.image_artifact.setup module
- glance.contrib.plugins.image_artifact.version_selector module
- Module contents
- Module contents
- Subpackages
- glance.contrib.plugins package
- Module contents
- Subpackages
- glance.db package
- Subpackages
- glance.db.registry package
- glance.db.simple package
- glance.db.sqlalchemy package
- Subpackages
- glance.db.sqlalchemy.alembic_migrations package
- Subpackages
- glance.db.sqlalchemy.alembic_migrations.data_migrations package
- glance.db.sqlalchemy.alembic_migrations.versions package
- Submodules
- glance.db.sqlalchemy.alembic_migrations.versions.liberty_initial module
- glance.db.sqlalchemy.alembic_migrations.versions.mitaka01_add_image_created_updated_idx module
- glance.db.sqlalchemy.alembic_migrations.versions.mitaka02_update_metadef_os_nova_server module
- glance.db.sqlalchemy.alembic_migrations.versions.ocata01_add_visibility_remove_is_public module
- glance.db.sqlalchemy.alembic_migrations.versions.ocata_contract01_drop_is_public module
- glance.db.sqlalchemy.alembic_migrations.versions.ocata_expand01_add_visibility module
- Module contents
- Submodules
- glance.db.sqlalchemy.alembic_migrations.add_artifacts_tables module
- glance.db.sqlalchemy.alembic_migrations.add_images_tables module
- glance.db.sqlalchemy.alembic_migrations.add_metadefs_tables module
- glance.db.sqlalchemy.alembic_migrations.add_tasks_tables module
- glance.db.sqlalchemy.alembic_migrations.env module
- Module contents
- Subpackages
- glance.db.sqlalchemy.metadef_api package
- Submodules
- glance.db.sqlalchemy.metadef_api.namespace module
- glance.db.sqlalchemy.metadef_api.object module
- glance.db.sqlalchemy.metadef_api.property module
- glance.db.sqlalchemy.metadef_api.resource_type module
- glance.db.sqlalchemy.metadef_api.resource_type_association module
- glance.db.sqlalchemy.metadef_api.tag module
- glance.db.sqlalchemy.metadef_api.utils module
- Module contents
- glance.db.sqlalchemy.migrate_repo package
- Subpackages
- glance.db.sqlalchemy.migrate_repo.versions package
- Submodules
- glance.db.sqlalchemy.migrate_repo.versions.001_add_images_table module
- glance.db.sqlalchemy.migrate_repo.versions.002_add_image_properties_table module
- glance.db.sqlalchemy.migrate_repo.versions.003_add_disk_format module
- glance.db.sqlalchemy.migrate_repo.versions.004_add_checksum module
- glance.db.sqlalchemy.migrate_repo.versions.005_size_big_integer module
- glance.db.sqlalchemy.migrate_repo.versions.006_key_to_name module
- glance.db.sqlalchemy.migrate_repo.versions.007_add_owner module
- glance.db.sqlalchemy.migrate_repo.versions.008_add_image_members_table module
- glance.db.sqlalchemy.migrate_repo.versions.009_add_mindisk_and_minram module
- glance.db.sqlalchemy.migrate_repo.versions.010_default_update_at module
- glance.db.sqlalchemy.migrate_repo.versions.011_make_mindisk_and_minram_notnull module
- glance.db.sqlalchemy.migrate_repo.versions.012_id_to_uuid module
- glance.db.sqlalchemy.migrate_repo.versions.013_add_protected module
- glance.db.sqlalchemy.migrate_repo.versions.014_add_image_tags_table module
- glance.db.sqlalchemy.migrate_repo.versions.015_quote_swift_credentials module
- glance.db.sqlalchemy.migrate_repo.versions.016_add_status_image_member module
- glance.db.sqlalchemy.migrate_repo.versions.017_quote_encrypted_swift_credentials module
- glance.db.sqlalchemy.migrate_repo.versions.018_add_image_locations_table module
- glance.db.sqlalchemy.migrate_repo.versions.019_migrate_image_locations module
- glance.db.sqlalchemy.migrate_repo.versions.020_drop_images_table_location module
- glance.db.sqlalchemy.migrate_repo.versions.021_set_engine_mysql_innodb module
- glance.db.sqlalchemy.migrate_repo.versions.022_image_member_index module
- glance.db.sqlalchemy.migrate_repo.versions.023_placeholder module
- glance.db.sqlalchemy.migrate_repo.versions.024_placeholder module
- glance.db.sqlalchemy.migrate_repo.versions.025_placeholder module
- glance.db.sqlalchemy.migrate_repo.versions.026_add_location_storage_information module
- glance.db.sqlalchemy.migrate_repo.versions.027_checksum_index module
- glance.db.sqlalchemy.migrate_repo.versions.028_owner_index module
- glance.db.sqlalchemy.migrate_repo.versions.029_location_meta_data_pickle_to_string module
- glance.db.sqlalchemy.migrate_repo.versions.030_add_tasks_table module
- glance.db.sqlalchemy.migrate_repo.versions.031_remove_duplicated_locations module
- glance.db.sqlalchemy.migrate_repo.versions.032_add_task_info_table module
- glance.db.sqlalchemy.migrate_repo.versions.033_add_location_status module
- glance.db.sqlalchemy.migrate_repo.versions.034_add_virtual_size module
- glance.db.sqlalchemy.migrate_repo.versions.035_add_metadef_tables module
- glance.db.sqlalchemy.migrate_repo.versions.036_rename_metadef_schema_columns module
- glance.db.sqlalchemy.migrate_repo.versions.037_add_changes_to_satisfy_models module
- glance.db.sqlalchemy.migrate_repo.versions.038_add_metadef_tags_table module
- glance.db.sqlalchemy.migrate_repo.versions.039_add_changes_to_satisfy_models_metadef module
- glance.db.sqlalchemy.migrate_repo.versions.040_add_changes_to_satisfy_metadefs_tags module
- glance.db.sqlalchemy.migrate_repo.versions.041_add_artifact_tables module
- glance.db.sqlalchemy.migrate_repo.versions.042_add_changes_to_reinstall_unique_metadef_constraints module
- glance.db.sqlalchemy.migrate_repo.versions.043_add_image_created_updated_idx module
- glance.db.sqlalchemy.migrate_repo.versions.044_update_metadef_os_nova_server module
- glance.db.sqlalchemy.migrate_repo.versions.045_add_visibility module
- Module contents
- glance.db.sqlalchemy.migrate_repo.versions package
- Submodules
- glance.db.sqlalchemy.migrate_repo.manage module
- glance.db.sqlalchemy.migrate_repo.schema module
- Module contents
- Subpackages
- glance.db.sqlalchemy.alembic_migrations package
- Submodules
- glance.db.sqlalchemy.api module
- glance.db.sqlalchemy.glare module
- glance.db.sqlalchemy.metadata module
- glance.db.sqlalchemy.models module
- glance.db.sqlalchemy.models_glare module
- glance.db.sqlalchemy.models_metadef module
- Module contents
- Subpackages
- Submodules
- glance.db.metadata module
- glance.db.migration module
- glance.db.utils module
- Module contents
- Subpackages
- glance.domain package
- glance.glare package
- glance.hacking package
- glance.image_cache package
- glance.quota package
- glance.registry package
- glance.tests package
- Subpackages
- glance.tests.functional package
- Subpackages
- glance.tests.functional.db package
- Subpackages
- glance.tests.functional.db.migrations package
- Submodules
- glance.tests.functional.db.migrations.test_mitaka01 module
- glance.tests.functional.db.migrations.test_mitaka02 module
- glance.tests.functional.db.migrations.test_ocata01 module
- glance.tests.functional.db.migrations.test_ocata_contract01 module
- glance.tests.functional.db.migrations.test_ocata_expand01 module
- glance.tests.functional.db.migrations.test_ocata_migrate01 module
- Module contents
- glance.tests.functional.db.migrations package
- Submodules
- glance.tests.functional.db.base module
- glance.tests.functional.db.base_glare module
- glance.tests.functional.db.base_metadef module
- glance.tests.functional.db.test_migrations module
- glance.tests.functional.db.test_registry module
- glance.tests.functional.db.test_rpc_endpoint module
- glance.tests.functional.db.test_simple module
- glance.tests.functional.db.test_sqlalchemy module
- Module contents
- Subpackages
- glance.tests.functional.glare package
- glance.tests.functional.v1 package
- glance.tests.functional.v2 package
- Submodules
- glance.tests.functional.v2.registry_data_api module
- glance.tests.functional.v2.test_images module
- glance.tests.functional.v2.test_metadef_namespaces module
- glance.tests.functional.v2.test_metadef_objects module
- glance.tests.functional.v2.test_metadef_properties module
- glance.tests.functional.v2.test_metadef_resourcetypes module
- glance.tests.functional.v2.test_metadef_tags module
- glance.tests.functional.v2.test_schemas module
- glance.tests.functional.v2.test_tasks module
- Module contents
- glance.tests.functional.db package
- Submodules
- glance.tests.functional.store_utils module
- glance.tests.functional.test_api module
- glance.tests.functional.test_bin_glance_cache_manage module
- glance.tests.functional.test_cache_middleware module
- glance.tests.functional.test_client_exceptions module
- glance.tests.functional.test_client_redirects module
- glance.tests.functional.test_cors_middleware module
- glance.tests.functional.test_glance_manage module
- glance.tests.functional.test_glance_replicator module
- glance.tests.functional.test_gzip_middleware module
- glance.tests.functional.test_healthcheck_middleware module
- glance.tests.functional.test_logging module
- glance.tests.functional.test_reload module
- glance.tests.functional.test_scrubber module
- glance.tests.functional.test_sqlite module
- glance.tests.functional.test_ssl module
- glance.tests.functional.test_wsgi module
- Module contents
- Subpackages
- glance.tests.integration package
- glance.tests.unit package
- Subpackages
- glance.tests.unit.api package
- glance.tests.unit.async package
- glance.tests.unit.common package
- Subpackages
- Submodules
- glance.tests.unit.common.test_client module
- glance.tests.unit.common.test_config module
- glance.tests.unit.common.test_exception module
- glance.tests.unit.common.test_location_strategy module
- glance.tests.unit.common.test_property_utils module
- glance.tests.unit.common.test_rpc module
- glance.tests.unit.common.test_scripts module
- glance.tests.unit.common.test_semver module
- glance.tests.unit.common.test_swift_store_utils module
- glance.tests.unit.common.test_timeutils module
- glance.tests.unit.common.test_utils module
- glance.tests.unit.common.test_wsgi module
- glance.tests.unit.common.test_wsgi_ipv6 module
- Module contents
- glance.tests.unit.v1 package
- glance.tests.unit.v2 package
- Submodules
- glance.tests.unit.v2.test_image_actions_resource module
- glance.tests.unit.v2.test_image_data_resource module
- glance.tests.unit.v2.test_image_members_resource module
- glance.tests.unit.v2.test_image_tags_resource module
- glance.tests.unit.v2.test_images_resource module
- glance.tests.unit.v2.test_metadef_resources module
- glance.tests.unit.v2.test_registry_api module
- glance.tests.unit.v2.test_registry_client module
- glance.tests.unit.v2.test_schemas_resource module
- glance.tests.unit.v2.test_tasks_resource module
- Module contents
- Submodules
- glance.tests.unit.base module
- glance.tests.unit.fake_rados module
- glance.tests.unit.test_auth module
- glance.tests.unit.test_cache_middleware module
- glance.tests.unit.test_cached_images module
- glance.tests.unit.test_context module
- glance.tests.unit.test_context_middleware module
- glance.tests.unit.test_data_migration_framework module
- glance.tests.unit.test_db module
- glance.tests.unit.test_db_metadef module
- glance.tests.unit.test_domain module
- glance.tests.unit.test_domain_proxy module
- glance.tests.unit.test_glance_manage module
- glance.tests.unit.test_glance_replicator module
- glance.tests.unit.test_glare_plugin_loader module
- glance.tests.unit.test_glare_type_definition_framework module
- glance.tests.unit.test_image_cache module
- glance.tests.unit.test_image_cache_client module
- glance.tests.unit.test_jsonpatchmixin module
- glance.tests.unit.test_manage module
- glance.tests.unit.test_misc module
- glance.tests.unit.test_notifier module
- glance.tests.unit.test_policy module
- glance.tests.unit.test_quota module
- glance.tests.unit.test_schema module
- glance.tests.unit.test_scrubber module
- glance.tests.unit.test_store_glare module
- glance.tests.unit.test_store_image module
- glance.tests.unit.test_store_location module
- glance.tests.unit.test_versions module
- glance.tests.unit.utils module
- Module contents
- Subpackages
- glance.tests.functional package
- Submodules
- glance.tests.stubs module
- glance.tests.test_hacking module
- glance.tests.utils module
- Module contents
- Subpackages
Submodules¶
glance.context module¶
-
class
glance.context.
RequestContext
(owner_is_tenant=True, service_catalog=None, policy_enforcer=None, **kwargs)[source]¶ Bases:
oslo_context.context.RequestContext
Stores information about the security context.
Stores how the user accesses the system, as well as additional request information.
-
can_see_deleted
¶ Admins can see deleted by default
-
owner
¶ Return the owner to correlate with an image.
-
glance.gateway module¶
glance.i18n module¶
glance.location module¶
-
class
glance.location.
ImageMemberRepoProxy
(repo, image, context, store_api)[source]¶ Bases:
glance.domain.proxy.Repo
-
class
glance.location.
ImageProxy
(image, context, store_api, store_utils)[source]¶ Bases:
glance.domain.proxy.Image
-
locations
¶
-
-
class
glance.location.
ImageRepoProxy
(image_repo, context, store_api, store_utils)[source]¶ Bases:
glance.domain.proxy.Repo
-
class
glance.location.
StoreLocations
(image_proxy, value)[source]¶ Bases:
_abcoll.MutableSequence
The proxy for store location property. It takes responsibility for:
1. Location uri correctness checking when adding a new location. 2. Remove the image data from the store when a location is removed from an image.
glance.notifier module¶
-
class
glance.notifier.
ImageFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.ImageFactory
-
class
glance.notifier.
ImageMemberProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.ImageMember
-
class
glance.notifier.
ImageMemberRepoProxy
(repo, image, context, notifier)[source]¶ Bases:
glance.notifier.NotificationBase
,glance.domain.proxy.MemberRepo
-
class
glance.notifier.
ImageProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.Image
-
class
glance.notifier.
ImageRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.Repo
-
class
glance.notifier.
MetadefNamespaceFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.MetadefNamespaceFactory
-
class
glance.notifier.
MetadefNamespaceProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.MetadefNamespace
-
class
glance.notifier.
MetadefNamespaceRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.MetadefNamespaceRepo
-
class
glance.notifier.
MetadefObjectFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.MetadefObjectFactory
-
class
glance.notifier.
MetadefObjectProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.MetadefObject
-
class
glance.notifier.
MetadefObjectRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.MetadefObjectRepo
-
class
glance.notifier.
MetadefPropertyFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.MetadefPropertyFactory
-
class
glance.notifier.
MetadefPropertyProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.MetadefProperty
-
class
glance.notifier.
MetadefPropertyRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.MetadefPropertyRepo
-
class
glance.notifier.
MetadefResourceTypeFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.MetadefResourceTypeFactory
-
class
glance.notifier.
MetadefResourceTypeProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.MetadefResourceType
-
class
glance.notifier.
MetadefResourceTypeRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.MetadefResourceTypeRepo
-
class
glance.notifier.
MetadefTagFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.MetadefTagFactory
-
class
glance.notifier.
MetadefTagProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.MetadefTag
-
class
glance.notifier.
MetadefTagRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.MetadefTagRepo
-
class
glance.notifier.
Notifier
[source]¶ Bases:
object
Uses a notification strategy to send out messages about events.
-
class
glance.notifier.
TaskFactoryProxy
(factory, context, notifier)[source]¶ Bases:
glance.notifier.NotificationFactoryProxy
,glance.domain.proxy.TaskFactory
-
class
glance.notifier.
TaskProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.Task
-
class
glance.notifier.
TaskRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.TaskRepo
-
class
glance.notifier.
TaskStubProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationProxy
,glance.domain.proxy.TaskStub
-
class
glance.notifier.
TaskStubRepoProxy
(repo, context, notifier)[source]¶ Bases:
glance.notifier.NotificationRepoProxy
,glance.domain.proxy.TaskStubRepo
-
glance.notifier.
format_image_member_notification
(image_member)[source]¶ Given a glance.domain.ImageMember object, return a dictionary of relevant notification information.
glance.opts module¶
-
glance.opts.
list_api_opts
()[source]¶ Return a list of oslo_config options available in Glance API service.
Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element will be registered. A group name of None corresponds to the [DEFAULT] group in config files.
This function is also discoverable via the ‘glance.api’ entry point under the ‘oslo_config.opts’ namespace.
The purpose of this is to allow tools like the Oslo sample config file generator to discover the options exposed to users by Glance.
Returns: a list of (group_name, opts) tuples
-
glance.opts.
list_registry_opts
()[source]¶ Return a list of oslo_config options available in Glance Registry service.
-
glance.opts.
list_scrubber_opts
()[source]¶ Return a list of oslo_config options available in Glance Scrubber service.
-
glance.opts.
list_cache_opts
()[source]¶ Return a list of oslo_config options available in Glance Cache service.
glance.schema module¶
-
class
glance.schema.
DictCollectionSchema
(name, item_schema)[source]¶ Bases:
glance.schema.Schema
-
class
glance.schema.
PermissiveSchema
(name, properties=None, links=None, required=None, definitions=None)[source]¶ Bases:
glance.schema.Schema
glance.scrubber module¶
-
class
glance.scrubber.
ScrubDBQueue
[source]¶ Bases:
object
Database-based image scrub queue class.
-
add_location
(image_id, location)[source]¶ Adding image location to scrub queue.
Parameters: - image_id – The opaque image identifier
- location – The opaque image location
Returns: A boolean value to indicate success or not
-