Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) AuthorizedUserWithSession(sessionID string) (sessions.User, error)
- func (_m *ORM) ClearNonCurrentSessions(sessionID string) error
- func (_m *ORM) CreateAndSetAuthToken(user *sessions.User) (*auth.Token, error)
- func (_m *ORM) CreateSession(sr sessions.SessionRequest) (string, error)
- func (_m *ORM) CreateUser(user *sessions.User) error
- func (_m *ORM) DeleteAuthToken(user *sessions.User) error
- func (_m *ORM) DeleteUser() error
- func (_m *ORM) DeleteUserSession(sessionID string) error
- func (_m *ORM) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *ORM) FindUser() (sessions.User, error)
- func (_m *ORM) GetUserWebAuthn(email string) ([]sessions.WebAuthn, error)
- func (_m *ORM) SaveWebAuthn(token *sessions.WebAuthn) error
- func (_m *ORM) Sessions(offset int, limit int) ([]sessions.Session, error)
- func (_m *ORM) SetAuthToken(user *sessions.User, token *auth.Token) error
- func (_m *ORM) SetPassword(user *sessions.User, newPassword string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶ added in v1.5.0
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 ¶
AuthorizedUserWithSession provides a mock function with given fields: sessionID
func (*ORM) ClearNonCurrentSessions ¶
ClearNonCurrentSessions provides a mock function with given fields: sessionID
func (*ORM) CreateAndSetAuthToken ¶
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 ¶
CreateUser provides a mock function with given fields: user
func (*ORM) DeleteAuthToken ¶
DeleteAuthToken provides a mock function with given fields: user
func (*ORM) DeleteUser ¶
DeleteUser provides a mock function with given fields:
func (*ORM) DeleteUserSession ¶
DeleteUserSession provides a mock function with given fields: sessionID
func (*ORM) FindExternalInitiator ¶
FindExternalInitiator provides a mock function with given fields: eia
func (*ORM) GetUserWebAuthn ¶
GetUserWebAuthn provides a mock function with given fields: email
func (*ORM) SaveWebAuthn ¶
SaveWebAuthn provides a mock function with given fields: token
func (*ORM) SetAuthToken ¶
SetAuthToken provides a mock function with given fields: user, token