metadata

package
v1.15.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceID

func GetInstanceID(ctx context.Context) (string, error)

GetInstanceID returns the instance ID from metadata

func GetInstanceType

func GetInstanceType(ctx context.Context) (string, error)

GetInstanceType returns the instance type from metadata

func GetRegionID

func GetRegionID(ctx context.Context) (string, error)

GetRegionID returns the region ID from metadata

func GetVPCCIDRBlock

func GetVPCCIDRBlock(ctx context.Context) (string, error)

GetVPCCIDRBlock returns the IPv4 CIDR block of the VPC to which the instance belongs

func GetVPCID

func GetVPCID(ctx context.Context) (string, error)

GetVPCID returns the vpc ID that belongs to the ECS instance from metadata

func GetZoneID

func GetZoneID(ctx context.Context) (string, error)

GetZoneID returns the zone ID from metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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