Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_regex_engines_hyperscan_v3alpha_hyperscan_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Hyperscan ¶
type Hyperscan struct {
// contains filtered or unexported fields
}
`Hyperscan <https://github.com/intel/hyperscan>`_ regex engine. The engine uses hybrid automata techniques to allow simultaneous matching of large numbers of regular expressions across streams of data.
The engine follows PCRE pattern syntax, and the regex string must adhere to the documented `pattern support <https://intel.github.io/hyperscan/dev-reference/compilation.html#pattern-support>`_. The syntax is not compatible with the default RE2 regex engine. Depending on configured expressions, swapping regex engine may cause match rules to no longer be valid.
func (*Hyperscan) Descriptor
deprecated
func (*Hyperscan) ProtoMessage ¶
func (*Hyperscan) ProtoMessage()
func (*Hyperscan) ProtoReflect ¶
func (x *Hyperscan) ProtoReflect() protoreflect.Message
func (*Hyperscan) Validate ¶
Validate checks the field values on Hyperscan with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Hyperscan) ValidateAll ¶
ValidateAll checks the field values on Hyperscan with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HyperscanMultiError, or nil if none found.
type HyperscanMultiError ¶
type HyperscanMultiError []error
HyperscanMultiError is an error wrapping multiple validation errors returned by Hyperscan.ValidateAll() if the designated constraints aren't met.
func (HyperscanMultiError) AllErrors ¶
func (m HyperscanMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HyperscanMultiError) Error ¶
func (m HyperscanMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HyperscanValidationError ¶
type HyperscanValidationError struct {
// contains filtered or unexported fields
}
HyperscanValidationError is the validation error returned by Hyperscan.Validate if the designated constraints aren't met.
func (HyperscanValidationError) Cause ¶
func (e HyperscanValidationError) Cause() error
Cause function returns cause value.
func (HyperscanValidationError) Error ¶
func (e HyperscanValidationError) Error() string
Error satisfies the builtin error interface
func (HyperscanValidationError) ErrorName ¶
func (e HyperscanValidationError) ErrorName() string
ErrorName returns error name.
func (HyperscanValidationError) Field ¶
func (e HyperscanValidationError) Field() string
Field function returns field value.
func (HyperscanValidationError) Key ¶
func (e HyperscanValidationError) Key() bool
Key function returns key value.
func (HyperscanValidationError) Reason ¶
func (e HyperscanValidationError) Reason() string
Reason function returns reason value.