Documentation
¶
Index ¶
- type OSAuther
- func (_m *OSAuther) AuthUser(username string, password string) bool
- func (_m *OSAuther) AuthUserFromShadow(username string, password string, shadow io.Reader) bool
- func (_m *OSAuther) LookupUser(username string) *osauth.User
- func (_m *OSAuther) LookupUserFromPasswd(username string, passwd io.Reader) (*osauth.User, error)
- func (_m *OSAuther) VerifyPasswordHash(hash string, password string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSAuther ¶
OSAuther is an autogenerated mock type for the OSAuther type
func NewOSAuther ¶
func NewOSAuther(t mockConstructorTestingTNewOSAuther) *OSAuther
NewOSAuther creates a new instance of OSAuther. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OSAuther) AuthUserFromShadow ¶
AuthUserFromShadow provides a mock function with given fields: username, password, shadow
func (*OSAuther) LookupUser ¶
LookupUser provides a mock function with given fields: username
func (*OSAuther) LookupUserFromPasswd ¶
LookupUserFromPasswd provides a mock function with given fields: username, passwd
Click to show internal directories.
Click to hide internal directories.