~mattfarina/golang-client/master

« back to all changes in this revision

Viewing changes to identity/v2/auth.go

  • Committer: Chris Robinson
  • Date: 2014-10-27 21:09:26 UTC
  • Revision ID: git-v1:219cc1c2c1abac86d34faf5b1810478393af74cd
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

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        if err != nil {
136
136
                return Auth{}, err
137
137
        }
138
 
        if err = misc.CheckHttpResponseStatusCode(resp); err != nil {
 
138
        if err = misc.CheckHTTPResponseStatusCode(resp); err != nil {
139
139
                return Auth{}, err
140
140
        }
141
141
        var contentType string = strings.ToLower(resp.Header.Get("Content-Type"))