Documentation
¶
Index ¶
- type CommonEnforcementUtil
- type CommonEnforcementUtilImpl
- func (impl *CommonEnforcementUtilImpl) CheckAuthorisationForEnvs(token string, environments []bean2.EnvironmentBean) []bean2.EnvironmentBean
- func (impl *CommonEnforcementUtilImpl) CheckAuthorisationOnApp(token string, projectWiseApps []*app.TeamAppBean) []*app.TeamAppBean
- func (impl *CommonEnforcementUtilImpl) CheckAuthorizationByEmailInBatchForGlobalEnvironment(token string, object []string) map[string]bool
- func (impl *CommonEnforcementUtilImpl) CheckAuthorizationForGlobalEnvironment(token string, object string) bool
- func (impl *CommonEnforcementUtilImpl) CheckRbacForMangerAndAboveAccess(token string, userId int32) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.