mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationBackend

type AuthenticationBackend struct {
	mock.Mock
}

AuthenticationBackend is an autogenerated mock type for the AuthenticationBackend type

func NewAuthenticationBackend

func NewAuthenticationBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthenticationBackend

NewAuthenticationBackend creates a new instance of AuthenticationBackend. 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 (*AuthenticationBackend) Authenticate

func (_m *AuthenticationBackend) Authenticate(ctx context.Context, credentials map[string]interface{}) (interfaces.User, error)

Authenticate provides a mock function with given fields: ctx, credentials

func (*AuthenticationBackend) ValidateToken

func (_m *AuthenticationBackend) ValidateToken(ctx context.Context, token string) (interfaces.User, error)

ValidateToken provides a mock function with given fields: ctx, token

type AuthenticationManager

type AuthenticationManager struct {
	mock.Mock
}

AuthenticationManager is an autogenerated mock type for the AuthenticationManager type

func NewAuthenticationManager

func NewAuthenticationManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthenticationManager

NewAuthenticationManager creates a new instance of AuthenticationManager. 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 (*AuthenticationManager) Authenticate

func (_m *AuthenticationManager) Authenticate(ctx context.Context, credentials map[string]interface{}) (interfaces.User, error)

Authenticate provides a mock function with given fields: ctx, credentials

func (*AuthenticationManager) RegisterBackend

func (_m *AuthenticationManager) RegisterBackend(name string, backend backends.AuthenticationBackend)

RegisterBackend provides a mock function with given fields: name, backend

func (*AuthenticationManager) ValidateToken

func (_m *AuthenticationManager) ValidateToken(ctx context.Context, token string) (interfaces.User, error)

ValidateToken provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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