endpoints

package
Version: v0.0.0-...-018fd1d Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package endpoints validates regional endpoints for services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, useDualStack 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, useDualStack 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.

Jump to

Keyboard shortcuts

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