passwd

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 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) 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) 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