Documentation
¶
Overview ¶
Package audit implements security and compliance scanning for cloop projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountsByLevel ¶
CountsByLevel returns pass, warn, fail counts from a slice of findings.
func Leaks ¶ added in v0.0.5
Leaks returns the names of the pkg/redact detectors that match text, in registry order: exactly the scan the git-history and task-artifact checks run, exported so tests/security holds this scanner to the same fixture corpus as the three that redact.
func ScannerLines ¶
ScannerLines is a helper that iterates lines of text via a Scanner. (Kept for potential future use by callers.)
Types ¶
type Finding ¶
type Finding struct {
Name string
Level Level
Message string
Fix string // optional remediation hint
}
Finding is a single audit result.
type Options ¶
type Options struct {
// SnapshotSizeThresholdMB is the threshold in MiB above which the snapshot
// directory triggers a warning. Defaults to 50.
SnapshotSizeThresholdMB int64
}
Options configures the audit run.
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns Options with sensible defaults.
Click to show internal directories.
Click to hide internal directories.