Documentation ¶
Overview ¶
package ecmetadatawrapper is used to retrieve data from EC2 IMDS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2MetadataClient ¶
type EC2MetadataClient interface { GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error) Region() (string, error) }
EC2MetadataClient to used to obtain a subset of information from EC2 IMDS
func New ¶
func New(client HttpClient) EC2MetadataClient
New creates an ec2metadata client to retrieve metadata
type HttpClient ¶
type HttpClient interface { GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error) Region() (string, error) }
HttpClient is used to help with testing
Click to show internal directories.
Click to hide internal directories.