A simple cache management utility for Glance.
glance.cmd.cache_manage.
catch_error
(action)[source]¶Decorator to provide sensible default error handling for actions.
glance.cmd.cache_manage.
delete_all_cached_images
(*args, **kwargs)[source]¶%(prog)s delete-all-cached-images [options]
Remove all images from the cache.
glance.cmd.cache_manage.
delete_all_queued_images
(*args, **kwargs)[source]¶%(prog)s delete-all-queued-images [options]
Remove all images from the cache queue.
glance.cmd.cache_manage.
delete_cached_image
(*args, **kwargs)[source]¶%(prog)s delete-cached-image <IMAGE_ID> [options]
Deletes an image from the cache.
glance.cmd.cache_manage.
delete_queued_image
(*args, **kwargs)[source]¶%(prog)s delete-queued-image <IMAGE_ID> [options]
Deletes an image from the cache.
glance.cmd.cache_manage.
env
(*vars, **kwargs)[source]¶Search for the first defined of possibly many env vars.
Returns the first environment variable defined in vars, or returns the default defined in kwargs.
glance.cmd.cache_manage.
get_client
(options)[source]¶Return a new client object to a Glance server.
specified by the –host and –port options supplied to the CLI
glance.cmd.cache_manage.
list_cached
(*args, **kwargs)[source]¶%(prog)s list-cached [options]
List all images currently cached.
glance.cmd.cache_manage.
list_queued
(*args, **kwargs)[source]¶%(prog)s list-queued [options]
List all images currently queued for caching.
glance.cmd.cache_manage.
parse_args
(parser)[source]¶Set up the CLI and config-file options that may be parsed and program commands.
Parameters: | parser – The option parser |
---|
glance.cmd.cache_manage.
queue_image
(*args, **kwargs)[source]¶%(prog)s queue-image <IMAGE_ID> [options]
Queues an image for caching.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.