Merge lp:~jtv/gwacl/only-batch-list-blobs into lp:gwacl
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | 105 |
Merged at revision: | 99 |
Proposed branch: | lp:~jtv/gwacl/only-batch-list-blobs |
Merge into: | lp:gwacl |
Diff against target: |
362 lines (+208/-27) 4 files modified
storage_base.go (+79/-23) storage_base_test.go (+127/-4) xmlobjects.go (+1/-0) xmlobjects_test.go (+1/-0) |
To merge this branch: | bzr merge lp:~jtv/gwacl/only-batch-list-blobs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+161375@code.launchpad.net |
Commit message
Support batched responses from List Blobs.
Description of the change
This duplicates the logic from ListContainers(). It's basically my previous branch, but without the refactoring. The next step is to factor out the awful commonality.
Repeated jobs that I'd like to factor out include:
* Interpolation of the URLs for storage accounts, containers, and files.
* Adding of query parameters to a storage URL.
* Stripping markers and adding them to URL queries.
* Generation, signing, and send() of HTTP requests.
A bit harder to do without complicating things is the commonality between the batching loops in ListContainers() and ListBlobs().
I'd also like to remove the useless (and in this case, sort of misleading) Marker field from BlobsEnumeratio
Jeroen
s/for/For/ on line 102 of the diff, otherwise nothing controversial here, thanks.