Commit Graph

3 Commits

Author SHA1 Message Date
Michael Bridgen 6d77ccf89f Factor out fetching objects
The algorithm for conditionally downloading object files is the same,
whether you are using GCP storage or an S3/Minio-compatible
bucket. The only thing that differs is how the respective clients
handle enumerating through the objects in the bucket; by implementing
just that in each provider, I can have the select-and-fetch code in
once place.

This deliberately omits the parallelised fetching that the GCP client
had, for the sake of lining the clients up. It can be reintroduced (in
the factored out code) later.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-11-10 14:08:50 +00:00
pa250194 b4bd037e5d General cleanup and function renaming
Signed-off-by: pa250194 <pa250194@ncr.com>
2021-11-10 14:08:50 +00:00
pa250194 6f8209166c Refactor Bucket Controller
Fix bug in bucket provider interface

Added Bucket Provider Interface

Signed-off-by: pa250194 <pa250194@ncr.com>

Fix context timeout defer issue

Signed-off-by: pa250194 <pa250194@ncr.com>

Fix GCP storage provider test

Signed-off-by: pa250194 <pa250194@ncr.com>
2021-11-10 14:08:50 +00:00