audit

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time      time.Time `json:"time"`
	Type      string    `json:"type"`
	RequestID string    `json:"request_id,omitempty"`
	Tool      string    `json:"tool,omitempty"`
	Result    string    `json:"result,omitempty"`
}

Event is one audit record written as a single JSON line.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer appends audit events to <workspace>/state/audit.jsonl.

func NewWriter

func NewWriter(workspace string) *Writer

NewWriter creates an append-only audit writer rooted at workspace state.

func (*Writer) Append

func (w *Writer) Append(event Event) error

Append writes one event as one JSONL line.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL