Skip to content

Comments

Adding support for S3 prefix#498

Merged
mxpv merged 4 commits intomxpv:mainfrom
dmitry-mukhin:feat/s3-prefix
Mar 14, 2023
Merged

Adding support for S3 prefix#498
mxpv merged 4 commits intomxpv:mainfrom
dmitry-mukhin:feat/s3-prefix

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

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
@dmitry-mukhin dmitry-mukhin requested review from Contextualist and mxpv 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