Documentation ¶
Index ¶
Constants ¶
View Source
const (
GlobalProject = "*"
)
Variables ¶
This section is empty.
Functions ¶
func NewCronTask ¶
func NewCronTask(rbacService RBAC, persesDAO model.DAO) async.SimpleTask
Types ¶
type RBAC ¶
type RBAC interface { IsEnabled() bool // GetUserProjects return the list of the project the user has access to in the context of the role and the scope requested. GetUserProjects(user string, requestAction v1Role.Action, requestScope v1Role.Scope) []string HasPermission(user string, requestAction v1Role.Action, requestProject string, requestScope v1Role.Scope) bool GetPermissions(user string) map[string][]*v1Role.Permission Refresh() error }
Click to show internal directories.
Click to hide internal directories.