endpoints

package
v0.0.0-...-7ce7f99 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2016 License: Apache-2.0, 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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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