Documentation ¶
Index ¶
Constants ¶
View Source
const ( ImpersonateUserHeader = "Impersonate-User" ImpersonateGroupHeader = "Impersonate-Group" AllAccess = "all" UpdateAccess = "update" ReadonlyAccess = "readonly" )
Variables ¶
This section is empty.
Functions ¶
func CheckGroupAccess ¶
func CheckGroupAccess(groups map[string]string, targets []string, prtbLister v3.ProjectRoleTemplateBindingLister, rtLister v3.RoleTemplateLister, resource, resourceType string) error
Types ¶
type MemberAccess ¶
type MemberAccess struct { Users v3.UserInterface PrtbLister v3.ProjectRoleTemplateBindingLister RoleTemplateLister v3.RoleTemplateLister }
func (*MemberAccess) CheckCreatorAndMembersAccessToTargets ¶
func (ma *MemberAccess) CheckCreatorAndMembersAccessToTargets(request *types.APIContext, targets []string, data map[string]interface{}, resourceType, apiGroup, resource string) error
Click to show internal directories.
Click to hide internal directories.