Documentation
¶
Overview ¶
Package sensitive marks errors whose text can carry file contents or secret values, such as a parser quoting the line it failed on. The text still reaches the terminal; usage telemetry replaces it with "[redacted]".
Index ¶
Constants ¶
View Source
const FlagAnnotation = "volcano_sensitive"
FlagAnnotation marks a flag whose value usage telemetry never sends, even when its name is one telemetry would otherwise report as a resource name. Set it with cmd.Flags().SetAnnotation(name, FlagAnnotation, []string{"true"}).
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Contains reports whether the first sensitive error in err's chain yields a non-empty value from get, for example an API error code inside it.
Types ¶
Click to show internal directories.
Click to hide internal directories.