Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 Changes in this version + func CheckUserInDefaultGroup(db database.QueryExecuter, userID int64) error v0.3.0 Jan 12, 2017 Changes in this version + const SharedInfraGroup + 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