account

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const OwnerKey = "owner"
View Source
const OwnerPathKey = "owner_path"

Variables

This section is empty.

Functions

func CheckGroupsPermission

func CheckGroupsPermission(ctx context.Context, groupIds []string) ([]*pbim.Group, error)

func CheckRootGroupIds

func CheckRootGroupIds(ctx context.Context, checkGroupIds []string, rootGroupId string) error

func CheckUsersPermission

func CheckUsersPermission(ctx context.Context, userIds []string) ([]*pbim.UserWithGroup, error)

func Serve

func Serve(cfg *config.Config)

Types

type Server

type Server struct {
	config.IAMConfig
}

func (*Server) BindUserRole

func (p *Server) BindUserRole(ctx context.Context, req *pb.BindUserRoleRequest) (*pb.BindUserRoleResponse, error)

func (*Server) Builder

func (p *Server) Builder(ctx context.Context, req interface{}) interface{}

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) Checker

func (p *Server) Checker(ctx context.Context, req interface{}) 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 (*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

Jump to

Keyboard shortcuts

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