Documentation ¶
Index ¶
- func CreateTable(w io.Writer, dynamodbAPI *dynamodb.DynamoDB, input *dynamodb.CreateTableInput) error
- func DeleteTable(w io.Writer, dynamodbAPI *dynamodb.DynamoDB, tableName string) error
- func DynamoDB(endpoint string) (*dynamodb.DynamoDB, error)
- func EnvRegion() string
- func EnvSession(endpoint string) (*session.Session, error)
- func ErrCode(err error) string
- type MockSNS
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 ¶
DeleteTable deletes a table using parameters specified
func DynamoDB ¶
DynamoDB instantiates a dynamodb client; endpoint is an optional endpoint useful for testing
func EnvSession ¶
EnvSession returns an AWS session constructed from env variables
Types ¶
type MockSNS ¶
type MockSNS struct { PublishInput *sns.PublishInput Err error }
func (*MockSNS) Publish ¶
func (m *MockSNS) Publish(in *sns.PublishInput) (*sns.PublishOutput, error)
Click to show internal directories.
Click to hide internal directories.