mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
feat: changes to view audit logs by project and cluster role users --------- Signed-off-by: niravparikh05 <nir.parikh05@gmail.com>
145 lines
5.8 KiB
Go
145 lines
5.8 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.3.0
|
|
// - protoc (unknown)
|
|
// source: proto/rpc/sentry/audit_info.proto
|
|
|
|
package sentry
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
const (
|
|
AuditInformationService_LookupUser_FullMethodName = "/paralus.dev.sentry.rpc.AuditInformationService/LookupUser"
|
|
AuditInformationService_LookupCluster_FullMethodName = "/paralus.dev.sentry.rpc.AuditInformationService/LookupCluster"
|
|
)
|
|
|
|
// AuditInformationServiceClient is the client API for AuditInformationService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type AuditInformationServiceClient interface {
|
|
LookupUser(ctx context.Context, in *LookupUserRequest, opts ...grpc.CallOption) (*LookupUserResponse, error)
|
|
LookupCluster(ctx context.Context, in *LookupClusterRequest, opts ...grpc.CallOption) (*LookupClusterResponse, error)
|
|
}
|
|
|
|
type auditInformationServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewAuditInformationServiceClient(cc grpc.ClientConnInterface) AuditInformationServiceClient {
|
|
return &auditInformationServiceClient{cc}
|
|
}
|
|
|
|
func (c *auditInformationServiceClient) LookupUser(ctx context.Context, in *LookupUserRequest, opts ...grpc.CallOption) (*LookupUserResponse, error) {
|
|
out := new(LookupUserResponse)
|
|
err := c.cc.Invoke(ctx, AuditInformationService_LookupUser_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *auditInformationServiceClient) LookupCluster(ctx context.Context, in *LookupClusterRequest, opts ...grpc.CallOption) (*LookupClusterResponse, error) {
|
|
out := new(LookupClusterResponse)
|
|
err := c.cc.Invoke(ctx, AuditInformationService_LookupCluster_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AuditInformationServiceServer is the server API for AuditInformationService service.
|
|
// All implementations should embed UnimplementedAuditInformationServiceServer
|
|
// for forward compatibility
|
|
type AuditInformationServiceServer interface {
|
|
LookupUser(context.Context, *LookupUserRequest) (*LookupUserResponse, error)
|
|
LookupCluster(context.Context, *LookupClusterRequest) (*LookupClusterResponse, error)
|
|
}
|
|
|
|
// UnimplementedAuditInformationServiceServer should be embedded to have forward compatible implementations.
|
|
type UnimplementedAuditInformationServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedAuditInformationServiceServer) LookupUser(context.Context, *LookupUserRequest) (*LookupUserResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method LookupUser not implemented")
|
|
}
|
|
func (UnimplementedAuditInformationServiceServer) LookupCluster(context.Context, *LookupClusterRequest) (*LookupClusterResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method LookupCluster not implemented")
|
|
}
|
|
|
|
// UnsafeAuditInformationServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to AuditInformationServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeAuditInformationServiceServer interface {
|
|
mustEmbedUnimplementedAuditInformationServiceServer()
|
|
}
|
|
|
|
func RegisterAuditInformationServiceServer(s grpc.ServiceRegistrar, srv AuditInformationServiceServer) {
|
|
s.RegisterService(&AuditInformationService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _AuditInformationService_LookupUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LookupUserRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuditInformationServiceServer).LookupUser(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuditInformationService_LookupUser_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuditInformationServiceServer).LookupUser(ctx, req.(*LookupUserRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuditInformationService_LookupCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LookupClusterRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuditInformationServiceServer).LookupCluster(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuditInformationService_LookupCluster_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuditInformationServiceServer).LookupCluster(ctx, req.(*LookupClusterRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// AuditInformationService_ServiceDesc is the grpc.ServiceDesc for AuditInformationService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var AuditInformationService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "paralus.dev.sentry.rpc.AuditInformationService",
|
|
HandlerType: (*AuditInformationServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "LookupUser",
|
|
Handler: _AuditInformationService_LookupUser_Handler,
|
|
},
|
|
{
|
|
MethodName: "LookupCluster",
|
|
Handler: _AuditInformationService_LookupCluster_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/rpc/sentry/audit_info.proto",
|
|
}
|