Documentation
¶
Overview ¶
Package redact keeps secret values out of every bitc log sink (spec 10).
Index ¶
Constants ¶
const Placeholder = "<redacted>"
Placeholder replaces every secret.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is the set of secret values to redact. It is safe for concurrent use.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer redacts a stream. It writes whole lines as they complete; a line longer than 64 KiB is written in pieces, holding back enough bytes that a secret split across a piece boundary is still caught. Call Flush at the end.