node

package
v0.0.0-...-f5c3557 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package node provides information about the local node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveListenAddress

func ResolveListenAddress(addr *string) error

ResolveListenAddress validates the given address and resolves any special hostnames to actual addresses.

Currently, it resolves the following:

  • <ec2-priv>: resolves to the node's private IP address

Types

type EC2Metadata

type EC2Metadata struct {
	// contains filtered or unexported fields
}

EC2Metadata provides wrapped and cached calls to the EC2 metadata service

var EC2 EC2Metadata

EC2 provides a globally-accessible metadata instance

func (*EC2Metadata) GetPrivIP

func (e *EC2Metadata) GetPrivIP() (ip string, err error)

GetPrivIP gets the node's private IP address

Jump to

Keyboard shortcuts

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