endpoints

package
v0.1.3-0...-e80e2a8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2015 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package endpoints provides lookups for all AWS service endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOverride

func AddOverride(service, region, uri string)

AddOverride overrides the endpoint for a specific service, using either an existing region name or a fake one (e.g. "test-1").

This allows developers to use local mock AWS services when they're writing tests for their Go code that uses aws-go:

endpoints.AddOverride("EC2", "test-1", "http://localhost:3000")
// This EC2 client uses the override as service endpoint.
cli := ec2.New(credentials, "test-1", nil)

func Lookup

func Lookup(service, region string) (uri, newService, newRegion string)

Lookup returns the endpoint for the given service in the given region plus any overrides for the service name and region.

Types

This section is empty.

Jump to

Keyboard shortcuts

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