custom_detectorspb

package
v3.88.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (CustomDetectorsValidationError) Error

Error satisfies the builtin error interface

func (CustomDetectorsValidationError) ErrorName

func (e CustomDetectorsValidationError) ErrorName() string

ErrorName returns error name.

func (CustomDetectorsValidationError) Field

Field function returns field value.

func (CustomDetectorsValidationError) Key

Key function returns key value.

func (CustomDetectorsValidationError) Reason

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

Cause function returns cause value.

func (CustomRegexValidationError) Error

Error satisfies the builtin error interface

func (CustomRegexValidationError) ErrorName

func (e CustomRegexValidationError) ErrorName() string

ErrorName returns error name.

func (CustomRegexValidationError) Field

Field function returns field value.

func (CustomRegexValidationError) Key

Key function returns key value.

func (CustomRegexValidationError) Reason

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

Cause function returns cause value.

func (VerifierConfigValidationError) Error

Error satisfies the builtin error interface

func (VerifierConfigValidationError) ErrorName

func (e VerifierConfigValidationError) ErrorName() string

ErrorName returns error name.

func (VerifierConfigValidationError) Field

Field function returns field value.

func (VerifierConfigValidationError) Key

Key function returns key value.

func (VerifierConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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