mocks

package
v1.7.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM added in v1.5.0

func NewORM(t mockConstructorTestingTNewORM) *ORM

NewORM creates a new instance of ORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ORM) AuthorizedUserWithSession

func (_m *ORM) AuthorizedUserWithSession(sessionID string) (sessions.User, error)

AuthorizedUserWithSession provides a mock function with given fields: sessionID

func (*ORM) ClearNonCurrentSessions

func (_m *ORM) ClearNonCurrentSessions(sessionID string) error

ClearNonCurrentSessions provides a mock function with given fields: sessionID

func (*ORM) CreateAndSetAuthToken

func (_m *ORM) CreateAndSetAuthToken(user *sessions.User) (*auth.Token, error)

CreateAndSetAuthToken provides a mock function with given fields: user

func (*ORM) CreateSession

func (_m *ORM) CreateSession(sr sessions.SessionRequest) (string, error)

CreateSession provides a mock function with given fields: sr

func (*ORM) CreateUser

func (_m *ORM) CreateUser(user *sessions.User) error

CreateUser provides a mock function with given fields: user

func (*ORM) DeleteAuthToken

func (_m *ORM) DeleteAuthToken(user *sessions.User) error

DeleteAuthToken provides a mock function with given fields: user

func (*ORM) DeleteUser

func (_m *ORM) DeleteUser(email string) error

DeleteUser provides a mock function with given fields: email

func (*ORM) DeleteUserSession

func (_m *ORM) DeleteUserSession(sessionID string) error

DeleteUserSession provides a mock function with given fields: sessionID

func (*ORM) FindExternalInitiator

func (_m *ORM) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)

FindExternalInitiator provides a mock function with given fields: eia

func (*ORM) FindUser

func (_m *ORM) FindUser(email string) (sessions.User, error)

FindUser provides a mock function with given fields: email

func (*ORM) FindUserByAPIToken added in v1.7.0

func (_m *ORM) FindUserByAPIToken(apiToken string) (sessions.User, error)

FindUserByAPIToken provides a mock function with given fields: apiToken

func (*ORM) GetUserWebAuthn

func (_m *ORM) GetUserWebAuthn(email string) ([]sessions.WebAuthn, error)

GetUserWebAuthn provides a mock function with given fields: email

func (*ORM) ListUsers added in v1.7.0

func (_m *ORM) ListUsers() ([]sessions.User, error)

ListUsers provides a mock function with given fields:

func (*ORM) SaveWebAuthn

func (_m *ORM) SaveWebAuthn(token *sessions.WebAuthn) error

SaveWebAuthn provides a mock function with given fields: token

func (*ORM) Sessions

func (_m *ORM) Sessions(offset int, limit int) ([]sessions.Session, error)

Sessions provides a mock function with given fields: offset, limit

func (*ORM) SetAuthToken

func (_m *ORM) SetAuthToken(user *sessions.User, token *auth.Token) error

SetAuthToken provides a mock function with given fields: user, token

func (*ORM) SetPassword

func (_m *ORM) SetPassword(user *sessions.User, newPassword string) error

SetPassword provides a mock function with given fields: user, newPassword

func (*ORM) UpdateUser added in v1.7.0

func (_m *ORM) UpdateUser(email string, newEmail string, newPassword string, newRole string) (sessions.User, error)

UpdateUser provides a mock function with given fields: email, newEmail, newPassword, newRole

Jump to

Keyboard shortcuts

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