package v3alpha
import "github.com/envoyproxy/go-control-plane/contrib/envoy/extensions/regex_engines/hyperscan/v3alpha"
Index ¶
- Variables
- type Hyperscan
- func (*Hyperscan) Descriptor() ([]byte, []int)
- func (*Hyperscan) ProtoMessage()
- func (x *Hyperscan) ProtoReflect() protoreflect.Message
- func (x *Hyperscan) Reset()
- func (x *Hyperscan) String() string
- func (m *Hyperscan) Validate() error
- func (m *Hyperscan) ValidateAll() error
- type HyperscanMultiError
- type HyperscanValidationError
Variables ¶
var File_contrib_envoy_extensions_regex_engines_hyperscan_v3alpha_hyperscan_proto protoreflect.FileDescriptor
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: Use Hyperscan.ProtoReflect.Descriptor instead.
func (*Hyperscan) ProtoMessage ¶
func (*Hyperscan) ProtoMessage()
func (*Hyperscan) ProtoReflect ¶
func (x *Hyperscan) ProtoReflect() protoreflect.Message
func (*Hyperscan) Reset ¶
func (x *Hyperscan) Reset()
func (*Hyperscan) String ¶
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.
Source Files ¶
hyperscan.pb.go hyperscan.pb.validate.go
- Version
- v0.13.1
- Published
- Oct 15, 2024
- Platform
- darwin/amd64
- Imports
- 17 packages
- Last checked
- 17 minutes ago –
Tools for package owners.