passwd

package
v0.0.0-...-2ba466c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	UID      string `json:"uid"`
	GID      string `json:"gid"`
	Desc     string `json:"desc"`
	Home     string `json:"home"`
	Shell    string `json:"shell"`
}

func Parse

func Parse(raw string) ([]User, error)

func (*User) AuthorizedKeys

func (u *User) AuthorizedKeys() string

func (*User) SSHDir

func (u *User) SSHDir() string

func (*User) Serialize

func (u *User) Serialize() string

func (*User) SetPassword

func (u *User) SetPassword(password string)

func (*User) UserAdd

func (u *User) UserAdd() string

func (*User) UserDelete

func (u *User) UserDelete(removeHome bool) string

Jump to

Keyboard shortcuts

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