Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedactingSender ¶
func NewRedactingSender(sender send.Sender, opts RedactionOptions) send.Sender
NewRedactingSender wraps the provided sender with a sender that redacts expansions in accordance with the reaction options.
Types ¶
type RedactionOptions ¶
type RedactionOptions struct { // Expansions defines the values to redact. Expansions *util.DynamicExpansions // Redacted specifies the names of expansions to redact the values for. // [globals.ExpansionsToRedact] are always redacted. Redacted []string // InternalRedactions specifies an additional set of strings that are not // expansions that should be redacted from the logs (e.g. agent-internal // secrets). All values in InternalRedactions are assumed to be // sensitive and are replaced by their key. InternalRedactions *util.DynamicExpansions }
RedactionOptions configures a redacting sender.
Click to show internal directories.
Click to hide internal directories.