Documentation
¶
Overview ¶
Package audit provides JSONL action logging for session delete operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteActionLog ¶
func WriteActionLog(logFile string, rec ActionRecord) error
WriteActionLog appends a single JSON line action record to the log file.
Types ¶
type ActionRecord ¶
type ActionRecord struct {
Timestamp time.Time `json:"timestamp"`
Action string `json:"action"`
Simulation bool `json:"simulation"`
Selector session.Selector `json:"selector"`
MatchedCount int `json:"matched_count"`
AffectedBytes int64 `json:"affected_bytes"`
Sessions []SessionRef `json:"sessions"`
Results []session.DeleteResult `json:"results"`
ErrorSummary string `json:"error_summary,omitempty"`
}
ActionRecord is one JSONL audit record for a delete command invocation.
type SessionRef ¶
SessionRef records a stable pointer to a session target for audit.
Click to show internal directories.
Click to hide internal directories.