utils

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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