user

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

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

func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)

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

func (*Controller) Create

func (_m *Controller) Create(ctx context.Context, u *models.User) (int, error)

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

func (*Controller) Delete

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

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

func (*Controller) Get

func (_m *Controller) Get(ctx context.Context, id int, opt *user.Option) (*models.User, error)

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

func (*Controller) GetByName

func (_m *Controller) GetByName(ctx context.Context, username string) (*models.User, error)

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

func (*Controller) GetBySubIss

func (_m *Controller) GetBySubIss(ctx context.Context, sub string, iss string) (*models.User, error)

GetBySubIss provides a mock function with given fields: ctx, sub, iss

func (*Controller) List

func (_m *Controller) List(ctx context.Context, query *q.Query, options ...usermodels.Option) ([]*models.User, error)

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

func (*Controller) OnboardOIDCUser

func (_m *Controller) OnboardOIDCUser(ctx context.Context, u *models.User) error

OnboardOIDCUser provides a mock function with given fields: ctx, u

func (*Controller) SetCliSecret

func (_m *Controller) SetCliSecret(ctx context.Context, id int, secret string) error

SetCliSecret provides a mock function with given fields: ctx, id, secret

func (*Controller) SetSysAdmin

func (_m *Controller) SetSysAdmin(ctx context.Context, id int, adminFlag bool) error

SetSysAdmin provides a mock function with given fields: ctx, id, adminFlag

func (*Controller) UpdateOIDCMeta

func (_m *Controller) UpdateOIDCMeta(ctx context.Context, ou *models.OIDCUser, cols ...string) error

UpdateOIDCMeta provides a mock function with given fields: ctx, ou, cols

func (*Controller) UpdatePassword

func (_m *Controller) UpdatePassword(ctx context.Context, id int, password string) error

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

func (*Controller) UpdateProfile

func (_m *Controller) UpdateProfile(ctx context.Context, u *models.User, cols ...string) error

UpdateProfile provides a mock function with given fields: ctx, u, cols

func (*Controller) VerifyPassword

func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string, password string) (bool, error)

VerifyPassword provides a mock function with given fields: ctx, usernameOrEmail, password

Jump to

Keyboard shortcuts

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