-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for custom S3 endpoints (e.g., Hetzner) #21
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
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.
Pull Request Overview
This PR adds support for custom S3 endpoints to enable connectivity with S3-compatible object storage providers like Hetzner Cloud. The core functionality remains unchanged while extending the AWS S3 connection system to handle custom endpoint URLs.
- Extended
awss3()function to accept an optionalendpoint_urlparameter - Updated
awscli()function to inject the--endpoint-urlflag into AWS CLI commands - Propagated the
endpoint_urlparameter throughout all S3 method wrappers
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| man/awss3.Rd | Added documentation for the new endpoint_url parameter |
| R/awss3.R | Modified main constructor to accept and store endpoint_url parameter |
| R/awscli.R | Enhanced CLI wrapper to handle custom endpoint URLs |
| R/syncAllFiles.R | Updated to pass endpoint_url to AWS CLI calls |
| R/sendFile.R | Updated to pass endpoint_url to AWS CLI calls |
| R/sendAllFiles.R | Updated to pass endpoint_url to AWS CLI calls |
| R/removeFile.R | Updated to pass endpoint_url to AWS CLI calls |
| R/listFiles.R | Updated to pass endpoint_url to AWS CLI calls |
| R/getFile.R | Updated to pass endpoint_url to AWS CLI calls |
| DESCRIPTION | Updated RoxygenNote version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
arunge
left a comment
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.
@jan-abel-inwt I added a new NEWS.md file. The changes look all good. I will merge them.
This PR introduces support for S3-compatible object storage providers that require a custom endpoint URL, such as Hetzner Cloud
The core rsync functionality remains unchanged, but the awss3 connection and all associated methods (
sendFile,listFiles,syncAllFiles, etc.) are updated to accept and utilize a newendpoint_urlparameter.Key Changes:
awss3()function: Now accepts an optionalendpoint_urlargument.awscli()function: Now accepts theendpoint_urland injects it into the system call via the--endpoint-urlflag, enabling communication with non-AWS S3 services.endpoint_urlis passed down toawscli()across all S3 method wrappers.