mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationProvider

type AuthenticationProvider struct {
	mock.Mock
}

AuthenticationProvider is an autogenerated mock type for the AuthenticationProvider type

func NewAuthenticationProvider

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

func (_m *AuthenticationProvider) AuthorizedUserWithSession(sessionID string) (sessions.User, error)

AuthorizedUserWithSession provides a mock function with given fields: sessionID

func (*AuthenticationProvider) ClearNonCurrentSessions

func (_m *AuthenticationProvider) ClearNonCurrentSessions(sessionID string) error

ClearNonCurrentSessions provides a mock function with given fields: sessionID

func (*AuthenticationProvider) CreateAndSetAuthToken

func (_m *AuthenticationProvider) CreateAndSetAuthToken(user *sessions.User) (*auth.Token, error)

CreateAndSetAuthToken provides a mock function with given fields: user

func (*AuthenticationProvider) CreateSession

func (_m *AuthenticationProvider) CreateSession(sr sessions.SessionRequest) (string, error)

CreateSession provides a mock function with given fields: sr

func (*AuthenticationProvider) CreateUser

func (_m *AuthenticationProvider) CreateUser(user *sessions.User) error

CreateUser provides a mock function with given fields: user

func (*AuthenticationProvider) DeleteAuthToken

func (_m *AuthenticationProvider) DeleteAuthToken(user *sessions.User) error

DeleteAuthToken provides a mock function with given fields: user

func (*AuthenticationProvider) DeleteUser

func (_m *AuthenticationProvider) DeleteUser(email string) error

DeleteUser provides a mock function with given fields: email

func (*AuthenticationProvider) DeleteUserSession

func (_m *AuthenticationProvider) DeleteUserSession(sessionID string) error

DeleteUserSession provides a mock function with given fields: sessionID

func (*AuthenticationProvider) FindExternalInitiator

func (_m *AuthenticationProvider) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)

FindExternalInitiator provides a mock function with given fields: eia

func (*AuthenticationProvider) FindUser

func (_m *AuthenticationProvider) FindUser(email string) (sessions.User, error)

FindUser provides a mock function with given fields: email

func (*AuthenticationProvider) FindUserByAPIToken

func (_m *AuthenticationProvider) FindUserByAPIToken(apiToken string) (sessions.User, error)

FindUserByAPIToken provides a mock function with given fields: apiToken

func (*AuthenticationProvider) GetUserWebAuthn

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

GetUserWebAuthn provides a mock function with given fields: email

func (*AuthenticationProvider) ListUsers

func (_m *AuthenticationProvider) ListUsers() ([]sessions.User, error)

ListUsers provides a mock function with given fields:

func (*AuthenticationProvider) SaveWebAuthn

func (_m *AuthenticationProvider) SaveWebAuthn(token *sessions.WebAuthn) error

SaveWebAuthn provides a mock function with given fields: token

func (*AuthenticationProvider) Sessions

func (_m *AuthenticationProvider) Sessions(offset int, limit int) ([]sessions.Session, error)

Sessions provides a mock function with given fields: offset, limit

func (*AuthenticationProvider) SetAuthToken

func (_m *AuthenticationProvider) SetAuthToken(user *sessions.User, token *auth.Token) error

SetAuthToken provides a mock function with given fields: user, token

func (*AuthenticationProvider) SetPassword

func (_m *AuthenticationProvider) SetPassword(user *sessions.User, newPassword string) error

SetPassword provides a mock function with given fields: user, newPassword

func (*AuthenticationProvider) TestPassword

func (_m *AuthenticationProvider) TestPassword(email string, password string) error

TestPassword provides a mock function with given fields: email, password

func (*AuthenticationProvider) UpdateRole

func (_m *AuthenticationProvider) UpdateRole(email string, newRole string) (sessions.User, error)

UpdateRole provides a mock function with given fields: email, newRole

type BasicAdminUsersORM

type BasicAdminUsersORM struct {
	mock.Mock
}

BasicAdminUsersORM is an autogenerated mock type for the BasicAdminUsersORM type

func NewBasicAdminUsersORM

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

func (_m *BasicAdminUsersORM) CreateUser(user *sessions.User) error

CreateUser provides a mock function with given fields: user

func (*BasicAdminUsersORM) FindUser

func (_m *BasicAdminUsersORM) FindUser(email string) (sessions.User, error)

FindUser provides a mock function with given fields: email

func (*BasicAdminUsersORM) ListUsers

func (_m *BasicAdminUsersORM) ListUsers() ([]sessions.User, error)

ListUsers provides a mock function with given fields:

Jump to

Keyboard shortcuts

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