audit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(r Record)

Log appends one JSONL record to ~/.config/cloudtoolkit/audit.log. Errors are reported via logger but never surface to callers, so a misbehaving log disk cannot block a security-sensitive operation.

Types

type Record

type Record struct {
	Timestamp string `json:"timestamp"`
	Provider  string `json:"provider"`
	Operation string `json:"operation"`
	Target    string `json:"target,omitempty"`
	Args      string `json:"args,omitempty"`
}

Jump to

Keyboard shortcuts

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