etcshadow

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: 6 Imported by: 0

Documentation

Overview

Package etcshadow 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 Keys_String2PtrShadowdata

func Keys_String2PtrShadowdata(_mp *map[string]*Shadowdata) []string

Keys_String2PtrShadowdata is generic

func Shadow

func Shadow(_verbose bool) (smap map[string]*Shadowdata)

Shadow extracts info from etc shadow

func SortedKeys_String2PtrShadowdata

func SortedKeys_String2PtrShadowdata(_mp *map[string]*Shadowdata) []string

SortedKeys_String2PtrShadowdata is generic

Types

type Shadowdata

type Shadowdata struct {
	Shadowname_  string
	PwMd5sum_    string
	Nlastchange_ string
	Ncanchanges_ string
	Nmustchange_ string
	Nwarn_       string
	Nexpire_     string
	Nexpired_    string
	Nreserved_   string
}

Shadowdata holds etc shadow info

func (*Shadowdata) Csv

func (self *Shadowdata) Csv() string

Csv is generic

func (*Shadowdata) Print

func (self *Shadowdata) Print()

Print is generic

func (*Shadowdata) Sprint

func (self *Shadowdata) Sprint() string

Sprint is generic

func (*Shadowdata) SprintShort

func (self *Shadowdata) SprintShort() string

SprintShort is generic

Jump to

Keyboard shortcuts

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