Documentation
¶
Index ¶
- func HidePassword(props map[string]any) map[string]any
- func HidePasswordString(props map[string]string) map[string]string
- func IsSensitiveKey(key string) bool
- func ReplaceDuration(props map[string]interface{}) (bool, map[string]interface{})
- func ReplacePassword(props map[string]interface{}) (bool, map[string]interface{})
- func ReplacePropsDBURL(props map[string]interface{}) (bool, map[string]interface{})
- func ReplacePropsWithOption(props map[string]interface{}, opts ...ReplacePropsOption) (bool, map[string]interface{})
- func ReplacePropsWithPlug(plug string, props map[string]interface{}) (bool, map[string]interface{})
- func ReplaceRuleJson(ruleJson string, isTesting bool) string
- type ReplacePropsConfig
- type ReplacePropsOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HidePasswordString ¶ added in v2.4.1
HidePasswordString is like HidePassword but for map[string]string.
func IsSensitiveKey ¶ added in v2.4.1
IsSensitiveKey reports whether key contains a known sensitive substring.
func ReplaceDuration ¶ added in v2.0.1
func ReplacePassword ¶
func ReplacePropsDBURL ¶
func ReplacePropsWithOption ¶ added in v2.0.1
func ReplacePropsWithOption(props map[string]interface{}, opts ...ReplacePropsOption) (bool, map[string]interface{})
func ReplacePropsWithPlug ¶ added in v2.0.1
func ReplaceRuleJson ¶
Types ¶
type ReplacePropsConfig ¶ added in v2.0.1
type ReplacePropsOption ¶ added in v2.0.1
type ReplacePropsOption func(c *ReplacePropsConfig)
func WithDisableReplaceDburl ¶ added in v2.0.1
func WithDisableReplaceDburl() ReplacePropsOption
func WithDisableReplacePassword ¶ added in v2.0.1
func WithDisableReplacePassword() ReplacePropsOption
Click to show internal directories.
Click to hide internal directories.