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: 9 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

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	Client srvProto.SrvRoleService
}

Role struct

func (*Role) AddGroupingPolicy

func (e *Role) AddGroupingPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error

AddGroupingPolicy 添加用户和角色(组)的关系

func (*Role) AddPolicy

func (e *Role) AddPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error

AddPolicy 添加权限

func (*Role) DeletePermissionsForUser

func (e *Role) DeletePermissionsForUser(ctx context.Context, req *api.Request, rsp *api.Response) error

DeletePermissionsForUser 删除用户所属权限

func (*Role) DeleteRolesForUser

func (e *Role) DeleteRolesForUser(ctx context.Context, req *api.Request, rsp *api.Response) error

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

func (e *Role) GetRolesForUser(ctx context.Context, req *api.Request, rsp *api.Response) error

GetRolesForUser 获取角色

func (*Role) RemoveFilteredPolicy

func (e *Role) RemoveFilteredPolicy(ctx context.Context, req *api.Request, rsp *api.Response) error

RemoveFilteredPolicy 删除

Jump to

Keyboard shortcuts

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