user

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserGroupSupplementary

func GetUserGroupSupplementary(userSpec string, defaultUid int, defaultGid int) (int, int, []int, error)

Given a string like "user", "1000", "user:group", "1000:1000", returns the uid, gid, and list of supplementary group IDs, if possible.

Types

type Group

type Group struct {
	Name string
	Pass string
	Gid  int
	List []string
}

func ParseGroup

func ParseGroup() ([]*Group, error)

func ParseGroupFilter

func ParseGroupFilter(filter func(*Group) bool) ([]*Group, error)

type User

type User struct {
	Name  string
	Pass  string
	Uid   int
	Gid   int
	Gecos string
	Home  string
	Shell string
}

func ParsePasswd

func ParsePasswd() ([]*User, error)

func ParsePasswdFilter

func ParsePasswdFilter(filter func(*User) bool) ([]*User, error)

Jump to

Keyboard shortcuts

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