-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS module for uploading and fetching object URLs in Linode Object Storage #1
Conversation
"node-fetch": "^3.0.0", | ||
"path": "^0.12.7", | ||
"url-join": "^4.0.1", | ||
"winston": "^3.3.3" |
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.
unused?
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.
My bad removed unused lib Winston.
}, | ||
"author": "ushmajit", | ||
"type": "module", | ||
"license": "ISC" |
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.
GNU AGPL
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.
Changed
* @param bucket uniquely identifies the bucket where the file should be uploaded | ||
* @returns {Promise<void>} | ||
*/ | ||
async function uploadFileToLinodeBucket (accessKeyId, secretAccessKey, region, file, bucket) { |
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.
Would be nice to have some predefined constants for regions
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.
Sure, makes sense, created an issue to track this #3
Unit test notes: |
|
Done. I have updated https://github.com/aicore/template-nodejs with best practices we follow for brackets and phoenix.
Just copy and merge the contents of the repo here to get all the functions. Follow readme. :) |
Thanks for the template files, copied all the relevant files from the template to the module. This is the new PR #2 |
Tested the module by writing a sample node starter file and then resuing the module.
Expected behavior verified :