Commit Graph

18 Commits

Author SHA1 Message Date
Davanum Srinivas ce3bd97613 Sanitize the package names
* All files in the same directory should belong to
  the same package
* Avoid xyz/xyz_v123 format (example volume/volume_v2)
* Added a doc.go so we can support a different import
  path later:
    https://golang.org/doc/go1.4#canonicalimports
* Drop the trailing ".git" in the imports

Change-Id: If4a880c62a2142f7015ed693e07af239bbbcf8e5
2017-03-07 13:39:59 -05:00
Dean Troyer d38d3def62 Clean up source with go fmt
Change-Id: Iaa5382f2fd35764ba7e795c5ae8e5b9b780eac31
2016-12-14 18:30:42 -06:00
Dean Troyer bff51c47ce Fix up unit tests
* Fix objectstore unit tests to use Session
* Remove unused auth code
* Skip unit tests for validator (did these ever work?)
* Fix volume v2 location

Change-Id: Ib770c20a2798822c15f34e89c5c49f2a2814beb5
2016-12-14 18:26:35 -06:00
wujian 301e6d4cb8 Authorization failed with project id
The keystone response 401 unauthorised ERROR when
use Project ID to get token.

Change-Id: I4f9b361d93127ae8fd6d44d45420095726c288b4
Closes-Bug: #1625967
2016-09-21 16:19:44 +08:00
Fangzhou Xu 784256a823 fix AccessToken struct -> User json Unmarshal
Change-Id: I4e07da36a46285c68c94ee2857a9e8f85b161e92
2016-09-01 17:15:05 -07:00
Fangzhou Xu b37df29f9e handle CMS pem format easier
Change-Id: Iea34f049fe84e7454380b9184082930085f792d0
2016-05-05 10:17:03 -07:00
arkxu 657e32bbd4 add keystone middleware for token validation
Change-Id: If3478342eaafbb61e6f99841d4930b9858dd23ac
2016-05-04 19:56:01 -07:00
Fangzhou Xu 1bc5f497bb change from stackforge to openstack
Change-Id: I232a8c125d1b1c5de30df47a255c294afb1b9b64
2016-04-21 20:08:28 -07:00
Dean Troyer 9de84b3c5d Add auth package
Includes AuthOpts struct and AuthRef interface, plus an Identity v2
password auth implementation.

Note: the examples work, the objectstore_test is broken, will be fixed
along with additional session and auth tests.

Change-Id: I77b07c92586c37e855b466e18dea133a4a938aaa
2015-04-19 16:44:51 -05:00
Dean Troyer ef7386d2c4 Rename session package to openstack
Change-Id: I711c4190836b98d415d6cbe85d6f28e05537013f
2015-04-18 01:33:32 -05:00
Dean Troyer a279956280 Add Session as base REST interface
This is the initial implementation of a Session object that handles
the REST calls similar to the new Session in python-keystoneclient.
It will be expanded to utilize a callback to an appropriate authentication
handler to re-authenticate as required.

This is intended to replace CallAPI in the util/util package.

Change-Id: I585968cc584327427da3429ef7005dd909c8b8b0
2015-04-18 01:24:46 -05:00
Dean Troyer 124ac5cc92 Docs revision for current status
* Update README to add a note about the reorg in progress
* Rename misc to uitl
* Add openstack directory

Change-Id: I3f318116b1406fa862715236cc9001dea0f9231c
2015-04-18 01:24:36 -05:00
Chris Robinson 219cc1c2c1 Added Capability to get images and images with details
new file:   examples/30-image-v1.go
	modified:   examples/config.json.dist
	modified:   examples/setup.go
	modified:   identity/v2/auth.go
	new file:   image/v1/image.go
	new file:   image/v1/image_test.go
	new file:   misc/rfc8601DateTime.go
	new file:   misc/rfc8601DateTime_test.go
	modified:   misc/util.go
	modified:   misc/util_test.go
	modified:   objectstorage/v1/objectstorage.go
	modified:   objectstorage/v1/objectstorage_test.go
	new file:   testUtil/testUtil.go

Partially implements blueprint image-v1

Change-Id: I6277a5c8915f45f4b7585855d836015ffd9e1c12
2014-10-27 14:09:26 -07:00
Matt Farina 088f14907c Move the service handling to be versioned.
implements blueprint golang-multi-version

Change-Id: I77e31118a64140b5d1780725c0a35e2f5d55221c
2014-06-05 14:13:44 -04:00
Matt Farina 83c8761d52 Adding the appropriate license and copyright statements.
Change-Id: Iae495e0b7f6b3dae0de95d9fa3e6224311bff5e9
2014-05-29 17:09:57 -04:00
Matt Farina c9f5825d62 Moves the integration tests to be acceptance tests
and examples for identity.

partially implements blueprint acceptance-tests

Change-Id: I724a45f74d1d929ef571ae25c06443c194615658
2014-05-29 14:09:58 -04:00
Matt Farina fa86cfe9b6 Updated the import path so this package can be used as a remote package.
Change-Id: Idfc817b6b2e4fe5e6a8fe9bbac861ef620bec664
2014-01-02 14:32:23 -05:00
Slamet Hendry 4e73cb07a0 All tests passed. Initial commit.
Change-Id: I0934876e3647659f1b527b93c330292bb139fcd6
2013-07-14 21:12:30 +07:00