scanning

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEntry

type AuditEntry struct {
	Timestamp time.Time `json:"timestamp"`
	Action    string    `json:"action"`
	Scanner   string    `json:"scanner"`
	RuleID    string    `json:"rule_id"`
	Allowed   bool      `json:"allowed"`
	Details   string    `json:"details"`
	Forensic  string    `json:"forensic,omitempty"`
}

type AuditLog

type AuditLog struct {
	// contains filtered or unexported fields
}

func NewAuditLog

func NewAuditLog() *AuditLog

func (*AuditLog) GetBlocked

func (a *AuditLog) GetBlocked() []AuditEntry

func (*AuditLog) GetByRule

func (a *AuditLog) GetByRule(ruleID string) []AuditEntry

func (*AuditLog) GetByScanner

func (a *AuditLog) GetByScanner(scanner string) []AuditEntry

func (*AuditLog) GetLast

func (a *AuditLog) GetLast(n int) []AuditEntry

func (*AuditLog) Record

func (a *AuditLog) Record(entry AuditEntry)

type ScanResult

type ScanResult struct {
	Allowed    bool      `json:"allowed"`
	Findings   []string  `json:"findings,omitempty"`
	Severity   int       `json:"severity"`
	Redacted   string    `json:"redacted,omitempty"`
	ScannedAt  time.Time `json:"scanned_at"`
	ScanTimeNs int64     `json:"scan_time_ns"`
}

type StreamingScanner

type StreamingScanner struct {
	// contains filtered or unexported fields
}

func NewStreamingScanner

func NewStreamingScanner(overlapSize int) *StreamingScanner

func (*StreamingScanner) GetFindings

func (s *StreamingScanner) GetFindings() []string

func (*StreamingScanner) Reset

func (s *StreamingScanner) Reset()

func (*StreamingScanner) ScanChunk

func (s *StreamingScanner) ScanChunk(chunk string) *ScanResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL