ec2metadataprovider

package
v1.300051.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataProvider

type MetadataProvider interface {
	Get(ctx context.Context) (ec2metadata.EC2InstanceIdentityDocument, error)
	Hostname(ctx context.Context) (string, error)
	InstanceID(ctx context.Context) (string, error)
	InstanceTags(ctx context.Context) (string, error)
	ClientIAMRole(ctx context.Context) (string, error)
	InstanceTagValue(ctx context.Context, tagKey string) (string, error)
}

func NewMetadataProvider

func NewMetadataProvider(p client.ConfigProvider, retries int) MetadataProvider

Jump to

Keyboard shortcuts

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