user

package
v0.0.0-...-6244057 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinuxUser

type LinuxUser struct {
	*osuser.User
	// contains filtered or unexported fields
}

wrapper around os.User for linux

func Current

func Current() (user *LinuxUser, e error)

get current user

func (*LinuxUser) GroupId

func (user *LinuxUser) GroupId() uint32

getter

func (*LinuxUser) Id

func (user *LinuxUser) Id() uint32

getter

type UserInterface

type UserInterface interface {
	Id() uint32
	GroupId() uint32
}

Jump to

Keyboard shortcuts

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