audit

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package audit is the append-only record of what this tool did.

A kill switch is answerable afterwards: someone will ask which resources were touched, when, by whom, and whether the thing that is still broken was broken by this. One JSON object per line, never rewritten.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func Discard

func Discard() *Log

func New

func New(path string) (*Log, error)

New opens an append-only log. A log that cannot be opened is not fatal — an unwritable audit file must not be the reason a cost incident goes unhandled — but it is reported by the caller.

func To

func To(w io.Writer) *Log

func (*Log) Event

func (l *Log) Event(kind string, fields map[string]any)

Jump to

Keyboard shortcuts

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