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(email string) error
- func (_m *ORM) DeleteUserSession(sessionID string) error
- func (_m *ORM) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *ORM) FindUser(email string) (sessions.User, error)
- func (_m *ORM) FindUserByAPIToken(apiToken string) (sessions.User, error)
- func (_m *ORM) GetUserWebAuthn(email string) ([]sessions.WebAuthn, error)
- func (_m *ORM) ListUsers() ([]sessions.User, 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
- func (_m *ORM) UpdateUser(email string, newEmail string, newPassword string, newRole string) (sessions.User, 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
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 ¶
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: email
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) FindUserByAPIToken ¶ added in v1.7.0
FindUserByAPIToken provides a mock function with given fields: apiToken
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
func (*ORM) SetPassword ¶
SetPassword provides a mock function with given fields: user, newPassword