Documentation
¶
Index ¶
- func SafeString(s string) string
- func Stringify(z interface{}) string
- type MaskLog
- func (ml *MaskLog) AddSensitiveValue(s string)
- func (ml MaskLog) LogFatal(v ...interface{})
- func (ml MaskLog) LogVerbose(v ...interface{})
- func (ml MaskLog) LogWarn(v ...interface{})
- func (ml MaskLog) PrepareMessage(v interface{}) string
- func (ml *MaskLog) Reset()
- func (ml MaskLog) SanitizeInterfaceValues(z interface{})
- type MaskStrings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MaskLog ¶
type MaskLog struct { SensitiveStrings *MaskStrings Opts interface{} }
MaskLog is a structure to hold "useful" state
func (*MaskLog) AddSensitiveValue ¶
AddSensitiveValue adds a new token/password value to mask in any log output
func (MaskLog) LogVerbose ¶
func (ml MaskLog) LogVerbose(v ...interface{})
LogVerbose does other things
func (MaskLog) PrepareMessage ¶
PrepareMessage ...
func (MaskLog) SanitizeInterfaceValues ¶
func (ml MaskLog) SanitizeInterfaceValues(z interface{})
SanitizeInterfaceValues will mask sensitive values in output
type MaskStrings ¶
type MaskStrings []string
MaskStrings is a convenience type for the list of sensitive values to hide away
Click to show internal directories.
Click to hide internal directories.