~mattfarina/golang-client/master

« back to all changes in this revision

Viewing changes to objectstorage/v1/objectstorage.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:
110
110
func PutObject(fContent *[]byte, url, token string, s ...string) (err error) {
111
111
        var headers http.Header = http.Header{}
112
112
        headers.Set("X-Auth-Token", token)
113
 
        resp, err := session.Put(url, nil, &headers, fContent)
 
113
        resp, err := openstack.Put(url, nil, &headers, fContent)
114
114
        if err != nil {
115
115
                return err
116
116
        }