permissionsvc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionSvc

type PermissionSvc struct {
	// contains filtered or unexported fields
}

func New

func New(bdl *bundle.Bundle) *PermissionSvc

func (*PermissionSvc) Check

func (*PermissionSvc) CheckApp

func (s *PermissionSvc) CheckApp(identityInfo apistructs.IdentityInfo, appID uint64, action string) error

CheckApp 校验用户在 应用 下是否有 ${action} 权限

func (*PermissionSvc) CheckBranch

func (s *PermissionSvc) CheckBranch(identityInfo apistructs.IdentityInfo, appIDStr, branch, action string) error

CheckBranch 校验用户在 应用对应分支 下是否有 ${action} 权限

func (*PermissionSvc) CheckInternalClient

func (s *PermissionSvc) CheckInternalClient(identityInfo apistructs.IdentityInfo) error

Jump to

Keyboard shortcuts

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