Versions in this module Expand all Collapse all v0 v0.1.0 Aug 16, 2026 Changes in this version + type AIAnalysis struct + ConfidenceScore float64 + Explanation string + ExploitScenario string + Recommendations []string + RiskAssessment string + type DataFlowStep struct + Column int + File string + Line int + Snippet string + StepType string + type Finding struct + Category string + CodeSnippet string + Confidence float64 + FilePath string + Line int + Remediation string + RuleID string + Severity Severity + Title string + type Fix struct + After string + Before string + Kind FixKind + Replacement string + Summary string + type FixKind string + const FixGuidance + const FixSafeReplace + type References struct + CVE []string + CWE []string + OWASP []string + URLs []string + func (r *References) Scan(value interface{}) error + func (r References) Value() (driver.Value, error) + type RepoSettings struct + AutoScanEnabled bool + DisabledRules []string + EnabledRules []string + ExcludedPaths []string + FailPROnCritical bool + FailPROnHigh bool + NotifyOnCritical bool + NotifyOnHigh bool + ProtectedBranches []string + ScanOnPR bool + ScanOnPush bool + func (s *RepoSettings) Scan(value interface{}) error + func (s RepoSettings) Value() (driver.Value, error) + type Repository struct + CloneURL string + CreatedAt time.Time + DefaultBranch string + Description string + FullName string + ID uuid.UUID + Language string + LastScanAt *time.Time + LastScanID *uuid.UUID + Name string + Private bool + Provider RepositoryProvider + Settings RepoSettings + TotalScans int + URL string + UpdatedAt time.Time + WebhookID *string + WebhookSecret *string + func NewRepository(repoURL string) (*Repository, error) + func (r *Repository) Owner() string + func (r *Repository) RepoName() string + func (r *Repository) UpdateLastScan(scanID uuid.UUID) + type RepositoryCreateRequest struct + AccessToken string + DefaultBranch string + Private bool + URL string + type RepositoryFilter struct + Limit int + Name string + Offset int + Private *bool + Provider RepositoryProvider + type RepositoryProvider string + const ProviderBitbucket + const ProviderGeneric + const ProviderGitHub + const ProviderGitLab + type RepositoryStats struct + CriticalCount int + HighCount int + LastScanAt *time.Time + LowCount int + MediumCount int + RepositoryID uuid.UUID + ResolvedCount int + TotalScans int + TotalVulns int + TrendDirection string + type RepositoryUpdateRequest struct + DefaultBranch *string + Description *string + Settings *RepoSettings + type Scan struct + Branch string + CommitSHA string + CompletedAt *time.Time + CreatedAt time.Time + Duration *int64 + ErrorMessage *string + FilesScanned int + ID uuid.UUID + LinesScanned int + Metadata ScanMetadata + PRNumber *int + RepositoryID uuid.UUID + StartedAt *time.Time + Status ScanStatus + Trigger ScanTrigger + Type ScanType + UpdatedAt time.Time + func NewScan(repoID uuid.UUID, scanType ScanType, trigger ScanTrigger) *Scan + func (s *Scan) Cancel() + func (s *Scan) Complete(filesScanned, linesScanned int) + func (s *Scan) Fail(errMsg string) + func (s *Scan) IsFinished() bool + func (s *Scan) Start() + type ScanDelta struct + BaselineScanID *uuid.UUID + New []Vulnerability + Resolved []Vulnerability + ScanID uuid.UUID + Unchanged int + type ScanListFilter struct + Branch string + FromDate *time.Time + Limit int + Offset int + RepositoryID *uuid.UUID + Status *ScanStatus + ToDate *time.Time + Type *ScanType + type ScanMetadata struct + EnabledRules []string + ExcludedPaths []string + Languages []string + ScanOptions map[string]string + TriggerInfo TriggerInfo + func (m *ScanMetadata) Scan(value interface{}) error + func (m ScanMetadata) Value() (driver.Value, error) + type ScanProgress struct + CurrentFile string + FilesProcessed int + Message string + Phase string + Progress float64 + ScanID uuid.UUID + Status ScanStatus + TotalFiles int + type ScanRequest struct + Branch string + CommitSHA string + Options map[string]string + RepositoryURL string + ScanType ScanType + type ScanResponse struct + Message string + ScanID uuid.UUID + Status ScanStatus + type ScanStatus string + const ScanStatusCancelled + const ScanStatusCompleted + const ScanStatusFailed + const ScanStatusPending + const ScanStatusRunning + type ScanSummary struct + Critical int + Duration int64 + FilesScanned int + High int + Info int + LinesScanned int + Low int + Medium int + ScanID uuid.UUID + TotalVulnerabilities int + type ScanTrigger string + const ScanTriggerCLI + const ScanTriggerManual + const ScanTriggerSchedule + const ScanTriggerWebhook + type ScanType string + const ScanTypeFull + const ScanTypeIncremental + const ScanTypeManual + const ScanTypePR + type Severity string + const SeverityCritical + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium + func (s Severity) Weight() int + type TriggerInfo struct + ScheduleID string + UserID string + Username string + WebhookID string + type VulnMetadata struct + AIAnalysis *AIAnalysis + CustomFields map[string]string + DataFlow []DataFlowStep + Framework string + Function string + Language string + Tags []string + func (m *VulnMetadata) Scan(value interface{}) error + func (m VulnMetadata) Value() (driver.Value, error) + type Vulnerability struct + CVSSScore float64 + CVSSVector string + Category VulnerabilityCategory + CodeSnippet string + ColumnEnd *int + ColumnStart *int + Confidence float64 + CreatedAt time.Time + Description string + FalsePositive bool + FilePath string + Fingerprint string + Fix *Fix + ID uuid.UUID + LineEnd int + LineStart int + Metadata VulnMetadata + References References + Remediation string + RuleID string + ScanID uuid.UUID + Severity Severity + Suppressed bool + Title string + func NewVulnerability(scanID uuid.UUID, ruleID, title string, severity Severity) *Vulnerability + func (v *Vulnerability) ToFinding() Finding + type VulnerabilityCategory string + const CategoryAuthentication + const CategoryAuthorization + const CategoryCodeQuality + const CategoryConfiguration + const CategoryCryptography + const CategoryDependency + const CategoryInjection + const CategoryOther + const CategorySecrets + const CategoryXSS + type VulnerabilityFilter struct + Category *VulnerabilityCategory + FalsePositive *bool + FilePath string + Limit int + MinConfidence *float64 + Offset int + RuleID string + ScanID *uuid.UUID + Severity *Severity + Suppressed *bool + type VulnerabilityStats struct + AverageConfidence float64 + ByCategory map[VulnerabilityCategory]int + ByRule map[string]int + BySeverity map[Severity]int + FalsePositives int + Suppressed int + TotalCount int + type VulnerabilityUpdate struct + FalsePositive *bool + Notes *string + Suppressed *bool + type WebhookConfig struct + Active bool + Events []string + RepositoryID uuid.UUID + Secret string + WebhookURL string