Documentation
¶
Index ¶
- Constants
- Variables
- type Log
- func (l *Log) Debug(fmtString string)
- func (l *Log) Debugf(fmtString string, args ...interface{})
- func (l *Log) Error(fmtString string)
- func (l *Log) Errorf(fmtString string, args ...interface{})
- func (l *Log) Info(fmtString string)
- func (l *Log) Infof(fmtString string, args ...interface{})
- func (l *Log) NeedRedact(originalString string, regexP *regexp.Regexp) bool
- func (l *Log) Redact(fmtedString string) string
- func (l *Log) Warn(fmtString string)
- func (l *Log) Warnf(fmtString string, args ...interface{})
Constants ¶
View Source
const (
RedactValue = "*************"
)
Variables ¶
View Source
var RedactKeyList = []*regexp.Regexp{ regexp.MustCompile(`(\\?"password\\?":\\?")([^"]*)(\\?")`), regexp.MustCompile(`(\\?"additional_trust_bundle\\?":\\?")([^"]*)(\\?")`), regexp.MustCompile(`(-----BEGIN CERTIFICATE-----\n)([^-----]*)(-----END CERTIFICATE-----)`), regexp.MustCompile(`(--password\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(--client-id\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(--bind-password\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(--client-secret\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(--users\s+[a-zA-Z0-9-]+:)([^\s\n\\]+)([\s\S]+)`), regexp.MustCompile(`(--cluster-admin-password\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(--billing-account\s+)([^\n\t\\\s]+)([\n\\\s]*)`), regexp.MustCompile(`(arn\:aws\:iam\:\:)([0-9]{12})([^\s\\\t\n]*)`), regexp.MustCompile(`(arn\:aws\:secretsmanager\:[a-z0-9-]*\:)([0-9]{12})([^\s\\\t\n]*)`), }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.