Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2Instance ¶
type EC2Instance struct { EC2Client *ec2.EC2 InstanceID string Prefix string NodeID string Az string Region string Vols map[string][]EbsVol Enis []string }
EC2Instance is a struct containing current instance info + a connected EC2 client
func GetEC2InstanceData ¶
func GetEC2InstanceData() EC2Instance
GetEC2InstanceData returns a populated EC2Instance struct with the current EC2 instances' metadata
func (*EC2Instance) AttachEbsVolumes ¶
func (e *EC2Instance) AttachEbsVolumes(dryRun bool) map[string][]EbsVol
AttachEbsVolumes attaches the given map of {'VolumeName':[]EbsVol} with the EC2 client in the provided ec2Instance
func (*EC2Instance) AttachEnis ¶
func (e *EC2Instance) AttachEnis(dryRun bool)
AttachEnis attaches the given array of Eni Ids with the EC2 client in the provided ec2Instance
func (*EC2Instance) FindEbsVolumes ¶
func (e *EC2Instance) FindEbsVolumes()
FindEbsVolumes discovers and creates a {'VolumeName':[]EbsVol} map for all the required EBS volumes given an EC2Instance struct
func (*EC2Instance) FindEnis ¶
func (e *EC2Instance) FindEnis()
FindEnis returns a list of all ENIs that should be attached to this EC2 instance
Click to show internal directories.
Click to hide internal directories.