commonEnforcementFunctionsUtil

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 1 module, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonEnforcementUtil

type CommonEnforcementUtil interface {
	CheckAuthorizationForGlobalEnvironment(token string, object string) bool
	CheckAuthorizationByEmailInBatchForGlobalEnvironment(token string, object []string) map[string]bool
	CheckAuthorisationForEnvs(token string, environments []bean2.EnvironmentBean) []bean2.EnvironmentBean
	CheckAuthorisationOnApp(token string, projectWiseApps []*app.TeamAppBean) []*app.TeamAppBean
	CheckRbacForMangerAndAboveAccess(token string, userId int32) (bool, error)
}

type CommonEnforcementUtilImpl

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

func NewCommonEnforcementUtilImpl

func NewCommonEnforcementUtilImpl(enforcer casbin.Enforcer,
	enforcerUtil rbac.EnforcerUtil,
	logger *zap.SugaredLogger,
	userService user.UserService,
	userCommonService user.UserCommonService) *CommonEnforcementUtilImpl

func (*CommonEnforcementUtilImpl) CheckAuthorisationForEnvs

func (impl *CommonEnforcementUtilImpl) CheckAuthorisationForEnvs(token string, environments []bean2.EnvironmentBean) []bean2.EnvironmentBean

func (*CommonEnforcementUtilImpl) CheckAuthorisationOnApp

func (impl *CommonEnforcementUtilImpl) CheckAuthorisationOnApp(token string, projectWiseApps []*app.TeamAppBean) []*app.TeamAppBean

func (*CommonEnforcementUtilImpl) CheckAuthorizationByEmailInBatchForGlobalEnvironment

func (impl *CommonEnforcementUtilImpl) CheckAuthorizationByEmailInBatchForGlobalEnvironment(token string, object []string) map[string]bool

func (*CommonEnforcementUtilImpl) CheckAuthorizationForGlobalEnvironment

func (impl *CommonEnforcementUtilImpl) CheckAuthorizationForGlobalEnvironment(token string, object string) bool

func (*CommonEnforcementUtilImpl) CheckRbacForMangerAndAboveAccess

func (impl *CommonEnforcementUtilImpl) CheckRbacForMangerAndAboveAccess(token string, userId int32) (bool, error)

Jump to

Keyboard shortcuts

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