v0.0.0-...-fe161b3 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0



Package endpoints validates regional endpoints for services.



This section is empty.


This section is empty.


func AddScheme

func AddScheme(endpoint string, disableSSL bool) string

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

func EndpointForRegion(svcName, region string, disableSSL bool) (endpoint, signingRegion string)

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

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.


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL