Documentation
¶
Index ¶
- type AuthenticationProvider
- func (_m *AuthenticationProvider) AuthorizedUserWithSession(ctx context.Context, sessionID string) (sessions.User, error)
- func (_m *AuthenticationProvider) ClearNonCurrentSessions(ctx context.Context, sessionID string) error
- func (_m *AuthenticationProvider) CreateAndSetAuthToken(ctx context.Context, user *sessions.User) (*auth.Token, error)
- func (_m *AuthenticationProvider) CreateSession(ctx context.Context, sr sessions.SessionRequest) (string, error)
- func (_m *AuthenticationProvider) CreateUser(ctx context.Context, user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteAuthToken(ctx context.Context, user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteUser(ctx context.Context, email string) error
- func (_m *AuthenticationProvider) DeleteUserSession(ctx context.Context, sessionID string) error
- func (_m *AuthenticationProvider) EXPECT() *AuthenticationProvider_Expecter
- func (_m *AuthenticationProvider) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *AuthenticationProvider) FindUser(ctx context.Context, email string) (sessions.User, error)
- func (_m *AuthenticationProvider) FindUserByAPIToken(ctx context.Context, apiToken string) (sessions.User, error)
- func (_m *AuthenticationProvider) GetUserWebAuthn(ctx context.Context, email string) ([]sessions.WebAuthn, error)
- func (_m *AuthenticationProvider) ListUsers(ctx context.Context) ([]sessions.User, error)
- func (_m *AuthenticationProvider) SaveWebAuthn(ctx context.Context, token *sessions.WebAuthn) error
- func (_m *AuthenticationProvider) Sessions(ctx context.Context, offset int, limit int) ([]sessions.Session, error)
- func (_m *AuthenticationProvider) SetAuthToken(ctx context.Context, user *sessions.User, token *auth.Token) error
- func (_m *AuthenticationProvider) SetPassword(ctx context.Context, user *sessions.User, newPassword string) error
- func (_m *AuthenticationProvider) TestPassword(ctx context.Context, email string, password string) error
- func (_m *AuthenticationProvider) UpdateRole(ctx context.Context, email string, newRole string) (sessions.User, error)
- type AuthenticationProvider_AuthorizedUserWithSession_Call
- func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_AuthorizedUserWithSession_Call
- func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_AuthorizedUserWithSession_Call
- func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_AuthorizedUserWithSession_Call
- type AuthenticationProvider_ClearNonCurrentSessions_Call
- func (_c *AuthenticationProvider_ClearNonCurrentSessions_Call) Return(_a0 error) *AuthenticationProvider_ClearNonCurrentSessions_Call
- func (_c *AuthenticationProvider_ClearNonCurrentSessions_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_ClearNonCurrentSessions_Call
- func (_c *AuthenticationProvider_ClearNonCurrentSessions_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_ClearNonCurrentSessions_Call
- type AuthenticationProvider_CreateAndSetAuthToken_Call
- func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) Return(_a0 *auth.Token, _a1 error) *AuthenticationProvider_CreateAndSetAuthToken_Call
- func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_CreateAndSetAuthToken_Call
- func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User) (*auth.Token, error)) *AuthenticationProvider_CreateAndSetAuthToken_Call
- type AuthenticationProvider_CreateSession_Call
- func (_c *AuthenticationProvider_CreateSession_Call) Return(_a0 string, _a1 error) *AuthenticationProvider_CreateSession_Call
- func (_c *AuthenticationProvider_CreateSession_Call) Run(run func(ctx context.Context, sr sessions.SessionRequest)) *AuthenticationProvider_CreateSession_Call
- func (_c *AuthenticationProvider_CreateSession_Call) RunAndReturn(run func(context.Context, sessions.SessionRequest) (string, error)) *AuthenticationProvider_CreateSession_Call
- type AuthenticationProvider_CreateUser_Call
- func (_c *AuthenticationProvider_CreateUser_Call) Return(_a0 error) *AuthenticationProvider_CreateUser_Call
- func (_c *AuthenticationProvider_CreateUser_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_CreateUser_Call
- func (_c *AuthenticationProvider_CreateUser_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *AuthenticationProvider_CreateUser_Call
- type AuthenticationProvider_DeleteAuthToken_Call
- func (_c *AuthenticationProvider_DeleteAuthToken_Call) Return(_a0 error) *AuthenticationProvider_DeleteAuthToken_Call
- func (_c *AuthenticationProvider_DeleteAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_DeleteAuthToken_Call
- func (_c *AuthenticationProvider_DeleteAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *AuthenticationProvider_DeleteAuthToken_Call
- type AuthenticationProvider_DeleteUserSession_Call
- func (_c *AuthenticationProvider_DeleteUserSession_Call) Return(_a0 error) *AuthenticationProvider_DeleteUserSession_Call
- func (_c *AuthenticationProvider_DeleteUserSession_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_DeleteUserSession_Call
- func (_c *AuthenticationProvider_DeleteUserSession_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_DeleteUserSession_Call
- type AuthenticationProvider_DeleteUser_Call
- func (_c *AuthenticationProvider_DeleteUser_Call) Return(_a0 error) *AuthenticationProvider_DeleteUser_Call
- func (_c *AuthenticationProvider_DeleteUser_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_DeleteUser_Call
- func (_c *AuthenticationProvider_DeleteUser_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_DeleteUser_Call
- type AuthenticationProvider_Expecter
- func (_e *AuthenticationProvider_Expecter) AuthorizedUserWithSession(ctx interface{}, sessionID interface{}) *AuthenticationProvider_AuthorizedUserWithSession_Call
- func (_e *AuthenticationProvider_Expecter) ClearNonCurrentSessions(ctx interface{}, sessionID interface{}) *AuthenticationProvider_ClearNonCurrentSessions_Call
- func (_e *AuthenticationProvider_Expecter) CreateAndSetAuthToken(ctx interface{}, user interface{}) *AuthenticationProvider_CreateAndSetAuthToken_Call
- func (_e *AuthenticationProvider_Expecter) CreateSession(ctx interface{}, sr interface{}) *AuthenticationProvider_CreateSession_Call
- func (_e *AuthenticationProvider_Expecter) CreateUser(ctx interface{}, user interface{}) *AuthenticationProvider_CreateUser_Call
- func (_e *AuthenticationProvider_Expecter) DeleteAuthToken(ctx interface{}, user interface{}) *AuthenticationProvider_DeleteAuthToken_Call
- func (_e *AuthenticationProvider_Expecter) DeleteUser(ctx interface{}, email interface{}) *AuthenticationProvider_DeleteUser_Call
- func (_e *AuthenticationProvider_Expecter) DeleteUserSession(ctx interface{}, sessionID interface{}) *AuthenticationProvider_DeleteUserSession_Call
- func (_e *AuthenticationProvider_Expecter) FindExternalInitiator(ctx interface{}, eia interface{}) *AuthenticationProvider_FindExternalInitiator_Call
- func (_e *AuthenticationProvider_Expecter) FindUser(ctx interface{}, email interface{}) *AuthenticationProvider_FindUser_Call
- func (_e *AuthenticationProvider_Expecter) FindUserByAPIToken(ctx interface{}, apiToken interface{}) *AuthenticationProvider_FindUserByAPIToken_Call
- func (_e *AuthenticationProvider_Expecter) GetUserWebAuthn(ctx interface{}, email interface{}) *AuthenticationProvider_GetUserWebAuthn_Call
- func (_e *AuthenticationProvider_Expecter) ListUsers(ctx interface{}) *AuthenticationProvider_ListUsers_Call
- func (_e *AuthenticationProvider_Expecter) SaveWebAuthn(ctx interface{}, token interface{}) *AuthenticationProvider_SaveWebAuthn_Call
- func (_e *AuthenticationProvider_Expecter) Sessions(ctx interface{}, offset interface{}, limit interface{}) *AuthenticationProvider_Sessions_Call
- func (_e *AuthenticationProvider_Expecter) SetAuthToken(ctx interface{}, user interface{}, token interface{}) *AuthenticationProvider_SetAuthToken_Call
- func (_e *AuthenticationProvider_Expecter) SetPassword(ctx interface{}, user interface{}, newPassword interface{}) *AuthenticationProvider_SetPassword_Call
- func (_e *AuthenticationProvider_Expecter) TestPassword(ctx interface{}, email interface{}, password interface{}) *AuthenticationProvider_TestPassword_Call
- func (_e *AuthenticationProvider_Expecter) UpdateRole(ctx interface{}, email interface{}, newRole interface{}) *AuthenticationProvider_UpdateRole_Call
- type AuthenticationProvider_FindExternalInitiator_Call
- func (_c *AuthenticationProvider_FindExternalInitiator_Call) Return(initiator *bridges.ExternalInitiator, err error) *AuthenticationProvider_FindExternalInitiator_Call
- func (_c *AuthenticationProvider_FindExternalInitiator_Call) Run(run func(ctx context.Context, eia *auth.Token)) *AuthenticationProvider_FindExternalInitiator_Call
- func (_c *AuthenticationProvider_FindExternalInitiator_Call) RunAndReturn(run func(context.Context, *auth.Token) (*bridges.ExternalInitiator, error)) *AuthenticationProvider_FindExternalInitiator_Call
- type AuthenticationProvider_FindUserByAPIToken_Call
- func (_c *AuthenticationProvider_FindUserByAPIToken_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_FindUserByAPIToken_Call
- func (_c *AuthenticationProvider_FindUserByAPIToken_Call) Run(run func(ctx context.Context, apiToken string)) *AuthenticationProvider_FindUserByAPIToken_Call
- func (_c *AuthenticationProvider_FindUserByAPIToken_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_FindUserByAPIToken_Call
- type AuthenticationProvider_FindUser_Call
- func (_c *AuthenticationProvider_FindUser_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_FindUser_Call
- func (_c *AuthenticationProvider_FindUser_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_FindUser_Call
- func (_c *AuthenticationProvider_FindUser_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_FindUser_Call
- type AuthenticationProvider_GetUserWebAuthn_Call
- func (_c *AuthenticationProvider_GetUserWebAuthn_Call) Return(_a0 []sessions.WebAuthn, _a1 error) *AuthenticationProvider_GetUserWebAuthn_Call
- func (_c *AuthenticationProvider_GetUserWebAuthn_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_GetUserWebAuthn_Call
- func (_c *AuthenticationProvider_GetUserWebAuthn_Call) RunAndReturn(run func(context.Context, string) ([]sessions.WebAuthn, error)) *AuthenticationProvider_GetUserWebAuthn_Call
- type AuthenticationProvider_ListUsers_Call
- func (_c *AuthenticationProvider_ListUsers_Call) Return(_a0 []sessions.User, _a1 error) *AuthenticationProvider_ListUsers_Call
- func (_c *AuthenticationProvider_ListUsers_Call) Run(run func(ctx context.Context)) *AuthenticationProvider_ListUsers_Call
- func (_c *AuthenticationProvider_ListUsers_Call) RunAndReturn(run func(context.Context) ([]sessions.User, error)) *AuthenticationProvider_ListUsers_Call
- type AuthenticationProvider_SaveWebAuthn_Call
- func (_c *AuthenticationProvider_SaveWebAuthn_Call) Return(_a0 error) *AuthenticationProvider_SaveWebAuthn_Call
- func (_c *AuthenticationProvider_SaveWebAuthn_Call) Run(run func(ctx context.Context, token *sessions.WebAuthn)) *AuthenticationProvider_SaveWebAuthn_Call
- func (_c *AuthenticationProvider_SaveWebAuthn_Call) RunAndReturn(run func(context.Context, *sessions.WebAuthn) error) *AuthenticationProvider_SaveWebAuthn_Call
- type AuthenticationProvider_Sessions_Call
- func (_c *AuthenticationProvider_Sessions_Call) Return(_a0 []sessions.Session, _a1 error) *AuthenticationProvider_Sessions_Call
- func (_c *AuthenticationProvider_Sessions_Call) Run(run func(ctx context.Context, offset int, limit int)) *AuthenticationProvider_Sessions_Call
- func (_c *AuthenticationProvider_Sessions_Call) RunAndReturn(run func(context.Context, int, int) ([]sessions.Session, error)) *AuthenticationProvider_Sessions_Call
- type AuthenticationProvider_SetAuthToken_Call
- func (_c *AuthenticationProvider_SetAuthToken_Call) Return(_a0 error) *AuthenticationProvider_SetAuthToken_Call
- func (_c *AuthenticationProvider_SetAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User, token *auth.Token)) *AuthenticationProvider_SetAuthToken_Call
- func (_c *AuthenticationProvider_SetAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User, *auth.Token) error) *AuthenticationProvider_SetAuthToken_Call
- type AuthenticationProvider_SetPassword_Call
- func (_c *AuthenticationProvider_SetPassword_Call) Return(_a0 error) *AuthenticationProvider_SetPassword_Call
- func (_c *AuthenticationProvider_SetPassword_Call) Run(run func(ctx context.Context, user *sessions.User, newPassword string)) *AuthenticationProvider_SetPassword_Call
- func (_c *AuthenticationProvider_SetPassword_Call) RunAndReturn(run func(context.Context, *sessions.User, string) error) *AuthenticationProvider_SetPassword_Call
- type AuthenticationProvider_TestPassword_Call
- func (_c *AuthenticationProvider_TestPassword_Call) Return(_a0 error) *AuthenticationProvider_TestPassword_Call
- func (_c *AuthenticationProvider_TestPassword_Call) Run(run func(ctx context.Context, email string, password string)) *AuthenticationProvider_TestPassword_Call
- func (_c *AuthenticationProvider_TestPassword_Call) RunAndReturn(run func(context.Context, string, string) error) *AuthenticationProvider_TestPassword_Call
- type AuthenticationProvider_UpdateRole_Call
- func (_c *AuthenticationProvider_UpdateRole_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_UpdateRole_Call
- func (_c *AuthenticationProvider_UpdateRole_Call) Run(run func(ctx context.Context, email string, newRole string)) *AuthenticationProvider_UpdateRole_Call
- func (_c *AuthenticationProvider_UpdateRole_Call) RunAndReturn(run func(context.Context, string, string) (sessions.User, error)) *AuthenticationProvider_UpdateRole_Call
- type BasicAdminUsersORM
- func (_m *BasicAdminUsersORM) CreateUser(ctx context.Context, user *sessions.User) error
- func (_m *BasicAdminUsersORM) EXPECT() *BasicAdminUsersORM_Expecter
- func (_m *BasicAdminUsersORM) FindUser(ctx context.Context, email string) (sessions.User, error)
- func (_m *BasicAdminUsersORM) ListUsers(ctx context.Context) ([]sessions.User, error)
- type BasicAdminUsersORM_CreateUser_Call
- func (_c *BasicAdminUsersORM_CreateUser_Call) Return(_a0 error) *BasicAdminUsersORM_CreateUser_Call
- func (_c *BasicAdminUsersORM_CreateUser_Call) Run(run func(ctx context.Context, user *sessions.User)) *BasicAdminUsersORM_CreateUser_Call
- func (_c *BasicAdminUsersORM_CreateUser_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *BasicAdminUsersORM_CreateUser_Call
- type BasicAdminUsersORM_Expecter
- func (_e *BasicAdminUsersORM_Expecter) CreateUser(ctx interface{}, user interface{}) *BasicAdminUsersORM_CreateUser_Call
- func (_e *BasicAdminUsersORM_Expecter) FindUser(ctx interface{}, email interface{}) *BasicAdminUsersORM_FindUser_Call
- func (_e *BasicAdminUsersORM_Expecter) ListUsers(ctx interface{}) *BasicAdminUsersORM_ListUsers_Call
- type BasicAdminUsersORM_FindUser_Call
- func (_c *BasicAdminUsersORM_FindUser_Call) Return(_a0 sessions.User, _a1 error) *BasicAdminUsersORM_FindUser_Call
- func (_c *BasicAdminUsersORM_FindUser_Call) Run(run func(ctx context.Context, email string)) *BasicAdminUsersORM_FindUser_Call
- func (_c *BasicAdminUsersORM_FindUser_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *BasicAdminUsersORM_FindUser_Call
- type BasicAdminUsersORM_ListUsers_Call
- func (_c *BasicAdminUsersORM_ListUsers_Call) Return(_a0 []sessions.User, _a1 error) *BasicAdminUsersORM_ListUsers_Call
- func (_c *BasicAdminUsersORM_ListUsers_Call) Run(run func(ctx context.Context)) *BasicAdminUsersORM_ListUsers_Call
- func (_c *BasicAdminUsersORM_ListUsers_Call) RunAndReturn(run func(context.Context) ([]sessions.User, error)) *BasicAdminUsersORM_ListUsers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationProvider ¶ added in v2.8.0
AuthenticationProvider is an autogenerated mock type for the AuthenticationProvider type
func NewAuthenticationProvider ¶ added in v2.8.0
func NewAuthenticationProvider(t interface { mock.TestingT Cleanup(func()) }) *AuthenticationProvider
NewAuthenticationProvider creates a new instance of AuthenticationProvider. 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 (*AuthenticationProvider) AuthorizedUserWithSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) AuthorizedUserWithSession(ctx context.Context, sessionID string) (sessions.User, error)
AuthorizedUserWithSession provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) ClearNonCurrentSessions ¶ added in v2.8.0
func (_m *AuthenticationProvider) ClearNonCurrentSessions(ctx context.Context, sessionID string) error
ClearNonCurrentSessions provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) CreateAndSetAuthToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateAndSetAuthToken(ctx context.Context, user *sessions.User) (*auth.Token, error)
CreateAndSetAuthToken provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) CreateSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateSession(ctx context.Context, sr sessions.SessionRequest) (string, error)
CreateSession provides a mock function with given fields: ctx, sr
func (*AuthenticationProvider) CreateUser ¶ added in v2.8.0
CreateUser provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) DeleteAuthToken ¶ added in v2.8.0
DeleteAuthToken provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) DeleteUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUser(ctx context.Context, email string) error
DeleteUser provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) DeleteUserSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUserSession(ctx context.Context, sessionID string) error
DeleteUserSession provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) EXPECT ¶ added in v2.15.0
func (_m *AuthenticationProvider) EXPECT() *AuthenticationProvider_Expecter
func (*AuthenticationProvider) FindExternalInitiator ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
FindExternalInitiator provides a mock function with given fields: ctx, eia
func (*AuthenticationProvider) FindUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUser(ctx context.Context, email string) (sessions.User, error)
FindUser provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) FindUserByAPIToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUserByAPIToken(ctx context.Context, apiToken string) (sessions.User, error)
FindUserByAPIToken provides a mock function with given fields: ctx, apiToken
func (*AuthenticationProvider) GetUserWebAuthn ¶ added in v2.8.0
func (_m *AuthenticationProvider) GetUserWebAuthn(ctx context.Context, email string) ([]sessions.WebAuthn, error)
GetUserWebAuthn provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) ListUsers ¶ added in v2.8.0
ListUsers provides a mock function with given fields: ctx
func (*AuthenticationProvider) SaveWebAuthn ¶ added in v2.8.0
SaveWebAuthn provides a mock function with given fields: ctx, token
func (*AuthenticationProvider) Sessions ¶ added in v2.8.0
func (_m *AuthenticationProvider) Sessions(ctx context.Context, offset int, limit int) ([]sessions.Session, error)
Sessions provides a mock function with given fields: ctx, offset, limit
func (*AuthenticationProvider) SetAuthToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) SetAuthToken(ctx context.Context, user *sessions.User, token *auth.Token) error
SetAuthToken provides a mock function with given fields: ctx, user, token
func (*AuthenticationProvider) SetPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) SetPassword(ctx context.Context, user *sessions.User, newPassword string) error
SetPassword provides a mock function with given fields: ctx, user, newPassword
func (*AuthenticationProvider) TestPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) TestPassword(ctx context.Context, email string, password string) error
TestPassword provides a mock function with given fields: ctx, email, password
func (*AuthenticationProvider) UpdateRole ¶ added in v2.8.0
func (_m *AuthenticationProvider) UpdateRole(ctx context.Context, email string, newRole string) (sessions.User, error)
UpdateRole provides a mock function with given fields: ctx, email, newRole
type AuthenticationProvider_AuthorizedUserWithSession_Call ¶ added in v2.15.0
AuthenticationProvider_AuthorizedUserWithSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorizedUserWithSession'
func (*AuthenticationProvider_AuthorizedUserWithSession_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_AuthorizedUserWithSession_Call
func (*AuthenticationProvider_AuthorizedUserWithSession_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_AuthorizedUserWithSession_Call
func (*AuthenticationProvider_AuthorizedUserWithSession_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_AuthorizedUserWithSession_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_AuthorizedUserWithSession_Call
type AuthenticationProvider_ClearNonCurrentSessions_Call ¶ added in v2.15.0
AuthenticationProvider_ClearNonCurrentSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearNonCurrentSessions'
func (*AuthenticationProvider_ClearNonCurrentSessions_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_ClearNonCurrentSessions_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_ClearNonCurrentSessions_Call
func (*AuthenticationProvider_ClearNonCurrentSessions_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_ClearNonCurrentSessions_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_ClearNonCurrentSessions_Call
type AuthenticationProvider_CreateAndSetAuthToken_Call ¶ added in v2.15.0
AuthenticationProvider_CreateAndSetAuthToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAndSetAuthToken'
func (*AuthenticationProvider_CreateAndSetAuthToken_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) Return(_a0 *auth.Token, _a1 error) *AuthenticationProvider_CreateAndSetAuthToken_Call
func (*AuthenticationProvider_CreateAndSetAuthToken_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_CreateAndSetAuthToken_Call
func (*AuthenticationProvider_CreateAndSetAuthToken_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateAndSetAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User) (*auth.Token, error)) *AuthenticationProvider_CreateAndSetAuthToken_Call
type AuthenticationProvider_CreateSession_Call ¶ added in v2.15.0
AuthenticationProvider_CreateSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSession'
func (*AuthenticationProvider_CreateSession_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateSession_Call) Return(_a0 string, _a1 error) *AuthenticationProvider_CreateSession_Call
func (*AuthenticationProvider_CreateSession_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateSession_Call) Run(run func(ctx context.Context, sr sessions.SessionRequest)) *AuthenticationProvider_CreateSession_Call
func (*AuthenticationProvider_CreateSession_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateSession_Call) RunAndReturn(run func(context.Context, sessions.SessionRequest) (string, error)) *AuthenticationProvider_CreateSession_Call
type AuthenticationProvider_CreateUser_Call ¶ added in v2.15.0
AuthenticationProvider_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*AuthenticationProvider_CreateUser_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateUser_Call) Return(_a0 error) *AuthenticationProvider_CreateUser_Call
func (*AuthenticationProvider_CreateUser_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateUser_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_CreateUser_Call
func (*AuthenticationProvider_CreateUser_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_CreateUser_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *AuthenticationProvider_CreateUser_Call
type AuthenticationProvider_DeleteAuthToken_Call ¶ added in v2.15.0
AuthenticationProvider_DeleteAuthToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAuthToken'
func (*AuthenticationProvider_DeleteAuthToken_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteAuthToken_Call) Return(_a0 error) *AuthenticationProvider_DeleteAuthToken_Call
func (*AuthenticationProvider_DeleteAuthToken_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User)) *AuthenticationProvider_DeleteAuthToken_Call
func (*AuthenticationProvider_DeleteAuthToken_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *AuthenticationProvider_DeleteAuthToken_Call
type AuthenticationProvider_DeleteUserSession_Call ¶ added in v2.15.0
AuthenticationProvider_DeleteUserSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserSession'
func (*AuthenticationProvider_DeleteUserSession_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUserSession_Call) Return(_a0 error) *AuthenticationProvider_DeleteUserSession_Call
func (*AuthenticationProvider_DeleteUserSession_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUserSession_Call) Run(run func(ctx context.Context, sessionID string)) *AuthenticationProvider_DeleteUserSession_Call
func (*AuthenticationProvider_DeleteUserSession_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUserSession_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_DeleteUserSession_Call
type AuthenticationProvider_DeleteUser_Call ¶ added in v2.15.0
AuthenticationProvider_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*AuthenticationProvider_DeleteUser_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUser_Call) Return(_a0 error) *AuthenticationProvider_DeleteUser_Call
func (*AuthenticationProvider_DeleteUser_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUser_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_DeleteUser_Call
func (*AuthenticationProvider_DeleteUser_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_DeleteUser_Call) RunAndReturn(run func(context.Context, string) error) *AuthenticationProvider_DeleteUser_Call
type AuthenticationProvider_Expecter ¶ added in v2.15.0
type AuthenticationProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthenticationProvider_Expecter) AuthorizedUserWithSession ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) AuthorizedUserWithSession(ctx interface{}, sessionID interface{}) *AuthenticationProvider_AuthorizedUserWithSession_Call
AuthorizedUserWithSession is a helper method to define mock.On call
- ctx context.Context
- sessionID string
func (*AuthenticationProvider_Expecter) ClearNonCurrentSessions ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) ClearNonCurrentSessions(ctx interface{}, sessionID interface{}) *AuthenticationProvider_ClearNonCurrentSessions_Call
ClearNonCurrentSessions is a helper method to define mock.On call
- ctx context.Context
- sessionID string
func (*AuthenticationProvider_Expecter) CreateAndSetAuthToken ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) CreateAndSetAuthToken(ctx interface{}, user interface{}) *AuthenticationProvider_CreateAndSetAuthToken_Call
CreateAndSetAuthToken is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
func (*AuthenticationProvider_Expecter) CreateSession ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) CreateSession(ctx interface{}, sr interface{}) *AuthenticationProvider_CreateSession_Call
CreateSession is a helper method to define mock.On call
- ctx context.Context
- sr sessions.SessionRequest
func (*AuthenticationProvider_Expecter) CreateUser ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) CreateUser(ctx interface{}, user interface{}) *AuthenticationProvider_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
func (*AuthenticationProvider_Expecter) DeleteAuthToken ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) DeleteAuthToken(ctx interface{}, user interface{}) *AuthenticationProvider_DeleteAuthToken_Call
DeleteAuthToken is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
func (*AuthenticationProvider_Expecter) DeleteUser ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) DeleteUser(ctx interface{}, email interface{}) *AuthenticationProvider_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- email string
func (*AuthenticationProvider_Expecter) DeleteUserSession ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) DeleteUserSession(ctx interface{}, sessionID interface{}) *AuthenticationProvider_DeleteUserSession_Call
DeleteUserSession is a helper method to define mock.On call
- ctx context.Context
- sessionID string
func (*AuthenticationProvider_Expecter) FindExternalInitiator ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) FindExternalInitiator(ctx interface{}, eia interface{}) *AuthenticationProvider_FindExternalInitiator_Call
FindExternalInitiator is a helper method to define mock.On call
- ctx context.Context
- eia *auth.Token
func (*AuthenticationProvider_Expecter) FindUser ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) FindUser(ctx interface{}, email interface{}) *AuthenticationProvider_FindUser_Call
FindUser is a helper method to define mock.On call
- ctx context.Context
- email string
func (*AuthenticationProvider_Expecter) FindUserByAPIToken ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) FindUserByAPIToken(ctx interface{}, apiToken interface{}) *AuthenticationProvider_FindUserByAPIToken_Call
FindUserByAPIToken is a helper method to define mock.On call
- ctx context.Context
- apiToken string
func (*AuthenticationProvider_Expecter) GetUserWebAuthn ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) GetUserWebAuthn(ctx interface{}, email interface{}) *AuthenticationProvider_GetUserWebAuthn_Call
GetUserWebAuthn is a helper method to define mock.On call
- ctx context.Context
- email string
func (*AuthenticationProvider_Expecter) ListUsers ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) ListUsers(ctx interface{}) *AuthenticationProvider_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
func (*AuthenticationProvider_Expecter) SaveWebAuthn ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) SaveWebAuthn(ctx interface{}, token interface{}) *AuthenticationProvider_SaveWebAuthn_Call
SaveWebAuthn is a helper method to define mock.On call
- ctx context.Context
- token *sessions.WebAuthn
func (*AuthenticationProvider_Expecter) Sessions ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) Sessions(ctx interface{}, offset interface{}, limit interface{}) *AuthenticationProvider_Sessions_Call
Sessions is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
func (*AuthenticationProvider_Expecter) SetAuthToken ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) SetAuthToken(ctx interface{}, user interface{}, token interface{}) *AuthenticationProvider_SetAuthToken_Call
SetAuthToken is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
- token *auth.Token
func (*AuthenticationProvider_Expecter) SetPassword ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) SetPassword(ctx interface{}, user interface{}, newPassword interface{}) *AuthenticationProvider_SetPassword_Call
SetPassword is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
- newPassword string
func (*AuthenticationProvider_Expecter) TestPassword ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) TestPassword(ctx interface{}, email interface{}, password interface{}) *AuthenticationProvider_TestPassword_Call
TestPassword is a helper method to define mock.On call
- ctx context.Context
- email string
- password string
func (*AuthenticationProvider_Expecter) UpdateRole ¶ added in v2.15.0
func (_e *AuthenticationProvider_Expecter) UpdateRole(ctx interface{}, email interface{}, newRole interface{}) *AuthenticationProvider_UpdateRole_Call
UpdateRole is a helper method to define mock.On call
- ctx context.Context
- email string
- newRole string
type AuthenticationProvider_FindExternalInitiator_Call ¶ added in v2.15.0
AuthenticationProvider_FindExternalInitiator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindExternalInitiator'
func (*AuthenticationProvider_FindExternalInitiator_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindExternalInitiator_Call) Return(initiator *bridges.ExternalInitiator, err error) *AuthenticationProvider_FindExternalInitiator_Call
func (*AuthenticationProvider_FindExternalInitiator_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindExternalInitiator_Call) Run(run func(ctx context.Context, eia *auth.Token)) *AuthenticationProvider_FindExternalInitiator_Call
func (*AuthenticationProvider_FindExternalInitiator_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindExternalInitiator_Call) RunAndReturn(run func(context.Context, *auth.Token) (*bridges.ExternalInitiator, error)) *AuthenticationProvider_FindExternalInitiator_Call
type AuthenticationProvider_FindUserByAPIToken_Call ¶ added in v2.15.0
AuthenticationProvider_FindUserByAPIToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUserByAPIToken'
func (*AuthenticationProvider_FindUserByAPIToken_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUserByAPIToken_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_FindUserByAPIToken_Call
func (*AuthenticationProvider_FindUserByAPIToken_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUserByAPIToken_Call) Run(run func(ctx context.Context, apiToken string)) *AuthenticationProvider_FindUserByAPIToken_Call
func (*AuthenticationProvider_FindUserByAPIToken_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUserByAPIToken_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_FindUserByAPIToken_Call
type AuthenticationProvider_FindUser_Call ¶ added in v2.15.0
AuthenticationProvider_FindUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUser'
func (*AuthenticationProvider_FindUser_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUser_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_FindUser_Call
func (*AuthenticationProvider_FindUser_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUser_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_FindUser_Call
func (*AuthenticationProvider_FindUser_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_FindUser_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *AuthenticationProvider_FindUser_Call
type AuthenticationProvider_GetUserWebAuthn_Call ¶ added in v2.15.0
AuthenticationProvider_GetUserWebAuthn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserWebAuthn'
func (*AuthenticationProvider_GetUserWebAuthn_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_GetUserWebAuthn_Call) Return(_a0 []sessions.WebAuthn, _a1 error) *AuthenticationProvider_GetUserWebAuthn_Call
func (*AuthenticationProvider_GetUserWebAuthn_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_GetUserWebAuthn_Call) Run(run func(ctx context.Context, email string)) *AuthenticationProvider_GetUserWebAuthn_Call
func (*AuthenticationProvider_GetUserWebAuthn_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_GetUserWebAuthn_Call) RunAndReturn(run func(context.Context, string) ([]sessions.WebAuthn, error)) *AuthenticationProvider_GetUserWebAuthn_Call
type AuthenticationProvider_ListUsers_Call ¶ added in v2.15.0
AuthenticationProvider_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*AuthenticationProvider_ListUsers_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_ListUsers_Call) Return(_a0 []sessions.User, _a1 error) *AuthenticationProvider_ListUsers_Call
func (*AuthenticationProvider_ListUsers_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_ListUsers_Call) Run(run func(ctx context.Context)) *AuthenticationProvider_ListUsers_Call
func (*AuthenticationProvider_ListUsers_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_ListUsers_Call) RunAndReturn(run func(context.Context) ([]sessions.User, error)) *AuthenticationProvider_ListUsers_Call
type AuthenticationProvider_SaveWebAuthn_Call ¶ added in v2.15.0
AuthenticationProvider_SaveWebAuthn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveWebAuthn'
func (*AuthenticationProvider_SaveWebAuthn_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_SaveWebAuthn_Call) Return(_a0 error) *AuthenticationProvider_SaveWebAuthn_Call
func (*AuthenticationProvider_SaveWebAuthn_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_SaveWebAuthn_Call) Run(run func(ctx context.Context, token *sessions.WebAuthn)) *AuthenticationProvider_SaveWebAuthn_Call
func (*AuthenticationProvider_SaveWebAuthn_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_SaveWebAuthn_Call) RunAndReturn(run func(context.Context, *sessions.WebAuthn) error) *AuthenticationProvider_SaveWebAuthn_Call
type AuthenticationProvider_Sessions_Call ¶ added in v2.15.0
AuthenticationProvider_Sessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sessions'
func (*AuthenticationProvider_Sessions_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_Sessions_Call) Return(_a0 []sessions.Session, _a1 error) *AuthenticationProvider_Sessions_Call
func (*AuthenticationProvider_Sessions_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_Sessions_Call) Run(run func(ctx context.Context, offset int, limit int)) *AuthenticationProvider_Sessions_Call
func (*AuthenticationProvider_Sessions_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_Sessions_Call) RunAndReturn(run func(context.Context, int, int) ([]sessions.Session, error)) *AuthenticationProvider_Sessions_Call
type AuthenticationProvider_SetAuthToken_Call ¶ added in v2.15.0
AuthenticationProvider_SetAuthToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAuthToken'
func (*AuthenticationProvider_SetAuthToken_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetAuthToken_Call) Return(_a0 error) *AuthenticationProvider_SetAuthToken_Call
func (*AuthenticationProvider_SetAuthToken_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetAuthToken_Call) Run(run func(ctx context.Context, user *sessions.User, token *auth.Token)) *AuthenticationProvider_SetAuthToken_Call
func (*AuthenticationProvider_SetAuthToken_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetAuthToken_Call) RunAndReturn(run func(context.Context, *sessions.User, *auth.Token) error) *AuthenticationProvider_SetAuthToken_Call
type AuthenticationProvider_SetPassword_Call ¶ added in v2.15.0
AuthenticationProvider_SetPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPassword'
func (*AuthenticationProvider_SetPassword_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetPassword_Call) Return(_a0 error) *AuthenticationProvider_SetPassword_Call
func (*AuthenticationProvider_SetPassword_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetPassword_Call) Run(run func(ctx context.Context, user *sessions.User, newPassword string)) *AuthenticationProvider_SetPassword_Call
func (*AuthenticationProvider_SetPassword_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_SetPassword_Call) RunAndReturn(run func(context.Context, *sessions.User, string) error) *AuthenticationProvider_SetPassword_Call
type AuthenticationProvider_TestPassword_Call ¶ added in v2.15.0
AuthenticationProvider_TestPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestPassword'
func (*AuthenticationProvider_TestPassword_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_TestPassword_Call) Return(_a0 error) *AuthenticationProvider_TestPassword_Call
func (*AuthenticationProvider_TestPassword_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_TestPassword_Call) Run(run func(ctx context.Context, email string, password string)) *AuthenticationProvider_TestPassword_Call
func (*AuthenticationProvider_TestPassword_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_TestPassword_Call) RunAndReturn(run func(context.Context, string, string) error) *AuthenticationProvider_TestPassword_Call
type AuthenticationProvider_UpdateRole_Call ¶ added in v2.15.0
AuthenticationProvider_UpdateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRole'
func (*AuthenticationProvider_UpdateRole_Call) Return ¶ added in v2.15.0
func (_c *AuthenticationProvider_UpdateRole_Call) Return(_a0 sessions.User, _a1 error) *AuthenticationProvider_UpdateRole_Call
func (*AuthenticationProvider_UpdateRole_Call) Run ¶ added in v2.15.0
func (_c *AuthenticationProvider_UpdateRole_Call) Run(run func(ctx context.Context, email string, newRole string)) *AuthenticationProvider_UpdateRole_Call
func (*AuthenticationProvider_UpdateRole_Call) RunAndReturn ¶ added in v2.15.0
func (_c *AuthenticationProvider_UpdateRole_Call) RunAndReturn(run func(context.Context, string, string) (sessions.User, error)) *AuthenticationProvider_UpdateRole_Call
type BasicAdminUsersORM ¶ added in v2.8.0
BasicAdminUsersORM is an autogenerated mock type for the BasicAdminUsersORM type
func NewBasicAdminUsersORM ¶ added in v2.8.0
func NewBasicAdminUsersORM(t interface { mock.TestingT Cleanup(func()) }) *BasicAdminUsersORM
NewBasicAdminUsersORM creates a new instance of BasicAdminUsersORM. 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 (*BasicAdminUsersORM) CreateUser ¶ added in v2.8.0
CreateUser provides a mock function with given fields: ctx, user
func (*BasicAdminUsersORM) EXPECT ¶ added in v2.15.0
func (_m *BasicAdminUsersORM) EXPECT() *BasicAdminUsersORM_Expecter
type BasicAdminUsersORM_CreateUser_Call ¶ added in v2.15.0
BasicAdminUsersORM_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*BasicAdminUsersORM_CreateUser_Call) Return ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_CreateUser_Call) Return(_a0 error) *BasicAdminUsersORM_CreateUser_Call
func (*BasicAdminUsersORM_CreateUser_Call) Run ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_CreateUser_Call) Run(run func(ctx context.Context, user *sessions.User)) *BasicAdminUsersORM_CreateUser_Call
func (*BasicAdminUsersORM_CreateUser_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_CreateUser_Call) RunAndReturn(run func(context.Context, *sessions.User) error) *BasicAdminUsersORM_CreateUser_Call
type BasicAdminUsersORM_Expecter ¶ added in v2.15.0
type BasicAdminUsersORM_Expecter struct {
// contains filtered or unexported fields
}
func (*BasicAdminUsersORM_Expecter) CreateUser ¶ added in v2.15.0
func (_e *BasicAdminUsersORM_Expecter) CreateUser(ctx interface{}, user interface{}) *BasicAdminUsersORM_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user *sessions.User
func (*BasicAdminUsersORM_Expecter) FindUser ¶ added in v2.15.0
func (_e *BasicAdminUsersORM_Expecter) FindUser(ctx interface{}, email interface{}) *BasicAdminUsersORM_FindUser_Call
FindUser is a helper method to define mock.On call
- ctx context.Context
- email string
func (*BasicAdminUsersORM_Expecter) ListUsers ¶ added in v2.15.0
func (_e *BasicAdminUsersORM_Expecter) ListUsers(ctx interface{}) *BasicAdminUsersORM_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
type BasicAdminUsersORM_FindUser_Call ¶ added in v2.15.0
BasicAdminUsersORM_FindUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUser'
func (*BasicAdminUsersORM_FindUser_Call) Return ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_FindUser_Call) Return(_a0 sessions.User, _a1 error) *BasicAdminUsersORM_FindUser_Call
func (*BasicAdminUsersORM_FindUser_Call) Run ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_FindUser_Call) Run(run func(ctx context.Context, email string)) *BasicAdminUsersORM_FindUser_Call
func (*BasicAdminUsersORM_FindUser_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_FindUser_Call) RunAndReturn(run func(context.Context, string) (sessions.User, error)) *BasicAdminUsersORM_FindUser_Call
type BasicAdminUsersORM_ListUsers_Call ¶ added in v2.15.0
BasicAdminUsersORM_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*BasicAdminUsersORM_ListUsers_Call) Return ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_ListUsers_Call) Return(_a0 []sessions.User, _a1 error) *BasicAdminUsersORM_ListUsers_Call
func (*BasicAdminUsersORM_ListUsers_Call) Run ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_ListUsers_Call) Run(run func(ctx context.Context)) *BasicAdminUsersORM_ListUsers_Call
func (*BasicAdminUsersORM_ListUsers_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BasicAdminUsersORM_ListUsers_Call) RunAndReturn(run func(context.Context) ([]sessions.User, error)) *BasicAdminUsersORM_ListUsers_Call