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 or ArtifactList, then the values from those lists will be stringified by printing just their name and namespace, and "REDACTED" for their data. Secrets or Artifacts 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.