Skip to content
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

Adding support for S3 prefix #498

Merged
merged 4 commits into from
Mar 14, 2023
Merged

Adding support for S3 prefix #498

merged 4 commits into from
Mar 14, 2023

Conversation

dmitry-mukhin
Copy link
Contributor

This is my first attempt on adding prefix support for S3-like storages
I'm not a go person, let me know if something is way off or need improvements.

@dmitry-mukhin
Copy link
Contributor Author

probably need to check a few more things in generated xml

pkg/fs/s3.go Outdated Show resolved Hide resolved
Comment on lines +29 to +31
# If you use prefix, you may need to add a path to `server.hostname` setting
# e.g. https://example-bucket-name.s3.us-west-2.amazonaws.com/example/prefix/
prefix = "example/prefix"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided against adding logic to XML URL building at least at this stage.

@dmitry-mukhin dmitry-mukhin marked this pull request as ready for review March 2, 2023 18:33
pkg/fs/s3.go Outdated Show resolved Hide resolved
@dmitry-mukhin dmitry-mukhin requested review from mxpv and Contextualist and removed request for Contextualist and mxpv March 14, 2023 19:18
@mxpv mxpv merged commit 081dfbd into mxpv:main Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants