mocks

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 5 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 testing.TB) *ORM

NewORM creates a new instance of ORM. It also registers the testing.TB 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() error

DeleteUser provides a mock function with given fields:

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() (sessions.User, error)

FindUser provides a mock function with given fields:

func (*ORM) GetUserWebAuthn

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

GetUserWebAuthn provides a mock function with given fields: email

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

Jump to

Keyboard shortcuts

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