host

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package host provides data structure for storing resourced host information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Name              string
	Tags              []string
	NetworkInterfaces map[string]map[string]interface{} `json:",omitempty"`
}

func NewHost

func NewHost(name string) *Host

NewHost is constructor for Host.

func NewHostByHostname

func NewHostByHostname() (*Host, error)

NewHostByHostname construct Host struct by looking ad os.Hostname() directly.

Jump to

Keyboard shortcuts

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