audit

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

View Source
const DefaultDriver = internal.DefaultDriver

DefaultDriver is the production redactor driver name ("patterns").

Variables

View Source
var ErrUnknownDriver = internal.ErrUnknownDriver

ErrUnknownDriver — the named redactor driver is not registered. Callers compare via errors.Is.

From extracts the redactor from ctx, reporting presence.

View Source
var MustFrom = internal.MustFrom

MustFrom extracts the redactor from ctx, panicking when absent.

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").

View Source
var OpenDriver = internal.OpenDriver

OpenDriver opens a redactor driver by explicit name.

View Source
var RegisteredDrivers = internal.RegisteredDrivers

RegisteredDrivers lists the seated redactor driver names.

View Source
var WithRedactor = internal.WithRedactor

WithRedactor returns a child context carrying the redactor.

Functions

This section is empty.

Types

type Redactor

type Redactor = internal.Redactor

Redactor redacts a payload before it is logged, emitted, or persisted. Every Harbor signal passes through one.

type Rule

type Rule = internal.Rule

Rule is one redaction step a driver composes.

Jump to

Keyboard shortcuts

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