Documentation ¶
Index ¶
- Variables
- func Get(passwdPath, groupPath, username string, groups []string) (uint32, uint32, []uint32, error)
- func GetAdditionalGids(groups []string) []uint32
- func GetListener(addr string, tlsConfig *tls.Config) (net.Listener, error)
- func ParseID(file, str string, parserFilter filterFunc) (uint32, error)
- func ParseString(line string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PasswdFile keeps user passwd information PasswdFile = "/etc/passwd" // GroupFile keeps group information GroupFile = "/etc/group" )
Functions ¶
func Get ¶
Get accepts user and group slice, return valid uid, gid and additional gids. Through Get is a interface returns all user informations runtime-spec need.
func GetAdditionalGids ¶
GetAdditionalGids parse supplementary gids from slice groups.
func GetListener ¶
GetListener get a listener for an address.
func ParseString ¶
func ParseString(line string, v ...interface{})
ParseString parses line in format a:b:c.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.