Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) Count(ctx context.Context, query *q.Query, options ...models.Option) (int64, error)
- func (_m *Manager) Create(ctx context.Context, _a1 *commonmodels.User) (int, error)
- func (_m *Manager) Delete(ctx context.Context, id int) error
- func (_m *Manager) DeleteGDPR(ctx context.Context, id int) error
- func (_m *Manager) GenerateCheckSum(in string) string
- func (_m *Manager) Get(ctx context.Context, id int) (*commonmodels.User, error)
- func (_m *Manager) GetByName(ctx context.Context, username string) (*commonmodels.User, error)
- func (_m *Manager) List(ctx context.Context, query *q.Query, options ...models.Option) (commonmodels.Users, error)
- func (_m *Manager) MatchLocalPassword(ctx context.Context, username string, password string) (*commonmodels.User, error)
- func (_m *Manager) Onboard(ctx context.Context, _a1 *commonmodels.User) error
- func (_m *Manager) SetSysAdminFlag(ctx context.Context, id int, admin bool) error
- func (_m *Manager) UpdatePassword(ctx context.Context, id int, newPassword string) error
- func (_m *Manager) UpdateProfile(ctx context.Context, _a1 *commonmodels.User, col ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
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) DeleteGDPR ¶
DeleteGDPR provides a mock function with given fields: ctx, id
func (*Manager) GenerateCheckSum ¶
GenerateCheckSum provides a mock function with given fields: in
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) SetSysAdminFlag ¶
SetSysAdminFlag provides a mock function with given fields: ctx, id, admin
func (*Manager) UpdatePassword ¶
UpdatePassword provides a mock function with given fields: ctx, id, newPassword
func (*Manager) UpdateProfile ¶
UpdateProfile provides a mock function with given fields: ctx, _a1, col