Documentation
¶
Overview ¶
Package audit provides append-only JSONL audit logging for canvas-cli mutations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
Auditor writes AuditEvent records to a local JSONL file.
func NewAuditor ¶
NewAuditor creates an Auditor that writes to path when enabled is true.
func (*Auditor) WriteEvent ¶
func (a *Auditor) WriteEvent(event *canvas.AuditEvent) error
WriteEvent appends a single JSONL line to the audit log file.
Click to show internal directories.
Click to hide internal directories.