aboutsummaryrefslogtreecommitdiff
path: root/generated.go.in
Commit message (Collapse)AuthorAgeFilesLines
* Format with go 1.19Sandro Jäckel2022-10-261-11/+11
|
* revamp the Headers APIStefan Majewsky2018-03-111-42/+8
| | | | | | | | | | | | | | | | | | 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.
* fix docStefan Majewsky2018-02-161-2/+6
|
* add ObjectHeadersStefan Majewsky2018-02-081-2/+17
|
* increase test coverageStefan Majewsky2018-02-071-1/+1
|
* finish moving towards new auto-generated Headers implementationStefan Majewsky2018-02-071-44/+36
| | | | | Everything in one package once more. The bigger API in *this* package is worth it when we don't have to expose guts to cross package boundaries.
* switch from reflection to code generationStefan Majewsky2018-02-071-0/+124
This allows me to make the API much simpler. More simplification forthcoming in the following commit; I just want to make a cut since `make test` is happy right now.