pathsysinfo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroupId

func GetGroupId(groupObj *user.Group) (int, *errorwrapper.Wrapper)

func LookupGroup

func LookupGroup(groupName string) (*user.Group, *errorwrapper.Wrapper)

func LookupUser

func LookupUser(userName string) (userResult *user.User, errorWrapper *errorwrapper.Wrapper)

func SystemUserId

func SystemUserId(userResult *user.User) (int, *errorwrapper.Wrapper)

Types

type GroupInfo

type GroupInfo struct {
	*user.Group
	Id           int
	IsValidGroup bool
	HasValidId   bool
	ErrorWrapper *errorwrapper.Wrapper
}

func GetGroupInfo

func GetGroupInfo(groupName string) *GroupInfo

func InvalidGroupInfo

func InvalidGroupInfo(errorWrapper *errorwrapper.Wrapper) *GroupInfo

func (*GroupInfo) String

func (receiver *GroupInfo) String() string

type UserInfo

type UserInfo struct {
	*user.User
	Id           int
	IsValidUser  bool
	HasValidId   bool
	ErrorWrapper *errorwrapper.Wrapper
}

func GetUserInfo

func GetUserInfo(userName string) *UserInfo

func InvalidUserInfo

func InvalidUserInfo(errorWrapper *errorwrapper.Wrapper) *UserInfo

func (*UserInfo) String

func (receiver *UserInfo) String() string

Jump to

Keyboard shortcuts

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