Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrNotConfigured = errors.New("the audit log is not configured") + var ErrNotFound = errors.New("audit entry not found") + var Group = endpoint.Register(endpoint.Define("audit", "Read the audit log", endpoint.Area(area.Audit), ...)) + type Deps struct + Store Store + type Entry struct + Action string + Actor string + Chain []string + DurationMs int64 + ID string + JobID string + Method string + OperationID string + Path string + RequestSummary string + ResponseCode int + Roles []types.Role + SourceIP string + Steps []HostSteps + Target string + Targets []string + Timestamp time.Time + TraceID string + User string + type EntryResponse struct + Entry Entry + func Get(ctx context.Context, d Deps, in GetInput) (EntryResponse, error) + type ExportInput struct + type GetInput struct + ID string + type HostSteps = struct + Hostname string + Steps []types.Step + type ListAuditResponse struct + Items []Entry + TotalItems int + func Export(ctx context.Context, d Deps, _ ExportInput) (ListAuditResponse, error) + func List(ctx context.Context, d Deps, in ListInput) (ListAuditResponse, error) + type ListInput struct + Limit int + Offset int + Operation string + Status int + User string + Writes bool + type Store interface + Get func(ctx context.Context, id string) (*auditstore.Entry, error) + List func(ctx context.Context, limit int, offset int) ([]auditstore.Entry, int, error) + ListAll func(ctx context.Context) ([]auditstore.Entry, error)