redactor

package
v0.0.0-...-c5ccef3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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