handler

package
v0.0.0-...-8e1814b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 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

RoleS 全局角色对象

Functions

This section is empty.

Types

type SrvRole

type SrvRole struct{}

SrvRole struct

func (*SrvRole) AddGroupingPolicy

func (e *SrvRole) AddGroupingPolicy(ctx context.Context, req *proto.AddGroupingPolicyRequest, rep *proto.Empty) error

AddGroupingPolicy 添加用户和角色(组)

func (*SrvRole) AddPolicy

func (e *SrvRole) AddPolicy(ctx context.Context, req *proto.AddPolicyRequest, rep *proto.Empty) error

AddPolicy 添加权限

func (*SrvRole) DeletePermissionsForUser

func (e *SrvRole) DeletePermissionsForUser(ctx context.Context, req *proto.ForUserRequest, rep *proto.DeletePermissionsForUserResponse) error

DeletePermissionsForUser 根据用户删除权限

func (*SrvRole) DeleteRolesForUser

func (e *SrvRole) DeleteRolesForUser(ctx context.Context, req *proto.ForUserRequest, rep *proto.Empty) error

DeleteRolesForUser 根据用户删除角色

func (*SrvRole) GetPermissionsForUser

func (e *SrvRole) GetPermissionsForUser(ctx context.Context, req *proto.ForUserRequest, rep *proto.GetPermissionsForUserResponse) error

GetPermissionsForUser 根据用户获取权限

func (*SrvRole) GetRolesForUser

GetRolesForUser 根据用户获取角色

func (*SrvRole) RemoveFilteredPolicy

func (e *SrvRole) RemoveFilteredPolicy(ctx context.Context, req *proto.RemoveFilteredPolicyRequest, rep *proto.Empty) error

RemoveFilteredPolicy 删除权限

Jump to

Keyboard shortcuts

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