passwd

package
v0.0.0-...-ca78c08 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Passwd

type Passwd struct {
	// contains filtered or unexported fields
}

func Read

func Read(file string) (*Passwd, error)

func (*Passwd) Check

func (p *Passwd) Check(name, pass string) (matches bool, exists bool)

func (*Passwd) EnsureUser

func (p *Passwd) EnsureUser(name, role, passwd string) error

func (*Passwd) Pass

func (p *Passwd) Pass(name string) (string, bool)

func (*Passwd) Users

func (p *Passwd) Users() []string

func (*Passwd) Write

func (p *Passwd) Write(passwdFile string) error

Jump to

Keyboard shortcuts

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