glance.cmd.cache_manage module¶
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)[source]¶
%(prog)s delete-all-cached-images [options]
Remove all images from the cache.
- glance.cmd.cache_manage.delete_all_queued_images(args)[source]¶
%(prog)s delete-all-queued-images [options]
Remove all images from the cache queue.
- glance.cmd.cache_manage.delete_cached_image(args)[source]¶
%(prog)s delete-cached-image <IMAGE_ID> [options]
Deletes an image from the cache.
- glance.cmd.cache_manage.delete_queued_image(args)[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)[source]¶
%(prog)s list-cached [options]
List all images currently cached.
- glance.cmd.cache_manage.list_queued(args)[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)[source]¶
%(prog)s queue-image <IMAGE_ID> [options]
Queues an image for caching.