Documentation ¶
Index ¶
- type Role
- func (e *Role) AddGroupingPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) AddPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) DeletePermissionsForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) DeleteRolesForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) GetPermissionsForRole(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) GetPermissionsForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) GetRolesForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
- func (e *Role) RemoveFilteredPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct {
Client srvProto.SrvRoleService
}
Role struct
func (*Role) AddGroupingPolicy ¶
AddGroupingPolicy 添加用户和角色(组)的关系
func (*Role) DeletePermissionsForUser ¶
func (e *Role) DeletePermissionsForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
DeletePermissionsForUser 删除用户所属权限
func (*Role) DeleteRolesForUser ¶
DeleteRolesForUser 根据用户删除角色
func (*Role) GetPermissionsForRole ¶
func (e *Role) GetPermissionsForRole(ctx context.Context, req *api.Request, rsp *api.Response) error
GetPermissionsForRole 根据用户获取权限 route POST /mshk/api/v1/Role/add
func (*Role) GetPermissionsForUser ¶
func (e *Role) GetPermissionsForUser(ctx context.Context, req *api.Request, rsp *api.Response) error
GetPermissionsForUser 根据用户获取权限 route POST /mshk/api/v1/Role/add
func (*Role) GetRolesForUser ¶
GetRolesForUser 获取角色
Click to show internal directories.
Click to hide internal directories.