go-control-plane: github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1 Index | Files

package envoy_config_filter_network_thrift_proxy_v2alpha1

import "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1"

Index

Package Files

route.pb.go route.pb.validate.go thrift_proxy.pb.go thrift_proxy.pb.validate.go

Variables

var (
    TransportType_name = map[int32]string{
        0:  "AUTO_TRANSPORT",
        1:  "FRAMED",
        2:  "UNFRAMED",
        3:  "HEADER",
    }
    TransportType_value = map[string]int32{
        "AUTO_TRANSPORT": 0,
        "FRAMED":         1,
        "UNFRAMED":       2,
        "HEADER":         3,
    }
)

Enum value maps for TransportType.

var (
    ProtocolType_name = map[int32]string{
        0:  "AUTO_PROTOCOL",
        1:  "BINARY",
        2:  "LAX_BINARY",
        3:  "COMPACT",
        4:  "TWITTER",
    }
    ProtocolType_value = map[string]int32{
        "AUTO_PROTOCOL": 0,
        "BINARY":        1,
        "LAX_BINARY":    2,
        "COMPACT":       3,
        "TWITTER":       4,
    }
)

Enum value maps for ProtocolType.

var File_envoy_config_filter_network_thrift_proxy_v2alpha1_route_proto protoreflect.FileDescriptor
var File_envoy_config_filter_network_thrift_proxy_v2alpha1_thrift_proxy_proto protoreflect.FileDescriptor

type ProtocolType Uses

type ProtocolType int32

Thrift Protocol types supported by Envoy.

const (
    // For downstream connections, the Thrift proxy will attempt to determine which protocol to use.
    // Note that the older, non-strict (or lax) binary protocol is not included in automatic protocol
    // detection. For upstream connections, the Thrift proxy will use the same protocol as the
    // downstream connection.
    ProtocolType_AUTO_PROTOCOL ProtocolType = 0
    // The Thrift proxy will use the Thrift binary protocol.
    ProtocolType_BINARY ProtocolType = 1
    // The Thrift proxy will use Thrift non-strict binary protocol.
    ProtocolType_LAX_BINARY ProtocolType = 2
    // The Thrift proxy will use the Thrift compact protocol.
    ProtocolType_COMPACT ProtocolType = 3
    // The Thrift proxy will use the Thrift "Twitter" protocol implemented by the finagle library.
    ProtocolType_TWITTER ProtocolType = 4
)

func (ProtocolType) Descriptor Uses

func (ProtocolType) Descriptor() protoreflect.EnumDescriptor

func (ProtocolType) Enum Uses

func (x ProtocolType) Enum() *ProtocolType

func (ProtocolType) EnumDescriptor Uses

func (ProtocolType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolType.Descriptor instead.

func (ProtocolType) Number Uses

func (x ProtocolType) Number() protoreflect.EnumNumber

func (ProtocolType) String Uses

func (x ProtocolType) String() string

func (ProtocolType) Type Uses

func (ProtocolType) Type() protoreflect.EnumType

type Route Uses

type Route struct {

    // Route matching parameters.
    Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
    // Route request to some upstream cluster.
    Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
    // contains filtered or unexported fields
}

func (*Route) Descriptor Uses

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetMatch Uses

func (x *Route) GetMatch() *RouteMatch

func (*Route) GetRoute Uses

func (x *Route) GetRoute() *RouteAction

func (*Route) ProtoMessage Uses

func (*Route) ProtoMessage()

func (*Route) ProtoReflect Uses

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

func (*Route) Reset Uses

func (x *Route) Reset()

func (*Route) String Uses

func (x *Route) String() string

func (*Route) Validate Uses

func (m *Route) Validate() error

Validate checks the field values on Route with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RouteAction Uses

type RouteAction struct {

    // Types that are assignable to ClusterSpecifier:
    //	*RouteAction_Cluster
    //	*RouteAction_WeightedClusters
    //	*RouteAction_ClusterHeader
    ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"`
    // Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in
    // the upstream cluster with metadata matching what is set in this field will be considered.
    // Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match
    // <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`,
    // with values there taking precedence. Keys and values should be provided under the "envoy.lb"
    // metadata key.
    MetadataMatch *core.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"`
    // Specifies a set of rate limit configurations that could be applied to the route.
    // N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders
    // action with the header name ":method-name".
    RateLimits []*route.RateLimit `protobuf:"bytes,4,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"`
    // Strip the service prefix from the method name, if there's a prefix. For
    // example, the method call Service:method would end up being just method.
    StripServiceName bool `protobuf:"varint,5,opt,name=strip_service_name,json=stripServiceName,proto3" json:"strip_service_name,omitempty"`
    // contains filtered or unexported fields
}

[#next-free-field: 7]

func (*RouteAction) Descriptor Uses

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

Deprecated: Use RouteAction.ProtoReflect.Descriptor instead.

func (*RouteAction) GetCluster Uses

func (x *RouteAction) GetCluster() string

func (*RouteAction) GetClusterHeader Uses

func (x *RouteAction) GetClusterHeader() string

func (*RouteAction) GetClusterSpecifier Uses

func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier

func (*RouteAction) GetMetadataMatch Uses

func (x *RouteAction) GetMetadataMatch() *core.Metadata

func (*RouteAction) GetRateLimits Uses

func (x *RouteAction) GetRateLimits() []*route.RateLimit

func (*RouteAction) GetStripServiceName Uses

func (x *RouteAction) GetStripServiceName() bool

func (*RouteAction) GetWeightedClusters Uses

func (x *RouteAction) GetWeightedClusters() *WeightedCluster

func (*RouteAction) ProtoMessage Uses

func (*RouteAction) ProtoMessage()

func (*RouteAction) ProtoReflect Uses

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

func (*RouteAction) Reset Uses

func (x *RouteAction) Reset()

func (*RouteAction) String Uses

func (x *RouteAction) String() string

func (*RouteAction) Validate Uses

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, an error is returned.

type RouteActionValidationError Uses

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 Uses

func (e RouteActionValidationError) Cause() error

Cause function returns cause value.

func (RouteActionValidationError) Error Uses

func (e RouteActionValidationError) Error() string

Error satisfies the builtin error interface

func (RouteActionValidationError) ErrorName Uses

func (e RouteActionValidationError) ErrorName() string

ErrorName returns error name.

func (RouteActionValidationError) Field Uses

func (e RouteActionValidationError) Field() string

Field function returns field value.

func (RouteActionValidationError) Key Uses

func (e RouteActionValidationError) Key() bool

Key function returns key value.

func (RouteActionValidationError) Reason Uses

func (e RouteActionValidationError) Reason() string

Reason function returns reason value.

type RouteAction_Cluster Uses

type RouteAction_Cluster struct {
    // Indicates a single upstream cluster to which the request should be routed
    // to.
    Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"`
}

type RouteAction_ClusterHeader Uses

type RouteAction_ClusterHeader struct {
    // Envoy will determine the cluster to route to by reading the value of the
    // Thrift header named by cluster_header from the request headers. If the
    // header is not found or the referenced cluster does not exist Envoy will
    // respond with an unknown method exception or an internal error exception,
    // respectively.
    ClusterHeader string `protobuf:"bytes,6,opt,name=cluster_header,json=clusterHeader,proto3,oneof"`
}

type RouteAction_WeightedClusters Uses

type RouteAction_WeightedClusters struct {
    // 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.
    WeightedClusters *WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"`
}

type RouteConfiguration Uses

type RouteConfiguration struct {

    // The name of the route configuration. Reserved for future use in asynchronous route discovery.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The list of routes that will be matched, in order, against incoming requests. The first route
    // that matches will be used.
    Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
    // contains filtered or unexported fields
}

func (*RouteConfiguration) Descriptor Uses

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

Deprecated: Use RouteConfiguration.ProtoReflect.Descriptor instead.

func (*RouteConfiguration) GetName Uses

func (x *RouteConfiguration) GetName() string

func (*RouteConfiguration) GetRoutes Uses

func (x *RouteConfiguration) GetRoutes() []*Route

func (*RouteConfiguration) ProtoMessage Uses

func (*RouteConfiguration) ProtoMessage()

func (*RouteConfiguration) ProtoReflect Uses

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

func (*RouteConfiguration) Reset Uses

func (x *RouteConfiguration) Reset()

func (*RouteConfiguration) String Uses

func (x *RouteConfiguration) String() string

func (*RouteConfiguration) Validate Uses

func (m *RouteConfiguration) Validate() error

Validate checks the field values on RouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RouteConfigurationValidationError Uses

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

RouteConfigurationValidationError is the validation error returned by RouteConfiguration.Validate if the designated constraints aren't met.

func (RouteConfigurationValidationError) Cause Uses

func (e RouteConfigurationValidationError) Cause() error

Cause function returns cause value.

func (RouteConfigurationValidationError) Error Uses

func (e RouteConfigurationValidationError) Error() string

Error satisfies the builtin error interface

func (RouteConfigurationValidationError) ErrorName Uses

func (e RouteConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (RouteConfigurationValidationError) Field Uses

func (e RouteConfigurationValidationError) Field() string

Field function returns field value.

func (RouteConfigurationValidationError) Key Uses

func (e RouteConfigurationValidationError) Key() bool

Key function returns key value.

func (RouteConfigurationValidationError) Reason Uses

func (e RouteConfigurationValidationError) Reason() string

Reason function returns reason value.

type RouteMatch Uses

type RouteMatch struct {

    // Types that are assignable to MatchSpecifier:
    //	*RouteMatch_MethodName
    //	*RouteMatch_ServiceName
    MatchSpecifier isRouteMatch_MatchSpecifier `protobuf_oneof:"match_specifier"`
    // Inverts whatever matching is done in the :ref:`method_name
    // <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.method_name>` or
    // :ref:`service_name
    // <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.service_name>` fields.
    // Cannot be combined with wildcard matching as that would result in routes never being matched.
    //
    // .. note::
    //
    //   This does not invert matching done as part of the :ref:`headers field
    //   <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.headers>` field. To
    //   invert header matching, see :ref:`invert_match
    //   <envoy_api_field_route.HeaderMatcher.invert_match>`.
    Invert bool `protobuf:"varint,3,opt,name=invert,proto3" json:"invert,omitempty"`
    // Specifies a set of headers that the route should match on. The router will check the request’s
    // headers against all the specified headers in the route config. A match will happen if all the
    // headers in the route are present in the request with the same values (or based on presence if
    // the value field is not in the config). Note that this only applies for Thrift transports and/or
    // protocols that support headers.
    Headers []*route.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
    // contains filtered or unexported fields
}

func (*RouteMatch) Descriptor Uses

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

Deprecated: Use RouteMatch.ProtoReflect.Descriptor instead.

func (*RouteMatch) GetHeaders Uses

func (x *RouteMatch) GetHeaders() []*route.HeaderMatcher

func (*RouteMatch) GetInvert Uses

func (x *RouteMatch) GetInvert() bool

func (*RouteMatch) GetMatchSpecifier Uses

func (m *RouteMatch) GetMatchSpecifier() isRouteMatch_MatchSpecifier

func (*RouteMatch) GetMethodName Uses

func (x *RouteMatch) GetMethodName() string

func (*RouteMatch) GetServiceName Uses

func (x *RouteMatch) GetServiceName() string

func (*RouteMatch) ProtoMessage Uses

func (*RouteMatch) ProtoMessage()

func (*RouteMatch) ProtoReflect Uses

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

func (*RouteMatch) Reset Uses

func (x *RouteMatch) Reset()

func (*RouteMatch) String Uses

func (x *RouteMatch) String() string

func (*RouteMatch) Validate Uses

func (m *RouteMatch) Validate() error

Validate checks the field values on RouteMatch with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RouteMatchValidationError Uses

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

RouteMatchValidationError is the validation error returned by RouteMatch.Validate if the designated constraints aren't met.

func (RouteMatchValidationError) Cause Uses

func (e RouteMatchValidationError) Cause() error

Cause function returns cause value.

func (RouteMatchValidationError) Error Uses

func (e RouteMatchValidationError) Error() string

Error satisfies the builtin error interface

func (RouteMatchValidationError) ErrorName Uses

func (e RouteMatchValidationError) ErrorName() string

ErrorName returns error name.

func (RouteMatchValidationError) Field Uses

func (e RouteMatchValidationError) Field() string

Field function returns field value.

func (RouteMatchValidationError) Key Uses

func (e RouteMatchValidationError) Key() bool

Key function returns key value.

func (RouteMatchValidationError) Reason Uses

func (e RouteMatchValidationError) Reason() string

Reason function returns reason value.

type RouteMatch_MethodName Uses

type RouteMatch_MethodName struct {
    // If specified, the route must exactly match the request method name. As a special case, an
    // empty string matches any request method name.
    MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3,oneof"`
}

type RouteMatch_ServiceName Uses

type RouteMatch_ServiceName struct {
    // If specified, the route must have the service name as the request method name prefix. As a
    // special case, an empty string matches any service name. Only relevant when service
    // multiplexing.
    ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3,oneof"`
}

type RouteValidationError Uses

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

RouteValidationError is the validation error returned by Route.Validate if the designated constraints aren't met.

func (RouteValidationError) Cause Uses

func (e RouteValidationError) Cause() error

Cause function returns cause value.

func (RouteValidationError) Error Uses

func (e RouteValidationError) Error() string

Error satisfies the builtin error interface

func (RouteValidationError) ErrorName Uses

func (e RouteValidationError) ErrorName() string

ErrorName returns error name.

func (RouteValidationError) Field Uses

func (e RouteValidationError) Field() string

Field function returns field value.

func (RouteValidationError) Key Uses

func (e RouteValidationError) Key() bool

Key function returns key value.

func (RouteValidationError) Reason Uses

func (e RouteValidationError) Reason() string

Reason function returns reason value.

type ThriftFilter Uses

type ThriftFilter struct {

    // The name of the filter to instantiate. The name must match a supported
    // filter. The built-in filters are:
    //
    // [#comment:TODO(zuercher): Auto generate the following list]
    // * :ref:`envoy.filters.thrift.router <config_thrift_filters_router>`
    // * :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit>`
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Filter specific configuration which depends on the filter being instantiated. See the supported
    // filters for further documentation.
    //
    // Types that are assignable to ConfigType:
    //	*ThriftFilter_Config
    //	*ThriftFilter_TypedConfig
    ConfigType isThriftFilter_ConfigType `protobuf_oneof:"config_type"`
    // contains filtered or unexported fields
}

ThriftFilter configures a Thrift filter.

func (*ThriftFilter) Descriptor Uses

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

Deprecated: Use ThriftFilter.ProtoReflect.Descriptor instead.

func (*ThriftFilter) GetConfig Uses

func (x *ThriftFilter) GetConfig() *_struct.Struct

Deprecated: Do not use.

func (*ThriftFilter) GetConfigType Uses

func (m *ThriftFilter) GetConfigType() isThriftFilter_ConfigType

func (*ThriftFilter) GetName Uses

func (x *ThriftFilter) GetName() string

func (*ThriftFilter) GetTypedConfig Uses

func (x *ThriftFilter) GetTypedConfig() *any.Any

func (*ThriftFilter) ProtoMessage Uses

func (*ThriftFilter) ProtoMessage()

func (*ThriftFilter) ProtoReflect Uses

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

func (*ThriftFilter) Reset Uses

func (x *ThriftFilter) Reset()

func (*ThriftFilter) String Uses

func (x *ThriftFilter) String() string

func (*ThriftFilter) Validate Uses

func (m *ThriftFilter) Validate() error

Validate checks the field values on ThriftFilter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ThriftFilterValidationError Uses

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

ThriftFilterValidationError is the validation error returned by ThriftFilter.Validate if the designated constraints aren't met.

func (ThriftFilterValidationError) Cause Uses

func (e ThriftFilterValidationError) Cause() error

Cause function returns cause value.

func (ThriftFilterValidationError) Error Uses

func (e ThriftFilterValidationError) Error() string

Error satisfies the builtin error interface

func (ThriftFilterValidationError) ErrorName Uses

func (e ThriftFilterValidationError) ErrorName() string

ErrorName returns error name.

func (ThriftFilterValidationError) Field Uses

func (e ThriftFilterValidationError) Field() string

Field function returns field value.

func (ThriftFilterValidationError) Key Uses

func (e ThriftFilterValidationError) Key() bool

Key function returns key value.

func (ThriftFilterValidationError) Reason Uses

func (e ThriftFilterValidationError) Reason() string

Reason function returns reason value.

type ThriftFilter_Config Uses

type ThriftFilter_Config struct {
    // Deprecated: Do not use.
    Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type ThriftFilter_TypedConfig Uses

type ThriftFilter_TypedConfig struct {
    TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type ThriftProtocolOptions Uses

type ThriftProtocolOptions struct {

    // Supplies the type of transport that the Thrift proxy should use for upstream connections.
    // Selecting
    // :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
    // which is the default, causes the proxy to use the same transport as the downstream connection.
    Transport TransportType `protobuf:"varint,1,opt,name=transport,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType" json:"transport,omitempty"`
    // Supplies the type of protocol that the Thrift proxy should use for upstream connections.
    // Selecting
    // :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
    // which is the default, causes the proxy to use the same protocol as the downstream connection.
    Protocol ProtocolType `protobuf:"varint,2,opt,name=protocol,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType" json:"protocol,omitempty"`
    // contains filtered or unexported fields
}

ThriftProtocolOptions specifies Thrift upstream protocol options. This object is used in in :ref:`typed_extension_protocol_options<envoy_api_field_Cluster.typed_extension_protocol_options>`, keyed by the name `envoy.filters.network.thrift_proxy`.

func (*ThriftProtocolOptions) Descriptor Uses

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

Deprecated: Use ThriftProtocolOptions.ProtoReflect.Descriptor instead.

func (*ThriftProtocolOptions) GetProtocol Uses

func (x *ThriftProtocolOptions) GetProtocol() ProtocolType

func (*ThriftProtocolOptions) GetTransport Uses

func (x *ThriftProtocolOptions) GetTransport() TransportType

func (*ThriftProtocolOptions) ProtoMessage Uses

func (*ThriftProtocolOptions) ProtoMessage()

func (*ThriftProtocolOptions) ProtoReflect Uses

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

func (*ThriftProtocolOptions) Reset Uses

func (x *ThriftProtocolOptions) Reset()

func (*ThriftProtocolOptions) String Uses

func (x *ThriftProtocolOptions) String() string

func (*ThriftProtocolOptions) Validate Uses

func (m *ThriftProtocolOptions) Validate() error

Validate checks the field values on ThriftProtocolOptions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ThriftProtocolOptionsValidationError Uses

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

ThriftProtocolOptionsValidationError is the validation error returned by ThriftProtocolOptions.Validate if the designated constraints aren't met.

func (ThriftProtocolOptionsValidationError) Cause Uses

func (e ThriftProtocolOptionsValidationError) Cause() error

Cause function returns cause value.

func (ThriftProtocolOptionsValidationError) Error Uses

func (e ThriftProtocolOptionsValidationError) Error() string

Error satisfies the builtin error interface

func (ThriftProtocolOptionsValidationError) ErrorName Uses

func (e ThriftProtocolOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (ThriftProtocolOptionsValidationError) Field Uses

func (e ThriftProtocolOptionsValidationError) Field() string

Field function returns field value.

func (ThriftProtocolOptionsValidationError) Key Uses

func (e ThriftProtocolOptionsValidationError) Key() bool

Key function returns key value.

func (ThriftProtocolOptionsValidationError) Reason Uses

func (e ThriftProtocolOptionsValidationError) Reason() string

Reason function returns reason value.

type ThriftProxy Uses

type ThriftProxy struct {

    // Supplies the type of transport that the Thrift proxy should use. Defaults to
    // :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`.
    Transport TransportType `protobuf:"varint,2,opt,name=transport,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType" json:"transport,omitempty"`
    // Supplies the type of protocol that the Thrift proxy should use. Defaults to
    // :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
    Protocol ProtocolType `protobuf:"varint,3,opt,name=protocol,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType" json:"protocol,omitempty"`
    // The human readable prefix to use when emitting statistics.
    StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
    // The route table for the connection manager is static and is specified in this property.
    RouteConfig *RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"`
    // A list of individual Thrift filters that make up the filter chain for requests made to the
    // Thrift proxy. Order matters as the filters are processed sequentially. For backwards
    // compatibility, if no thrift_filters are specified, a default Thrift router filter
    // (`envoy.filters.thrift.router`) is used.
    ThriftFilters []*ThriftFilter `protobuf:"bytes,5,rep,name=thrift_filters,json=thriftFilters,proto3" json:"thrift_filters,omitempty"`
    // contains filtered or unexported fields
}

[#next-free-field: 6]

func (*ThriftProxy) Descriptor Uses

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

Deprecated: Use ThriftProxy.ProtoReflect.Descriptor instead.

func (*ThriftProxy) GetProtocol Uses

func (x *ThriftProxy) GetProtocol() ProtocolType

func (*ThriftProxy) GetRouteConfig Uses

func (x *ThriftProxy) GetRouteConfig() *RouteConfiguration

func (*ThriftProxy) GetStatPrefix Uses

func (x *ThriftProxy) GetStatPrefix() string

func (*ThriftProxy) GetThriftFilters Uses

func (x *ThriftProxy) GetThriftFilters() []*ThriftFilter

func (*ThriftProxy) GetTransport Uses

func (x *ThriftProxy) GetTransport() TransportType

func (*ThriftProxy) ProtoMessage Uses

func (*ThriftProxy) ProtoMessage()

func (*ThriftProxy) ProtoReflect Uses

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

func (*ThriftProxy) Reset Uses

func (x *ThriftProxy) Reset()

func (*ThriftProxy) String Uses

func (x *ThriftProxy) String() string

func (*ThriftProxy) Validate Uses

func (m *ThriftProxy) Validate() error

Validate checks the field values on ThriftProxy with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ThriftProxyValidationError Uses

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

ThriftProxyValidationError is the validation error returned by ThriftProxy.Validate if the designated constraints aren't met.

func (ThriftProxyValidationError) Cause Uses

func (e ThriftProxyValidationError) Cause() error

Cause function returns cause value.

func (ThriftProxyValidationError) Error Uses

func (e ThriftProxyValidationError) Error() string

Error satisfies the builtin error interface

func (ThriftProxyValidationError) ErrorName Uses

func (e ThriftProxyValidationError) ErrorName() string

ErrorName returns error name.

func (ThriftProxyValidationError) Field Uses

func (e ThriftProxyValidationError) Field() string

Field function returns field value.

func (ThriftProxyValidationError) Key Uses

func (e ThriftProxyValidationError) Key() bool

Key function returns key value.

func (ThriftProxyValidationError) Reason Uses

func (e ThriftProxyValidationError) Reason() string

Reason function returns reason value.

type TransportType Uses

type TransportType int32

Thrift transport types supported by Envoy.

const (
    // For downstream connections, the Thrift proxy will attempt to determine which transport to use.
    // For upstream connections, the Thrift proxy will use same transport as the downstream
    // connection.
    TransportType_AUTO_TRANSPORT TransportType = 0
    // The Thrift proxy will use the Thrift framed transport.
    TransportType_FRAMED TransportType = 1
    // The Thrift proxy will use the Thrift unframed transport.
    TransportType_UNFRAMED TransportType = 2
    // The Thrift proxy will assume the client is using the Thrift header transport.
    TransportType_HEADER TransportType = 3
)

func (TransportType) Descriptor Uses

func (TransportType) Descriptor() protoreflect.EnumDescriptor

func (TransportType) Enum Uses

func (x TransportType) Enum() *TransportType

func (TransportType) EnumDescriptor Uses

func (TransportType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransportType.Descriptor instead.

func (TransportType) Number Uses

func (x TransportType) Number() protoreflect.EnumNumber

func (TransportType) String Uses

func (x TransportType) String() string

func (TransportType) Type Uses

func (TransportType) Type() protoreflect.EnumType

type WeightedCluster Uses

type WeightedCluster struct {

    // Specifies one or more upstream clusters associated with the route.
    Clusters []*WeightedCluster_ClusterWeight `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
    // contains filtered or unexported fields
}

Allows for specification of multiple upstream clusters along with weights that indicate the percentage of traffic to be forwarded to each cluster. The router selects an upstream cluster based on these weights.

func (*WeightedCluster) Descriptor Uses

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

Deprecated: Use WeightedCluster.ProtoReflect.Descriptor instead.

func (*WeightedCluster) GetClusters Uses

func (x *WeightedCluster) GetClusters() []*WeightedCluster_ClusterWeight

func (*WeightedCluster) ProtoMessage Uses

func (*WeightedCluster) ProtoMessage()

func (*WeightedCluster) ProtoReflect Uses

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

func (*WeightedCluster) Reset Uses

func (x *WeightedCluster) Reset()

func (*WeightedCluster) String Uses

func (x *WeightedCluster) String() string

func (*WeightedCluster) Validate Uses

func (m *WeightedCluster) Validate() error

Validate checks the field values on WeightedCluster with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WeightedClusterValidationError Uses

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

WeightedClusterValidationError is the validation error returned by WeightedCluster.Validate if the designated constraints aren't met.

func (WeightedClusterValidationError) Cause Uses

func (e WeightedClusterValidationError) Cause() error

Cause function returns cause value.

func (WeightedClusterValidationError) Error Uses

func (e WeightedClusterValidationError) Error() string

Error satisfies the builtin error interface

func (WeightedClusterValidationError) ErrorName Uses

func (e WeightedClusterValidationError) ErrorName() string

ErrorName returns error name.

func (WeightedClusterValidationError) Field Uses

func (e WeightedClusterValidationError) Field() string

Field function returns field value.

func (WeightedClusterValidationError) Key Uses

func (e WeightedClusterValidationError) Key() bool

Key function returns key value.

func (WeightedClusterValidationError) Reason Uses

func (e WeightedClusterValidationError) Reason() string

Reason function returns reason value.

type WeightedCluster_ClusterWeight Uses

type WeightedCluster_ClusterWeight struct {

    // Name of the upstream cluster.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // When a request matches the route, the choice of an upstream cluster is determined by its
    // weight. The sum of weights across all entries in the clusters array determines the total
    // weight.
    Weight *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
    // Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in
    // the upstream cluster with metadata matching what is set in this field, combined with what's
    // provided in :ref:`RouteAction's metadata_match
    // <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
    // will be considered. Values here will take precedence. Keys and values should be provided
    // under the "envoy.lb" metadata key.
    MetadataMatch *core.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"`
    // contains filtered or unexported fields
}

func (*WeightedCluster_ClusterWeight) Descriptor Uses

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

Deprecated: Use WeightedCluster_ClusterWeight.ProtoReflect.Descriptor instead.

func (*WeightedCluster_ClusterWeight) GetMetadataMatch Uses

func (x *WeightedCluster_ClusterWeight) GetMetadataMatch() *core.Metadata

func (*WeightedCluster_ClusterWeight) GetName Uses

func (x *WeightedCluster_ClusterWeight) GetName() string

func (*WeightedCluster_ClusterWeight) GetWeight Uses

func (x *WeightedCluster_ClusterWeight) GetWeight() *wrappers.UInt32Value

func (*WeightedCluster_ClusterWeight) ProtoMessage Uses

func (*WeightedCluster_ClusterWeight) ProtoMessage()

func (*WeightedCluster_ClusterWeight) ProtoReflect Uses

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

func (*WeightedCluster_ClusterWeight) Reset Uses

func (x *WeightedCluster_ClusterWeight) Reset()

func (*WeightedCluster_ClusterWeight) String Uses

func (x *WeightedCluster_ClusterWeight) String() string

func (*WeightedCluster_ClusterWeight) Validate Uses

func (m *WeightedCluster_ClusterWeight) Validate() error

Validate checks the field values on WeightedCluster_ClusterWeight with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WeightedCluster_ClusterWeightValidationError Uses

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

WeightedCluster_ClusterWeightValidationError is the validation error returned by WeightedCluster_ClusterWeight.Validate if the designated constraints aren't met.

func (WeightedCluster_ClusterWeightValidationError) Cause Uses

func (e WeightedCluster_ClusterWeightValidationError) Cause() error

Cause function returns cause value.

func (WeightedCluster_ClusterWeightValidationError) Error Uses

func (e WeightedCluster_ClusterWeightValidationError) Error() string

Error satisfies the builtin error interface

func (WeightedCluster_ClusterWeightValidationError) ErrorName Uses

func (e WeightedCluster_ClusterWeightValidationError) ErrorName() string

ErrorName returns error name.

func (WeightedCluster_ClusterWeightValidationError) Field Uses

func (e WeightedCluster_ClusterWeightValidationError) Field() string

Field function returns field value.

func (WeightedCluster_ClusterWeightValidationError) Key Uses

func (e WeightedCluster_ClusterWeightValidationError) Key() bool

Key function returns key value.

func (WeightedCluster_ClusterWeightValidationError) Reason Uses

func (e WeightedCluster_ClusterWeightValidationError) Reason() string

Reason function returns reason value.

Package envoy_config_filter_network_thrift_proxy_v2alpha1 imports 23 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.