syncutil

package
v1.15.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 9

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

Jump to

Keyboard shortcuts

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