v1.7.8 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 94




This section is empty.


This section is empty.


func AddUserGroup

func AddUserGroup(userGroup models.UserGroup) (int, error)

AddUserGroup - Add User Group

func DeleteUserGroup

func DeleteUserGroup(id int) error

DeleteUserGroup ...

func GetGroupDNQueryCondition added in v1.6.0

func GetGroupDNQueryCondition(userGroupList []*models.UserGroup) string

GetGroupDNQueryCondition get the part of IN ('XXX', 'XXX') condition

func GetUserGroup

func GetUserGroup(id int) (*models.UserGroup, error)

GetUserGroup ...

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

func QueryUserGroup(query models.UserGroup) ([]*models.UserGroup, error)

QueryUserGroup - Query User Group

func UpdateUserGroupName

func UpdateUserGroupName(id int, groupName string) error

UpdateUserGroupName ...


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL