Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func GetAdditionalGroupsForUser(rootdir string, userid uint64) ([]uint32, error) func GetUser(rootdir, userspec string) (uint32, uint32, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetAdditionalGroupsForUser ¶ added in v0.4.2 func GetAdditionalGroupsForUser(rootdir string, userid uint64) ([]uint32, error) GetAdditionalGroupsForUser returns a list of gids that userid is associated with func GetUser ¶ func GetUser(rootdir, userspec string) (uint32, uint32, error) GetUser will return the uid, gid of the user specified in the userspec it will use the /etc/passwd and /etc/group files inside of the rootdir to return this information. userspace format [user | user:group | uid | uid:gid | user:gid | uid:group ] Types ¶ This section is empty. Source Files ¶ View all Source files user.go user_linux.go Click to show internal directories. Click to hide internal directories.