Documentation
¶
Overview ¶
Package audit is the public SDK facade over Harbor's internal/audit package — the mandatory redaction seam every payload passes through before leaving the process (RFC §3.6; D-204/D-206). Alias-based re-exports only: no behavior lives here. Added in Phase 112b: the external consumers flushed the gap out — sdk/events.Open and harbortest.Deps both take an audit.Redactor, which 112a's inventory left unnameable and unconstructible outside the module. Driver registration (Register) and the rule vocabulary internals are deliberately private.
Index ¶
Constants ¶
const DefaultDriver = internal.DefaultDriver
DefaultDriver is the production redactor driver name ("patterns").
Variables ¶
var ErrUnknownDriver = internal.ErrUnknownDriver
ErrUnknownDriver — the named redactor driver is not registered. Callers compare via errors.Is.
var From = internal.From
From extracts the redactor from ctx, reporting presence.
var MustFrom = internal.MustFrom
MustFrom extracts the redactor from ctx, panicking when absent.
var Open = internal.Open
Open resolves the default redactor driver and opens it (blank-import sdk/drivers/prod to seat the production set; the production driver name is "patterns").
var OpenDriver = internal.OpenDriver
OpenDriver opens a redactor driver by explicit name.
var RegisteredDrivers = internal.RegisteredDrivers
RegisteredDrivers lists the seated redactor driver names.
var WithRedactor = internal.WithRedactor
WithRedactor returns a child context carrying the redactor.
Functions ¶
This section is empty.