Documentation
¶
Overview ¶
Package audit writes and reads the append-only JSONL log of every install check installwall has run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append writes one entry to the log, creating the state directory and file if needed. It never fails the caller's install: write errors are returned so the caller can decide, but installwall only logs them.
Types ¶
type Entry ¶
type Entry struct {
Time time.Time `json:"time"`
Tool string `json:"tool"`
Ecosystem string `json:"ecosystem"`
Package string `json:"package"`
Level string `json:"level"`
Reasons []string `json:"reasons,omitempty"`
Forced bool `json:"forced,omitempty"`
}
Entry is one line of the audit log.
Click to show internal directories.
Click to hide internal directories.