aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9 from talal/masterStefan Majewsky2018-09-063-22/+59
|\ | | | | add RequestOptions to LargeObject.Append()
| * add test for segment expirationMuhammad Talal Anwar2018-09-061-4/+6
| |
| * add test for large object expirationMuhammad Talal Anwar2018-09-061-19/+54
| |
| * add support for RequestOptions in lo.Append()Muhammad Talal Anwar2018-09-061-2/+2
| |
| * fix typoMuhammad Talal Anwar2018-09-061-1/+1
| |
* | goddammit macosStefan Majewsky2018-09-061-1/+1
|/
* Merge pull request #7 from databus23/patch-2Stefan Majewsky2018-09-031-9/+2
|\ | | | | Cover more readers for automatic etag calculation
| * Cover more readers for automatic tag calculationFabian Ruff2018-09-031-9/+2
|/ | | | | Not sure If I'm missing something but this seems more general (specifically it covers `*os.File` which doesn't have a `WriteTo` method). Note: This is untested. Just putting it up for discussion.
* fix obvious crashStefan Majewsky2018-07-261-1/+1
|
* support aborting requests with context.ContextStefan Majewsky2018-07-111-0/+6
|
* add Object.TempURL()Stefan Majewsky2018-07-102-0/+108
|
* add URL() method also to Container, not just to ObjectStefan Majewsky2018-06-072-1/+12
|
* Merge pull request #4 from databus23/patch-1Stefan Majewsky2018-06-071-0/+8
|\ | | | | Add URL() function for Object
| * Add URL() function for ObjectFabian Ruff2018-05-111-0/+8
| |
* | add Capabilities.SymlinkStefan Majewsky2018-05-301-0/+3
| |
* | make the IsEqualTo() methods publicStefan Majewsky2018-05-305-10/+17
| |
* | adjust semantics of Object.InspectSymlink, rename to Object.SymlinkHeadersStefan Majewsky2018-05-303-19/+28
| | | | | | | | | | | | 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.
* | my PR has been mergedStefan Majewsky2018-05-301-3/+0
|/
* add support for symlinks to ObjectIteratorStefan Majewsky2018-05-074-14/+113
| | | | Closes #2.
* add Object.SymlinkTo(), Object.InspectSymlink() etc.Stefan Majewsky2018-05-073-24/+192
|
* fix formatting of X-Delete-At headerStefan Majewsky2018-05-041-2/+1
|
* make tests work with Keystone authStefan Majewsky2018-05-041-8/+4
|
* add support for pseudo-directories to ObjectIteratorStefan Majewsky2018-05-033-29/+125
|
* add configurable User-Agent to Schwift, GopherschwiftStefan Majewsky2018-05-035-14/+61
|
* fix CopyTo testStefan Majewsky2018-05-031-1/+1
|
* proof-read documentationStefan Majewsky2018-05-0312-53/+65
|
* add (currently empty) CopyOptions arg to Object.CopyToStefan Majewsky2018-05-021-5/+11
| | | | | For backwards compatiblity when later expanding the scope of this function (analogous to DeleteOptions, UploadOptions, TruncateOptions).
* test coverage for bulk-delete fallback code pathStefan Majewsky2018-05-023-33/+81
|
* remove Object.MoveToStefan Majewsky2018-05-022-19/+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-023-4/+208
|
* revamp the LargeObject APIStefan Majewsky2018-05-028-354/+524
| | | | | | | | | | 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.
* exclude util/ from golint, govetStefan Majewsky2018-05-021-6/+6
|
* add DeleteOptions to Object.Delete()Stefan Majewsky2018-04-306-13/+129
|
* initial support for large objectsStefan Majewsky2018-04-3016-10/+1522
| | | | | | | | | | | | 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.
* update documentation with new Gophercloud best practicesStefan Majewsky2018-04-293-16/+65
|
* tryCompute{ContentLength, Etag}: add special cases for strings.Reader, nilStefan Majewsky2018-04-272-10/+31
|
* fix tests for Swift QueensStefan Majewsky2018-04-271-3/+5
|
* add Account.isEqualTo, Container.isEqualToStefan Majewsky2018-04-273-4/+10
|
* s/project name/project ID/Stefan Majewsky2018-04-271-2/+2
|
* revamp the Headers APIStefan Majewsky2018-03-1127-385/+335
| | | | | | | | | | | | | | | | | | 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-094-41/+330
|
* generalize BulkUploadError into BulkErrorStefan Majewsky2018-03-084-23/+25
| | | | For use in Account.BulkDelete().
* add Account.BulkUpload(), BulkUploadError, BulkObjectErrorStefan Majewsky2018-03-083-0/+337
|
* fix URL computation in Account.Capabilties()Stefan Majewsky2018-03-081-8/+1
|
* fix a panic in the error case of Object.Download()Stefan Majewsky2018-03-081-1/+3
|
* add struct Capabilities, Account.{,Raw}CapabilitiesStefan Majewsky2018-02-262-0/+137
|
* add Object.Copy() and Object.Move()Stefan Majewsky2018-02-212-31/+105
|
* reorganize codeStefan Majewsky2018-02-1920-221/+345
| | | | | | * Gophercloud dependencies move into subpackage gopherschwift. * Tests move into subpackage tests (to avoid import cycles). + Rename "Client" to "Backend".
* introduce Client interfaceStefan Majewsky2018-02-196-72/+124
|
* test coverage for object upload, download, metadata updateStefan Majewsky2018-02-195-12/+181
|