utils

package
v0.10.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceID

func InstanceID(ctx types.Context) (*types.InstanceID, error)

InstanceID returns the instance ID for the local host.

func IsEC2Instance

func IsEC2Instance(ctx types.Context) (bool, error)

IsEC2Instance returns a flag indicating whether the executing host is an EC2 instance based on whether or not the metadata URL can be accessed.

func ResolveSubnet

func ResolveSubnet(ctx types.Context) (string, error)

ResolveSubnet determines the VPC subnet ID on the running AWS instance.

func ResolveSubnetWithMAC

func ResolveSubnetWithMAC(ctx types.Context, mac string) (string, error)

ResolveSubnetWithMAC determines the VPC subnet ID on the running AWS instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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