mocks

package
v2.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 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

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

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

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

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

UpdateRole provides a mock function with given fields: email, newRole

Jump to

Keyboard shortcuts

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