Documentation ¶
Index ¶
- Variables
- type RouteAction
- func (*RouteAction) Descriptor() ([]byte, []int)deprecated
- func (x *RouteAction) GetCluster() string
- func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier
- func (x *RouteAction) GetMetadata() *v3.Metadata
- func (x *RouteAction) GetPerFilterConfig() map[string]*any1.Any
- func (x *RouteAction) GetWeightedClusters() *v31.WeightedCluster
- func (*RouteAction) ProtoMessage()
- func (x *RouteAction) ProtoReflect() protoreflect.Message
- func (x *RouteAction) Reset()
- func (x *RouteAction) String() string
- func (m *RouteAction) Validate() error
- func (m *RouteAction) ValidateAll() error
- type RouteActionMultiError
- type RouteActionValidationError
- func (e RouteActionValidationError) Cause() error
- func (e RouteActionValidationError) Error() string
- func (e RouteActionValidationError) ErrorName() string
- func (e RouteActionValidationError) Field() string
- func (e RouteActionValidationError) Key() bool
- func (e RouteActionValidationError) Reason() string
- type RouteAction_Cluster
- type RouteAction_WeightedClusters
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RouteAction ¶
type RouteAction struct { // Types that are assignable to ClusterSpecifier: // *RouteAction_Cluster // *RouteAction_WeightedClusters ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` // Route metadata. Metadata *v3.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Route level config for L7 generic filters. The key should be the related :ref:`extension name // <envoy_v3_api_field_config.core.v3.TypedExtensionConfig.name>` in the :ref:`generic filters // <envoy_v3_api_field_extensions.filters.network.generic_proxy.v3.GenericProxy.filters>`. PerFilterConfig map[string]*any1.Any `` /* 196-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for the route match action.
func (*RouteAction) Descriptor
deprecated
func (*RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use RouteAction.ProtoReflect.Descriptor instead.
func (*RouteAction) GetCluster ¶
func (x *RouteAction) GetCluster() string
func (*RouteAction) GetClusterSpecifier ¶
func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier
func (*RouteAction) GetMetadata ¶
func (x *RouteAction) GetMetadata() *v3.Metadata
func (*RouteAction) GetPerFilterConfig ¶
func (x *RouteAction) GetPerFilterConfig() map[string]*any1.Any
func (*RouteAction) GetWeightedClusters ¶
func (x *RouteAction) GetWeightedClusters() *v31.WeightedCluster
func (*RouteAction) ProtoMessage ¶
func (*RouteAction) ProtoMessage()
func (*RouteAction) ProtoReflect ¶
func (x *RouteAction) ProtoReflect() protoreflect.Message
func (*RouteAction) Reset ¶
func (x *RouteAction) Reset()
func (*RouteAction) String ¶
func (x *RouteAction) String() string
func (*RouteAction) Validate ¶
func (m *RouteAction) Validate() error
Validate checks the field values on RouteAction 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 (*RouteAction) ValidateAll ¶
func (m *RouteAction) ValidateAll() error
ValidateAll checks the field values on RouteAction 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 RouteActionMultiError, or nil if none found.
type RouteActionMultiError ¶
type RouteActionMultiError []error
RouteActionMultiError is an error wrapping multiple validation errors returned by RouteAction.ValidateAll() if the designated constraints aren't met.
func (RouteActionMultiError) AllErrors ¶
func (m RouteActionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RouteActionMultiError) Error ¶
func (m RouteActionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RouteActionValidationError ¶
type RouteActionValidationError struct {
// contains filtered or unexported fields
}
RouteActionValidationError is the validation error returned by RouteAction.Validate if the designated constraints aren't met.
func (RouteActionValidationError) Cause ¶
func (e RouteActionValidationError) Cause() error
Cause function returns cause value.
func (RouteActionValidationError) Error ¶
func (e RouteActionValidationError) Error() string
Error satisfies the builtin error interface
func (RouteActionValidationError) ErrorName ¶
func (e RouteActionValidationError) ErrorName() string
ErrorName returns error name.
func (RouteActionValidationError) Field ¶
func (e RouteActionValidationError) Field() string
Field function returns field value.
func (RouteActionValidationError) Key ¶
func (e RouteActionValidationError) Key() bool
Key function returns key value.
func (RouteActionValidationError) Reason ¶
func (e RouteActionValidationError) Reason() string
Reason function returns reason value.
type RouteAction_Cluster ¶
type RouteAction_Cluster struct { // Indicates the upstream cluster to which the request should be routed. Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` }
type RouteAction_WeightedClusters ¶
type RouteAction_WeightedClusters struct { // [#not-implemented-hide:] // Multiple upstream clusters can be specified for a given route. The request is routed to one // of the upstream clusters based on weights assigned to each cluster. // Currently ClusterWeight only supports the name and weight fields. WeightedClusters *v31.WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` }