ncw / swift

Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)
MIT License
313 stars 107 forks source link

Support status 429 for OVH Cloud Archive #141

Closed jeremy-clerc closed 5 years ago

jeremy-clerc commented 5 years ago

Before being able to retrieve an object from OVH Cloud Archive, an object must be unfreezed. First call and subsequent calls until the object is available, OVH will return a 429 status and Retry-After header set to a time in seconds after which the object should be available.

This change makes status 429 a testable error, and returns headers, so the caller can extract the Retry-After header.

Fixes #140

ncw commented 5 years ago

I don't think you've got the most recent commits - that is why the go1.1 CI failed. It isn't a problem though - I'll rebase this then all should be fine!

Thank you very much :-)

jeremy-clerc commented 5 years ago

Master still has 1.1 https://github.com/ncw/swift/blob/master/.travis.yml should I have forked from another branch ? Thanks

ncw commented 5 years ago

Master still has 1.1 https://github.com/ncw/swift/blob/master/.travis.yml should I have forked from another branch ? Thanks

No, I messed up and didn't push the commit to master! It is there now.

Thanks