user

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Name string
	GID  uint32
}

Group represents an Unix group information

func GetGrGID

func GetGrGID(gid uint32) (*Group, error)

GetGrGID returns a pointer to Group structure associated with groud gid

func GetGrNam

func GetGrNam(name string) (*Group, error)

GetGrNam returns a pointer to Group structure associated with group name

type User

type User struct {
	Name  string
	UID   uint32
	GID   uint32
	Gecos string
	Dir   string
	Shell string
}

User represents an Unix user account information

func GetPwNam

func GetPwNam(name string) (*User, error)

GetPwNam returns a pointer to User structure associated with user name

func GetPwUID

func GetPwUID(uid uint32) (*User, error)

GetPwUID returns a pointer to User structure associated with user uid

Jump to

Keyboard shortcuts

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