shadow

package
v0.0.0-...-30deb2f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	zerolog.Logger
	FileName string
	Users    []User
}

Parser struct to handle parsing of shadow file

func (*Parser) Parse

func (p *Parser) Parse() error

Parse func that parses a shadow file to collect users

type User

type User struct {
	Username   string
	Password   string
	Last       string
	Minimum    string
	Maximum    string
	Warning    string
	Inactivity string
	Expiration string
	Reserved   string
}

User struct that represents a user in shadow file

Jump to

Keyboard shortcuts

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