genetlib

package
v0.0.3-0...-8616e37 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1 string, v2 string) (int64, error)

func GetDF

func GetDF() []strucdf

func GetFieldValFromFile

func GetFieldValFromFile(filename string, bkfld int, bkfldval string, fld int) string

func GetIpFromName

func GetIpFromName(ifaceName string) ([]string, error)

func GetMountSpace

func GetMountSpace(path string) (int64, int64, error)

func GetOutboundIP

func GetOutboundIP() string

func GetStatsAll

func GetStatsAll() (string, error)

func GetStatsDisk

func GetStatsDisk() ([]diskstats, error)

func GetStatsNet

func GetStatsNet() ([]netstats, error)

func GetStatsSys

func GetStatsSys() (procstats, error)

func GetUptime

func GetUptime() (time.Duration, error)

func GetValFromFile

func GetValFromFile(filename string, scase int) string

func LinkShow

func LinkShow(detailed bool) ([]netlink.Link, error)

func LookupLinuxUserById

func LookupLinuxUserById(id int) (string, error)

func MakeStdDev

func MakeStdDev(series []float64, avg float64) float64

func Ping

func Ping(addr string, prot string, cnt int, iface string, statsonly bool) (pingStats, error)

func ReadLines

func ReadLines(filename string) ([]string, error)

func ReadLinesNoFrills

func ReadLinesNoFrills(filename string, hdrLines int, comm string) ([]string, error)

Types

type TracerouteHop

type TracerouteHop struct {
	Address net.IP
	Host    []string
	RTT     time.Duration
}

type TracerouteResult

type TracerouteResult struct {
	Address net.IP
	Hops    []TracerouteHop
}

func Traceroute

func Traceroute(host string) (TracerouteResult, error)

Jump to

Keyboard shortcuts

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