aws

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {

	//extracted here for convenience
	ID        string
	Public    bool
	ConnectIP string
	NameTag   string //TODO: add name tag
	// contains filtered or unexported fields
}

AwsInstance An AWS instance

func NewInstance

func NewInstance(sess *Session, inst *ec2.Instance, publicIP bool) (*Instance, error)

NewInstance returns a new AWS instance

func (*Instance) IP

func (a *Instance) IP(public bool) (string, error)

func (*Instance) SendPublicKey

func (a *Instance) SendPublicKey(user, publicKey string) error

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session An AWS API session

func NewSession

func NewSession(region string) (*Session, error)

NewSession A new AWS Session

func (*Session) GetReservations

func (sess *Session) GetReservations() ([]*ec2.Reservation, error)

Jump to

Keyboard shortcuts

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