mocks

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSAuther

type OSAuther struct {
	mock.Mock
}

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) AuthUser

func (_m *OSAuther) AuthUser(username string, password string) bool

AuthUser provides a mock function with given fields: username, password

func (*OSAuther) AuthUserFromShadow

func (_m *OSAuther) AuthUserFromShadow(username string, password string, shadow io.Reader) bool

AuthUserFromShadow provides a mock function with given fields: username, password, shadow

func (*OSAuther) LookupUser

func (_m *OSAuther) LookupUser(username string) *osauth.User

LookupUser provides a mock function with given fields: username

func (*OSAuther) LookupUserFromPasswd

func (_m *OSAuther) LookupUserFromPasswd(username string, passwd io.Reader) (*osauth.User, error)

LookupUserFromPasswd provides a mock function with given fields: username, passwd

func (*OSAuther) VerifyPasswordHash

func (_m *OSAuther) VerifyPasswordHash(hash string, password string) bool

VerifyPasswordHash provides a mock function with given fields: hash, password

Jump to

Keyboard shortcuts

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