Documentation
¶
Index ¶
- Constants
- Variables
- type Log
- func (l *Log) Debug(fmtString string)
- func (l *Log) Debugf(fmtString string, args ...interface{})
- func (l *Log) DecorateLog(level string, message string) string
- func (l *Log) Error(fmtString string)
- func (l *Log) Errorf(fmtString string, args ...interface{})
- func (l *Log) Fatal(fmtString string)
- 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:[a-z]+:[a-z0-9-]*:)([0-9]{12})(:)`), regexp.MustCompile(`(AWS Account:\s*)([0-9]{12})([\n\\n].)`), regexp.MustCompile(`(AWS Billing Account:\s*)([0-9]{12})([\n\\n].)`), }
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) DecorateLog ¶ added in v1.2.40
func (*Log) NeedRedact ¶
Click to show internal directories.
Click to hide internal directories.