Documentation
¶
Overview ¶
Implements interaction with the AWS API.
Instance metadata is retrieved from the AWS IMDS API.
Retrieving metadata of other instances is done by using the AWS compute API, and requires AWS credentials.
Index ¶
- type Cloud
- func (c *Cloud) GetLoadBalancerEndpoint(ctx context.Context) (host, port string, err error)
- func (c *Cloud) InitSecretHash(ctx context.Context) ([]byte, error)
- func (c *Cloud) List(ctx context.Context) ([]metadata.InstanceMetadata, error)
- func (c *Cloud) Self(ctx context.Context) (metadata.InstanceMetadata, error)
- func (c *Cloud) UID(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
Cloud provides AWS metadata and API access.
func New ¶
New initializes a new AWS Metadata client using instance default credentials. Default region is set up using the AWS imds api.
func (*Cloud) GetLoadBalancerEndpoint ¶
GetLoadBalancerEndpoint returns the endpoint of the load balancer.
func (*Cloud) InitSecretHash ¶
InitSecretHash returns the InitSecretHash of the current instance.
Click to show internal directories.
Click to hide internal directories.