allow_listed_routesv3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_internal_redirect_allow_listed_routes_v3_allow_listed_routes_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllowListedRoutesConfig

type AllowListedRoutesConfig struct {

	// The list of routes that's allowed as redirect target by this predicate,
	// identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
	// Empty route names are not allowed.
	AllowedRouteNames []string `protobuf:"bytes,1,rep,name=allowed_route_names,json=allowedRouteNames,proto3" json:"allowed_route_names,omitempty"`
	// contains filtered or unexported fields
}

An internal redirect predicate that accepts only explicitly allowed target routes. [#extension: envoy.internal_redirect_predicates.allow_listed_routes]

func (*AllowListedRoutesConfig) Descriptor deprecated

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

Deprecated: Use AllowListedRoutesConfig.ProtoReflect.Descriptor instead.

func (*AllowListedRoutesConfig) GetAllowedRouteNames

func (x *AllowListedRoutesConfig) GetAllowedRouteNames() []string

func (*AllowListedRoutesConfig) ProtoMessage

func (*AllowListedRoutesConfig) ProtoMessage()

func (*AllowListedRoutesConfig) ProtoReflect

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

func (*AllowListedRoutesConfig) Reset

func (x *AllowListedRoutesConfig) Reset()

func (*AllowListedRoutesConfig) String

func (x *AllowListedRoutesConfig) String() string

func (*AllowListedRoutesConfig) Validate

func (m *AllowListedRoutesConfig) Validate() error

Validate checks the field values on AllowListedRoutesConfig 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 (*AllowListedRoutesConfig) ValidateAll added in v0.10.0

func (m *AllowListedRoutesConfig) ValidateAll() error

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

type AllowListedRoutesConfigMultiError added in v0.10.0

type AllowListedRoutesConfigMultiError []error

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

func (AllowListedRoutesConfigMultiError) AllErrors added in v0.10.0

func (m AllowListedRoutesConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllowListedRoutesConfigMultiError) Error added in v0.10.0

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

type AllowListedRoutesConfigValidationError

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

AllowListedRoutesConfigValidationError is the validation error returned by AllowListedRoutesConfig.Validate if the designated constraints aren't met.

func (AllowListedRoutesConfigValidationError) Cause

Cause function returns cause value.

func (AllowListedRoutesConfigValidationError) Error

Error satisfies the builtin error interface

func (AllowListedRoutesConfigValidationError) ErrorName

ErrorName returns error name.

func (AllowListedRoutesConfigValidationError) Field

Field function returns field value.

func (AllowListedRoutesConfigValidationError) Key

Key function returns key value.

func (AllowListedRoutesConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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