aws

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func New(ctx context.Context) (*Cloud, error)

New initializes a new AWS Metadata client using instance default credentials. Default region is set up using the AWS imds api.

func (*Cloud) GetLoadBalancerEndpoint

func (c *Cloud) GetLoadBalancerEndpoint(ctx context.Context) (host, port string, err error)

GetLoadBalancerEndpoint returns the endpoint of the load balancer.

func (*Cloud) InitSecretHash

func (c *Cloud) InitSecretHash(ctx context.Context) ([]byte, error)

InitSecretHash returns the InitSecretHash of the current instance.

func (*Cloud) List

func (c *Cloud) List(ctx context.Context) ([]metadata.InstanceMetadata, error)

List retrieves all instances belonging to the current Constellation.

func (*Cloud) Self

Self retrieves the current instance.

func (*Cloud) UID

func (c *Cloud) UID(ctx context.Context) (string, error)

UID returns the UID of the Constellation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL