Documentation ¶
Index ¶
- Variables
- func CreateGroupUserRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateGroupUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateGroupsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateRegisteredProcessPermissionsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateRegisteredProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateRunningProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func CreateUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropGroupUserRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropGroupUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropGroupsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropRegisteredProcessPermissionsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropRegisteredProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropRunningProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func DropUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func GetGid(groupname string, db *sql.DB, errorChan chan error, gid *int)
- func GetPid(processname string, db *sql.DB, errorChan chan error, pid *int)
- func GetRid(rolename string, db *sql.DB, errorChan chan error, rid *int)
- func GetRpid(processname string, db *sql.DB, errorChan chan error, rpid *int)
- func GetUid(username string, db *sql.DB, errorChan chan error, uid *int)
- func HasPermission(username string, groupname string, rolename string, processname string, ...)
- func IsInGroup(username string, groupname string, db *sql.DB, errorChan chan error, ...)
- func IsRole(username string, groupname string, rolename string, db *sql.DB, ...)
- func MatchPermission(regexpString string, bitstring string) bool
- func SeedGroupUserRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedGroupUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedGroupsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedRegisteredProcessPermissionsTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedRegisteredProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedRolesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedRunningProcessesTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SeedUsersTable(db *sql.DB, wg *sync.WaitGroup, errorChan chan error)
- func SetupDb(user string, host string, name string, password string, port int, reset bool) (*sql.DB, error)
- func SetupModels(env string, siteAdminName string, siteAdminEmail string, ...) error
- type DbUser
- type DbUserRole
- type DbUsers
- type InitDbGroups
- type InitDbRoles
- type Tables
Constants ¶
This section is empty.
Variables ¶
View Source
var ConciergeDb *sql.DB = nil
View Source
var ConciergePermissions map[string]string
View Source
var InitUsers []DbUser
Functions ¶
func CreateGroupUsersTable ¶
func CreateGroupsTable ¶
func DropGroupUserRolesTable ¶
func DropGroupUsersTable ¶
func HasPermission ¶
func MatchPermission ¶
func SeedGroupUserRolesTable ¶
func SeedGroupUsersTable ¶
Types ¶
type DbUserRole ¶
type InitDbRoles ¶
var InitConciergeRoles InitDbRoles
Click to show internal directories.
Click to hide internal directories.