aboutsummaryrefslogtreecommitdiff
path: root/errors.go
Commit message (Collapse)AuthorAgeFilesLines
* add Method, Target to type UnexpectedStatusCodeErrorStefan Majewsky2023-10-231-0/+7
|
* Format with go 1.19Sandro Jäckel2022-10-261-19/+19
|
* adjust semantics of Object.InspectSymlink, rename to Object.SymlinkHeadersStefan Majewsky2018-05-301-3/+0
| | | | | | 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 Object.SymlinkTo(), Object.InspectSymlink() etc.Stefan Majewsky2018-05-071-0/+3
|
* proof-read documentationStefan Majewsky2018-05-031-8/+11
|
* initial support for large objectsStefan Majewsky2018-04-301-0/+11
| | | | | | | | | | | | 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.
* revamp the Headers APIStefan Majewsky2018-03-111-1/+1
| | | | | | | | | | | | | | | | | | 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-091-0/+4
|
* generalize BulkUploadError into BulkErrorStefan Majewsky2018-03-081-14/+14
| | | | For use in Account.BulkDelete().
* add Account.BulkUpload(), BulkUploadError, BulkObjectErrorStefan Majewsky2018-03-081-0/+47
|
* Object.upload: generate, validate Content-Length and EtagStefan Majewsky2018-02-161-0/+3
|
* adjust example for current APIStefan Majewsky2018-02-071-7/+9
|
* finish moving towards new auto-generated Headers implementationStefan Majewsky2018-02-071-0/+12
| | | | | 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.
* redesign the header APIStefan Majewsky2018-02-051-12/+0
| | | | | | I'm quite satisfied with this right now (though this doesn't say anything about how I feel about it tomorrow), but it's ugly that some guts (headers.Base) are exposed in the public API.
* add ContainerStefan Majewsky2018-02-041-2/+5
|
* lay down the full Account APIStefan Majewsky2018-01-291-2/+14
|
* sketch out how requests could workStefan Majewsky2018-01-281-0/+75