~mattfarina/golang-client/master

« back to all changes in this revision

Viewing changes to identity/v2/auth.go

  • Committer: Dean Troyer
  • Date: 2015-04-18 06:33:32 UTC
  • Revision ID: git-v1:ef7386d2c4064eac8926ba3e125472893d5062fb
Rename session package to openstack

Change-Id: I711c4190836b98d415d6cbe85d6f28e05537013f

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
func auth(url, jsonStr *string) (Auth, error) {
129
129
        var s []byte = []byte(*jsonStr)
130
130
        path := fmt.Sprintf(`%s/tokens`, *url)
131
 
        resp, err := session.Post(path, nil, nil, &s)
 
131
        resp, err := openstack.Post(path, nil, nil, &s)
132
132
        if err != nil {
133
133
                return Auth{}, err
134
134
        }