custom_detectors

package
v3.54.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 ValidateKeywords(keywords []string) error

func ValidateRegex

func ValidateRegex(regex map[string]string) error

func ValidateRegexVars

func ValidateRegexVars(regex map[string]string, body ...string) error

func ValidateVerifyEndpoint

func ValidateVerifyEndpoint(endpoint string, unsafe bool) error

func ValidateVerifyHeaders

func ValidateVerifyHeaders(headers []string) error

func ValidateVerifyRanges

func ValidateVerifyRanges(ranges []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL