Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Create(ctx context.Context, u *models.User) (int, error)
- func (_m *Controller) Delete(ctx context.Context, id int) error
- func (_m *Controller) Get(ctx context.Context, id int, opt *user.Option) (*models.User, error)
- func (_m *Controller) GetByName(ctx context.Context, username string) (*models.User, error)
- func (_m *Controller) GetBySubIss(ctx context.Context, sub string, iss string) (*models.User, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query, options ...usermodels.Option) ([]*models.User, error)
- func (_m *Controller) OnboardOIDCUser(ctx context.Context, u *models.User) error
- func (_m *Controller) SetCliSecret(ctx context.Context, id int, secret string) error
- func (_m *Controller) SetSysAdmin(ctx context.Context, id int, adminFlag bool) error
- func (_m *Controller) UpdateOIDCMeta(ctx context.Context, ou *models.OIDCUser, cols ...string) error
- func (_m *Controller) UpdatePassword(ctx context.Context, id int, password string) error
- func (_m *Controller) UpdateProfile(ctx context.Context, u *models.User, cols ...string) error
- func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
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) Delete ¶
func (_m *Controller) Delete(ctx context.Context, id int) error
Delete provides a mock function with given fields: ctx, id
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 ¶
OnboardOIDCUser provides a mock function with given fields: ctx, u
func (*Controller) SetCliSecret ¶
SetCliSecret provides a mock function with given fields: ctx, id, secret
func (*Controller) SetSysAdmin ¶
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 ¶
UpdatePassword provides a mock function with given fields: ctx, id, password
func (*Controller) UpdateProfile ¶
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