Documentation
¶
Index ¶
- func LooksSensitiveKey(name string) bool
- func RedactPreview(text string, maxLen int) string
- func RedactText(text string) string
- func RegisterForced(name, value string)
- func RegisterMapForced(values map[string]string)
- func RegisterMapNamed(values map[string]string)
- func RegisterNamed(name, value string)
- func RegisterOSEnv()
- func ResetForTests()
- type Registry
- func (r *Registry) RedactPreview(text string, maxLen int) string
- func (r *Registry) RedactText(text string) string
- func (r *Registry) RegisterForced(_ string, value string)
- func (r *Registry) RegisterMapForced(values map[string]string)
- func (r *Registry) RegisterMapNamed(values map[string]string)
- func (r *Registry) RegisterNamed(name, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LooksSensitiveKey ¶
func RedactPreview ¶
func RedactText ¶
func RegisterForced ¶
func RegisterForced(name, value string)
func RegisterMapForced ¶
func RegisterMapNamed ¶
func RegisterNamed ¶
func RegisterNamed(name, value string)
func RegisterOSEnv ¶
func RegisterOSEnv()
func ResetForTests ¶
func ResetForTests()
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores known secret values and redaction rules.
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) RedactText ¶
func (*Registry) RegisterForced ¶
func (*Registry) RegisterMapForced ¶
func (*Registry) RegisterMapNamed ¶
func (*Registry) RegisterNamed ¶
Click to show internal directories.
Click to hide internal directories.