awslocal

package module
v0.0.0-...-fa2f47f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 1 Imported by: 0

README

awslocal Go Report Card

awslocal is a wrapper for the Golang AWS SDK which makes interacting with LocalStack services easier. Simply wrap your service configuration with awslocal.Wrap().

Example

session, err := session.NewSession(aws.NewConfig())
if err != nil {
    log.Fatal(err)
}

cfg := aws.NewConfig()

// Wrap the service cfg for use with LocalStack
awslocal.Wrap(cfg, awslocal.ServiceS3)

svc := s3.New(session, cfg)
log.Println(svc.ListBuckets(&s3.ListBucketsInput{}))

Documentation

Overview

Package awslocal provides a LocalStack wrapper for the AWS Go SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(c *aws.Config, svc Service)

Wrap wraps the given aws.Config with the LocalStack Endpoint of the service.

Types

type Service

type Service byte

A Service is a reference to a supported LocalStack service.

const (
	// ServiceAPIGateway is a constant value used to identify the LocalStack API Gateway service.
	ServiceAPIGateway Service = iota

	// ServiceKinesis is a constant value used to identify the LocalStack Kinesis service.
	ServiceKinesis

	// ServiceDynamoDB is a constant value used to identify the LocalStack DynamoDB service.
	ServiceDynamoDB

	// ServiceDynamoDBStreams is a constant value used to identify the LocalStack DynamoDB Streams service.
	ServiceDynamoDBStreams

	// ServiceElasticsearch is a constant value used to identify the LocalStack Elasticsearch service.
	ServiceElasticsearch

	// ServiceS3 is a constant value used to identify the LocalStack S3 service.
	ServiceS3

	// ServiceFirehose is a constant value used to identify the LocalStack Firehose service.
	ServiceFirehose

	// ServiceLambda is a constant value used to identify the LocalStack Lambda service.
	ServiceLambda

	// ServiceSNS is a constant value used to identify the LocalStack Simple Notification Service.
	ServiceSNS

	// ServiceSQS is a constant value used to identify the LocalStack Simple Queue Service.
	ServiceSQS

	// ServiceRedshift is a constant value used to identify the LocalStack Redshift service.
	ServiceRedshift

	// ServiceElasticsearchService is a constant value used to identify the LocalStack Elasticsearch service.
	ServiceElasticsearchService

	// ServiceSES is a constant value used to identify the LocalStack Simple Email Service.
	ServiceSES

	// ServiceRoute53 is a constant value used to identify the LocalStack Route 53 service.
	ServiceRoute53

	// ServiceCloudFormation is a constant value used to identify the LocalStack Cloud Formation service.
	ServiceCloudFormation

	// ServiceCloudWatch is a constant value used to identify the LocalStack Cloud Watch service.
	ServiceCloudWatch

	// ServiceSSM is a constant value used to identify the LocalStack Simple Service Manager service.
	ServiceSSM

	// ServiceSecretsManager is a constant value used to identify the LocalStack Secrets Manager service.
	ServiceSecretsManager
)

Directories

Path Synopsis
examples
s3

Jump to

Keyboard shortcuts

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