aboutsummaryrefslogtreecommitdiff
path: root/object.go
Commit message (Collapse)AuthorAgeFilesLines
* revamp the Headers APIStefan Majewsky2018-03-111-31/+24
| | | | | | | | | | | | | | | | | | 1. Move common methods of AccountHeaders, ContainerHeaders, ObjectHeaders into a base type Headers. 2. Fold Headers into RequestOptions to remove one of the two optional arguments on request methods. The new Headers.ToOpts() method offers a nice experience for users passing Headers to request methods. The Update() methods keep the explicit Headers argument since the Headers argument is not optional there. The only downside is that we lose a bit of type-safety because RequestOptions takes any Headers instance, so e.g. ContainerHeaders could be passed to Object.Upload(). I believe the benefits outweigh this problem.
* generalize BulkUploadError into BulkErrorStefan Majewsky2018-03-081-0/+2
| | | | For use in Account.BulkDelete().
* fix a panic in the error case of Object.Download()Stefan Majewsky2018-03-081-1/+3
|
* add Object.Copy() and Object.Move()Stefan Majewsky2018-02-211-8/+55
|
* reorganize codeStefan Majewsky2018-02-191-5/+5
| | | | | | * Gophercloud dependencies move into subpackage gopherschwift. * Tests move into subpackage tests (to avoid import cycles). + Rename "Client" to "Backend".
* test coverage for object upload, download, metadata updateStefan Majewsky2018-02-191-2/+37
|
* add Object.Download(), DownloadedObjectStefan Majewsky2018-02-191-1/+31
|
* initialize .Headers on accounts/containers during GET requestsStefan Majewsky2018-02-191-1/+1
|
* Object.upload: generate, validate Content-Length and EtagStefan Majewsky2018-02-161-5/+87
|
* add object lifecycle testcaseStefan Majewsky2018-02-161-4/+6
|
* ensure that response body is drainedStefan Majewsky2018-02-111-0/+1
|
* sketch out the initial Object APIStefan Majewsky2018-02-101-0/+181