9 Commits

Author SHA1 Message Date
Bhuvan Arumugam
d6e0a03a93 Support --os-endpoint-type in glanceclient.
Bug: 993993

* glanceclient/shellp.py
  OpenStackImagesShell.get_base_parser(): Parse --os-endpoint-type
  argument. Default to one defined in os.environ.
  OpenStackImagesShell._authenticate(): Define endpoint type based
  on command line argument. Use 'publicURL', if it's not specified
  in command line and also not defined in os.environ.
  OpenStackImagesShell.main(): Pass this value to authenticate.

Change-Id: I0c0cde5212198eec2a7d75fb2a7cad1cde048c7c
2012-06-23 22:28:21 -07:00
Brian Waldon
4b62848a4c Add minimal support for the v2 API
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
2012-06-04 08:49:26 -07:00
Michael Basnight
405d2494e3 Adds support for --insecure.
fixes lp#1004281.

Change-Id: I464e39515a7172bfb72921a92f46d31baac466d8
2012-05-24 22:35:14 -05:00
Michael Basnight
399d0bbdef Adding service type as configurable shell option
fixes lp#997698

Change-Id: I5179a2ed5f32a8e7253806f6f9b02de3c06913ed
2012-05-10 14:15:54 -05:00
Dean Troyer
e2936766f7 Strip version from service catalog endpoint
This client includes the API version in the URL directly where the
former practice was to include it in the service catalog endpoint.
This change removes the version from the last component of the
SC endpoint (if present) for transition purposes.

Note that this does not generalize to the other APIs
where the version is not the last component of the SC endpoint.

Change-Id: Ie04c38d80b17a171482e195aa1c633b6b6974042
2012-04-23 17:00:43 -05:00
Brian Waldon
d3185dd3b4 Allow tenant name to be used in authentication
Change-Id: If0bdf67143d64172db0b665fc07c165fabc9486a
2012-04-10 09:54:49 -07:00
Brian Waldon
883d22d032 Further cleanup
* README is now relevant
* Auth now properly skipped with os-image-url and os-auth-token provided
2012-03-26 23:30:44 -07:00
Brian Waldon
c530de6389 Basic get/list operations work
* 'glance image-list' and 'glance image-show' work
* Set up tests, pep8, venv
2012-03-26 22:48:48 -07:00
Jay Pipes
972677fc3d Initial checkin for new CLI and client package
Copied mostly from python-keystoneclient with
some Glance-specific stuff. README.rst shows what
WILL be the way to do things, not what is currently coded :)
2012-02-29 16:42:26 -05:00