config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvDynamoDBEndpoint added in v1.0.0

func EnvDynamoDBEndpoint() string

EnvDynamoDBEndpoint get DynamoDB endpoint from env params

func EnvEndpoint added in v1.0.0

func EnvEndpoint() string

EnvEndpoint get endpoint from env params

func EnvRegion added in v1.0.0

func EnvRegion() string

EnvRegion get region from env params

func EnvS3Endpoint added in v1.0.0

func EnvS3Endpoint() string

EnvS3Endpoint get S3 endpoint from env params

func EnvSNSEndpoint added in v1.0.0

func EnvSNSEndpoint() string

EnvSNSEndpoint get SNS endpoint from env params

func EnvSQSEndpoint added in v1.0.0

func EnvSQSEndpoint() string

EnvSQSEndpoint get SQS endpoint from env params

Types

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Region    string
	Endpoint  string

	// Filename and Profile are used for file credentials
	Filename string
	Profile  string

	// DefaultPrefix is used for service resource prefix
	// e.g.) DynamoDB table, S3 bucket, SQS Queue
	DefaultPrefix string

	// Specific sevice's options
	S3ForcePathStyle bool
}

Config has AWS settings.

func (Config) AWSConfig added in v1.0.0

func (c Config) AWSConfig() *aws.Config

AWSConfig creates *aws.Config object from the fields.

func (Config) Session added in v1.0.0

func (c Config) Session() (*session.Session, error)

Session creates AWS session from the Config values.

Jump to

Keyboard shortcuts

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