Documentation ¶
Index ¶
- Constants
- func CheckGroupsPermission(ctx context.Context, groupIds []string) ([]*pbim.Group, error)
- func CheckRootGroupIds(ctx context.Context, checkGroupIds []string, rootGroupId string) error
- func CheckUsersPermission(ctx context.Context, userIds []string) ([]*pbim.UserWithGroup, error)
- func Serve(cfg *config.Config)
- type Server
- func (p *Server) BindUserRole(ctx context.Context, req *pb.BindUserRoleRequest) (*pb.BindUserRoleResponse, error)
- func (p *Server) Builder(ctx context.Context, req interface{}) interface{}
- func (p *Server) CanDo(ctx context.Context, req *pb.CanDoRequest) (*pb.CanDoResponse, error)
- func (p *Server) ChangePassword(ctx context.Context, req *pb.ChangePasswordRequest) (*pb.ChangePasswordResponse, error)
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateClient(ctx context.Context, req *pb.CreateClientRequest) (*pb.CreateClientResponse, error)
- func (p *Server) CreateGroup(ctx context.Context, req *pb.CreateGroupRequest) (*pb.CreateGroupResponse, error)
- func (p *Server) CreatePasswordReset(ctx context.Context, req *pb.CreatePasswordResetRequest) (*pb.CreatePasswordResetResponse, error)
- func (p *Server) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleResponse, error)
- func (p *Server) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (p *Server) DeleteGroups(ctx context.Context, req *pb.DeleteGroupsRequest) (*pb.DeleteGroupsResponse, error)
- func (p *Server) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesResponse, error)
- func (p *Server) DeleteUsers(ctx context.Context, req *pb.DeleteUsersRequest) (*pb.DeleteUsersResponse, error)
- func (p *Server) DescribeGroups(ctx context.Context, req *pb.DescribeGroupsRequest) (*pb.DescribeGroupsResponse, error)
- func (p *Server) DescribeGroupsDetail(ctx context.Context, req *pb.DescribeGroupsRequest) (*pb.DescribeGroupsDetailResponse, error)
- func (p *Server) DescribeRoles(ctx context.Context, req *pb.DescribeRolesRequest) (*pb.DescribeRolesResponse, error)
- func (p *Server) DescribeUsers(ctx context.Context, req *pb.DescribeUsersRequest) (*pb.DescribeUsersResponse, error)
- func (p *Server) DescribeUsersDetail(ctx context.Context, req *pb.DescribeUsersRequest) (*pb.DescribeUsersDetailResponse, error)
- func (p *Server) GetPasswordReset(ctx context.Context, req *pb.GetPasswordResetRequest) (*pb.GetPasswordResetResponse, error)
- func (p *Server) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)
- func (p *Server) GetRoleModule(ctx context.Context, req *pb.GetRoleModuleRequest) (*pb.GetRoleModuleResponse, error)
- func (p *Server) IsvCreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (p *Server) JoinGroup(ctx context.Context, req *pb.JoinGroupRequest) (*pb.JoinGroupResponse, error)
- func (p *Server) LeaveGroup(ctx context.Context, req *pb.LeaveGroupRequest) (*pb.LeaveGroupResponse, error)
- func (p *Server) ModifyGroup(ctx context.Context, req *pb.ModifyGroupRequest) (*pb.ModifyGroupResponse, error)
- func (p *Server) ModifyRole(ctx context.Context, req *pb.ModifyRoleRequest) (*pb.ModifyRoleResponse, error)
- func (p *Server) ModifyRoleModule(ctx context.Context, req *pb.ModifyRoleModuleRequest) (*pb.ModifyRoleModuleResponse, error)
- func (p *Server) ModifyUser(ctx context.Context, req *pb.ModifyUserRequest) (*pb.ModifyUserResponse, error)
- func (p *Server) Token(ctx context.Context, req *pb.TokenRequest) (*pb.TokenResponse, error)
- func (p *Server) UnbindUserRole(ctx context.Context, req *pb.UnbindUserRoleRequest) (*pb.UnbindUserRoleResponse, error)
- func (p *Server) ValidateUserPassword(ctx context.Context, req *pb.ValidateUserPasswordRequest) (*pb.ValidateUserPasswordResponse, error)
Constants ¶
View Source
const OwnerKey = "owner"
View Source
const OwnerPathKey = "owner_path"
Variables ¶
This section is empty.
Functions ¶
func CheckGroupsPermission ¶
func CheckRootGroupIds ¶
func CheckUsersPermission ¶
Types ¶
type Server ¶
func (*Server) BindUserRole ¶
func (p *Server) BindUserRole(ctx context.Context, req *pb.BindUserRoleRequest) (*pb.BindUserRoleResponse, error)
func (*Server) CanDo ¶
func (p *Server) CanDo(ctx context.Context, req *pb.CanDoRequest) (*pb.CanDoResponse, error)
func (*Server) ChangePassword ¶
func (p *Server) ChangePassword(ctx context.Context, req *pb.ChangePasswordRequest) (*pb.ChangePasswordResponse, error)
func (*Server) CreateClient ¶
func (p *Server) CreateClient(ctx context.Context, req *pb.CreateClientRequest) (*pb.CreateClientResponse, error)
func (*Server) CreateGroup ¶
func (p *Server) CreateGroup(ctx context.Context, req *pb.CreateGroupRequest) (*pb.CreateGroupResponse, error)
func (*Server) CreatePasswordReset ¶
func (p *Server) CreatePasswordReset(ctx context.Context, req *pb.CreatePasswordResetRequest) (*pb.CreatePasswordResetResponse, error)
func (*Server) CreateRole ¶
func (p *Server) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleResponse, error)
func (*Server) CreateUser ¶
func (p *Server) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
func (*Server) DeleteGroups ¶
func (p *Server) DeleteGroups(ctx context.Context, req *pb.DeleteGroupsRequest) (*pb.DeleteGroupsResponse, error)
func (*Server) DeleteRoles ¶
func (p *Server) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesResponse, error)
func (*Server) DeleteUsers ¶
func (p *Server) DeleteUsers(ctx context.Context, req *pb.DeleteUsersRequest) (*pb.DeleteUsersResponse, error)
func (*Server) DescribeGroups ¶
func (p *Server) DescribeGroups(ctx context.Context, req *pb.DescribeGroupsRequest) (*pb.DescribeGroupsResponse, error)
func (*Server) DescribeGroupsDetail ¶
func (p *Server) DescribeGroupsDetail(ctx context.Context, req *pb.DescribeGroupsRequest) (*pb.DescribeGroupsDetailResponse, error)
func (*Server) DescribeRoles ¶
func (p *Server) DescribeRoles(ctx context.Context, req *pb.DescribeRolesRequest) (*pb.DescribeRolesResponse, error)
func (*Server) DescribeUsers ¶
func (p *Server) DescribeUsers(ctx context.Context, req *pb.DescribeUsersRequest) (*pb.DescribeUsersResponse, error)
func (*Server) DescribeUsersDetail ¶
func (p *Server) DescribeUsersDetail(ctx context.Context, req *pb.DescribeUsersRequest) (*pb.DescribeUsersDetailResponse, error)
func (*Server) GetPasswordReset ¶
func (p *Server) GetPasswordReset(ctx context.Context, req *pb.GetPasswordResetRequest) (*pb.GetPasswordResetResponse, error)
func (*Server) GetRole ¶
func (p *Server) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)
func (*Server) GetRoleModule ¶
func (p *Server) GetRoleModule(ctx context.Context, req *pb.GetRoleModuleRequest) (*pb.GetRoleModuleResponse, error)
func (*Server) IsvCreateUser ¶
func (p *Server) IsvCreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
func (*Server) JoinGroup ¶
func (p *Server) JoinGroup(ctx context.Context, req *pb.JoinGroupRequest) (*pb.JoinGroupResponse, error)
func (*Server) LeaveGroup ¶
func (p *Server) LeaveGroup(ctx context.Context, req *pb.LeaveGroupRequest) (*pb.LeaveGroupResponse, error)
func (*Server) ModifyGroup ¶
func (p *Server) ModifyGroup(ctx context.Context, req *pb.ModifyGroupRequest) (*pb.ModifyGroupResponse, error)
func (*Server) ModifyRole ¶
func (p *Server) ModifyRole(ctx context.Context, req *pb.ModifyRoleRequest) (*pb.ModifyRoleResponse, error)
func (*Server) ModifyRoleModule ¶
func (p *Server) ModifyRoleModule(ctx context.Context, req *pb.ModifyRoleModuleRequest) (*pb.ModifyRoleModuleResponse, error)
func (*Server) ModifyUser ¶
func (p *Server) ModifyUser(ctx context.Context, req *pb.ModifyUserRequest) (*pb.ModifyUserResponse, error)
func (*Server) Token ¶
func (p *Server) Token(ctx context.Context, req *pb.TokenRequest) (*pb.TokenResponse, error)
func (*Server) UnbindUserRole ¶
func (p *Server) UnbindUserRole(ctx context.Context, req *pb.UnbindUserRoleRequest) (*pb.UnbindUserRoleResponse, error)
func (*Server) ValidateUserPassword ¶
func (p *Server) ValidateUserPassword(ctx context.Context, req *pb.ValidateUserPasswordRequest) (*pb.ValidateUserPasswordResponse, error)
Click to show internal directories.
Click to hide internal directories.