mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 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 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