metadata

package
v1.10.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCIDRBlock added in v1.10.0

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

GetCIDRBlock returns the IPv4 CIDR that belongs to the ECS instance from metadata

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 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