summaryrefslogtreecommitdiff
path: root/glanceclient/common
Commit message (Collapse)AuthorAgeFilesLines
* Fix --debug CLI optionBrian Waldon2012-07-291-8/+0
| | | | | | | | | | The --debug argument has been ignored since httplib2 was replaced with httplib. This re-enables the --debug flag as an equivalent to the env var GLANCECLIENT_DEBUG. Fixes bug 1030700 Change-Id: Ib653049eea2f18c4cc2f8f8aac7884245afd0f04
* Replace httplib2 with httplib as http driverBrian Waldon2012-07-231-22/+26
| | | | | | | | * This allows us to send truly chunked responses to users * Handle bad connection url schemes with a new InvalidEndpoint exception * Fixes bug 1023240 Change-Id: I34500987f51d4e0c6e1f89ecf93853de3fcbb1c3
* Merge "Wrap image data in iterator"Jenkins2012-07-191-2/+28
|\
| * Wrap image data in iteratorBrian Waldon2012-07-111-2/+28
| | | | | | | | | | | | | | | | | | | | This is establishing the API for a future optimization. We want to be able to offer true socket-level caching, but can't do that with httplib2 right now. For now, we will just fake the optimization by returning an iterator over the image body, which happens to already be fully loaded into a string. Change-Id: I2d36e3cdd45b26d7c7c27ba050bf6a4b5765df6c
* | Align print_dict to the leftBrian Waldon2012-07-131-1/+1
| | | | | | | | Change-Id: Ib98e912a7af0bb570b4fd738733edd9b837d1a10
* | Rewrite link parsing for finding v2 schemasBrian Waldon2012-07-131-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What we called 'links' are no longer returned in a container of objects, they are top-level entity attribtues. This fixes the parsing of the entities to look in the correct place when trying to locate a specific schema. Add a helper for printing to stderr and exiting with a non-zero exit code. Map 'name' to 'Attribute' when explaining a schema. Related to bp glance-client-v2 Change-Id: Ib98e912a7af0bb570b4fd738733edd9b837d1a05
* | Establish the supported importable interfaceBrian Waldon2012-07-133-138/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | * Consumers of this client should not depend on being able to import any module other than glanceclient and glanceclient * The only attributs of the glanceclient module are Client and __version__ * The attributes of the glanceclient.exc modules have yet to be locked down * glanceclient.common.exceptions was replaced with a placeholder module until consumers of it are updated Change-Id: Iea9648cd06906d65764987c1f2ee5a88ebeee748
* | Remove AuthorizationFailure exceptionBrian Waldon2012-07-101-4/+0
|/ | | | | | | | | The AuthorizationFailure exception isn't used anywhere, so remove it. Fix bug 1015940. Change-Id: Ie6da74b63e3d1658c8ae26c272222f00f1209e38
* Add 'explain' command to v2 that describes schemasBrian Waldon2012-06-071-0/+5
| | | | | | | | | At its core, this is adding the ability to finx a schema through published links and convert it to a usable object. Related to bp glance-client-v2 Change-Id: I7b38ad091c6b0ad80197eb789503cf73989893e5
* Stick prettytable at v0.6Brian Waldon2012-06-071-1/+1
| | | | | | Doing this so we can align columns reliably Change-Id: Ibdbc6f3df08d6f9c45b6e0a0f5a2440ba2637dbd
* Add minimal support for the v2 APIBrian Waldon2012-06-041-0/+8
| | | | | | | | | This only allows you to run image-list, but sets up a framework that we can use to fill in the rest of the v2 functionality. * Related to bp glance-client-v2 Change-Id: I8827e36fdcf79fe402990a6d05898ec00cbd54c6
* Adds support for --insecure.Michael Basnight2012-05-241-1/+2
| | | | | | fixes lp#1004281. Change-Id: I464e39515a7172bfb72921a92f46d31baac466d8
* Refactor HTTPClient to use two request methodsBrian Waldon2012-05-222-69/+32
| | | | | | | | | Rather than depend on magic, I would prefer that we explicitly call two different request methods: json_request and raw_request. The former will encode/decode request bodies to and from JSON, while the latter will not. Change-Id: I6a429a5975993f71df85df55f11c5d51c050c289
* Remove printtDean Troyer2012-05-071-2/+2
| | | | | | | | prettyprint 0.6 removed printt at the last minute, replace with get_string Fixes bug 995826 Change-Id: I9a25efc3d723ab0208ea88fc6431a95cc9176acb
* image membership management worksBrian Waldon2012-04-031-3/+10
|
* Adding support for passing image data through cliBrian Waldon2012-04-031-3/+3
|
* Image members bonesBrian Waldon2012-04-021-10/+5
|
* Basic get/list operations workBrian Waldon2012-03-265-0/+523
* 'glance image-list' and 'glance image-show' work * Set up tests, pep8, venv