common

package
v0.0.0-...-904f3bc Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUniqueInstanceHandle

func GenerateUniqueInstanceHandle(config ProxyConfig, serverConfig ServerConfig) string

func GetCredentialsFromEnvironment

func GetCredentialsFromEnvironment(accessKeyId, secretKey string) (*credentials.Credentials, error)

Types

type ProxyConfig

type ProxyConfig struct {
	Type string
	Port string
	User string
	Pass string
}

type Region

type Region string

valid regions

const (
	USWest1 Region = "us-west-1"
)

type ServerConfig

type ServerConfig struct {
	Region Region

	Tier Tier
	// contains filtered or unexported fields
}

func CreateServerConfig

func CreateServerConfig(region Region, tier Tier) ServerConfig

func (ServerConfig) GetAmi

func (sc ServerConfig) GetAmi() string

type Tier

type Tier string

idiomatic "enum" for acceptable tiers

const (
	Nano  Tier = "t2.nano"
	Micro Tier = "t2.micro"
)

Jump to

Keyboard shortcuts

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