New Datasource: S3 ListObjects #45585
neumantm
started this conversation in
Suggest an Idea
Replies: 1 comment
|
On the topic of extracting the version from the Key. Here are my thoughts:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tell us more.
I want to let renovate manage the version of a Google-Cloud-CLI Download (See https://docs.cloud.google.com/sdk/docs/downloads-versioned-archives).
However, google has no standardized interface where versions could be listed and I didn't find any endpoint that can be made to work with a
customdatasource.I did however find this url:
https://storage.googleapis.com/cloud-sdk-release?prefix=google-cloud-cli-
It seems to behave like the ListObjects Endpoint of the S3 Protocol/API.
The response is an XML like this:
My suggestion is to add a datasource that can use such ListObjects endpoints, read all pages (using the
NextMarker) and extract the versions from theKeyfield in the XML.This datasource would then not be constraint to the single use-case I currently have, but have broader support for any situation where versions of a dependency are available in an S3 Bucket.
The only open question: How do we extract the version from the Key?
If anyone has suggestions, please comment below.
All reactions