passwd

package
v0.0.0-...-f4dfa5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 6 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) 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