awscloud

package
v0.0.0-...-bc6c5c1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(w io.Writer, dynamodbAPI *dynamodb.DynamoDB, input *dynamodb.CreateTableInput) error

CreateTable creates a new table using parameters specified

func DeleteTable

func DeleteTable(w io.Writer, dynamodbAPI *dynamodb.DynamoDB, tableName string) error

DeleteTable deletes a table using parameters specified

func DynamoDB

func DynamoDB(endpoint string) (*dynamodb.DynamoDB, error)

DynamoDB instantiates a dynamodb client; endpoint is an optional endpoint useful for testing

func EnvRegion

func EnvRegion() string

func EnvSession

func EnvSession(endpoint string) (*session.Session, error)

EnvSession returns an AWS session constructed from env variables

func ErrCode

func ErrCode(err error) string

Types

type MockSNS

type MockSNS struct {
	PublishInput *sns.PublishInput
	Err          error
}

func (*MockSNS) Publish

func (m *MockSNS) Publish(in *sns.PublishInput) (*sns.PublishOutput, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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