Documentation ¶
Index ¶
- Constants
- func AddAdminInGlobalGroup(db *sql.DB, userID int64) error
- func AddGlobalGroupToPipeline(tx *sql.Tx, pipID int64) error
- func AddGroup(db database.QueryExecuter, group *sdk.Group) (int64, bool, error)
- func CheckGroupInApplication(db database.Querier, applicationID, groupID int64) (bool, error)
- func CheckGroupInPipeline(db database.Querier, pipelineID, groupID int64) (bool, error)
- func CheckGroupInProject(db database.Querier, projectID, groupID int64) (bool, error)
- func CheckUserInGroup(db *sql.DB, groupID, userID int64) (bool, error)
- func CreateDefaultGlobalGroup(db *sql.DB) error
- func DeleteAllGroupFromApplication(db database.Executer, applicationID int64) error
- func DeleteAllGroupFromEnvironment(db database.Executer, environmentID int64) error
- func DeleteAllGroupFromPipeline(db database.Executer, pipelineID int64) error
- func DeleteGroupAndDependencies(db database.Executer, group *sdk.Group) error
- func DeleteGroupFromApplication(db database.Executer, key, appName, groupName string) error
- func DeleteGroupFromEnvironment(db database.Executer, key, envName, groupName string) error
- func DeleteGroupFromPipeline(db database.Executer, pipelineID, groupID int64) error
- func DeleteGroupFromProject(db database.Executer, projectID, groupID int64) error
- func DeleteGroupProjectByProject(db database.Executer, projectID int64) error
- func DeleteGroupUserByGroup(db database.Executer, group *sdk.Group) error
- func DeleteUserFromGroup(db *sql.DB, groupID, userID int64) error
- func Initialize(db *sql.DB) error
- func InsertGroup(db database.QueryExecuter, g *sdk.Group) error
- func InsertGroupInApplication(db database.Executer, applicationID, groupID int64, role int) error
- func InsertGroupInEnvironment(db database.Executer, environmentID, groupID int64, role int) error
- func InsertGroupInPipeline(db database.Executer, pipelineID, groupID int64, role int) error
- func InsertGroupInProject(db database.Executer, projectID, groupID int64, role int) error
- func InsertGroupsInApplication(db database.Executer, groupPermission []sdk.GroupPermission, ...) error
- func InsertGroupsInEnvironment(db database.Executer, groupPermission []sdk.GroupPermission, envID int64) error
- func InsertGroupsInPipeline(db database.Executer, groupPermission []sdk.GroupPermission, pipelineID int64) error
- func InsertUserInGroup(db database.Executer, groupID, userID int64, admin bool) error
- func IsInEnvironment(db database.Querier, environmentID, groupID int64) (bool, error)
- func LoadAllApplicationGroupByRole(db database.Querier, applicationID int64, role int) ([]sdk.GroupPermission, error)
- func LoadAllEnvironmentGroupByRole(db database.Querier, environmentID int64, role int) ([]sdk.GroupPermission, error)
- func LoadAllPipelineGroupByRole(db database.Querier, pipelineID int64, role int) ([]sdk.GroupPermission, error)
- func LoadAllProjectGroupByRole(db database.Querier, projectID int64, role int) ([]sdk.GroupPermission, error)
- func LoadGroup(db database.Querier, name string) (*sdk.Group, error)
- func LoadGroupByAdmin(db database.Querier, userID int64) ([]sdk.Group, error)
- func LoadGroupByID(db database.Querier, id int64) (*sdk.Group, error)
- func LoadGroupByProject(db database.Querier, project *sdk.Project) error
- func LoadGroupByUser(db database.Querier, userID int64) ([]sdk.Group, error)
- func LoadGroups(db *sql.DB) ([]sdk.Group, error)
- func LoadPublicGroups(db database.Querier) ([]sdk.Group, error)
- func LoadUserGroup(db *sql.DB, group *sdk.Group) error
- func RemoveUserGroupAdmin(db *sql.DB, groupID int64, userID int64) error
- func SetUserGroupAdmin(db database.Executer, groupID int64, userID int64) error
- func UpdateGroup(db database.Executer, g *sdk.Group, oldName string) error
- func UpdateGroupRoleInApplication(db database.Executer, key, appName, groupName string, role int) error
- func UpdateGroupRoleInEnvironment(db database.Executer, key, envName, groupName string, role int) error
- func UpdateGroupRoleInPipeline(db database.Executer, pipelineID, groupID int64, role int) error
- func UpdateGroupRoleInProject(db database.Executer, projectID, groupID int64, role int) error
Constants ¶
SharedInfraGroup is the name of the builtin group used to share infrastructure between projects
Variables ¶
This section is empty.
Functions ¶
func AddAdminInGlobalGroup ¶
AddAdminInGlobalGroup insert into new admin into global group as group admin
func AddGlobalGroupToPipeline ¶
AddGlobalGroupTopipeline add global group access to given pipeline
func CheckGroupInApplication ¶
CheckGroupInApplication Check if the group is already attached to the application
func CheckGroupInPipeline ¶
CheckGroupInPipeline checks if group has access to pipeline
func CheckGroupInProject ¶
CheckGroupInProject Check if the group is already attached to the project
func CheckUserInGroup ¶
CheckUserInGroup verivies that user is in given group
func CreateDefaultGlobalGroup ¶
CreateDefaultGlobalGroup creates a group 'public' where every user will be
func DeleteAllGroupFromApplication ¶
DeleteAllGroupFromApplication remove all group from the given application
func DeleteAllGroupFromEnvironment ¶
DeleteAllGroupFromEnvironment remove all group from the given environment
func DeleteAllGroupFromPipeline ¶
DeleteAllGroupFromPipeline Delete all groups from the given pipeline
func DeleteGroupAndDependencies ¶
DeleteGroupAndDependencies deletes group and all subsequent group_project, pipeline_project
func DeleteGroupFromApplication ¶
DeleteGroupFromApplication removes access to application to group members
func DeleteGroupFromEnvironment ¶
DeleteGroupFromEnvironment removes access to environment to group members
func DeleteGroupFromPipeline ¶
DeleteGroupFromPipeline removes access to pipeline to group members
func DeleteGroupFromProject ¶
DeleteGroupFromProject Delete the group from the given project
func DeleteGroupProjectByProject ¶
DeleteGroupProjectByProject removes group associated with project
func DeleteGroupUserByGroup ¶
DeleteGroupUserByGroup Delete all user from a group
func DeleteUserFromGroup ¶
DeleteUserFromGroup remove user from group
func InsertGroup ¶
func InsertGroup(db database.QueryExecuter, g *sdk.Group) error
InsertGroup insert given group into given database
func InsertGroupInApplication ¶
InsertGroupInApplication add permissions on Application to Group
func InsertGroupInEnvironment ¶
InsertGroupInEnvironment add permissions on Environment to Group
func InsertGroupInPipeline ¶
InsertGroupInPipeline add permissions on Pipeline to Group
func InsertGroupInProject ¶
InsertGroupInProject Attach a group to a project
func InsertGroupsInApplication ¶
func InsertGroupsInApplication(db database.Executer, groupPermission []sdk.GroupPermission, applicationID int64) error
InsertGroupsInApplication Link the given groups and the given application
func InsertGroupsInEnvironment ¶
func InsertGroupsInEnvironment(db database.Executer, groupPermission []sdk.GroupPermission, envID int64) error
InsertGroupsInEnvironment Link the given groups and the given environment
func InsertGroupsInPipeline ¶
func InsertGroupsInPipeline(db database.Executer, groupPermission []sdk.GroupPermission, pipelineID int64) error
InsertGroupsInPipeline Link the given groups and the given pipeline
func InsertUserInGroup ¶
InsertUserInGroup insert user in group
func IsInEnvironment ¶
IsInEnvironment checks wether groups already has permissions on environment or not
func LoadAllApplicationGroupByRole ¶
func LoadAllApplicationGroupByRole(db database.Querier, applicationID int64, role int) ([]sdk.GroupPermission, error)
LoadAllApplicationGroupByRole load all group for the given application and role
func LoadAllEnvironmentGroupByRole ¶
func LoadAllEnvironmentGroupByRole(db database.Querier, environmentID int64, role int) ([]sdk.GroupPermission, error)
LoadAllEnvironmentGroupByRole load all group for the given environment and role
func LoadAllPipelineGroupByRole ¶
func LoadAllPipelineGroupByRole(db database.Querier, pipelineID int64, role int) ([]sdk.GroupPermission, error)
LoadAllPipelineGroupByRole load all group for the given pipeline and role
func LoadAllProjectGroupByRole ¶
func LoadAllProjectGroupByRole(db database.Querier, projectID int64, role int) ([]sdk.GroupPermission, error)
LoadAllProjectGroupByRole load all group for the given project and role
func LoadGroupByAdmin ¶
LoadGroupByAdmin return group list from database
func LoadGroupByID ¶
LoadGroupByID retrieves group informations from database
func LoadGroupByProject ¶
LoadGroupByProject retrieves all groups related to project
func LoadGroupByUser ¶
LoadGroupByUser return group list from database
func LoadGroups ¶
LoadGroups load all groups from database
func LoadPublicGroups ¶
LoadPublicGroups returns public groups, actually it returns shared.infra group only because public group are not supported
func LoadUserGroup ¶
LoadUserGroup retrieves all group users from database
func RemoveUserGroupAdmin ¶
RemoveUserGroupAdmin remove the privilege to perform operations on given group
func SetUserGroupAdmin ¶
SetUserGroupAdmin allows a user to perform operations on given group
func UpdateGroup ¶
UpdateGroup updates group informations in database
func UpdateGroupRoleInApplication ¶
func UpdateGroupRoleInApplication(db database.Executer, key, appName, groupName string, role int) error
UpdateGroupRoleInApplication update permission on application
func UpdateGroupRoleInEnvironment ¶
func UpdateGroupRoleInEnvironment(db database.Executer, key, envName, groupName string, role int) error
UpdateGroupRoleInEnvironment update permission on environment
func UpdateGroupRoleInPipeline ¶
UpdateGroupRoleInPipeline update permission on pipeline
Types ¶
This section is empty.