Versions in this module Expand all Collapse all v0 v0.2.0 Apr 23, 2026 Changes in this version + type CreateRuleInput struct + Conditions accesscontrol.AssignmentConditions + Description string + Name string + Options accesscontrol.AssignmentOptions + Priority int + TargetGroupID string + TenantID string + type Engine struct + func NewEngine(acRepo accesscontrol.Repository, log *logger.Logger) *Engine + func (e *Engine) EvaluateRules(ctx context.Context, tenantID shared.ID, finding *vulnerability.Finding) ([]Result, error) + func (e *Engine) MatchesConditions(conds accesscontrol.AssignmentConditions, finding *vulnerability.Finding, ...) bool + type ListRulesInput struct + IsActive *bool + Limit int + Offset int + OrderBy string + OrderDesc bool + Search string + TargetGroupID *string + TenantID string + type ListRulesOutput struct + Rules []*accesscontrol.AssignmentRule + TotalCount int64 + type Result struct + GroupID shared.ID + Options accesscontrol.AssignmentOptions + RuleID shared.ID + type RuleService struct + func NewRuleService(acRepo accesscontrol.Repository, groupRepo group.Repository, ...) *RuleService + func (s *RuleService) CreateRule(ctx context.Context, input CreateRuleInput, createdBy string) (*accesscontrol.AssignmentRule, error) + func (s *RuleService) DeleteRule(ctx context.Context, tenantIDStr, ruleID string) error + func (s *RuleService) GetRule(ctx context.Context, tenantIDStr, ruleID string) (*accesscontrol.AssignmentRule, error) + func (s *RuleService) ListRules(ctx context.Context, input ListRulesInput) (*ListRulesOutput, error) + func (s *RuleService) SetAssignmentEngine(engine *Engine) + func (s *RuleService) SetFindingRepository(repo vulnerability.FindingRepository) + func (s *RuleService) TestRule(ctx context.Context, tenantIDStr, ruleID string) (*TestRuleResult, error) + func (s *RuleService) UpdateRule(ctx context.Context, tenantIDStr, ruleID string, input UpdateRuleInput) (*accesscontrol.AssignmentRule, error) + type TestRuleFindingSummary struct + ID string + Message string + Severity string + Source string + ToolName string + type TestRuleResult struct + MatchingFindings int64 + RuleID string + RuleName string + SampleFindings []TestRuleFindingSummary + TargetGroupID string + type UpdateRuleInput struct + Conditions *accesscontrol.AssignmentConditions + Description *string + IsActive *bool + Name *string + Options *accesscontrol.AssignmentOptions + Priority *int + TargetGroupID *string