Documentation ¶
Overview ¶
Package endpoints validates regional endpoints for services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScheme ¶ added in v1.1.3
AddScheme adds the HTTP or HTTPS schemes to a endpoint URL if there is no scheme. If disableSSL is true HTTP will be added instead of the default HTTPS.
func EndpointForRegion ¶
EndpointForRegion returns an endpoint and its signing region for a service and region. if the service and region pair are not found endpoint and signingRegion will be empty.
func NormalizeEndpoint ¶ added in v1.1.3
func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL bool) (normEndpoint, signingRegion string)
NormalizeEndpoint takes and endpoint and service API information to return a normalized endpoint and signing region. If the endpoint is not an empty string the service name and region will be used to look up the service's API endpoint. If the endpoint is provided the scheme will be added if it is not present.
Types ¶
This section is empty.