Versions in this module Expand all Collapse all v0 v0.1.0 Oct 12, 2026 Changes in this version + var ErrNotRecorded = errors.New("audit: the change was made but its event was not recorded") + func ActorFrom(ctx context.Context) string + func NotRecorded(err error) error + func WithActor(ctx context.Context, actor string) context.Context + type Action string + const AdminRead + const BackupStale + const DataKeyCompromised + const DataKeyDestroyed + const GuardDenied + const GuardPending + const JobFailed + const KeyActivated + const KeyCompromised + const KeyCreated + const KeyDestroyed + const KeyRetireCancelled + const KeyRetireRequested + const KeyRetired + const KeyRolledBack + const KeyRotated + const SubjectShredComplete + const SubjectShredRequest + const WrapFailed + type Event struct + Action Action + Actor string + DEKID string + ID string + KEKID string + Outcome Outcome + Purpose string + Reason string + Time time.Time + Version uint32 + type Outcome string + const Denied + const Failure + const Pending + const Success + type Recorder struct + Err error + func (r *Recorder) Actions() []Action + func (r *Recorder) Emit(_ context.Context, e Event) error + func (r *Recorder) Events() []Event + type Sink interface + Emit func(ctx context.Context, e Event) error + var Discard Sink = discard{}