Versions in this module Expand all Collapse all v1 v1.2.0 May 22, 2016 v1.1.4 May 14, 2016 v1.1.3 Apr 14, 2016 v1.1.2 Apr 6, 2016 v1.1.1 Apr 6, 2016 v1.1.0 Mar 29, 2016 Changes in this version + var ErrRange = fmt.Errorf("Uids and gids must be in range %d-%d", minId, maxId) + var ErrUnsupported = errors.New("user lookup: operating system does not provide passwd-formatted data") + func GetAdditionalGroups(additionalGroups []string, group io.Reader) ([]int, error) + func GetAdditionalGroupsPath(additionalGroups []string, groupPath string) ([]int, error) + func GetGroup() (io.ReadCloser, error) + func GetGroupPath() (string, error) + func GetPasswd() (io.ReadCloser, error) + func GetPasswdPath() (string, error) + type ExecUser struct + Gid int + Home string + Sgids []int + Uid int + func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (*ExecUser, error) + func GetExecUserPath(userSpec string, defaults *ExecUser, passwdPath, groupPath string) (*ExecUser, error) + type Group struct + Gid int + List []string + Name string + Pass string + func CurrentGroup() (Group, error) + func LookupGid(gid int) (Group, error) + func LookupGroup(groupname string) (Group, error) + func ParseGroup(group io.Reader) ([]Group, error) + func ParseGroupFile(path string) ([]Group, error) + func ParseGroupFileFilter(path string, filter func(Group) bool) ([]Group, error) + func ParseGroupFilter(r io.Reader, filter func(Group) bool) ([]Group, error) + type User struct + Gecos string + Gid int + Home string + Name string + Pass string + Shell string + Uid int + func CurrentUser() (User, error) + func LookupUid(uid int) (User, error) + func LookupUser(username string) (User, error) + func ParsePasswd(passwd io.Reader) ([]User, error) + func ParsePasswdFile(path string) ([]User, error) + func ParsePasswdFileFilter(path string, filter func(User) bool) ([]User, error) + func ParsePasswdFilter(r io.Reader, filter func(User) bool) ([]User, error) v1.0.4 Feb 10, 2016 v1.0.3 Feb 8, 2016 v1.0.2 Jan 27, 2016 v1.0.1 Jan 24, 2016 v1.0.0 Jan 22, 2016 v0 v0.7.2 Nov 25, 2015 v0.7.1 Nov 22, 2015 v0.7.0 Nov 21, 2015 v0.6.2 Oct 22, 2015 v0.6.1 Oct 21, 2015 v0.6.0 Oct 9, 2015