Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetailJSON ¶
DetailJSON is a helper to create a JSON detail string from a map.
Types ¶
type Entry ¶
type Entry struct {
ID int64 `json:"id"`
Timestamp time.Time `json:"timestamp"`
Actor string `json:"actor"`
Action string `json:"action"`
Resource string `json:"resource"`
Detail string `json:"detail"`
Outcome string `json:"outcome"`
}
Entry is a single audit log record.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log provides append-only audit logging backed by SQLite.
type Summary ¶
type Summary struct {
TotalEntries int `json:"total_entries"`
ActionCounts map[string]int `json:"action_counts"`
OutcomeCounts map[string]int `json:"outcome_counts"`
UniqueActors int `json:"unique_actors"`
UniqueResources int `json:"unique_resources"`
}
Summary is an aggregated view of audit activity.
Click to show internal directories.
Click to hide internal directories.