package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Apr 11, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package audit provides shared, append-only audit logging stored as YAML.
Append adds an entry to the audit log in the given directory.
If the audit file does not exist, it is created.
type Entry struct {
Timestamp time.Time `yaml:"timestamp"`
Action string `yaml:"action"`
Details string `yaml:"details"`
Metadata map[string]string `yaml:"metadata,omitempty"`
}
Entry represents a single audit log entry.
Load reads all audit entries from the given directory.
Returns an empty slice (not an error) if the audit file does not exist.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.