Documentation
¶
Index ¶
- func ClearMemory()
- func Enabled() bool
- func MaskText(text string) (string, map[string]string)
- func RedactText(text string) (string, bool)
- func RedactTextFunc(text string, replace func(kind, value string) (string, bool)) (string, bool)
- func RedactTextIdentity(text string, replace func(kind, value, identity string) (string, bool)) (string, bool)
- func SetEnabled(on bool)
- func Toggle() bool
- func WrapTransport(base http.RoundTripper) http.RoundTripper
- type Status
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearMemory ¶
func ClearMemory()
func RedactText ¶ added in v0.107.6
RedactText irreversibly masks recognized sensitive values without retaining a restoration map. Use this when forwarding evidence to a separate reviewer.
func RedactTextFunc ¶ added in v0.107.6
RedactTextFunc is RedactText with a caller-chosen replacement for each recognized value; changed reports whether any replace call returned true.
func RedactTextIdentity ¶ added in v0.107.6
func RedactTextIdentity(text string, replace func(kind, value, identity string) (string, bool)) (string, bool)
RedactTextIdentity is RedactTextFunc that also reports an identity for each value: the value itself, or the address extended over its ambiguous start ("0:fe80::1" for "eth0:fe80::1", see ipv6AmbiguousStart). Callers that treat equal values as the same thing compare identities.
func SetEnabled ¶
func SetEnabled(on bool)
func WrapTransport ¶
func WrapTransport(base http.RoundTripper) http.RoundTripper
Types ¶
Click to show internal directories.
Click to hide internal directories.