Help us shape the future of Go! Take the 2026 Go Developer Survey

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: 6

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