Documentation ¶
Index ¶
- func NewWebhookCustomRegex(pb *custom_detectorspb.CustomRegex) (*customRegexWebhook, error)
- func ValidateKeywords(keywords []string) error
- func ValidateRegex(regex map[string]string) error
- func ValidateRegexVars(regex map[string]string, body ...string) error
- func ValidateVerifyEndpoint(endpoint string, unsafe bool) error
- func ValidateVerifyHeaders(headers []string) error
- func ValidateVerifyRanges(ranges []string) error
- type RegexVarString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookCustomRegex ¶ added in v3.20.0
func NewWebhookCustomRegex(pb *custom_detectorspb.CustomRegex) (*customRegexWebhook, error)
NewWebhookCustomRegex initializes and validates a customRegexWebhook. An unexported type is intentionally returned here to ensure the values have been validated.
func ValidateKeywords ¶
func ValidateRegex ¶
func ValidateVerifyEndpoint ¶
func ValidateVerifyHeaders ¶
func ValidateVerifyRanges ¶
Types ¶
type RegexVarString ¶
type RegexVarString struct {
// contains filtered or unexported fields
}
RegexVarString is a string with embedded {name.group} variables. A name may only contain alphanumeric, hyphen, and underscore characters. Group is optional but if provided it must be a non-negative integer. If the group is omitted it defaults to 0.
func NewRegexVarString ¶
func NewRegexVarString(original string) RegexVarString
Click to show internal directories.
Click to hide internal directories.