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) UpdateRole(email 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 ¶
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. The first argument is typically a *testing.T value.
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 ¶
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