Documentation ¶
Index ¶
- func AddUserGroup(userGroup models.UserGroup) (int, error)
- func DeleteUserGroup(id int) error
- func GetGroupDNQueryCondition(userGroupList []*models.UserGroup) string
- func GetUserGroup(id int) (*models.UserGroup, error)
- func OnBoardUserGroup(g *models.UserGroup, keyAttribute string, combinedKeyAttributes ...string) error
- func QueryUserGroup(query models.UserGroup) ([]*models.UserGroup, error)
- func UpdateUserGroupName(id int, groupName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserGroup ¶
AddUserGroup - Add User Group
func GetGroupDNQueryCondition ¶ added in v1.6.0
GetGroupDNQueryCondition get the part of IN ('XXX', 'XXX') condition
func OnBoardUserGroup ¶
func OnBoardUserGroup(g *models.UserGroup, keyAttribute string, combinedKeyAttributes ...string) error
OnBoardUserGroup will check if a usergroup exists in usergroup table, if not insert the usergroup and put the id in the pointer of usergroup model, if it does exist, return the usergroup's profile. This is used for ldap and uaa authentication, such the usergroup can have an ID in Harbor. the keyAttribute and combinedKeyAttribute are key columns used to check duplicate usergroup in harbor
func QueryUserGroup ¶
QueryUserGroup - Query User Group
func UpdateUserGroupName ¶
UpdateUserGroupName ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.