Documentation ¶
Index ¶
- func IsReservedInternalUserID(userID string) bool
- type Option
- type Permission
- func (p *Permission) CheckInternalPermission(identityInfo apistructs.IdentityInfo) bool
- func (p *Permission) CheckPermission(req *apistructs.PermissionCheckRequest) (bool, error)
- func (p *Permission) CheckPublicScope(userId string, scopeType apistructs.ScopeType, scopeId int64) (bool, error)
- func (p *Permission) StateCheckPermission(req *apistructs.PermissionCheckRequest) (bool, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Permission ¶
Permission 权限操作封装
func (*Permission) CheckInternalPermission ¶
func (p *Permission) CheckInternalPermission(identityInfo apistructs.IdentityInfo) bool
CheckInternalPermission 鉴权内部服务账户
func (*Permission) CheckPermission ¶
func (p *Permission) CheckPermission(req *apistructs.PermissionCheckRequest) (bool, error)
CheckPermission 鉴权Z
func (*Permission) CheckPublicScope ¶
func (p *Permission) CheckPublicScope(userId string, scopeType apistructs.ScopeType, scopeId int64) (bool, error)
CheckPublicScope Check current scope public
func (*Permission) StateCheckPermission ¶
func (p *Permission) StateCheckPermission(req *apistructs.PermissionCheckRequest) (bool, []string, error)
StateCheckPermission 事件状态Button鉴权
Click to show internal directories.
Click to hide internal directories.