glance.api.v2.cached_images module
Controller for Image Cache Management API
-
class glance.api.v2.cached_images.CacheController[source]
Bases: object
A controller for managing cached images.
-
delete_cached_image(req, image_id)[source]
DELETE /cached_images/<IMAGE_ID>
Removes an image from the cache.
-
delete_cached_images(req)[source]
DELETE /cached_images - Clear all active cached images
Removes all images from the cache.
-
delete_queued_image(req, image_id)[source]
DELETE /queued_images/<IMAGE_ID>
Removes an image from the cache.
-
delete_queued_images(req)[source]
DELETE /queued_images - Clear all active queued images
Removes all images from the cache.
-
get_cached_images(req)[source]
GET /cached_images
Returns a mapping of records about cached images.
-
get_queued_images(req)[source]
GET /queued_images
Returns a mapping of records about queued images.
-
queue_image(req, image_id)[source]
PUT /queued_images/<IMAGE_ID>
Queues an image for caching. We do not check to see if
the image is in the registry here. That is done by the
prefetcher…
-
class glance.api.v2.cached_images.CachedImageDeserializer[source]
Bases: glance.common.wsgi.JSONRequestDeserializer
-
class glance.api.v2.cached_images.CachedImageSerializer[source]
Bases: glance.common.wsgi.JSONResponseSerializer
-
glance.api.v2.cached_images.create_resource()[source]
Cached Images resource factory method