mocks

package
v2.13.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 5 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(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

CreateSession provides a mock function with given fields: ctx, sr

func (*AuthenticationProvider) CreateUser added in v2.8.0

func (_m *AuthenticationProvider) CreateUser(ctx context.Context, user *sessions.User) error

CreateUser provides a mock function with given fields: ctx, user

func (*AuthenticationProvider) DeleteAuthToken added in v2.8.0

func (_m *AuthenticationProvider) DeleteAuthToken(ctx context.Context, user *sessions.User) error

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) 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

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

ListUsers provides a mock function with given fields: ctx

func (*AuthenticationProvider) SaveWebAuthn added in v2.8.0

func (_m *AuthenticationProvider) SaveWebAuthn(ctx context.Context, token *sessions.WebAuthn) error

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 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(ctx context.Context, user *sessions.User) error

CreateUser provides a mock function with given fields: ctx, user

func (*BasicAdminUsersORM) FindUser added in v2.8.0

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

FindUser provides a mock function with given fields: ctx, email

func (*BasicAdminUsersORM) ListUsers added in v2.8.0

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

ListUsers provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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