user

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupUidGidBySpec

func LookupUidGidBySpec(spec string) (int, int, error)

LookupUidGidBySpec works the same way as LookupUserGroupBySpec but returns integer UID and GID values. This only works on Unix-like systems which support integral user and group IDs.

func LookupUserGroupBySpec

func LookupUserGroupBySpec(spec string) (u *user.User, g *user.Group, err error)

LookupUserGroupBySpec returns the user and group specified by user:group string which can be of the format uid:gid (both numeric), username:groupname (both strings) or any combination of the two. A single string can be passed which will be treated as a username and the user's default group will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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