globalnamespaceaccess

package
v2.2.0-alpha6+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL