passwd

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 passwd file

func (*Parser) Parse

func (p *Parser) Parse() error

Parse func that parses a passwd file to collect users

type User

type User struct {
	Username string
	Password string
	UID      string
	GID      string
	Comment  string
	Home     string
	Shell    string
}

User struct that represents a user in passwd file

Jump to

Keyboard shortcuts

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