aws

package
v0.0.0-...-3aa26a6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEC2MetadataNotAvailable          = errors.New("ec2: Instance Metadata Service not available")
	ErrEC2InstanceIdentityDocument      = errors.New("ec2: Instance identity document not available")
	ErrEC2AutoScalingPeers              = errors.New("ec2: Could not get peers")
	ErrEC2AutoScalingGroups             = errors.New("ec2: Could not get AutoScaling Groups")
	ErrEC2InstanceNotInAutoScalingGroup = errors.New("ec2: Not in AutoScaling Group")
)

Functions

func NewSession

func NewSession(config *amzn.Config) *session.Session

NewSession returns a new session

Types

type EC2

EC2 wraps the interfaces for the instance

func NewEC2

func NewEC2(session *session.Session) (*EC2, error)

NewEC2 creates a new instance of EC2Instance to interface AWS

func (*EC2) GetAutoScalingGroupPeers

func (e *EC2) GetAutoScalingGroupPeers() ([]*ec2.Instance, error)

GetAutoScalingGroupPeers returns the peers of the EC2 instance in the autoscaling group

Jump to

Keyboard shortcuts

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