mocks

package
v2.10.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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 added in v2.8.0

type AuthenticationProvider struct {
	mock.Mock
}

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(sessionID string) (sessions.User, error)

AuthorizedUserWithSession provides a mock function with given fields: sessionID

func (*AuthenticationProvider) ClearNonCurrentSessions added in v2.8.0

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

ClearNonCurrentSessions provides a mock function with given fields: sessionID

func (*AuthenticationProvider) CreateAndSetAuthToken added in v2.8.0

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

CreateAndSetAuthToken provides a mock function with given fields: user

func (*AuthenticationProvider) CreateSession added in v2.8.0

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

CreateSession provides a mock function with given fields: sr

func (*AuthenticationProvider) CreateUser added in v2.8.0

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

CreateUser provides a mock function with given fields: user

func (*AuthenticationProvider) DeleteAuthToken added in v2.8.0

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

DeleteAuthToken provides a mock function with given fields: user

func (*AuthenticationProvider) DeleteUser added in v2.8.0

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

DeleteUser provides a mock function with given fields: email

func (*AuthenticationProvider) DeleteUserSession added in v2.8.0

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

DeleteUserSession provides a mock function with given fields: sessionID

func (*AuthenticationProvider) FindExternalInitiator added in v2.8.0

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

FindExternalInitiator provides a mock function with given fields: eia

func (*AuthenticationProvider) FindUser added in v2.8.0

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

FindUser provides a mock function with given fields: email

func (*AuthenticationProvider) FindUserByAPIToken added in v2.8.0

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

FindUserByAPIToken provides a mock function with given fields: apiToken

func (*AuthenticationProvider) GetUserWebAuthn added in v2.8.0

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

GetUserWebAuthn provides a mock function with given fields: email

func (*AuthenticationProvider) ListUsers added in v2.8.0

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

ListUsers provides a mock function with given fields:

func (*AuthenticationProvider) SaveWebAuthn added in v2.8.0

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

SaveWebAuthn provides a mock function with given fields: token

func (*AuthenticationProvider) Sessions added in v2.8.0

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

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

func (*AuthenticationProvider) SetAuthToken added in v2.8.0

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

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

func (*AuthenticationProvider) SetPassword added in v2.8.0

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

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

func (*AuthenticationProvider) TestPassword added in v2.8.0

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

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

func (*AuthenticationProvider) UpdateRole added in v2.8.0

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

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

type BasicAdminUsersORM added in v2.8.0

type BasicAdminUsersORM struct {
	mock.Mock
}

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

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

CreateUser provides a mock function with given fields: user

func (*BasicAdminUsersORM) FindUser added in v2.8.0

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

FindUser provides a mock function with given fields: email

func (*BasicAdminUsersORM) ListUsers added in v2.8.0

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