instance

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionInstances

func GetSessionInstances(client ssmiface.SSMAPI, diiInput *ssm.DescribeInstanceInformationInput) (output []*ssm.InstanceInformation, err error)

Types

type InstanceInfo

type InstanceInfo struct {
	InstanceID string
	Region     string
	Profile    string
	VpcId      string
	Tags       map[string]string
}

InstanceInfo is used to store information, including EC2 tags, about a particular instance

func (*InstanceInfo) FormatString

func (i *InstanceInfo) FormatString(includeFields ...string) string

FormatString returns a string with various information about a given instance

type InstanceInfoSafe

type InstanceInfoSafe struct {
	sync.Mutex
	AllInstances map[string]InstanceInfo
}

InstanceInfoSafe allows for concurrent-safe access to a map of InstanceInfo data

func (*InstanceInfoSafe) FormatStringSlice

func (i *InstanceInfoSafe) FormatStringSlice(includeFields ...string) (outSlice []string)

FormatStringSlice is used to return a strings preformatted to the correct width for selection prompts

type InstanceSlice

type InstanceSlice []string

InstanceSlice is the type of object passed to flag.Var() that holds AWS instance IDs

func (*InstanceSlice) Set

func (i *InstanceSlice) Set(value string) error

Set splits the provided comma-delimited list of instance IDs into an InstanceSlice, then sets the value of the caller to the new slice

func (*InstanceSlice) String

func (i *InstanceSlice) String() string

String() returns the string representation of an *InstanceSlice object

Jump to

Keyboard shortcuts

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