aws

package
v8.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

README

To test AWS

You will first need to create an AWS instance and then provide details of this instance as below.

export AWS_REGION=<instance-region>
export AWS_ZONE=<aws-availibility-zone>
export AWS_INSTANCE_NAME=<aws-instance-name>
export AWS_ACCESS_KEY_ID=<access-id>
export AWS_SECRET_ACCESS_KEY=<access-secret>
export AWS_INSTANCE_TYPE=<aws-instance-type>
go test

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAWSEnvNotAvailable is the error type when aws credentials are not set
	ErrAWSEnvNotAvailable = fmt.Errorf("AWS credentials are not set in environment")
)

Functions

func NewEc2Storage

func NewEc2Storage(instance, instanceType string, ec2 *ec2.EC2) storageops.Ops

NewEc2Storage creates a new aws storage ops instance

func NewEnvClient

func NewEnvClient() (storageops.Ops, error)

NewEnvClient creates a new AWS storage ops instance using environment vars

Types

This section is empty.

Jump to

Keyboard shortcuts

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