-
Notifications
You must be signed in to change notification settings - Fork 62
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
Added Support for Custom Hosts/Regions #13
Conversation
lluuaapp
commented
Sep 5, 2018
- changed Region from enum to struct
- can initialise region with custom host (e.g. 127.0.0.1)
- can disabled TLS/https for custom host
- disabled subdomain-buckets for custom host
- I tested this with Minio object storage server
This reverts commit 7940ea6.
Sources/S3Signer/Region.swift
Outdated
|
||
public struct Region { | ||
|
||
public let name: RegionName |
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.
Please add helper comments to these
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.
Looks amazing, thanks a million. Would you please just mind adding the missing comments and look through the formatting (spacing) so the code is consistent?
Sources/S3Signer/Region.swift
Outdated
} | ||
} | ||
|
||
public extension Region { |
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.
I don’t think the extension needs to have public, only methods within do
Sources/S3Signer/Region.swift
Outdated
} | ||
|
||
extension Region: Codable { | ||
public init(from decoder: Decoder) throws { |
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.
Space and comment please