Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudmetadata

package
v0.0.225 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Providers moved to armoapi-go/armotypes
	TestMode = "testmode"
)

Variables

This section is empty.

Functions

func EnrichCloudMetadataFromAWSAuthConfigMap added in v0.0.183

func EnrichCloudMetadataFromAWSAuthConfigMap(metadata *armotypes.CloudMetadata, cm *corev1.ConfigMap) error

EnrichCloudMetadataFromAWSAuthConfigMap enriches cloud metadata account ID from aws-auth ConfigMap

func GetCloudMetadata

func GetCloudMetadata(ctx context.Context, node *corev1.Node, nodeName string) (*armotypes.CloudMetadata, error)

GetCloudMetadata retrieves cloud metadata for a given node

Types

type MetadataClient added in v0.0.189

type MetadataClient struct {
	// contains filtered or unexported fields
}

func NewMetadataClient added in v0.0.189

func NewMetadataClient(useIMDSv2 bool) *MetadataClient

NewMetadataClient creates a new client for fetching EC2 metadata

func (*MetadataClient) GetMetadata added in v0.0.189

func (m *MetadataClient) GetMetadata(ctx context.Context) (*armotypes.CloudMetadata, error)

GetMetadata fetches all available instance metadata

Jump to

Keyboard shortcuts

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