Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MASKED = "[MASKED]"
Functions ¶
func ProtectPhrase ¶
func ProtectPhrase(phrase string)
ProtectPhrase will cause the provided phrase to be redacted (also base64 encoded values)
Types ¶
type FileProxyWriter ¶
type FileProxyWriter struct {
// contains filtered or unexported fields
}
func NewProtectedWriter ¶
func NewProtectedWriter(file *os.File, writer io.Writer, mutex *sync.Mutex, redactor *Redactor) *FileProxyWriter
NewProtectedWriter proxies all output to stdout/stderr to omit/remove any kind of credentials from all logs
type Redactor ¶
type Redactor struct {
// contains filtered or unexported fields
}
func NewRedactor ¶
func (*Redactor) ProtectPhrase ¶
func (*Redactor) ProtectedPhraseCount ¶
func (*Redactor) SetMaskValue ¶
Click to show internal directories.
Click to hide internal directories.