Documentation ¶
Index ¶
- func ChownCopy(srcFullPath, dstFullPath string) *errorwrapper.Wrapper
- func ChownCopyUnix(srcFullPath, dstFullPath string) *errorwrapper.Wrapper
- func ChownCopyUsing(srcFullPath *fileinfopath.Instance, dstFullPath string) *errorwrapper.Wrapper
- func GetGroupId(groupObj *user.Group) (int, *errorwrapper.Wrapper)
- func LookupGroup(groupName string) (*user.Group, *errorwrapper.Wrapper)
- func LookupUser(userName string) (userResult *user.User, errorWrapper *errorwrapper.Wrapper)
- func SystemUserId(userResult *user.User) (int, *errorwrapper.Wrapper)
- type GroupInfo
- type PathUserGroupId
- func (it *PathUserGroupId) ApplyChown(fullPath string) *errorwrapper.Wrapper
- func (it *PathUserGroupId) ApplyGroupId(fullPath string) *errorwrapper.Wrapper
- func (it *PathUserGroupId) ApplyUserId(fullPath string) *errorwrapper.Wrapper
- func (it *PathUserGroupId) ErrorWrapper() *errorwrapper.Wrapper
- func (it *PathUserGroupId) HasError() bool
- func (it *PathUserGroupId) HasValidGroupId() bool
- func (it *PathUserGroupId) HasValidUserAndGroupId() bool
- func (it *PathUserGroupId) HasValidUserId() bool
- func (it *PathUserGroupId) InvalidError() *errorwrapper.Wrapper
- func (it *PathUserGroupId) IsEmptyError() bool
- func (it *PathUserGroupId) IsInvalidUserOrGroupId() bool
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChownCopy ¶ added in v0.4.4
func ChownCopy(srcFullPath, dstFullPath string) *errorwrapper.Wrapper
func ChownCopyUnix ¶ added in v0.4.7
func ChownCopyUnix(srcFullPath, dstFullPath string) *errorwrapper.Wrapper
func ChownCopyUsing ¶ added in v0.4.4
func ChownCopyUsing( srcFullPath *fileinfopath.Instance, dstFullPath string, ) *errorwrapper.Wrapper
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 InvalidGroupInfo ¶
func InvalidGroupInfo(errorWrapper *errorwrapper.Wrapper) *GroupInfo
type PathUserGroupId ¶ added in v0.4.4
type PathUserGroupId struct { FileInfoWithPath *fileinfopath.Instance UserId, GroupId int Error error }
func GetPathUserGroupId ¶ added in v0.4.4
func GetPathUserGroupId(filePath string) *PathUserGroupId
func GetPathUserGroupIdUsing ¶ added in v0.4.4
func GetPathUserGroupIdUsing(instance *fileinfopath.Instance) *PathUserGroupId
func (*PathUserGroupId) ApplyChown ¶ added in v0.4.4
func (it *PathUserGroupId) ApplyChown(fullPath string) *errorwrapper.Wrapper
func (*PathUserGroupId) ApplyGroupId ¶ added in v0.4.4
func (it *PathUserGroupId) ApplyGroupId(fullPath string) *errorwrapper.Wrapper
func (*PathUserGroupId) ApplyUserId ¶ added in v0.4.4
func (it *PathUserGroupId) ApplyUserId(fullPath string) *errorwrapper.Wrapper
func (*PathUserGroupId) ErrorWrapper ¶ added in v0.4.4
func (it *PathUserGroupId) ErrorWrapper() *errorwrapper.Wrapper
func (*PathUserGroupId) HasError ¶ added in v0.4.4
func (it *PathUserGroupId) HasError() bool
func (*PathUserGroupId) HasValidGroupId ¶ added in v0.4.4
func (it *PathUserGroupId) HasValidGroupId() bool
func (*PathUserGroupId) HasValidUserAndGroupId ¶ added in v0.4.4
func (it *PathUserGroupId) HasValidUserAndGroupId() bool
func (*PathUserGroupId) HasValidUserId ¶ added in v0.4.4
func (it *PathUserGroupId) HasValidUserId() bool
func (*PathUserGroupId) InvalidError ¶ added in v0.4.4
func (it *PathUserGroupId) InvalidError() *errorwrapper.Wrapper
func (*PathUserGroupId) IsEmptyError ¶ added in v0.4.4
func (it *PathUserGroupId) IsEmptyError() bool
func (*PathUserGroupId) IsInvalidUserOrGroupId ¶ added in v0.4.4
func (it *PathUserGroupId) IsInvalidUserOrGroupId() bool
type UserInfo ¶
type UserInfo struct { *user.User Id int IsValidUser bool HasValidId bool ErrorWrapper *errorwrapper.Wrapper }
func GetUserInfo ¶
func InvalidUserInfo ¶
func InvalidUserInfo(errorWrapper *errorwrapper.Wrapper) *UserInfo
Click to show internal directories.
Click to hide internal directories.