host

package
v0.0.0-...-c12f8f0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 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              map[string]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