Documentation
¶
Overview ¶
Package grpc provides gRPC API types for AegisGate
Index ¶
- Variables
- func NewServer(port string, _ *slog.Logger) *grpc.Server
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterComplianceServiceServer(s *grpc.Server, srv ComplianceServiceServer)
- func RegisterCoreServiceServer(s *grpc.Server, srv CoreServiceServer)
- func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer)
- func RegisterSIEMServiceServer(s *grpc.Server, srv SIEMServiceServer)
- func RegisterWebhookServiceServer(s *grpc.Server, srv WebhookServiceServer)
- func RunServer(port string, logger *slog.Logger) error
- func Start(port string, logger *slog.Logger) (*grpc.Server, error)
- func Stop(s *grpc.Server)
- func StreamInterceptor(logger *slog.Logger) grpc.StreamServerInterceptor
- func UnaryInterceptor(logger *slog.Logger) grpc.UnaryServerInterceptor
- type AuthService
- func (s *AuthService) CreateUser(ctx context.Context, req *CreateUserRequest) (*CreateUserResponse, error)
- func (s *AuthService) DeleteUser(ctx context.Context, req *DeleteUserRequest) (*DeleteUserResponse, error)
- func (s *AuthService) GetAuthConfig(ctx context.Context, req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
- func (s *AuthService) GetSessions(ctx context.Context, req *GetSessionsRequest) (*GetSessionsResponse, error)
- func (s *AuthService) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
- func (s *AuthService) ListUsers(ctx context.Context, req *ListUsersRequest) (*ListUsersResponse, error)
- func (s *AuthService) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (s *AuthService) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
- func (s *AuthService) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*UpdateUserResponse, error)
- func (s *AuthService) ValidateToken(ctx context.Context, req *ValidateTokenRequest) (*ValidateTokenResponse, error)
- type AuthServiceServer
- type CertificateInfo
- type ClearViolationsRequest
- type ClearViolationsResponse
- type ComplianceFinding
- type ComplianceService
- func (s *ComplianceService) GenerateReport(ctx context.Context, req *GenerateReportRequest) (*GenerateReportResponse, error)
- func (s *ComplianceService) GetFindings(ctx context.Context, req *GetFindingsRequest) (*GetFindingsResponse, error)
- func (s *ComplianceService) GetFrameworks(ctx context.Context, req *GetFrameworksRequest) (*GetFrameworksResponse, error)
- func (s *ComplianceService) GetStatus(ctx context.Context, req *GetComplianceStatusRequest) (*GetComplianceStatusResponse, error)
- func (s *ComplianceService) RunCheck(ctx context.Context, req *RunComplianceCheckRequest) (*RunComplianceCheckResponse, error)
- type ComplianceServiceServer
- type ComplianceStatus
- type ComplianceSummary
- type CoreService
- func (s *CoreService) DisableModule(ctx context.Context, req *DisableModuleRequest) (*DisableModuleResponse, error)
- func (s *CoreService) EnableModule(ctx context.Context, req *EnableModuleRequest) (*EnableModuleResponse, error)
- func (s *CoreService) GetHealth(ctx context.Context, req *GetHealthRequest) (*GetHealthResponse, error)
- func (s *CoreService) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error)
- func (s *CoreService) GetModule(ctx context.Context, req *GetModuleRequest) (*GetModuleResponse, error)
- func (s *CoreService) GetRegistryStatus(ctx context.Context, req *GetRegistryStatusRequest) (*GetRegistryStatusResponse, error)
- func (s *CoreService) GetUptime(ctx context.Context, req *GetUptimeRequest) (*GetUptimeResponse, error)
- func (s *CoreService) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error)
- func (s *CoreService) ListModules(ctx context.Context, req *ListModulesRequest) (*ListModulesResponse, error)
- type CoreServiceServer
- type CreateUserRequest
- type CreateUserResponse
- type CreateWebhookRequest
- type CreateWebhookResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DeleteWebhookRequest
- type DeleteWebhookResponse
- type DisableModuleRequest
- type DisableModuleResponse
- type DisableProxyRequest
- type DisableProxyResponse
- type DisableWebhookRequest
- type DisableWebhookResponse
- type EnableModuleRequest
- type EnableModuleResponse
- type EnableProxyRequest
- type EnableProxyResponse
- type EnableWebhookRequest
- type EnableWebhookResponse
- type EventSeverity
- type FindingSeverity
- type Framework
- type FrameworkStatus
- type GenerateCertificateRequest
- type GenerateCertificateResponse
- type GenerateReportRequest
- type GenerateReportResponse
- type GetAuthConfigRequest
- type GetAuthConfigResponse
- type GetCertificatesRequest
- type GetCertificatesResponse
- type GetComplianceStatusRequest
- type GetComplianceStatusResponse
- type GetFindingsRequest
- type GetFindingsResponse
- type GetFrameworksRequest
- type GetFrameworksResponse
- type GetHealthRequest
- type GetHealthResponse
- type GetMTLSConfigRequest
- type GetMTLSConfigResponse
- type GetMetricsRequest
- type GetMetricsResponse
- type GetModuleRequest
- type GetModuleResponse
- type GetProxyConfigRequest
- type GetProxyConfigResponse
- type GetProxyHealthRequest
- type GetProxyHealthResponse
- type GetProxyStatsRequest
- type GetProxyStatsResponse
- type GetRegistryStatusRequest
- type GetRegistryStatusResponse
- type GetSIEMConfigRequest
- type GetSIEMConfigResponse
- type GetSIEMEventsRequest
- type GetSIEMEventsResponse
- type GetSIEMStatsRequest
- type GetSIEMStatsResponse
- type GetSessionsRequest
- type GetSessionsResponse
- type GetTLSConfigRequest
- type GetTLSConfigResponse
- type GetUptimeRequest
- type GetUptimeResponse
- type GetUserRequest
- type GetUserResponse
- type GetVersionRequest
- type GetVersionResponse
- type GetViolationsRequest
- type GetViolationsResponse
- type GetWebhookRequest
- type GetWebhookResponse
- type GetWebhookStatsRequest
- type GetWebhookStatsResponse
- type HealthCheck
- type IsProxyEnabledRequest
- type IsProxyEnabledResponse
- type ListModulesRequest
- type ListModulesResponse
- type ListUsersRequest
- type ListUsersResponse
- type ListWebhooksRequest
- type ListWebhooksResponse
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type LogoutResponse
- type ModuleInfo
- type ModuleStatus
- type ProxyService
- func (s *ProxyService) ClearViolations(ctx context.Context, req *ClearViolationsRequest) (*ClearViolationsResponse, error)
- func (s *ProxyService) Disable(ctx context.Context, req *DisableProxyRequest) (*DisableProxyResponse, error)
- func (s *ProxyService) Enable(ctx context.Context, req *EnableProxyRequest) (*EnableProxyResponse, error)
- func (s *ProxyService) GetConfig(ctx context.Context, req *GetProxyConfigRequest) (*GetProxyConfigResponse, error)
- func (s *ProxyService) GetHealth(ctx context.Context, req *GetProxyHealthRequest) (*GetProxyHealthResponse, error)
- func (s *ProxyService) GetStats(ctx context.Context, req *GetProxyStatsRequest) (*GetProxyStatsResponse, error)
- func (s *ProxyService) GetViolations(ctx context.Context, req *GetViolationsRequest) (*GetViolationsResponse, error)
- func (s *ProxyService) IsEnabled(ctx context.Context, req *IsProxyEnabledRequest) (*IsProxyEnabledResponse, error)
- type ProxyServiceServer
- type RunComplianceCheckRequest
- type RunComplianceCheckResponse
- type SIEMEvent
- type SIEMService
- func (s *SIEMService) GetConfig(ctx context.Context, req *GetSIEMConfigRequest) (*GetSIEMConfigResponse, error)
- func (s *SIEMService) GetEvents(ctx context.Context, req *GetSIEMEventsRequest) (*GetSIEMEventsResponse, error)
- func (s *SIEMService) GetStats(ctx context.Context, req *GetSIEMStatsRequest) (*GetSIEMStatsResponse, error)
- func (s *SIEMService) SendEvent(ctx context.Context, req *SendSIEMEventRequest) (*SendSIEMEventResponse, error)
- func (s *SIEMService) TestConnection(ctx context.Context, req *TestSIEMConnectionRequest) (*TestSIEMConnectionResponse, error)
- type SIEMServiceServer
- type SendSIEMEventRequest
- type SendSIEMEventResponse
- type Session
- type TLSSvc
- func (s *TLSSvc) GenerateCertificate(ctx context.Context, req *GenerateCertificateRequest) (*GenerateCertificateResponse, error)
- func (s *TLSSvc) GetCertificates(ctx context.Context, req *GetCertificatesRequest) (*GetCertificatesResponse, error)
- func (s *TLSSvc) GetConfig(ctx context.Context, req *GetTLSConfigRequest) (*GetTLSConfigResponse, error)
- func (s *TLSSvc) GetMTLSConfig(ctx context.Context, req *GetMTLSConfigRequest) (*GetMTLSConfigResponse, error)
- type TLSSvcServer
- type TestSIEMConnectionRequest
- type TestSIEMConnectionResponse
- type TestWebhookRequest
- type TestWebhookResponse
- type UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) CreateUser(ctx context.Context, req *CreateUserRequest) (*CreateUserResponse, error)
- func (*UnimplementedAuthServiceServer) DeleteUser(ctx context.Context, req *DeleteUserRequest) (*DeleteUserResponse, error)
- func (*UnimplementedAuthServiceServer) GetAuthConfig(ctx context.Context, req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
- func (*UnimplementedAuthServiceServer) GetSessions(ctx context.Context, req *GetSessionsRequest) (*GetSessionsResponse, error)
- func (*UnimplementedAuthServiceServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
- func (*UnimplementedAuthServiceServer) ListUsers(ctx context.Context, req *ListUsersRequest) (*ListUsersResponse, error)
- func (*UnimplementedAuthServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (*UnimplementedAuthServiceServer) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
- func (*UnimplementedAuthServiceServer) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*UpdateUserResponse, error)
- func (*UnimplementedAuthServiceServer) ValidateToken(ctx context.Context, req *ValidateTokenRequest) (*ValidateTokenResponse, error)
- type UnimplementedComplianceServiceServer
- func (*UnimplementedComplianceServiceServer) GenerateReport(ctx context.Context, req *GenerateReportRequest) (*GenerateReportResponse, error)
- func (*UnimplementedComplianceServiceServer) GetFindings(ctx context.Context, req *GetFindingsRequest) (*GetFindingsResponse, error)
- func (*UnimplementedComplianceServiceServer) GetFrameworks(ctx context.Context, req *GetFrameworksRequest) (*GetFrameworksResponse, error)
- func (*UnimplementedComplianceServiceServer) GetStatus(ctx context.Context, req *GetComplianceStatusRequest) (*GetComplianceStatusResponse, error)
- func (*UnimplementedComplianceServiceServer) RunCheck(ctx context.Context, req *RunComplianceCheckRequest) (*RunComplianceCheckResponse, error)
- type UnimplementedCoreServiceServer
- func (*UnimplementedCoreServiceServer) DisableModule(ctx context.Context, req *DisableModuleRequest) (*DisableModuleResponse, error)
- func (*UnimplementedCoreServiceServer) EnableModule(ctx context.Context, req *EnableModuleRequest) (*EnableModuleResponse, error)
- func (*UnimplementedCoreServiceServer) GetHealth(ctx context.Context, req *GetHealthRequest) (*GetHealthResponse, error)
- func (*UnimplementedCoreServiceServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error)
- func (*UnimplementedCoreServiceServer) GetModule(ctx context.Context, req *GetModuleRequest) (*GetModuleResponse, error)
- func (*UnimplementedCoreServiceServer) GetRegistryStatus(ctx context.Context, req *GetRegistryStatusRequest) (*GetRegistryStatusResponse, error)
- func (*UnimplementedCoreServiceServer) GetUptime(ctx context.Context, req *GetUptimeRequest) (*GetUptimeResponse, error)
- func (*UnimplementedCoreServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error)
- func (*UnimplementedCoreServiceServer) ListModules(ctx context.Context, req *ListModulesRequest) (*ListModulesResponse, error)
- type UnimplementedProxyServiceServer
- func (*UnimplementedProxyServiceServer) ClearViolations(ctx context.Context, req *ClearViolationsRequest) (*ClearViolationsResponse, error)
- func (*UnimplementedProxyServiceServer) Disable(ctx context.Context, req *DisableProxyRequest) (*DisableProxyResponse, error)
- func (*UnimplementedProxyServiceServer) Enable(ctx context.Context, req *EnableProxyRequest) (*EnableProxyResponse, error)
- func (*UnimplementedProxyServiceServer) GetConfig(ctx context.Context, req *GetProxyConfigRequest) (*GetProxyConfigResponse, error)
- func (*UnimplementedProxyServiceServer) GetHealth(ctx context.Context, req *GetProxyHealthRequest) (*GetProxyHealthResponse, error)
- func (*UnimplementedProxyServiceServer) GetStats(ctx context.Context, req *GetProxyStatsRequest) (*GetProxyStatsResponse, error)
- func (*UnimplementedProxyServiceServer) GetViolations(ctx context.Context, req *GetViolationsRequest) (*GetViolationsResponse, error)
- func (*UnimplementedProxyServiceServer) IsEnabled(ctx context.Context, req *IsProxyEnabledRequest) (*IsProxyEnabledResponse, error)
- type UnimplementedSIEMServiceServer
- func (*UnimplementedSIEMServiceServer) GetConfig(ctx context.Context, req *GetSIEMConfigRequest) (*GetSIEMConfigResponse, error)
- func (*UnimplementedSIEMServiceServer) GetEvents(ctx context.Context, req *GetSIEMEventsRequest) (*GetSIEMEventsResponse, error)
- func (*UnimplementedSIEMServiceServer) GetStats(ctx context.Context, req *GetSIEMStatsRequest) (*GetSIEMStatsResponse, error)
- func (*UnimplementedSIEMServiceServer) SendEvent(ctx context.Context, req *SendSIEMEventRequest) (*SendSIEMEventResponse, error)
- func (*UnimplementedSIEMServiceServer) TestConnection(ctx context.Context, req *TestSIEMConnectionRequest) (*TestSIEMConnectionResponse, error)
- type UnimplementedTLSSvcServer
- func (*UnimplementedTLSSvcServer) GenerateCertificate(ctx context.Context, req *GenerateCertificateRequest) (*GenerateCertificateResponse, error)
- func (*UnimplementedTLSSvcServer) GetCertificates(ctx context.Context, req *GetCertificatesRequest) (*GetCertificatesResponse, error)
- func (*UnimplementedTLSSvcServer) GetConfig(ctx context.Context, req *GetTLSConfigRequest) (*GetTLSConfigResponse, error)
- func (*UnimplementedTLSSvcServer) GetMTLSConfig(ctx context.Context, req *GetMTLSConfigRequest) (*GetMTLSConfigResponse, error)
- type UnimplementedWebhookServiceServer
- func (*UnimplementedWebhookServiceServer) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (*CreateWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) DeleteWebhook(ctx context.Context, req *DeleteWebhookRequest) (*DeleteWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) DisableWebhook(ctx context.Context, req *DisableWebhookRequest) (*DisableWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) EnableWebhook(ctx context.Context, req *EnableWebhookRequest) (*EnableWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) GetStats(ctx context.Context, req *GetWebhookStatsRequest) (*GetWebhookStatsResponse, error)
- func (*UnimplementedWebhookServiceServer) GetWebhook(ctx context.Context, req *GetWebhookRequest) (*GetWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) ListWebhooks(ctx context.Context, req *ListWebhooksRequest) (*ListWebhooksResponse, error)
- func (*UnimplementedWebhookServiceServer) TestWebhook(ctx context.Context, req *TestWebhookRequest) (*TestWebhookResponse, error)
- func (*UnimplementedWebhookServiceServer) UpdateWebhook(ctx context.Context, req *UpdateWebhookRequest) (*UpdateWebhookResponse, error)
- type UpdateUserRequest
- type UpdateUserResponse
- type UpdateWebhookRequest
- type UpdateWebhookResponse
- type User
- type ValidateTokenRequest
- type ValidateTokenResponse
- type Violation
- type ViolationSeverity
- type ViolationType
- type WebhookInfo
- type WebhookService
- func (s *WebhookService) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (*CreateWebhookResponse, error)
- func (s *WebhookService) DeleteWebhook(ctx context.Context, req *DeleteWebhookRequest) (*DeleteWebhookResponse, error)
- func (s *WebhookService) DisableWebhook(ctx context.Context, req *DisableWebhookRequest) (*DisableWebhookResponse, error)
- func (s *WebhookService) EnableWebhook(ctx context.Context, req *EnableWebhookRequest) (*EnableWebhookResponse, error)
- func (s *WebhookService) GetStats(ctx context.Context, req *GetWebhookStatsRequest) (*GetWebhookStatsResponse, error)
- func (s *WebhookService) GetWebhook(ctx context.Context, req *GetWebhookRequest) (*GetWebhookResponse, error)
- func (s *WebhookService) ListWebhooks(ctx context.Context, req *ListWebhooksRequest) (*ListWebhooksResponse, error)
- func (s *WebhookService) TestWebhook(ctx context.Context, req *TestWebhookRequest) (*TestWebhookResponse, error)
- func (s *WebhookService) UpdateWebhook(ctx context.Context, req *UpdateWebhookRequest) (*UpdateWebhookResponse, error)
- type WebhookServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.AuthService", HandlerType: (*AuthServiceServer)(nil), } ProxyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.ProxyService", HandlerType: (*ProxyServiceServer)(nil), } ComplianceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.ComplianceService", HandlerType: (*ComplianceServiceServer)(nil), } SIEMService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.SIEMService", HandlerType: (*SIEMServiceServer)(nil), } WebhookService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.WebhookService", HandlerType: (*WebhookServiceServer)(nil), } CoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.CoreService", HandlerType: (*CoreServiceServer)(nil), } )
Service descriptors (simplified)
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
RegisterAuthServiceServer registers the AuthService to the provided grpc.Server
func RegisterComplianceServiceServer ¶
func RegisterComplianceServiceServer(s *grpc.Server, srv ComplianceServiceServer)
RegisterComplianceServiceServer registers the ComplianceService to the provided grpc.Server
func RegisterCoreServiceServer ¶
func RegisterCoreServiceServer(s *grpc.Server, srv CoreServiceServer)
RegisterCoreServiceServer registers the CoreService to the provided grpc.Server
func RegisterProxyServiceServer ¶
func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer)
RegisterProxyServiceServer registers the ProxyService to the provided grpc.Server
func RegisterSIEMServiceServer ¶
func RegisterSIEMServiceServer(s *grpc.Server, srv SIEMServiceServer)
RegisterSIEMServiceServer registers the SIEMService to the provided grpc.Server
func RegisterWebhookServiceServer ¶
func RegisterWebhookServiceServer(s *grpc.Server, srv WebhookServiceServer)
RegisterWebhookServiceServer registers the WebhookService to the provided grpc.Server
func StreamInterceptor ¶
func StreamInterceptor(logger *slog.Logger) grpc.StreamServerInterceptor
StreamInterceptor returns a stream server interceptor for logging
func UnaryInterceptor ¶
func UnaryInterceptor(logger *slog.Logger) grpc.UnaryServerInterceptor
UnaryInterceptor returns a unary server interceptor for logging
Types ¶
type AuthService ¶
type AuthService struct {
UnimplementedAuthServiceServer
// contains filtered or unexported fields
}
AuthService implements the Auth service
func NewAuthService ¶
func NewAuthService(manager *auth.Manager, logger *slog.Logger) *AuthService
NewAuthService creates a new auth service
func (*AuthService) CreateUser ¶
func (s *AuthService) CreateUser(ctx context.Context, req *CreateUserRequest) (*CreateUserResponse, error)
CreateUser creates a new user
func (*AuthService) DeleteUser ¶
func (s *AuthService) DeleteUser(ctx context.Context, req *DeleteUserRequest) (*DeleteUserResponse, error)
DeleteUser deletes a user - uses InvalidateUserSessions as proxy
func (*AuthService) GetAuthConfig ¶
func (s *AuthService) GetAuthConfig(ctx context.Context, req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
GetAuthConfig gets authentication configuration
func (*AuthService) GetSessions ¶
func (s *AuthService) GetSessions(ctx context.Context, req *GetSessionsRequest) (*GetSessionsResponse, error)
GetSessions gets active sessions
func (*AuthService) GetUser ¶
func (s *AuthService) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
GetUser retrieves a user by ID
func (*AuthService) ListUsers ¶
func (s *AuthService) ListUsers(ctx context.Context, req *ListUsersRequest) (*ListUsersResponse, error)
ListUsers lists all users
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
Login authenticates a user and returns a session token
func (*AuthService) Logout ¶
func (s *AuthService) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
Logout invalidates a session token
func (*AuthService) UpdateUser ¶
func (s *AuthService) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*UpdateUserResponse, error)
UpdateUser updates an existing user
func (*AuthService) ValidateToken ¶
func (s *AuthService) ValidateToken(ctx context.Context, req *ValidateTokenRequest) (*ValidateTokenResponse, error)
ValidateToken validates a session token
type AuthServiceServer ¶
type AuthServiceServer interface {
Login(context.Context, *LoginRequest) (*LoginResponse, error)
Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
ValidateToken(context.Context, *ValidateTokenRequest) (*ValidateTokenResponse, error)
GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
GetAuthConfig(context.Context, *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
}
AuthServiceServer is the server API for AuthService
type CertificateInfo ¶
type ClearViolationsRequest ¶
type ClearViolationsRequest struct{}
type ClearViolationsResponse ¶
type ClearViolationsResponse struct {
Success bool `json:"success"`
}
type ComplianceFinding ¶
type ComplianceService ¶
type ComplianceService struct {
UnimplementedComplianceServiceServer
// contains filtered or unexported fields
}
ComplianceService implements the Compliance service
func NewComplianceService ¶
func NewComplianceService(manager *compliance.Manager, logger *slog.Logger) *ComplianceService
NewComplianceService creates a new compliance service
func (*ComplianceService) GenerateReport ¶
func (s *ComplianceService) GenerateReport(ctx context.Context, req *GenerateReportRequest) (*GenerateReportResponse, error)
GenerateReport generates a compliance report
func (*ComplianceService) GetFindings ¶
func (s *ComplianceService) GetFindings(ctx context.Context, req *GetFindingsRequest) (*GetFindingsResponse, error)
GetFindings returns compliance findings
func (*ComplianceService) GetFrameworks ¶
func (s *ComplianceService) GetFrameworks(ctx context.Context, req *GetFrameworksRequest) (*GetFrameworksResponse, error)
GetFrameworks returns available compliance frameworks
func (*ComplianceService) GetStatus ¶
func (s *ComplianceService) GetStatus(ctx context.Context, req *GetComplianceStatusRequest) (*GetComplianceStatusResponse, error)
GetStatus returns compliance status
func (*ComplianceService) RunCheck ¶
func (s *ComplianceService) RunCheck(ctx context.Context, req *RunComplianceCheckRequest) (*RunComplianceCheckResponse, error)
RunCheck runs a compliance check
type ComplianceServiceServer ¶
type ComplianceServiceServer interface {
GetFrameworks(context.Context, *GetFrameworksRequest) (*GetFrameworksResponse, error)
GetStatus(context.Context, *GetComplianceStatusRequest) (*GetComplianceStatusResponse, error)
RunCheck(context.Context, *RunComplianceCheckRequest) (*RunComplianceCheckResponse, error)
GetFindings(context.Context, *GetFindingsRequest) (*GetFindingsResponse, error)
GenerateReport(context.Context, *GenerateReportRequest) (*GenerateReportResponse, error)
}
ComplianceServiceServer is the server API for ComplianceService
type ComplianceStatus ¶
type ComplianceStatus int32
const ( ComplianceStatus_UNKNOWN ComplianceStatus = 0 ComplianceStatus_PASS ComplianceStatus = 1 ComplianceStatus_FAIL ComplianceStatus = 2 ComplianceStatus_WARNING ComplianceStatus = 3 ComplianceStatus_PENDING ComplianceStatus = 4 ComplianceStatus_NOT_APPLICABLE ComplianceStatus = 5 )
ComplianceStatus values
const ( ComplianceStatusUnknown ComplianceStatus = iota ComplianceStatusPass ComplianceStatusFail ComplianceStatusWarning ComplianceStatusPending ComplianceStatusNotApplicable )
type ComplianceSummary ¶
type CoreService ¶
type CoreService struct {
UnimplementedCoreServiceServer
// contains filtered or unexported fields
}
CoreService implements the Core service
func NewCoreService ¶
func NewCoreService(metrics *metrics.Manager, logger *slog.Logger) *CoreService
NewCoreService creates a new core service
func (*CoreService) DisableModule ¶
func (s *CoreService) DisableModule(ctx context.Context, req *DisableModuleRequest) (*DisableModuleResponse, error)
DisableModule disables a module
func (*CoreService) EnableModule ¶
func (s *CoreService) EnableModule(ctx context.Context, req *EnableModuleRequest) (*EnableModuleResponse, error)
EnableModule enables a module
func (*CoreService) GetHealth ¶
func (s *CoreService) GetHealth(ctx context.Context, req *GetHealthRequest) (*GetHealthResponse, error)
GetHealth returns health status
func (*CoreService) GetMetrics ¶
func (s *CoreService) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error)
GetMetrics returns system metrics
func (*CoreService) GetModule ¶
func (s *CoreService) GetModule(ctx context.Context, req *GetModuleRequest) (*GetModuleResponse, error)
GetModule gets a module by ID
func (*CoreService) GetRegistryStatus ¶
func (s *CoreService) GetRegistryStatus(ctx context.Context, req *GetRegistryStatusRequest) (*GetRegistryStatusResponse, error)
GetRegistryStatus returns registry status
func (*CoreService) GetUptime ¶
func (s *CoreService) GetUptime(ctx context.Context, req *GetUptimeRequest) (*GetUptimeResponse, error)
GetUptime returns system uptime
func (*CoreService) GetVersion ¶
func (s *CoreService) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error)
GetVersion returns version info
func (*CoreService) ListModules ¶
func (s *CoreService) ListModules(ctx context.Context, req *ListModulesRequest) (*ListModulesResponse, error)
ListModules lists all registered modules
type CoreServiceServer ¶
type CoreServiceServer interface {
ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
GetModule(context.Context, *GetModuleRequest) (*GetModuleResponse, error)
GetHealth(context.Context, *GetHealthRequest) (*GetHealthResponse, error)
GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
GetUptime(context.Context, *GetUptimeRequest) (*GetUptimeResponse, error)
GetRegistryStatus(context.Context, *GetRegistryStatusRequest) (*GetRegistryStatusResponse, error)
EnableModule(context.Context, *EnableModuleRequest) (*EnableModuleResponse, error)
DisableModule(context.Context, *DisableModuleRequest) (*DisableModuleResponse, error)
}
CoreServiceServer is the server API for CoreService
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct {
User *User `json:"user"`
}
type CreateWebhookRequest ¶
type CreateWebhookResponse ¶
type CreateWebhookResponse struct {
Webhook *WebhookInfo `json:"webhook"`
}
type DeleteUserRequest ¶
type DeleteUserRequest struct {
UserId string `json:"user_id"`
}
type DeleteUserResponse ¶
type DeleteUserResponse struct {
Success bool `json:"success"`
}
type DeleteWebhookRequest ¶
type DeleteWebhookRequest struct {
WebhookId string `json:"webhook_id"`
}
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
Success bool `json:"success"`
}
type DisableModuleRequest ¶
type DisableModuleRequest struct {
ModuleId string `json:"module_id"`
}
type DisableModuleResponse ¶
type DisableModuleResponse struct {
Success bool `json:"success"`
}
type DisableProxyRequest ¶
type DisableProxyRequest struct{}
type DisableProxyResponse ¶
type DisableProxyResponse struct {
Success bool `json:"success"`
}
type DisableWebhookRequest ¶
type DisableWebhookRequest struct {
WebhookId string `json:"webhook_id"`
}
type DisableWebhookResponse ¶
type DisableWebhookResponse struct {
Webhook *WebhookInfo `json:"webhook"`
}
type EnableModuleRequest ¶
type EnableModuleRequest struct {
ModuleId string `json:"module_id"`
}
type EnableModuleResponse ¶
type EnableModuleResponse struct {
Success bool `json:"success"`
}
type EnableProxyRequest ¶
type EnableProxyRequest struct{}
type EnableProxyResponse ¶
type EnableWebhookRequest ¶
type EnableWebhookRequest struct {
WebhookId string `json:"webhook_id"`
}
type EnableWebhookResponse ¶
type EnableWebhookResponse struct {
Webhook *WebhookInfo `json:"webhook"`
}
type EventSeverity ¶
type EventSeverity int32
const ( EventSeverityInfo EventSeverity = iota EventSeverityLow EventSeverityMedium EventSeverityHigh EventSeverityCritical )
type FindingSeverity ¶
type FindingSeverity int32
const ( FindingSeverity_UNKNOWN FindingSeverity = 0 FindingSeverity_INFO FindingSeverity = 1 FindingSeverity_LOW FindingSeverity = 2 FindingSeverity_MEDIUM FindingSeverity = 3 FindingSeverity_HIGH FindingSeverity = 4 FindingSeverity_CRITICAL FindingSeverity = 5 )
FindingSeverity values
const ( FindingSeverityInfo FindingSeverity = iota FindingSeverityLow FindingSeverityMedium FindingSeverityHigh FindingSeverityCritical )
type FrameworkStatus ¶
type FrameworkStatus struct {
Framework ComplianceStatus `json:"framework"`
Status ComplianceStatus `json:"status"`
Score float64 `json:"score"`
}
type GenerateCertificateResponse ¶
type GenerateCertificateResponse struct {
Success bool `json:"success"`
Certificate *CertificateInfo `json:"certificate"`
Error string `json:"error"`
}
type GenerateReportRequest ¶
type GenerateReportRequest struct {
Framework string `json:"framework"`
}
type GenerateReportResponse ¶
type GenerateReportResponse struct {
Id string `json:"id"`
Framework string `json:"framework"`
Timestamp int64 `json:"timestamp"`
Status ComplianceStatus `json:"status"`
Summary *ComplianceSummary `json:"summary"`
}
type GetAuthConfigRequest ¶
type GetAuthConfigRequest struct{}
type GetAuthConfigResponse ¶
type GetAuthConfigResponse struct {
SessionTimeout int32 `json:"session_timeout"`
MaxSessionsPerUser int32 `json:"max_sessions_per_user"`
RequireMfa bool `json:"require_mfa"`
LoginAttempts int32 `json:"login_attempts"`
LockoutDuration int32 `json:"lockout_duration"`
PasswordMinLength int32 `json:"password_min_length"`
}
type GetCertificatesRequest ¶
type GetCertificatesRequest struct{}
type GetCertificatesResponse ¶
type GetCertificatesResponse struct {
Certificates []*CertificateInfo `json:"certificates"`
}
type GetComplianceStatusRequest ¶
type GetComplianceStatusRequest struct{}
type GetComplianceStatusResponse ¶
type GetComplianceStatusResponse struct {
Overall ComplianceStatus `json:"overall"`
Frameworks []*FrameworkStatus `json:"frameworks"`
}
type GetFindingsRequest ¶
type GetFindingsRequest struct{}
type GetFindingsResponse ¶
type GetFindingsResponse struct {
Findings []*ComplianceFinding `json:"findings"`
}
type GetFrameworksResponse ¶
type GetFrameworksResponse struct {
Frameworks []*Framework `json:"frameworks"`
}
type GetHealthRequest ¶
type GetHealthRequest struct{}
type GetHealthResponse ¶
type GetHealthResponse struct {
Status string `json:"status"`
Checks []*HealthCheck `json:"checks"`
}
type GetMTLSConfigRequest ¶
type GetMTLSConfigRequest struct{}
type GetMTLSConfigResponse ¶
type GetMetricsRequest ¶
type GetMetricsRequest struct{}
type GetMetricsResponse ¶
type GetModuleRequest ¶
type GetModuleRequest struct {
ModuleId string `json:"module_id"`
}
type GetModuleResponse ¶
type GetModuleResponse struct {
Module *ModuleInfo `json:"module"`
}
type GetProxyConfigRequest ¶
type GetProxyConfigRequest struct{}
type GetProxyConfigResponse ¶
type GetProxyConfigResponse struct {
Enabled bool `json:"enabled"`
Host string `json:"host"`
Port int32 `json:"port"`
TlsEnabled bool `json:"tls_enabled"`
RateLimit int32 `json:"rate_limit"`
RateLimitBurst int32 `json:"rate_limit_burst"`
CorsEnabled bool `json:"cors_enabled"`
CorsOrigins []string `json:"cors_origins"`
}
type GetProxyHealthRequest ¶
type GetProxyHealthRequest struct{}
type GetProxyHealthResponse ¶
type GetProxyStatsResponse ¶
type GetProxyStatsResponse struct {
RequestsTotal int64 `json:"requests_total"`
RequestsBlocked int64 `json:"requests_blocked"`
RequestsAllowed int64 `json:"requests_allowed"`
BytesIn int64 `json:"bytes_in"`
BytesOut int64 `json:"bytes_out"`
ActiveConnections int32 `json:"active_connections"`
AvgLatencyMs float64 `json:"avg_latency_ms"`
P99LatencyMs float64 `json:"p99_latency_ms"`
Errors int64 `json:"errors"`
}
type GetRegistryStatusRequest ¶
type GetRegistryStatusRequest struct{}
type GetSIEMConfigResponse ¶
type GetSIEMEventsRequest ¶
type GetSIEMEventsRequest struct {
Limit int32 `json:"limit"`
}
type GetSIEMEventsResponse ¶
type GetSIEMEventsResponse struct {
Events []*SIEMEvent `json:"events"`
}
type GetSIEMStatsRequest ¶
type GetSIEMStatsRequest struct{}
type GetSIEMStatsResponse ¶
type GetSessionsRequest ¶
type GetSessionsRequest struct{}
type GetSessionsResponse ¶
type GetSessionsResponse struct {
Sessions []*Session `json:"sessions"`
}
type GetTLSConfigResponse ¶
type GetUptimeRequest ¶
type GetUptimeRequest struct{}
type GetUptimeResponse ¶
type GetUptimeResponse struct {
Uptime float64 `json:"uptime"`
}
type GetUserRequest ¶
type GetUserRequest struct {
UserId string `json:"user_id"`
}
type GetUserResponse ¶
type GetUserResponse struct {
User *User `json:"user"`
}
type GetVersionRequest ¶
type GetVersionRequest struct{}
type GetVersionResponse ¶
type GetViolationsRequest ¶
type GetViolationsRequest struct {
Severities []ViolationSeverity `json:"severities"`
Limit int32 `json:"limit"`
}
type GetViolationsResponse ¶
type GetViolationsResponse struct {
Violations []*Violation `json:"violations"`
}
type GetWebhookRequest ¶
type GetWebhookRequest struct {
WebhookId string `json:"webhook_id"`
}
type GetWebhookResponse ¶
type GetWebhookResponse struct {
Webhook *WebhookInfo `json:"webhook"`
}
type GetWebhookStatsRequest ¶
type GetWebhookStatsRequest struct{}
type GetWebhookStatsResponse ¶
type HealthCheck ¶
type IsProxyEnabledRequest ¶
type IsProxyEnabledRequest struct{}
type IsProxyEnabledResponse ¶
type IsProxyEnabledResponse struct {
Enabled bool `json:"enabled"`
}
type ListModulesResponse ¶
type ListModulesResponse struct {
Modules []*ModuleInfo `json:"modules"`
}
type ListUsersRequest ¶
type ListUsersRequest struct{}
type ListUsersResponse ¶
type ListUsersResponse struct {
Users []*User `json:"users"`
}
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
Webhooks []*WebhookInfo `json:"webhooks"`
}
type LoginRequest ¶
Auth Types
type LoginResponse ¶
type LogoutRequest ¶
type LogoutRequest struct {
Token string `json:"token"`
}
type LogoutResponse ¶
type ModuleInfo ¶
type ModuleStatus ¶
type ModuleStatus int32
const ( ModuleStatusUnknown ModuleStatus = iota ModuleStatusInitializing ModuleStatusRunning ModuleStatusStopped ModuleStatusError )
type ProxyService ¶
type ProxyService struct {
UnimplementedProxyServiceServer
// contains filtered or unexported fields
}
ProxyService implements the Proxy service
func NewProxyService ¶
func NewProxyService(server *proxy.Proxy, logger *slog.Logger) *ProxyService
NewProxyService creates a new proxy service
func (*ProxyService) ClearViolations ¶
func (s *ProxyService) ClearViolations(ctx context.Context, req *ClearViolationsRequest) (*ClearViolationsResponse, error)
ClearViolations clears proxy violations (placeholder)
func (*ProxyService) Disable ¶
func (s *ProxyService) Disable(ctx context.Context, req *DisableProxyRequest) (*DisableProxyResponse, error)
Disable disables the proxy
func (*ProxyService) Enable ¶
func (s *ProxyService) Enable(ctx context.Context, req *EnableProxyRequest) (*EnableProxyResponse, error)
Enable enables the proxy
func (*ProxyService) GetConfig ¶
func (s *ProxyService) GetConfig(ctx context.Context, req *GetProxyConfigRequest) (*GetProxyConfigResponse, error)
GetConfig returns proxy configuration
func (*ProxyService) GetHealth ¶
func (s *ProxyService) GetHealth(ctx context.Context, req *GetProxyHealthRequest) (*GetProxyHealthResponse, error)
GetHealth returns proxy health status
func (*ProxyService) GetStats ¶
func (s *ProxyService) GetStats(ctx context.Context, req *GetProxyStatsRequest) (*GetProxyStatsResponse, error)
GetStats returns proxy statistics
func (*ProxyService) GetViolations ¶
func (s *ProxyService) GetViolations(ctx context.Context, req *GetViolationsRequest) (*GetViolationsResponse, error)
GetViolations returns proxy violations (placeholder)
func (*ProxyService) IsEnabled ¶
func (s *ProxyService) IsEnabled(ctx context.Context, req *IsProxyEnabledRequest) (*IsProxyEnabledResponse, error)
IsEnabled checks if proxy is enabled
type ProxyServiceServer ¶
type ProxyServiceServer interface {
GetStats(context.Context, *GetProxyStatsRequest) (*GetProxyStatsResponse, error)
GetHealth(context.Context, *GetProxyHealthRequest) (*GetProxyHealthResponse, error)
GetConfig(context.Context, *GetProxyConfigRequest) (*GetProxyConfigResponse, error)
IsEnabled(context.Context, *IsProxyEnabledRequest) (*IsProxyEnabledResponse, error)
Enable(context.Context, *EnableProxyRequest) (*EnableProxyResponse, error)
Disable(context.Context, *DisableProxyRequest) (*DisableProxyResponse, error)
GetViolations(context.Context, *GetViolationsRequest) (*GetViolationsResponse, error)
ClearViolations(context.Context, *ClearViolationsRequest) (*ClearViolationsResponse, error)
}
ProxyServiceServer is the server API for ProxyService
type RunComplianceCheckRequest ¶
type RunComplianceCheckRequest struct {
Framework string `json:"framework"`
}
type RunComplianceCheckResponse ¶
type RunComplianceCheckResponse struct {
Id string `json:"id"`
Framework string `json:"framework"`
Status ComplianceStatus `json:"status"`
Summary *ComplianceSummary `json:"summary"`
}
type SIEMService ¶
type SIEMService struct {
UnimplementedSIEMServiceServer
// contains filtered or unexported fields
}
SIEMService implements the SIEM service
func NewSIEMService ¶
func NewSIEMService(logger *slog.Logger) *SIEMService
NewSIEMService creates a new SIEM service
func (*SIEMService) GetConfig ¶
func (s *SIEMService) GetConfig(ctx context.Context, req *GetSIEMConfigRequest) (*GetSIEMConfigResponse, error)
GetConfig returns SIEM configuration
func (*SIEMService) GetEvents ¶
func (s *SIEMService) GetEvents(ctx context.Context, req *GetSIEMEventsRequest) (*GetSIEMEventsResponse, error)
GetEvents returns SIEM events
func (*SIEMService) GetStats ¶
func (s *SIEMService) GetStats(ctx context.Context, req *GetSIEMStatsRequest) (*GetSIEMStatsResponse, error)
GetStats returns SIEM statistics
func (*SIEMService) SendEvent ¶
func (s *SIEMService) SendEvent(ctx context.Context, req *SendSIEMEventRequest) (*SendSIEMEventResponse, error)
SendEvent sends an event to SIEM
func (*SIEMService) TestConnection ¶
func (s *SIEMService) TestConnection(ctx context.Context, req *TestSIEMConnectionRequest) (*TestSIEMConnectionResponse, error)
TestConnection tests SIEM connection
type SIEMServiceServer ¶
type SIEMServiceServer interface {
GetConfig(context.Context, *GetSIEMConfigRequest) (*GetSIEMConfigResponse, error)
GetStats(context.Context, *GetSIEMStatsRequest) (*GetSIEMStatsResponse, error)
GetEvents(context.Context, *GetSIEMEventsRequest) (*GetSIEMEventsResponse, error)
SendEvent(context.Context, *SendSIEMEventRequest) (*SendSIEMEventResponse, error)
TestConnection(context.Context, *TestSIEMConnectionRequest) (*TestSIEMConnectionResponse, error)
}
SIEMServiceServer is the server API for SIEMService
type SendSIEMEventRequest ¶
type SendSIEMEventResponse ¶
type TLSSvc ¶
type TLSSvc struct {
UnimplementedTLSSvcServer
// contains filtered or unexported fields
}
TLSSvc implements the TLS service
func (*TLSSvc) GenerateCertificate ¶
func (s *TLSSvc) GenerateCertificate(ctx context.Context, req *GenerateCertificateRequest) (*GenerateCertificateResponse, error)
GenerateCertificate generates a new certificate
func (*TLSSvc) GetCertificates ¶
func (s *TLSSvc) GetCertificates(ctx context.Context, req *GetCertificatesRequest) (*GetCertificatesResponse, error)
GetCertificates returns all certificates
func (*TLSSvc) GetConfig ¶
func (s *TLSSvc) GetConfig(ctx context.Context, req *GetTLSConfigRequest) (*GetTLSConfigResponse, error)
GetConfig returns TLS configuration
func (*TLSSvc) GetMTLSConfig ¶
func (s *TLSSvc) GetMTLSConfig(ctx context.Context, req *GetMTLSConfigRequest) (*GetMTLSConfigResponse, error)
GetMTLSConfig returns mTLS configuration
type TLSSvcServer ¶
type TLSSvcServer interface {
GetConfig(context.Context, *GetTLSConfigRequest) (*GetTLSConfigResponse, error)
GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error)
GenerateCertificate(context.Context, *GenerateCertificateRequest) (*GenerateCertificateResponse, error)
GetMTLSConfig(context.Context, *GetMTLSConfigRequest) (*GetMTLSConfigResponse, error)
}
TLSSvcServer is the server API for TLSSvc
type TestSIEMConnectionRequest ¶
type TestSIEMConnectionRequest struct {
Platform string `json:"platform"`
}
type TestWebhookRequest ¶
type TestWebhookRequest struct {
WebhookId string `json:"webhook_id"`
}
type TestWebhookResponse ¶
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct{}
func (*UnimplementedAuthServiceServer) CreateUser ¶
func (*UnimplementedAuthServiceServer) CreateUser(ctx context.Context, req *CreateUserRequest) (*CreateUserResponse, error)
func (*UnimplementedAuthServiceServer) DeleteUser ¶
func (*UnimplementedAuthServiceServer) DeleteUser(ctx context.Context, req *DeleteUserRequest) (*DeleteUserResponse, error)
func (*UnimplementedAuthServiceServer) GetAuthConfig ¶
func (*UnimplementedAuthServiceServer) GetAuthConfig(ctx context.Context, req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
func (*UnimplementedAuthServiceServer) GetSessions ¶
func (*UnimplementedAuthServiceServer) GetSessions(ctx context.Context, req *GetSessionsRequest) (*GetSessionsResponse, error)
func (*UnimplementedAuthServiceServer) GetUser ¶
func (*UnimplementedAuthServiceServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
func (*UnimplementedAuthServiceServer) ListUsers ¶
func (*UnimplementedAuthServiceServer) ListUsers(ctx context.Context, req *ListUsersRequest) (*ListUsersResponse, error)
func (*UnimplementedAuthServiceServer) Login ¶
func (*UnimplementedAuthServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (*UnimplementedAuthServiceServer) Logout ¶
func (*UnimplementedAuthServiceServer) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
func (*UnimplementedAuthServiceServer) UpdateUser ¶
func (*UnimplementedAuthServiceServer) UpdateUser(ctx context.Context, req *UpdateUserRequest) (*UpdateUserResponse, error)
func (*UnimplementedAuthServiceServer) ValidateToken ¶
func (*UnimplementedAuthServiceServer) ValidateToken(ctx context.Context, req *ValidateTokenRequest) (*ValidateTokenResponse, error)
type UnimplementedComplianceServiceServer ¶
type UnimplementedComplianceServiceServer struct{}
func (*UnimplementedComplianceServiceServer) GenerateReport ¶
func (*UnimplementedComplianceServiceServer) GenerateReport(ctx context.Context, req *GenerateReportRequest) (*GenerateReportResponse, error)
func (*UnimplementedComplianceServiceServer) GetFindings ¶
func (*UnimplementedComplianceServiceServer) GetFindings(ctx context.Context, req *GetFindingsRequest) (*GetFindingsResponse, error)
func (*UnimplementedComplianceServiceServer) GetFrameworks ¶
func (*UnimplementedComplianceServiceServer) GetFrameworks(ctx context.Context, req *GetFrameworksRequest) (*GetFrameworksResponse, error)
func (*UnimplementedComplianceServiceServer) GetStatus ¶
func (*UnimplementedComplianceServiceServer) GetStatus(ctx context.Context, req *GetComplianceStatusRequest) (*GetComplianceStatusResponse, error)
func (*UnimplementedComplianceServiceServer) RunCheck ¶
func (*UnimplementedComplianceServiceServer) RunCheck(ctx context.Context, req *RunComplianceCheckRequest) (*RunComplianceCheckResponse, error)
type UnimplementedCoreServiceServer ¶
type UnimplementedCoreServiceServer struct{}
func (*UnimplementedCoreServiceServer) DisableModule ¶
func (*UnimplementedCoreServiceServer) DisableModule(ctx context.Context, req *DisableModuleRequest) (*DisableModuleResponse, error)
func (*UnimplementedCoreServiceServer) EnableModule ¶
func (*UnimplementedCoreServiceServer) EnableModule(ctx context.Context, req *EnableModuleRequest) (*EnableModuleResponse, error)
func (*UnimplementedCoreServiceServer) GetHealth ¶
func (*UnimplementedCoreServiceServer) GetHealth(ctx context.Context, req *GetHealthRequest) (*GetHealthResponse, error)
func (*UnimplementedCoreServiceServer) GetMetrics ¶
func (*UnimplementedCoreServiceServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error)
func (*UnimplementedCoreServiceServer) GetModule ¶
func (*UnimplementedCoreServiceServer) GetModule(ctx context.Context, req *GetModuleRequest) (*GetModuleResponse, error)
func (*UnimplementedCoreServiceServer) GetRegistryStatus ¶
func (*UnimplementedCoreServiceServer) GetRegistryStatus(ctx context.Context, req *GetRegistryStatusRequest) (*GetRegistryStatusResponse, error)
func (*UnimplementedCoreServiceServer) GetUptime ¶
func (*UnimplementedCoreServiceServer) GetUptime(ctx context.Context, req *GetUptimeRequest) (*GetUptimeResponse, error)
func (*UnimplementedCoreServiceServer) GetVersion ¶
func (*UnimplementedCoreServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error)
func (*UnimplementedCoreServiceServer) ListModules ¶
func (*UnimplementedCoreServiceServer) ListModules(ctx context.Context, req *ListModulesRequest) (*ListModulesResponse, error)
type UnimplementedProxyServiceServer ¶
type UnimplementedProxyServiceServer struct{}
func (*UnimplementedProxyServiceServer) ClearViolations ¶
func (*UnimplementedProxyServiceServer) ClearViolations(ctx context.Context, req *ClearViolationsRequest) (*ClearViolationsResponse, error)
func (*UnimplementedProxyServiceServer) Disable ¶
func (*UnimplementedProxyServiceServer) Disable(ctx context.Context, req *DisableProxyRequest) (*DisableProxyResponse, error)
func (*UnimplementedProxyServiceServer) Enable ¶
func (*UnimplementedProxyServiceServer) Enable(ctx context.Context, req *EnableProxyRequest) (*EnableProxyResponse, error)
func (*UnimplementedProxyServiceServer) GetConfig ¶
func (*UnimplementedProxyServiceServer) GetConfig(ctx context.Context, req *GetProxyConfigRequest) (*GetProxyConfigResponse, error)
func (*UnimplementedProxyServiceServer) GetHealth ¶
func (*UnimplementedProxyServiceServer) GetHealth(ctx context.Context, req *GetProxyHealthRequest) (*GetProxyHealthResponse, error)
func (*UnimplementedProxyServiceServer) GetStats ¶
func (*UnimplementedProxyServiceServer) GetStats(ctx context.Context, req *GetProxyStatsRequest) (*GetProxyStatsResponse, error)
func (*UnimplementedProxyServiceServer) GetViolations ¶
func (*UnimplementedProxyServiceServer) GetViolations(ctx context.Context, req *GetViolationsRequest) (*GetViolationsResponse, error)
func (*UnimplementedProxyServiceServer) IsEnabled ¶
func (*UnimplementedProxyServiceServer) IsEnabled(ctx context.Context, req *IsProxyEnabledRequest) (*IsProxyEnabledResponse, error)
type UnimplementedSIEMServiceServer ¶
type UnimplementedSIEMServiceServer struct{}
func (*UnimplementedSIEMServiceServer) GetConfig ¶
func (*UnimplementedSIEMServiceServer) GetConfig(ctx context.Context, req *GetSIEMConfigRequest) (*GetSIEMConfigResponse, error)
func (*UnimplementedSIEMServiceServer) GetEvents ¶
func (*UnimplementedSIEMServiceServer) GetEvents(ctx context.Context, req *GetSIEMEventsRequest) (*GetSIEMEventsResponse, error)
func (*UnimplementedSIEMServiceServer) GetStats ¶
func (*UnimplementedSIEMServiceServer) GetStats(ctx context.Context, req *GetSIEMStatsRequest) (*GetSIEMStatsResponse, error)
func (*UnimplementedSIEMServiceServer) SendEvent ¶
func (*UnimplementedSIEMServiceServer) SendEvent(ctx context.Context, req *SendSIEMEventRequest) (*SendSIEMEventResponse, error)
func (*UnimplementedSIEMServiceServer) TestConnection ¶
func (*UnimplementedSIEMServiceServer) TestConnection(ctx context.Context, req *TestSIEMConnectionRequest) (*TestSIEMConnectionResponse, error)
type UnimplementedTLSSvcServer ¶
type UnimplementedTLSSvcServer struct{}
func (*UnimplementedTLSSvcServer) GenerateCertificate ¶
func (*UnimplementedTLSSvcServer) GenerateCertificate(ctx context.Context, req *GenerateCertificateRequest) (*GenerateCertificateResponse, error)
func (*UnimplementedTLSSvcServer) GetCertificates ¶
func (*UnimplementedTLSSvcServer) GetCertificates(ctx context.Context, req *GetCertificatesRequest) (*GetCertificatesResponse, error)
func (*UnimplementedTLSSvcServer) GetConfig ¶
func (*UnimplementedTLSSvcServer) GetConfig(ctx context.Context, req *GetTLSConfigRequest) (*GetTLSConfigResponse, error)
func (*UnimplementedTLSSvcServer) GetMTLSConfig ¶
func (*UnimplementedTLSSvcServer) GetMTLSConfig(ctx context.Context, req *GetMTLSConfigRequest) (*GetMTLSConfigResponse, error)
type UnimplementedWebhookServiceServer ¶
type UnimplementedWebhookServiceServer struct{}
func (*UnimplementedWebhookServiceServer) CreateWebhook ¶
func (*UnimplementedWebhookServiceServer) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (*CreateWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) DeleteWebhook ¶
func (*UnimplementedWebhookServiceServer) DeleteWebhook(ctx context.Context, req *DeleteWebhookRequest) (*DeleteWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) DisableWebhook ¶
func (*UnimplementedWebhookServiceServer) DisableWebhook(ctx context.Context, req *DisableWebhookRequest) (*DisableWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) EnableWebhook ¶
func (*UnimplementedWebhookServiceServer) EnableWebhook(ctx context.Context, req *EnableWebhookRequest) (*EnableWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) GetStats ¶
func (*UnimplementedWebhookServiceServer) GetStats(ctx context.Context, req *GetWebhookStatsRequest) (*GetWebhookStatsResponse, error)
func (*UnimplementedWebhookServiceServer) GetWebhook ¶
func (*UnimplementedWebhookServiceServer) GetWebhook(ctx context.Context, req *GetWebhookRequest) (*GetWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) ListWebhooks ¶
func (*UnimplementedWebhookServiceServer) ListWebhooks(ctx context.Context, req *ListWebhooksRequest) (*ListWebhooksResponse, error)
func (*UnimplementedWebhookServiceServer) TestWebhook ¶
func (*UnimplementedWebhookServiceServer) TestWebhook(ctx context.Context, req *TestWebhookRequest) (*TestWebhookResponse, error)
func (*UnimplementedWebhookServiceServer) UpdateWebhook ¶
func (*UnimplementedWebhookServiceServer) UpdateWebhook(ctx context.Context, req *UpdateWebhookRequest) (*UpdateWebhookResponse, error)
type UpdateUserRequest ¶
type UpdateUserResponse ¶
type UpdateUserResponse struct {
User *User `json:"user"`
}
type UpdateWebhookRequest ¶
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct {
Webhook *WebhookInfo `json:"webhook"`
}
type ValidateTokenRequest ¶
type ValidateTokenRequest struct {
Token string `json:"token"`
}
type ValidateTokenResponse ¶
type Violation ¶
type Violation struct {
Id string `json:"id"`
Type ViolationType `json:"type"`
Severity ViolationSeverity `json:"severity"`
Message string `json:"message"`
ClientIp string `json:"client_ip"`
Method string `json:"method"`
Path string `json:"path"`
Blocked bool `json:"blocked"`
Timestamp int64 `json:"timestamp"`
}
type ViolationSeverity ¶
type ViolationSeverity int32
const ( ViolationSeverityInfo ViolationSeverity = iota ViolationSeverityLow ViolationSeverityMedium ViolationSeverityHigh ViolationSeverityCritical )
type ViolationType ¶
type ViolationType int32
const ( ViolationTypeUnknown ViolationType = iota ViolationTypeMaliciousRequest ViolationTypeSQLInjection ViolationTypeXSS ViolationTypeCSRF ViolationTypePathTraversal ViolationTypeCommandInjection ViolationTypeAtlasTechnique ViolationTypeCustomPattern )
type WebhookInfo ¶
type WebhookService ¶
type WebhookService struct {
UnimplementedWebhookServiceServer
// contains filtered or unexported fields
}
WebhookService implements the Webhook service
func NewWebhookService ¶
func NewWebhookService(logger *slog.Logger) *WebhookService
NewWebhookService creates a new webhook service
func (*WebhookService) CreateWebhook ¶
func (s *WebhookService) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (*CreateWebhookResponse, error)
CreateWebhook creates a new webhook
func (*WebhookService) DeleteWebhook ¶
func (s *WebhookService) DeleteWebhook(ctx context.Context, req *DeleteWebhookRequest) (*DeleteWebhookResponse, error)
DeleteWebhook deletes a webhook
func (*WebhookService) DisableWebhook ¶
func (s *WebhookService) DisableWebhook(ctx context.Context, req *DisableWebhookRequest) (*DisableWebhookResponse, error)
DisableWebhook disables a webhook
func (*WebhookService) EnableWebhook ¶
func (s *WebhookService) EnableWebhook(ctx context.Context, req *EnableWebhookRequest) (*EnableWebhookResponse, error)
EnableWebhook enables a webhook
func (*WebhookService) GetStats ¶
func (s *WebhookService) GetStats(ctx context.Context, req *GetWebhookStatsRequest) (*GetWebhookStatsResponse, error)
GetStats returns webhook statistics
func (*WebhookService) GetWebhook ¶
func (s *WebhookService) GetWebhook(ctx context.Context, req *GetWebhookRequest) (*GetWebhookResponse, error)
GetWebhook gets a webhook by ID
func (*WebhookService) ListWebhooks ¶
func (s *WebhookService) ListWebhooks(ctx context.Context, req *ListWebhooksRequest) (*ListWebhooksResponse, error)
ListWebhooks lists all webhooks
func (*WebhookService) TestWebhook ¶
func (s *WebhookService) TestWebhook(ctx context.Context, req *TestWebhookRequest) (*TestWebhookResponse, error)
TestWebhook tests a webhook
func (*WebhookService) UpdateWebhook ¶
func (s *WebhookService) UpdateWebhook(ctx context.Context, req *UpdateWebhookRequest) (*UpdateWebhookResponse, error)
UpdateWebhook updates a webhook
type WebhookServiceServer ¶
type WebhookServiceServer interface {
ListWebhooks(context.Context, *ListWebhooksRequest) (*ListWebhooksResponse, error)
GetWebhook(context.Context, *GetWebhookRequest) (*GetWebhookResponse, error)
CreateWebhook(context.Context, *CreateWebhookRequest) (*CreateWebhookResponse, error)
UpdateWebhook(context.Context, *UpdateWebhookRequest) (*UpdateWebhookResponse, error)
DeleteWebhook(context.Context, *DeleteWebhookRequest) (*DeleteWebhookResponse, error)
EnableWebhook(context.Context, *EnableWebhookRequest) (*EnableWebhookResponse, error)
DisableWebhook(context.Context, *DisableWebhookRequest) (*DisableWebhookResponse, error)
TestWebhook(context.Context, *TestWebhookRequest) (*TestWebhookResponse, error)
GetStats(context.Context, *GetWebhookStatsRequest) (*GetWebhookStatsResponse, error)
}
WebhookServiceServer is the server API for WebhookService