aboutsummaryrefslogtreecommitdiff
path: root/iterator.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix gophercloud lint complainsSandro Jäckel2024-07-011-2/+2
|
* Format with go 1.19Sandro Jäckel2022-10-261-3/+3
|
* add support for pseudo-directories to ObjectIteratorStefan Majewsky2018-05-031-0/+6
|
* revamp the Headers APIStefan Majewsky2018-03-111-17/+13
| | | | | | | | | | | | | | | | | | 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.
* reorganize codeStefan Majewsky2018-02-191-2/+2
| | | | | | * Gophercloud dependencies move into subpackage gopherschwift. * Tests move into subpackage tests (to avoid import cycles). + Rename "Client" to "Backend".
* initialize .Headers on accounts/containers during GET requestsStefan Majewsky2018-02-191-1/+26
|
* add Container.Objects(), type ObjectIteratorStefan Majewsky2018-02-171-0/+6
|
* prepare ContainerIterator for sharing code with ObjectIteratorStefan Majewsky2018-02-161-0/+136