host

package
v0.0.0-...-6e31670 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package host provides functionality to obtain basic host information for a host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

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

Host contains basic host information.

func New

func New() (*Host, error)

New performs an initial update and returns a Host.

func (*Host) FQDN

func (h *Host) FQDN() string

FQDN returns the Host FQDN.

func (*Host) IP

func (h *Host) IP() net.IP

IP returns the Host IP address.

func (*Host) Update

func (h *Host) Update() error

Update updates the host.

Jump to

Keyboard shortcuts

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