Add filter to image list

* Hides previously broken --page-size option
* Adds --property to image list for filtering on properties
* Adds Visibility, Protected, Owner, Properties/Tags to --long output
* Adds api.utils.simple_filter() for selecting matches out of a list
  of objects
* Adds tests for all of the above
* Updates image docs

There are additional filtering options to be added in later reviews.

Change-Id: I32feff0ad61aae749b33621c817658d7dc90c3aa
Closes-bug: 1401902
This commit is contained in:
Dean Troyer
2015-01-21 15:02:58 -06:00
parent 2c03f6f42f
commit 61a40343fd
11 changed files with 606 additions and 130 deletions

@ -138,14 +138,10 @@ List available images
.. code:: bash
os image list
[--page-size <size>]
[--public|--private]
[--public | --private | --shared]
[--property <key=value>]
[--long]
.. option:: --page-size <size>
Number of images to request in each paginated request
.. option:: --public
List only public images
@ -154,6 +150,16 @@ List available images
List only private images
.. option:: --shared
List only shared images
*Image version 2 only.*
.. option:: --property <key=value>
Filter output based on property
.. option:: --long
List additional fields in output