Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMetadata ¶
AddMetadata adds metadata from the EC2 metadata service into the provided map. This is safe to call even if the instance isn't running on EC2. Added keys are the metadata path in the metadata service, prefixed with 'ec2:'. Instance tags are stored separately, prefixed with 'ec2:tags/{key}' for each tag key. Synthetic metadata is also added, prefixed with 'instance:'. Failures (missing keys, etc) are logged and ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.