metadata

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package metadata queries the EC2 metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceID

func InstanceID(lg *zap.Logger, timeout time.Duration) (s string, err error)

InstanceID returns the instance ID of an EC2 instance.

func PrivateIPv4

func PrivateIPv4(lg *zap.Logger, timeout time.Duration) (s string, err error)

PrivateIPv4 returns the private IPv4 address of an EC2 instance.

func PublicIPv4

func PublicIPv4(lg *zap.Logger, timeout time.Duration) (s string, err error)

PublicIPv4 returns the public IPv4 address of an EC2 instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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