selectorv1

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_middleware_selector_v1_selector_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Selector

type Selector struct {
	Enabled  bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Names    []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	Paths    []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
	Regex    string   `protobuf:"bytes,4,opt,name=regex,proto3" json:"regex,omitempty"`
	Prefixes []string `protobuf:"bytes,5,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	// contains filtered or unexported fields
}

Selector

func (*Selector) Descriptor deprecated

func (*Selector) Descriptor() ([]byte, []int)

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) GetEnabled

func (x *Selector) GetEnabled() bool

func (*Selector) GetNames

func (x *Selector) GetNames() []string

func (*Selector) GetPaths

func (x *Selector) GetPaths() []string

func (*Selector) GetPrefixes

func (x *Selector) GetPrefixes() []string

func (*Selector) GetRegex

func (x *Selector) GetRegex() string

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect

func (x *Selector) ProtoReflect() protoreflect.Message

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

func (*Selector) Validate

func (m *Selector) Validate() error

Validate checks the field values on Selector 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 (*Selector) ValidateAll

func (m *Selector) ValidateAll() error

ValidateAll checks the field values on Selector 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 SelectorMultiError, or nil if none found.

type SelectorMultiError

type SelectorMultiError []error

SelectorMultiError is an error wrapping multiple validation errors returned by Selector.ValidateAll() if the designated constraints aren't met.

func (SelectorMultiError) AllErrors

func (m SelectorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectorMultiError) Error

func (m SelectorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SelectorValidationError

type SelectorValidationError struct {
	// contains filtered or unexported fields
}

SelectorValidationError is the validation error returned by Selector.Validate if the designated constraints aren't met.

func (SelectorValidationError) Cause

func (e SelectorValidationError) Cause() error

Cause function returns cause value.

func (SelectorValidationError) Error

func (e SelectorValidationError) Error() string

Error satisfies the builtin error interface

func (SelectorValidationError) ErrorName

func (e SelectorValidationError) ErrorName() string

ErrorName returns error name.

func (SelectorValidationError) Field

func (e SelectorValidationError) Field() string

Field function returns field value.

func (SelectorValidationError) Key

func (e SelectorValidationError) Key() bool

Key function returns key value.

func (SelectorValidationError) Reason

func (e SelectorValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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