utils

package
v0.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: 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 added in v0.3.3

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

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

func ResolveSubnetWithMAC added in v0.3.5

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