Documentation
¶
Index ¶
Constants ¶
View Source
const RedactStr = "[REDACTED]"
RedactStr ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer ...
func (*Writer) Write ¶
Write implements io.Writer interface. Splits p into lines, the lines are matched against the secrets, this determines which lines can be redacted and passed to the next writer (target). There might be lines that need to be buffered since they partially match a secret. We do not know the last Write call, so Close needs to be called to flush the buffer.
Click to show internal directories.
Click to hide internal directories.