instance

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ImageID          string
	InstanceID       string
	InstanceType     string
	LaunchTime       time.Time
	PrivateIPAddress string
	PublicIPAddress  string
	Name             string
}

Info contains a minimal set of information about an EC2 instance.

func (Info) IPInfo added in v0.0.3

func (i Info) IPInfo() string

IPInfo returns only information related to IP addresses.

func (Info) Matches

func (i Info) Matches(value string) bool

Matches determines if a value can be found in the data for the EC2 instance.

func (Info) String

func (i Info) String() string

type InfoSlice

type InfoSlice []Info

InfoSlice is a slice of Info objects.

func (*InfoSlice) Load

func (info *InfoSlice) Load(sess *session.Session) error

Load gathers data from AWS about all the EC2 instances in the account.

Jump to

Keyboard shortcuts

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