Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitPayloadRecords ¶
SplitPayloadRecords splits a payload into newline-delimited records. Empty or whitespace-only lines are discarded.
func WriteState ¶
WriteState writes listener metadata atomically.
Types ¶
type Paths ¶
type Paths struct {
BaseDir string `json:"base_dir"`
EventsFile string `json:"events_file"`
ListenerStateFile string `json:"listener_state_file"`
DestinationStateFile string `json:"destination_state_file"`
}
Paths contains filesystem locations used by audit-log commands.
func ResolvePaths ¶
ResolvePaths returns profile-scoped storage locations for audit logs.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store appends audit-log events to a JSONL file.
func (*Store) Append ¶
Append writes one or more payload records as JSONL lines. The payload is split into newline-delimited records, blank lines are ignored.
func (*Store) AppendRecords ¶
AppendRecords writes pre-split payload records as JSONL lines.
Click to show internal directories.
Click to hide internal directories.