Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CollectEc2Infrastructure = func(identity identity.IAgentIdentity) (*Ec2Infrastructure, error) { instanceID, _ := identity.InstanceID() instanceType, _ := identity.InstanceType() region, _ := identity.Region() availabilityZone, _ := identity.AvailabilityZone() e := &Ec2Infrastructure{ InstanceID: instanceID, Region: region, AvailabilityZone: availabilityZone, InstanceType: instanceType, } return e, nil }
CollectEc2Infrastructure queries Ec2 metadata service for infrastructure information
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.