etchosts

package
v0.0.0-...-a234189 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package etchosts extracts useful info from that file on linux

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Hosts

func Hosts(_verbose bool) (smap map[string]*Hostsdata)

Hosts extracts etc hosts info

func Keys_String2PtrHostsdata

func Keys_String2PtrHostsdata(_mp *map[string]*Hostsdata) []string

Keys_String2PtrHostsdata is generic

func SortedKeys_String2PtrHostsdata

func SortedKeys_String2PtrHostsdata(_mp *map[string]*Hostsdata) []string

SortedKeys_String2PtrHostsdata is generic

Types

type Hostsdata

type Hostsdata struct {
	Ip_      string
	Name_    string
	Aliases_ string
}

Hostsdata holds hosts info

func New

func New() *Hostsdata

New is generic

func (*Hostsdata) Csv

func (self *Hostsdata) Csv() string

Csv is generic

func (*Hostsdata) Print

func (self *Hostsdata) Print()

Print is generic

func (*Hostsdata) Sprint

func (self *Hostsdata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

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