users

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MPL-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() (*user.User, error)

Current returns the current user, acquired while holding a global process lock.

func Lookup

func Lookup(username string) (*user.User, error)

Lookup username while holding a global process lock.

func LookupGroupId

func LookupGroupId(gid string) (*user.Group, error)

LookupGroupId while holding a global process lock.

func Nobody

func Nobody() (*user.User, error)

Nobody returns User data for the "nobody" user on the system, bypassing the locking / file read / NSS lookup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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