df

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 df extracts useful info from that command 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 Df

func Df(_localOnly, _verbose bool) (smap map[string][]*Dfdata)

Df collects df data

func Header() string

Header is generic

func Keys_String2PtrDfdata

func Keys_String2PtrDfdata(_mp *map[string][]*Dfdata) []string

Keys_String2PtrDfdata is generic

func SortedKeys_String2PtrDfdata

func SortedKeys_String2PtrDfdata(_mp *map[string][]*Dfdata) []string

SortedKeys_String2PtrDfdata is generic

Types

type Dfdata

type Dfdata struct {
	Name_       string // e.g. /dev/md1p1
	DevName_    string // e.g. /dev/md1 (inferred)
	Type_       string // e.g. local, network, etc
	Mountpoint_ string // e.g. /
	Sizegb_     string // e.g. 25G
	Usedgb_     string // e.g. 10G
	Availgb_    string // e.g. 15G
	Usepct_     string // e.g. 43%
}

Dfdata holds df data

func New

func New() *Dfdata

New is generic

func (*Dfdata) Csv

func (self *Dfdata) Csv() string

Csv is generic

func (*Dfdata) Print

func (self *Dfdata) Print()

Print is generic

func (*Dfdata) Sprint

func (self *Dfdata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

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