Documentation ¶
Index ¶
- func GetAuthGRPCSvcClient(conn *grpc.ClientConn) (protos.AuthRpcServiceClient, *grpc.ClientConn)
- func GetProjectById(client protos.AuthRpcServiceClient, projectId string) (*protos.GetProjectByIdResponse, error)
- func GetUserById(client protos.AuthRpcServiceClient, userId string) (*protos.GetUserByIdResponse, error)
- func ValidatorGRPCRequest(client protos.AuthRpcServiceClient, jwt string, projectID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthGRPCSvcClient ¶
func GetAuthGRPCSvcClient(conn *grpc.ClientConn) (protos.AuthRpcServiceClient, *grpc.ClientConn)
GetAuthGRPCSvcClient returns an RPC client for Authentication service
func GetProjectById ¶
func GetProjectById(client protos.AuthRpcServiceClient, projectId string) (*protos.GetProjectByIdResponse, error)
GetProjectById returns the project details based on its uid
func GetUserById ¶
func GetUserById(client protos.AuthRpcServiceClient, userId string) (*protos.GetUserByIdResponse, error)
GetUserById returns the project details based on its uid
func ValidatorGRPCRequest ¶
func ValidatorGRPCRequest(client protos.AuthRpcServiceClient, jwt string, projectID string, requiredRoles []string, invitation string) error
ValidatorGRPCRequest sends a request to Authentication server to ensure user permission over the project
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.