Documentation ¶
Index ¶
- type PermissionSvc
- func (s *PermissionSvc) Check(identityInfo apistructs.IdentityInfo, req *apistructs.PermissionCheckRequest) error
- func (s *PermissionSvc) CheckApp(identityInfo apistructs.IdentityInfo, appID uint64, action string) error
- func (s *PermissionSvc) CheckBranch(identityInfo apistructs.IdentityInfo, appIDStr, branch, action string) error
- func (s *PermissionSvc) CheckInternalClient(identityInfo apistructs.IdentityInfo) error
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 (s *PermissionSvc) Check(identityInfo apistructs.IdentityInfo, req *apistructs.PermissionCheckRequest) error
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
Click to show internal directories.
Click to hide internal directories.