test

package
v1.32.2-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashPasswordInput

type HashPasswordInput struct {
	UserID   string
	Password string
}

type PasswordHasher

type PasswordHasher struct {
	HashPasswordInvocations int
	HashPasswordInputs      []HashPasswordInput
	HashPasswordStub        func(userID string, password string) string
	HashPasswordOutputs     []string
	HashPasswordOutput      *string
}

func NewPasswordHasher

func NewPasswordHasher() *PasswordHasher

func (*PasswordHasher) AssertOutputsEmpty

func (p *PasswordHasher) AssertOutputsEmpty()

func (*PasswordHasher) HashPassword

func (p *PasswordHasher) HashPassword(userID string, password string) string

type Provider

type Provider struct {
	AuthClientInvocations          int
	AuthClientStub                 func() auth.Client
	AuthClientOutputs              []auth.Client
	AuthClientOutput               *auth.Client
	BlobClientInvocations          int
	BlobClientStub                 func() blob.Client
	BlobClientOutputs              []blob.Client
	BlobClientOutput               *blob.Client
	DataClientInvocations          int
	DataClientStub                 func() dataClient.Client
	DataClientOutputs              []dataClient.Client
	DataClientOutput               *dataClient.Client
	DataSourceClientInvocations    int
	DataSourceClientStub           func() dataSource.Client
	DataSourceClientOutputs        []dataSource.Client
	DataSourceClientOutput         *dataSource.Client
	ImageClientInvocations         int
	ImageClientStub                func() image.Client
	ImageClientOutputs             []image.Client
	ImageClientOutput              *image.Client
	MetricClientInvocations        int
	MetricClientStub               func() metric.Client
	MetricClientOutputs            []metric.Client
	MetricClientOutput             *metric.Client
	PermissionClientInvocations    int
	PermissionClientStub           func() permission.Client
	PermissionClientOutputs        []permission.Client
	PermissionClientOutput         *permission.Client
	ConfirmationStoreInvocations   int
	ConfirmationStoreStub          func() confirmationStore.Store
	ConfirmationStoreOutputs       []confirmationStore.Store
	ConfirmationStoreOutput        *confirmationStore.Store
	MessageStoreInvocations        int
	MessageStoreStub               func() messageStore.Store
	MessageStoreOutputs            []messageStore.Store
	MessageStoreOutput             *messageStore.Store
	PermissionStoreInvocations     int
	PermissionStoreStub            func() permissionStore.Store
	PermissionStoreOutputs         []permissionStore.Store
	PermissionStoreOutput          *permissionStore.Store
	ProfileStoreInvocations        int
	ProfileStoreStub               func() profileStoreStructured.Store
	ProfileStoreOutputs            []profileStoreStructured.Store
	ProfileStoreOutput             *profileStoreStructured.Store
	SessionStoreInvocations        int
	SessionStoreStub               func() sessionStore.Store
	SessionStoreOutputs            []sessionStore.Store
	SessionStoreOutput             *sessionStore.Store
	UserStructuredStoreInvocations int
	UserStructuredStoreStub        func() userStoreStructured.Store
	UserStructuredStoreOutputs     []userStoreStructured.Store
	UserStructuredStoreOutput      *userStoreStructured.Store
	PasswordHasherInvocations      int
	PasswordHasherStub             func() userServiceClient.PasswordHasher
	PasswordHasherOutputs          []userServiceClient.PasswordHasher
	PasswordHasherOutput           *userServiceClient.PasswordHasher
}

func NewProvider

func NewProvider() *Provider

func (*Provider) AssertOutputsEmpty

func (p *Provider) AssertOutputsEmpty()

func (*Provider) AuthClient

func (p *Provider) AuthClient() auth.Client

func (*Provider) BlobClient

func (p *Provider) BlobClient() blob.Client

func (*Provider) ConfirmationStore

func (p *Provider) ConfirmationStore() confirmationStore.Store

func (*Provider) DataClient

func (p *Provider) DataClient() dataClient.Client

func (*Provider) DataSourceClient

func (p *Provider) DataSourceClient() dataSource.Client

func (*Provider) ImageClient

func (p *Provider) ImageClient() image.Client

func (*Provider) MessageStore

func (p *Provider) MessageStore() messageStore.Store

func (*Provider) MetricClient

func (p *Provider) MetricClient() metric.Client

func (*Provider) PasswordHasher

func (p *Provider) PasswordHasher() userServiceClient.PasswordHasher

func (*Provider) PermissionClient

func (p *Provider) PermissionClient() permission.Client

func (*Provider) PermissionStore

func (p *Provider) PermissionStore() permissionStore.Store

func (*Provider) ProfileStore

func (p *Provider) ProfileStore() profileStoreStructured.Store

func (*Provider) SessionStore

func (p *Provider) SessionStore() sessionStore.Store

func (*Provider) UserStructuredStore

func (p *Provider) UserStructuredStore() userStoreStructured.Store

Jump to

Keyboard shortcuts

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