globalnamespaceaccess

package
v2.2.4-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImpersonateUserHeader  = "Impersonate-User"
	ImpersonateGroupHeader = "Impersonate-Group"
	OwnerAccess            = "owner"
	ReadonlyAccess         = "read-only"
)

Variables

This section is empty.

Functions

func CheckAccessToUpdateMembers

func CheckAccessToUpdateMembers(members []v3.Member, data map[string]interface{}, ownerAccess bool) error

CheckAccessToUpdateMembers checks if the request is updating members list, and if the caller has permission to do so

Types

type MemberAccess

func (*MemberAccess) CheckCallerAccessToTargets

func (ma *MemberAccess) CheckCallerAccessToTargets(request *types.APIContext, targets []string, resourceType string, into interface{}) error

func (*MemberAccess) EnsureRoleInTargets

func (ma *MemberAccess) EnsureRoleInTargets(targetProjects, roleTemplates []string, callerID string) error

func (*MemberAccess) GetAccessTypeOfCaller

func (ma *MemberAccess) GetAccessTypeOfCaller(callerID, creatorID, name string, members []v3.Member) (string, error)

func (*MemberAccess) IsAdmin

func (ma *MemberAccess) IsAdmin(callerID string) (bool, error)

func (*MemberAccess) RemoveRolesFromTargets

func (ma *MemberAccess) RemoveRolesFromTargets(targetProjects, rolesToRemove []string, mcappName string, removeAllRoles bool) error

Jump to

Keyboard shortcuts

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