Documentation
¶
Index ¶
Constants ¶
View Source
const (
RedactedString = "** Redacted **"
)
Variables ¶
This section is empty.
Functions ¶
func RedactError ¶ added in v0.22.4
func RedactError(msg interface{}, err *error)
RedactError redacts sensitive information from the provided error message. It takes a message of any type and a pointer to an error, and processes the message to remove any sensitive data from error message.
func RedactErrorURL ¶ added in v0.25.8
func RedactErrorURL(err error)
Redacts URL from net/http errors
func RedactSensitiveError ¶ added in v0.22.4
RedactSensitiveError traverses the given value and processes fields marked as sensitive, redacting their data from error message. Note: The function modifies the error message in place if sensitive data is found.
func RedactedMessage ¶
func RedactedMessage(msg interface{}) interface{}
RedactedMessage - returns a copy of a proto message struct with data from fields marked as sensitive redacted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.