-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add GCS Getter #170
Add GCS Getter #170
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this looks good to me, nice one and thanks for opening. I tested it and it worked, I just had a question about context usage and I will try to see how we can create that bucket !
create google application credentials file from env vars.
quote "$GOOGLE_APPLICATION_CREDENTIALS" to avoid ambiguous redirect
output $GOOGLE_CREDENTIALS to $GOOGLE_APPLICATION_CREDENTIALS
touch "$GOOGLE_APPLICATION_CREDENTIALS" before adding contents to it
echo %GOOGLE_CREDENTIALS% > %GOOGLE_CREDENTIALS%
create $GOOGLE_APPLICATION_CREDENTIALS file on the fly from $GOOGLE_CREDENTIALS if needed
revert file tests edits
revert file tests edits
Okay I did the testing part and tests are green, yay ! I will squash and merge to clean the commit mess. And sorry, I forgot, could you please add doc about this getter in the README ? Otherwise this looks good to merge :) |
@azr I have updated the README doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks @lifangmoler !!! 🙂
Why?
Add
gcs
(google cloud storage) as another protocol to download files/directories like S3, Git and others.In order to pass the integration tests:
get_gcs_test.go
S3
)