cloudvm

package
v0.0.0-...-ff5f600 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package cloudvm provides functions to test whether the current process is running on Google Compute Engine or Amazon Web Services, and to extract settings from this environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalIPAddress

func ExternalIPAddress() net.IP

ExternalIPAddress returns the external IP address of this Google Compute Engine or AWS instance, or nil if there is none. Must be called after InitGCE / InitAWS.

func InitAWS

func InitAWS(timeout time.Duration)

func InitGCE

func InitGCE(timeout time.Duration)

func RunningOnAWS

func RunningOnAWS() bool

func RunningOnGCE

func RunningOnGCE() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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