mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* Remove delete suer from store interface * Remove get signed in user with cache ctx from store interface * Support options when setting up access control tests * Fix broken tests * Fix lint * Add user fake to middleware * Fix middleware tests, remove usertest being initialised twice * Chore: Add Get User Profile to user and Get User Org List to org service Co-authored-by: Karl Persson <kalle.persson@grafana.com>
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
Create(context.Context, *CreateUserCommand) (*User, error)
|
|
Delete(context.Context, *DeleteUserCommand) error
|
|
GetByID(context.Context, *GetUserByIDQuery) (*User, error)
|
|
GetByLogin(context.Context, *GetUserByLoginQuery) (*User, error)
|
|
GetByEmail(context.Context, *GetUserByEmailQuery) (*User, error)
|
|
Update(context.Context, *UpdateUserCommand) error
|
|
ChangePassword(context.Context, *ChangeUserPasswordCommand) error
|
|
UpdateLastSeenAt(context.Context, *UpdateUserLastSeenAtCommand) error
|
|
SetUsingOrg(context.Context, *SetUsingOrgCommand) error
|
|
GetSignedInUserWithCacheCtx(context.Context, *GetSignedInUserQuery) (*SignedInUser, error)
|
|
GetSignedInUser(context.Context, *GetSignedInUserQuery) (*SignedInUser, error)
|
|
Search(context.Context, *SearchUsersQuery) (*SearchUserQueryResult, error)
|
|
Disable(context.Context, *DisableUserCommand) error
|
|
BatchDisableUsers(context.Context, *BatchDisableUsersCommand) error
|
|
UpdatePermissions(int64, bool) error
|
|
SetUserHelpFlag(context.Context, *SetUserHelpFlagCommand) error
|
|
GetUserProfile(context.Context, *GetUserProfileQuery) (UserProfileDTO, error)
|
|
}
|