Documentation ¶
Index ¶
- Variables
- type CustomDetectors
- func (*CustomDetectors) Descriptor() ([]byte, []int)deprecated
- func (x *CustomDetectors) GetDetectors() []*CustomRegex
- func (*CustomDetectors) ProtoMessage()
- func (x *CustomDetectors) ProtoReflect() protoreflect.Message
- func (x *CustomDetectors) Reset()
- func (x *CustomDetectors) String() string
- func (m *CustomDetectors) Validate() error
- func (m *CustomDetectors) ValidateAll() error
- type CustomDetectorsMultiError
- type CustomDetectorsValidationError
- func (e CustomDetectorsValidationError) Cause() error
- func (e CustomDetectorsValidationError) Error() string
- func (e CustomDetectorsValidationError) ErrorName() string
- func (e CustomDetectorsValidationError) Field() string
- func (e CustomDetectorsValidationError) Key() bool
- func (e CustomDetectorsValidationError) Reason() string
- type CustomRegex
- func (*CustomRegex) Descriptor() ([]byte, []int)deprecated
- func (x *CustomRegex) GetDescription() string
- func (x *CustomRegex) GetKeywords() []string
- func (x *CustomRegex) GetName() string
- func (x *CustomRegex) GetRegex() map[string]string
- func (x *CustomRegex) GetVerify() []*VerifierConfig
- func (*CustomRegex) ProtoMessage()
- func (x *CustomRegex) ProtoReflect() protoreflect.Message
- func (x *CustomRegex) Reset()
- func (x *CustomRegex) String() string
- func (m *CustomRegex) Validate() error
- func (m *CustomRegex) ValidateAll() error
- type CustomRegexMultiError
- type CustomRegexValidationError
- func (e CustomRegexValidationError) Cause() error
- func (e CustomRegexValidationError) Error() string
- func (e CustomRegexValidationError) ErrorName() string
- func (e CustomRegexValidationError) Field() string
- func (e CustomRegexValidationError) Key() bool
- func (e CustomRegexValidationError) Reason() string
- type VerifierConfig
- func (*VerifierConfig) Descriptor() ([]byte, []int)deprecated
- func (x *VerifierConfig) GetEndpoint() string
- func (x *VerifierConfig) GetHeaders() []string
- func (x *VerifierConfig) GetSuccessRanges() []string
- func (x *VerifierConfig) GetUnsafe() bool
- func (*VerifierConfig) ProtoMessage()
- func (x *VerifierConfig) ProtoReflect() protoreflect.Message
- func (x *VerifierConfig) Reset()
- func (x *VerifierConfig) String() string
- func (m *VerifierConfig) Validate() error
- func (m *VerifierConfig) ValidateAll() error
- type VerifierConfigMultiError
- type VerifierConfigValidationError
- func (e VerifierConfigValidationError) Cause() error
- func (e VerifierConfigValidationError) Error() string
- func (e VerifierConfigValidationError) ErrorName() string
- func (e VerifierConfigValidationError) Field() string
- func (e VerifierConfigValidationError) Key() bool
- func (e VerifierConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_custom_detectors_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CustomDetectors ¶
type CustomDetectors struct { Detectors []*CustomRegex `protobuf:"bytes,1,rep,name=detectors,proto3" json:"detectors,omitempty"` // contains filtered or unexported fields }
func (*CustomDetectors) Descriptor
deprecated
func (*CustomDetectors) Descriptor() ([]byte, []int)
Deprecated: Use CustomDetectors.ProtoReflect.Descriptor instead.
func (*CustomDetectors) GetDetectors ¶
func (x *CustomDetectors) GetDetectors() []*CustomRegex
func (*CustomDetectors) ProtoMessage ¶
func (*CustomDetectors) ProtoMessage()
func (*CustomDetectors) ProtoReflect ¶
func (x *CustomDetectors) ProtoReflect() protoreflect.Message
func (*CustomDetectors) Reset ¶
func (x *CustomDetectors) Reset()
func (*CustomDetectors) String ¶
func (x *CustomDetectors) String() string
func (*CustomDetectors) Validate ¶
func (m *CustomDetectors) Validate() error
Validate checks the field values on CustomDetectors 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 (*CustomDetectors) ValidateAll ¶
func (m *CustomDetectors) ValidateAll() error
ValidateAll checks the field values on CustomDetectors 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 CustomDetectorsMultiError, or nil if none found.
type CustomDetectorsMultiError ¶
type CustomDetectorsMultiError []error
CustomDetectorsMultiError is an error wrapping multiple validation errors returned by CustomDetectors.ValidateAll() if the designated constraints aren't met.
func (CustomDetectorsMultiError) AllErrors ¶
func (m CustomDetectorsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomDetectorsMultiError) Error ¶
func (m CustomDetectorsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomDetectorsValidationError ¶
type CustomDetectorsValidationError struct {
// contains filtered or unexported fields
}
CustomDetectorsValidationError is the validation error returned by CustomDetectors.Validate if the designated constraints aren't met.
func (CustomDetectorsValidationError) Cause ¶
func (e CustomDetectorsValidationError) Cause() error
Cause function returns cause value.
func (CustomDetectorsValidationError) Error ¶
func (e CustomDetectorsValidationError) Error() string
Error satisfies the builtin error interface
func (CustomDetectorsValidationError) ErrorName ¶
func (e CustomDetectorsValidationError) ErrorName() string
ErrorName returns error name.
func (CustomDetectorsValidationError) Field ¶
func (e CustomDetectorsValidationError) Field() string
Field function returns field value.
func (CustomDetectorsValidationError) Key ¶
func (e CustomDetectorsValidationError) Key() bool
Key function returns key value.
func (CustomDetectorsValidationError) Reason ¶
func (e CustomDetectorsValidationError) Reason() string
Reason function returns reason value.
type CustomRegex ¶
type CustomRegex struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Keywords []string `protobuf:"bytes,2,rep,name=keywords,proto3" json:"keywords,omitempty"` Regex map[string]string `` /* 151-byte string literal not displayed */ Verify []*VerifierConfig `protobuf:"bytes,4,rep,name=verify,proto3" json:"verify,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CustomRegex) Descriptor
deprecated
func (*CustomRegex) Descriptor() ([]byte, []int)
Deprecated: Use CustomRegex.ProtoReflect.Descriptor instead.
func (*CustomRegex) GetDescription ¶ added in v3.82.4
func (x *CustomRegex) GetDescription() string
func (*CustomRegex) GetKeywords ¶
func (x *CustomRegex) GetKeywords() []string
func (*CustomRegex) GetName ¶
func (x *CustomRegex) GetName() string
func (*CustomRegex) GetRegex ¶
func (x *CustomRegex) GetRegex() map[string]string
func (*CustomRegex) GetVerify ¶
func (x *CustomRegex) GetVerify() []*VerifierConfig
func (*CustomRegex) ProtoMessage ¶
func (*CustomRegex) ProtoMessage()
func (*CustomRegex) ProtoReflect ¶
func (x *CustomRegex) ProtoReflect() protoreflect.Message
func (*CustomRegex) Reset ¶
func (x *CustomRegex) Reset()
func (*CustomRegex) String ¶
func (x *CustomRegex) String() string
func (*CustomRegex) Validate ¶
func (m *CustomRegex) Validate() error
Validate checks the field values on CustomRegex 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 (*CustomRegex) ValidateAll ¶
func (m *CustomRegex) ValidateAll() error
ValidateAll checks the field values on CustomRegex 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 CustomRegexMultiError, or nil if none found.
type CustomRegexMultiError ¶
type CustomRegexMultiError []error
CustomRegexMultiError is an error wrapping multiple validation errors returned by CustomRegex.ValidateAll() if the designated constraints aren't met.
func (CustomRegexMultiError) AllErrors ¶
func (m CustomRegexMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomRegexMultiError) Error ¶
func (m CustomRegexMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomRegexValidationError ¶
type CustomRegexValidationError struct {
// contains filtered or unexported fields
}
CustomRegexValidationError is the validation error returned by CustomRegex.Validate if the designated constraints aren't met.
func (CustomRegexValidationError) Cause ¶
func (e CustomRegexValidationError) Cause() error
Cause function returns cause value.
func (CustomRegexValidationError) Error ¶
func (e CustomRegexValidationError) Error() string
Error satisfies the builtin error interface
func (CustomRegexValidationError) ErrorName ¶
func (e CustomRegexValidationError) ErrorName() string
ErrorName returns error name.
func (CustomRegexValidationError) Field ¶
func (e CustomRegexValidationError) Field() string
Field function returns field value.
func (CustomRegexValidationError) Key ¶
func (e CustomRegexValidationError) Key() bool
Key function returns key value.
func (CustomRegexValidationError) Reason ¶
func (e CustomRegexValidationError) Reason() string
Reason function returns reason value.
type VerifierConfig ¶
type VerifierConfig struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Unsafe bool `protobuf:"varint,2,opt,name=unsafe,proto3" json:"unsafe,omitempty"` Headers []string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"` SuccessRanges []string `protobuf:"bytes,4,rep,name=successRanges,proto3" json:"successRanges,omitempty"` // contains filtered or unexported fields }
func (*VerifierConfig) Descriptor
deprecated
func (*VerifierConfig) Descriptor() ([]byte, []int)
Deprecated: Use VerifierConfig.ProtoReflect.Descriptor instead.
func (*VerifierConfig) GetEndpoint ¶
func (x *VerifierConfig) GetEndpoint() string
func (*VerifierConfig) GetHeaders ¶
func (x *VerifierConfig) GetHeaders() []string
func (*VerifierConfig) GetSuccessRanges ¶
func (x *VerifierConfig) GetSuccessRanges() []string
func (*VerifierConfig) GetUnsafe ¶
func (x *VerifierConfig) GetUnsafe() bool
func (*VerifierConfig) ProtoMessage ¶
func (*VerifierConfig) ProtoMessage()
func (*VerifierConfig) ProtoReflect ¶
func (x *VerifierConfig) ProtoReflect() protoreflect.Message
func (*VerifierConfig) Reset ¶
func (x *VerifierConfig) Reset()
func (*VerifierConfig) String ¶
func (x *VerifierConfig) String() string
func (*VerifierConfig) Validate ¶
func (m *VerifierConfig) Validate() error
Validate checks the field values on VerifierConfig 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 (*VerifierConfig) ValidateAll ¶
func (m *VerifierConfig) ValidateAll() error
ValidateAll checks the field values on VerifierConfig 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 VerifierConfigMultiError, or nil if none found.
type VerifierConfigMultiError ¶
type VerifierConfigMultiError []error
VerifierConfigMultiError is an error wrapping multiple validation errors returned by VerifierConfig.ValidateAll() if the designated constraints aren't met.
func (VerifierConfigMultiError) AllErrors ¶
func (m VerifierConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifierConfigMultiError) Error ¶
func (m VerifierConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifierConfigValidationError ¶
type VerifierConfigValidationError struct {
// contains filtered or unexported fields
}
VerifierConfigValidationError is the validation error returned by VerifierConfig.Validate if the designated constraints aren't met.
func (VerifierConfigValidationError) Cause ¶
func (e VerifierConfigValidationError) Cause() error
Cause function returns cause value.
func (VerifierConfigValidationError) Error ¶
func (e VerifierConfigValidationError) Error() string
Error satisfies the builtin error interface
func (VerifierConfigValidationError) ErrorName ¶
func (e VerifierConfigValidationError) ErrorName() string
ErrorName returns error name.
func (VerifierConfigValidationError) Field ¶
func (e VerifierConfigValidationError) Field() string
Field function returns field value.
func (VerifierConfigValidationError) Key ¶
func (e VerifierConfigValidationError) Key() bool
Key function returns key value.
func (VerifierConfigValidationError) Reason ¶
func (e VerifierConfigValidationError) Reason() string
Reason function returns reason value.