C2FO / vfs

Pluggable, extensible virtual file system for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set S3ForcePathStyle for AWS Client?

yellow-sky opened this issue · comments

I'm use Minio as s3 storage. AWS Client can use it only with S3ForcePathStyle=True.
s3.Options struct does not have this parameter. Each initialization I have to create a client manually. It is very uncomfortable.
It may be possible to add this parameter to the s3.Options?

This seems pretty straightforward but it will probably be a while before I could prioritize that. You could however in the meantime submit a patch. Just fork vfs, make your changes, and do a pull request against our master branch.

Made a quick patch but it's not the only thing that needs to be changed to work with Minio. Also need to implement option for disable SSE header due to Minio not having it setup by default.

minio/minio#6367

#114 Submitted the quick patch