-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make region and bucket as optional and always set the endpoint (#2)
* Move `:bucket` from S3 entry to config * Parse config from bucket URL * Revert "Parse config from bucket URL" This reverts commit eb4f39f. * Make region and bucket as optionals, and set endpoint These are changes necessary to support the usage when only the bucket url is known. * Better document the endpoint field for S3 Also make that attribute required in the typespecs. * Fix parsing of s3:// URL to consider empty bucket This is going to treat the endpoint differently depending on bucket name. It is also going to make `:bucket` nil if we can build a virtual-host style endpoint. The rules are more or less the following: * Endpoint is given * And bucket is an empty string (s3:///path): keep bucket nil * Otherwise keep both endpoint and bucket in config * Endpoint is nil * Bucket has dots: keep the endpoint _without_ the bucket, fill in bucket field * Bucket does not have dots: keep the endpoint with bucket, bucket is nil
- Loading branch information
Showing
2 changed files
with
124 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters