Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserUtil ¶
type UserUtil interface { Lookup(name string) (*user.User, error) LookupGroup(name string) (*user.Group, error) LookupGroupId(name string) (*user.Group, error) }
func NewUserUtilImp ¶
func NewUserUtilImp() UserUtil
type UserUtilImp ¶
type UserUtilImp struct{}
func (*UserUtilImp) LookupGroup ¶
func (s *UserUtilImp) LookupGroup(name string) (*user.Group, error)
func (*UserUtilImp) LookupGroupId ¶
func (s *UserUtilImp) LookupGroupId(name string) (*user.Group, error)
type UserUtilMock ¶
type UserUtilMock struct { LookupFunc func(name string) (*user.User, error) LookupGroupFunc func(name string) (*user.Group, error) LookupGroupIdFunc func(name string) (*user.Group, error) }
func (*UserUtilMock) LookupGroup ¶
func (mock *UserUtilMock) LookupGroup(name string) (*user.Group, error)
func (*UserUtilMock) LookupGroupId ¶
func (mock *UserUtilMock) LookupGroupId(name string) (*user.Group, error)
Click to show internal directories.
Click to hide internal directories.