MCPcopy Create free account
hub / github.com/astercloud/aster / Detect

Method Detect

pkg/security/pii_detector.go:22–22  ·  view source on GitHub ↗

Detect 检测文本中的所有 PII。

(ctx context.Context, text string)

Source from the content-addressed store, hash-verified

20type PIIDetector interface {
21 // Detect 检测文本中的所有 PII。
22 Detect(ctx context.Context, text string) ([]PIIMatch, error)
23
24 // DetectTypes 检测指定类型的 PII。
25 DetectTypes(ctx context.Context, text string, types ...PIIType) ([]PIIMatch, error)

Callers 8

RedactMethod · 0.65
RedactWithReportMethod · 0.65
RedactMethod · 0.65
RedactWithMaskingMethod · 0.65
AnalyzeAndRedactMethod · 0.65
DetectMethod · 0.65
AnalyzePIIFunction · 0.65
redactWithTrackingMethod · 0.65

Implementers 2

RegexPIIDetectorpkg/security/pii_detector.go
CompositePIIDetectorpkg/security/pii_detector.go

Calls

no outgoing calls

Tested by

no test coverage detected