Documentation ¶
Index ¶
- func CreateUser(args *User, logger *zap.SugaredLogger) (*models.User, error)
- func DeleteUserByUID(uid string, logger *zap.SugaredLogger) error
- func Reset(args *ResetParams, logger *zap.SugaredLogger) error
- func SearchAndSyncUser(ldapId string, logger *zap.SugaredLogger) error
- func SyncUser(syncUserInfo *SyncUserInfo, logger *zap.SugaredLogger) (*models.User, error)
- func UpdatePassword(args *Password, logger *zap.SugaredLogger) error
- func UpdateUser(uid string, args *UpdateUserInfo, _ *zap.SugaredLogger) error
- type Password
- type QueryArgs
- type ResetParams
- type RetrieveResp
- type SyncUserInfo
- type UpdateUserInfo
- type User
- type UserInfo
- type UsersResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func DeleteUserByUID ¶
func DeleteUserByUID(uid string, logger *zap.SugaredLogger) error
func Reset ¶
func Reset(args *ResetParams, logger *zap.SugaredLogger) error
func SearchAndSyncUser ¶
func SearchAndSyncUser(ldapId string, logger *zap.SugaredLogger) error
func SyncUser ¶
func SyncUser(syncUserInfo *SyncUserInfo, logger *zap.SugaredLogger) (*models.User, error)
func UpdatePassword ¶
func UpdatePassword(args *Password, logger *zap.SugaredLogger) error
func UpdateUser ¶
func UpdateUser(uid string, args *UpdateUserInfo, _ *zap.SugaredLogger) error
Types ¶
type ResetParams ¶
type RetrieveResp ¶
type RetrieveResp struct {
Email string `json:"email"`
}
func Retrieve ¶
func Retrieve(account string, logger *zap.SugaredLogger) (*RetrieveResp, error)
type SyncUserInfo ¶
type UpdateUserInfo ¶
type UserInfo ¶
type UsersResp ¶
func SearchUserByAccount ¶
func SearchUserByAccount(args *QueryArgs, logger *zap.SugaredLogger) (*UsersResp, error)
func SearchUsers ¶
func SearchUsers(args *QueryArgs, logger *zap.SugaredLogger) (*UsersResp, error)
func SearchUsersByUIDs ¶
func SearchUsersByUIDs(uids []string, logger *zap.SugaredLogger) (*UsersResp, error)
Click to show internal directories.
Click to hide internal directories.