user

package
v0.0.0-...-654aa8e Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) Count

func (_m *Manager) Count(ctx context.Context, query *q.Query, options ...models.Option) (int64, error)

Count provides a mock function with given fields: ctx, query, options

func (*Manager) Create

func (_m *Manager) Create(ctx context.Context, _a1 *commonmodels.User) (int, error)

Create provides a mock function with given fields: ctx, _a1

func (*Manager) Delete

func (_m *Manager) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*Manager) DeleteGDPR

func (_m *Manager) DeleteGDPR(ctx context.Context, id int) error

DeleteGDPR provides a mock function with given fields: ctx, id

func (*Manager) GenerateCheckSum

func (_m *Manager) GenerateCheckSum(in string) string

GenerateCheckSum provides a mock function with given fields: in

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, id int) (*commonmodels.User, error)

Get provides a mock function with given fields: ctx, id

func (*Manager) GetByName

func (_m *Manager) GetByName(ctx context.Context, username string) (*commonmodels.User, error)

GetByName provides a mock function with given fields: ctx, username

func (*Manager) List

func (_m *Manager) List(ctx context.Context, query *q.Query, options ...models.Option) (commonmodels.Users, error)

List provides a mock function with given fields: ctx, query, options

func (*Manager) MatchLocalPassword

func (_m *Manager) MatchLocalPassword(ctx context.Context, username string, password string) (*commonmodels.User, error)

MatchLocalPassword provides a mock function with given fields: ctx, username, password

func (*Manager) Onboard

func (_m *Manager) Onboard(ctx context.Context, _a1 *commonmodels.User) error

Onboard provides a mock function with given fields: ctx, _a1

func (*Manager) SetSysAdminFlag

func (_m *Manager) SetSysAdminFlag(ctx context.Context, id int, admin bool) error

SetSysAdminFlag provides a mock function with given fields: ctx, id, admin

func (*Manager) UpdatePassword

func (_m *Manager) UpdatePassword(ctx context.Context, id int, newPassword string) error

UpdatePassword provides a mock function with given fields: ctx, id, newPassword

func (*Manager) UpdateProfile

func (_m *Manager) UpdateProfile(ctx context.Context, _a1 *commonmodels.User, col ...string) error

UpdateProfile provides a mock function with given fields: ctx, _a1, col

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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