glance.image_cache.client module

class glance.image_cache.client.CacheClient(host, port=None, timeout=None, use_ssl=False, auth_token=None, creds=None, doc_root=None, key_file=None, cert_file=None, ca_file=None, insecure=False, configure_via_auth=True)[source]

Bases: BaseClient

DEFAULT_DOC_ROOT = '/v2'
DEFAULT_PORT = 9292
delete_all_cached_images()[source]

Delete all cached images

delete_all_queued_images()[source]

Delete all queued images

delete_cached_image(image_id)[source]

Delete a specified image from the cache

delete_queued_image(image_id)[source]

Delete a specified image from the cache queue

get_cached_images(**kwargs)[source]

Returns a list of images stored in the image cache.

get_queued_images(**kwargs)[source]

Returns a list of images queued for caching

queue_image_for_caching(image_id)[source]

Queue an image for prefetching into cache

glance.image_cache.client.get_client(host, port=None, timeout=None, use_ssl=False, username=None, password=None, project=None, user_domain_id=None, project_domain_id=None, auth_url=None, auth_strategy=None, auth_token=None, region=None, insecure=False)[source]

Returns a new client Glance client object based on common kwargs. If an option isn’t specified falls back to common environment variable defaults.