Documentation ¶
Index ¶
Constants ¶
View Source
const (
Redacted = "[REDACTED]"
)
Variables ¶
This section is empty.
Functions ¶
func StringifySnapshot ¶
func StringifySnapshot(snapshot interface{}) string
stringify the contents of the snapshot
NOTE that if any of the top-level fields of the snapshot is a SecretList, then the secrets will be stringified by printing just their name and namespace, and "REDACTED" for their data. Secrets may contain sensitive data like TLS private keys, so be sure to use this whenever you'd like to stringify a snapshot rather than Go's %v formatter
Types ¶
type ProtoRedactor ¶ added in v1.3.29
type ProtoRedactor interface { // Build a JSON string representation of the proto message, zeroing-out all fields in the proto that match some criteria BuildRedactedJsonString(message proto.Message) (string, error) }
func NewProtoRedactor ¶ added in v1.3.29
func NewProtoRedactor() ProtoRedactor
build a ProtoRedactor that zeroes out fields that have the given struct tag set to the given value
Click to show internal directories.
Click to hide internal directories.