mocks

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 10 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

View Source
const LegacyHashPrefix = "legacy:"

LegacyHashPrefix marks hashes created by the legacy hasher mock.

Variables

This section is empty.

Functions

func NewEmailVerificationRepository added in v0.29.0

func NewEmailVerificationRepository(vs []users.EmailVerification) users.EmailVerificationRepository

func NewEmailer

func NewEmailer() users.Emailer

NewEmailer provides emailer instance for the test

func NewHasher

func NewHasher() users.Hasher

NewHasher creates "no-op" hasher for test purposes. This implementation will return secrets without changing them.

func NewIdentityRepository added in v0.38.0

func NewIdentityRepository() users.IdentityRepository

func NewLegacyHasher added in v0.46.0

func NewLegacyHasher() users.Hasher

NewLegacyHasher creates a hasher for test purposes that marks secrets with LegacyHashPrefix.

func NewPlatformInvitesRepository added in v0.30.0

func NewPlatformInvitesRepository() users.PlatformInvitesRepository

func NewUserRepository

func NewUserRepository(us []users.User) users.UserRepository

NewUserRepository creates in-memory user repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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