aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* update module path for v2Stefan Majewsky2024-07-0812-15/+15
|
* Remove context from struct, add ctx as first args to many functionsSandro Jäckel2024-07-0110-174/+189
|
* fix manually fixable lintsStefan Majewsky2024-07-011-1/+1
|
* fix autofixable lintsStefan Majewsky2024-07-0111-102/+102
|
* Update gophercloud to 2.0.0Sandro Jäckel2024-07-011-6/+7
|
* Fix remaining lintsSandro Jäckel2023-10-251-2/+3
|
* add Method, Target to type UnexpectedStatusCodeErrorStefan Majewsky2023-10-232-5/+7
|
* Fix linting errorsSandro Jäckel2022-10-287-24/+13
|
* Format with go 1.19Sandro Jäckel2022-10-262-2/+1
|
* fix `make test`Stefan Majewsky2021-05-281-0/+3
|
* rename Object.UploadWithWriter to UploadFromWriterStefan Majewsky2021-05-281-1/+1
|
* add test for segment expirationMuhammad Talal Anwar2018-09-061-4/+6
|
* add test for large object expirationMuhammad Talal Anwar2018-09-061-19/+54
|
* adjust semantics of Object.InspectSymlink, rename to Object.SymlinkHeadersStefan Majewsky2018-05-301-7/+7
| | | | | | The additional guarantee that Object.SymlinkHeaders becomes equivalent to Object.Headers for non-symlinks will be useful e.g. for swift-http-import's usecase.
* add support for symlinks to ObjectIteratorStefan Majewsky2018-05-071-14/+86
| | | | Closes #2.
* add Object.SymlinkTo(), Object.InspectSymlink() etc.Stefan Majewsky2018-05-071-1/+78
|
* make tests work with Keystone authStefan Majewsky2018-05-041-8/+4
|
* add support for pseudo-directories to ObjectIteratorStefan Majewsky2018-05-031-18/+87
|
* add configurable User-Agent to Schwift, GopherschwiftStefan Majewsky2018-05-031-1/+1
|
* fix CopyTo testStefan Majewsky2018-05-031-1/+1
|
* test coverage for bulk-delete fallback code pathStefan Majewsky2018-05-021-32/+49
|
* remove Object.MoveToStefan Majewsky2018-05-021-7/+0
| | | | | It's trivially replicable by clients, and has an ugly API that I don't want to commit on at this point.
* test coverage for large object operationsStefan Majewsky2018-05-021-0/+195
|
* revamp the LargeObject APIStefan Majewsky2018-05-025-119/+83
| | | | | | | | | | I thought about this some more, and I believe the Writer-based approach in the previous version of the LargeObject API does not scale: It makes it very hard to write code that uploads segments without resorting to a buffer the same size as the segments. I don't want gigabyte-scale buffers filling up my RAM, so this commit switches to a different API based on Readers. LargeObject.Append() now behaves very similar to Object.Upload(), which I find quite nice.
* add DeleteOptions to Object.Delete()Stefan Majewsky2018-04-303-3/+74
|
* initial support for large objectsStefan Majewsky2018-04-303-1/+378
| | | | | | | | | | | | This has gone through a lot of iterations on my branch, and I'm quite happy with the parts of the API that exist now. Test coverage can still be better, and will get better in the following commits. The API is not yet finished: I want to add Options arguments to Object.Upload(), Object.Copy(), Object.Move() and Object.Delete() that specify how each of these operations affect existing segments (and, later, also existing symlinks). For Upload(), uploading in segments shall become as easy as flipping a single switch.
* tryCompute{ContentLength, Etag}: add special cases for strings.Reader, nilStefan Majewsky2018-04-271-4/+11
|
* fix tests for Swift QueensStefan Majewsky2018-04-271-3/+5
|
* revamp the Headers APIStefan Majewsky2018-03-1110-66/+68
| | | | | | | | | | | | | | | | | | 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.
* add Account.BulkDelete()Stefan Majewsky2018-03-092-0/+95
|
* generalize BulkUploadError into BulkErrorStefan Majewsky2018-03-081-3/+3
| | | | For use in Account.BulkDelete().
* add Account.BulkUpload(), BulkUploadError, BulkObjectErrorStefan Majewsky2018-03-081-0/+135
|
* add Object.Copy() and Object.Move()Stefan Majewsky2018-02-211-23/+50
|
* reorganize codeStefan Majewsky2018-02-199-0/+1220
* Gophercloud dependencies move into subpackage gopherschwift. * Tests move into subpackage tests (to avoid import cycles). + Rename "Client" to "Backend".