Documentation ¶
Overview ¶
Package v2 is a generated protocol buffer package.
It is generated from these files:
envoy/extensions/filters/network/thrift_proxy/v2alpha1/route.proto envoy/extensions/filters/network/thrift_proxy/v2alpha1/thrift_proxy.proto
It has these top-level messages:
RouteConfiguration Route RouteMatch RouteAction ThriftProxy
Index ¶
- Variables
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetMatch() RouteMatch
- func (m *Route) GetRoute() RouteAction
- func (m *Route) Marshal() (dAtA []byte, err error)
- func (m *Route) MarshalTo(dAtA []byte) (int, error)
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) Size() (n int)
- func (m *Route) String() string
- func (m *Route) Unmarshal(dAtA []byte) error
- func (m *Route) Validate() error
- type RouteAction
- func (*RouteAction) Descriptor() ([]byte, []int)
- func (m *RouteAction) GetCluster() string
- func (m *RouteAction) Marshal() (dAtA []byte, err error)
- func (m *RouteAction) MarshalTo(dAtA []byte) (int, error)
- func (*RouteAction) ProtoMessage()
- func (m *RouteAction) Reset()
- func (m *RouteAction) Size() (n int)
- func (m *RouteAction) String() string
- func (m *RouteAction) Unmarshal(dAtA []byte) error
- func (m *RouteAction) Validate() error
- type RouteActionValidationError
- type RouteConfiguration
- func (*RouteConfiguration) Descriptor() ([]byte, []int)
- func (m *RouteConfiguration) GetName() string
- func (m *RouteConfiguration) GetRoutes() []Route
- func (m *RouteConfiguration) Marshal() (dAtA []byte, err error)
- func (m *RouteConfiguration) MarshalTo(dAtA []byte) (int, error)
- func (*RouteConfiguration) ProtoMessage()
- func (m *RouteConfiguration) Reset()
- func (m *RouteConfiguration) Size() (n int)
- func (m *RouteConfiguration) String() string
- func (m *RouteConfiguration) Unmarshal(dAtA []byte) error
- func (m *RouteConfiguration) Validate() error
- type RouteConfigurationValidationError
- type RouteMatch
- func (*RouteMatch) Descriptor() ([]byte, []int)
- func (m *RouteMatch) GetMethod() string
- func (m *RouteMatch) Marshal() (dAtA []byte, err error)
- func (m *RouteMatch) MarshalTo(dAtA []byte) (int, error)
- func (*RouteMatch) ProtoMessage()
- func (m *RouteMatch) Reset()
- func (m *RouteMatch) Size() (n int)
- func (m *RouteMatch) String() string
- func (m *RouteMatch) Unmarshal(dAtA []byte) error
- func (m *RouteMatch) Validate() error
- type RouteMatchValidationError
- type RouteValidationError
- type ThriftProxy
- func (*ThriftProxy) Descriptor() ([]byte, []int)
- func (m *ThriftProxy) GetProtocol() ThriftProxy_ProtocolType
- func (m *ThriftProxy) GetRouteConfig() *RouteConfiguration
- func (m *ThriftProxy) GetStatPrefix() string
- func (m *ThriftProxy) GetTransport() ThriftProxy_TransportType
- func (m *ThriftProxy) Marshal() (dAtA []byte, err error)
- func (m *ThriftProxy) MarshalTo(dAtA []byte) (int, error)
- func (*ThriftProxy) ProtoMessage()
- func (m *ThriftProxy) Reset()
- func (m *ThriftProxy) Size() (n int)
- func (m *ThriftProxy) String() string
- func (m *ThriftProxy) Unmarshal(dAtA []byte) error
- func (m *ThriftProxy) Validate() error
- type ThriftProxyValidationError
- type ThriftProxy_ProtocolType
- type ThriftProxy_TransportType
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthRoute = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRoute = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthThriftProxy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowThriftProxy = fmt.Errorf("proto: integer overflow") )
var ThriftProxy_ProtocolType_name = map[int32]string{
0: "AUTO_PROTOCOL",
1: "BINARY",
2: "LAX_BINARY",
3: "COMPACT",
}
var ThriftProxy_ProtocolType_value = map[string]int32{
"AUTO_PROTOCOL": 0,
"BINARY": 1,
"LAX_BINARY": 2,
"COMPACT": 3,
}
var ThriftProxy_TransportType_name = map[int32]string{
0: "AUTO_TRANSPORT",
1: "FRAMED",
2: "UNFRAMED",
}
var ThriftProxy_TransportType_value = map[string]int32{
"AUTO_TRANSPORT": 0,
"FRAMED": 1,
"UNFRAMED": 2,
}
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { // Route matching prarameters. Match RouteMatch `protobuf:"bytes,1,opt,name=match" json:"match"` // Route request to some upstream cluster. Route RouteAction `protobuf:"bytes,2,opt,name=route" json:"route"` }
[#comment:next free field: 3]
func (*Route) Descriptor ¶
func (*Route) GetMatch ¶
func (m *Route) GetMatch() RouteMatch
func (*Route) GetRoute ¶
func (m *Route) GetRoute() RouteAction
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
type RouteAction ¶
type RouteAction struct { // Indicates the upstream cluster to which the request should be routed. Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` }
[#comment:next free field: 2]
func (*RouteAction) Descriptor ¶
func (*RouteAction) Descriptor() ([]byte, []int)
func (*RouteAction) GetCluster ¶
func (m *RouteAction) GetCluster() string
func (*RouteAction) Marshal ¶
func (m *RouteAction) Marshal() (dAtA []byte, err error)
func (*RouteAction) ProtoMessage ¶
func (*RouteAction) ProtoMessage()
func (*RouteAction) Reset ¶
func (m *RouteAction) Reset()
func (*RouteAction) Size ¶
func (m *RouteAction) Size() (n int)
func (*RouteAction) String ¶
func (m *RouteAction) String() string
func (*RouteAction) Unmarshal ¶
func (m *RouteAction) Unmarshal(dAtA []byte) error
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, an error is returned.
type RouteActionValidationError ¶
RouteActionValidationError is the validation error returned by RouteAction.Validate if the designated constraints aren't met.
func (RouteActionValidationError) Error ¶
func (e RouteActionValidationError) Error() string
Error satisfies the builtin error interface
type RouteConfiguration ¶
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" json:"routes"` }
[#comment:next free field: 3]
func (*RouteConfiguration) Descriptor ¶
func (*RouteConfiguration) Descriptor() ([]byte, []int)
func (*RouteConfiguration) GetName ¶
func (m *RouteConfiguration) GetName() string
func (*RouteConfiguration) GetRoutes ¶
func (m *RouteConfiguration) GetRoutes() []Route
func (*RouteConfiguration) Marshal ¶
func (m *RouteConfiguration) Marshal() (dAtA []byte, err error)
func (*RouteConfiguration) MarshalTo ¶
func (m *RouteConfiguration) MarshalTo(dAtA []byte) (int, error)
func (*RouteConfiguration) ProtoMessage ¶
func (*RouteConfiguration) ProtoMessage()
func (*RouteConfiguration) Reset ¶
func (m *RouteConfiguration) Reset()
func (*RouteConfiguration) Size ¶
func (m *RouteConfiguration) Size() (n int)
func (*RouteConfiguration) String ¶
func (m *RouteConfiguration) String() string
func (*RouteConfiguration) Unmarshal ¶
func (m *RouteConfiguration) Unmarshal(dAtA []byte) error
func (*RouteConfiguration) Validate ¶
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 ¶
RouteConfigurationValidationError is the validation error returned by RouteConfiguration.Validate if the designated constraints aren't met.
func (RouteConfigurationValidationError) Error ¶
func (e RouteConfigurationValidationError) Error() string
Error satisfies the builtin error interface
type RouteMatch ¶
type RouteMatch struct { // If specified, the route must exactly match the request method name. As a special case, an // empty string matches any request method name. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` }
[#comment:next free field: 2]
func (*RouteMatch) Descriptor ¶
func (*RouteMatch) Descriptor() ([]byte, []int)
func (*RouteMatch) GetMethod ¶
func (m *RouteMatch) GetMethod() string
func (*RouteMatch) Marshal ¶
func (m *RouteMatch) Marshal() (dAtA []byte, err error)
func (*RouteMatch) ProtoMessage ¶
func (*RouteMatch) ProtoMessage()
func (*RouteMatch) Reset ¶
func (m *RouteMatch) Reset()
func (*RouteMatch) Size ¶
func (m *RouteMatch) Size() (n int)
func (*RouteMatch) String ¶
func (m *RouteMatch) String() string
func (*RouteMatch) Unmarshal ¶
func (m *RouteMatch) Unmarshal(dAtA []byte) error
func (*RouteMatch) Validate ¶
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 ¶
RouteMatchValidationError is the validation error returned by RouteMatch.Validate if the designated constraints aren't met.
func (RouteMatchValidationError) Error ¶
func (e RouteMatchValidationError) Error() string
Error satisfies the builtin error interface
type RouteValidationError ¶
RouteValidationError is the validation error returned by Route.Validate if the designated constraints aren't met.
func (RouteValidationError) Error ¶
func (e RouteValidationError) Error() string
Error satisfies the builtin error interface
type ThriftProxy ¶
type ThriftProxy struct { // Supplies the type of transport that the Thrift proxy should use. Defaults to `AUTO_TRANSPORT`. Transport ThriftProxy_TransportType `` /* 158-byte string literal not displayed */ // Supplies the type of protocol that the Thrift proxy should use. Defaults to `AUTO_PROTOCOL`. Protocol ThriftProxy_ProtocolType `` /* 155-byte string literal not displayed */ // 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" json:"route_config,omitempty"` }
[#protodoc-title: Extensions Thrift Proxy] Thrift Proxy filter configuration. [#comment:next free field: 5]
func (*ThriftProxy) Descriptor ¶
func (*ThriftProxy) Descriptor() ([]byte, []int)
func (*ThriftProxy) GetProtocol ¶
func (m *ThriftProxy) GetProtocol() ThriftProxy_ProtocolType
func (*ThriftProxy) GetRouteConfig ¶
func (m *ThriftProxy) GetRouteConfig() *RouteConfiguration
func (*ThriftProxy) GetStatPrefix ¶
func (m *ThriftProxy) GetStatPrefix() string
func (*ThriftProxy) GetTransport ¶
func (m *ThriftProxy) GetTransport() ThriftProxy_TransportType
func (*ThriftProxy) Marshal ¶
func (m *ThriftProxy) Marshal() (dAtA []byte, err error)
func (*ThriftProxy) ProtoMessage ¶
func (*ThriftProxy) ProtoMessage()
func (*ThriftProxy) Reset ¶
func (m *ThriftProxy) Reset()
func (*ThriftProxy) Size ¶
func (m *ThriftProxy) Size() (n int)
func (*ThriftProxy) String ¶
func (m *ThriftProxy) String() string
func (*ThriftProxy) Unmarshal ¶
func (m *ThriftProxy) Unmarshal(dAtA []byte) error
func (*ThriftProxy) Validate ¶
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 ¶
ThriftProxyValidationError is the validation error returned by ThriftProxy.Validate if the designated constraints aren't met.
func (ThriftProxyValidationError) Error ¶
func (e ThriftProxyValidationError) Error() string
Error satisfies the builtin error interface
type ThriftProxy_ProtocolType ¶
type ThriftProxy_ProtocolType int32
const ( // For every new connection, the Thrift proxy will determine which protocol to use. // N.B. The older, non-strict binary protocol is not included in automatic protocol // detection. AUTO_PROTOCOL ThriftProxy_ProtocolType = 0 // The Thrift proxy will assume the client is using the Thrift binary protocol. BINARY ThriftProxy_ProtocolType = 1 // The Thrift proxy will assume the client is using the Thrift non-strict binary protocol. LAX_BINARY ThriftProxy_ProtocolType = 2 // The Thrift proxy will assume the client is using the Thrift compact protocol. COMPACT ThriftProxy_ProtocolType = 3 )
func (ThriftProxy_ProtocolType) EnumDescriptor ¶
func (ThriftProxy_ProtocolType) EnumDescriptor() ([]byte, []int)
func (ThriftProxy_ProtocolType) String ¶
func (x ThriftProxy_ProtocolType) String() string
type ThriftProxy_TransportType ¶
type ThriftProxy_TransportType int32
const ( // For every new connection, the Thrift proxy will determine which transport to use. AUTO_TRANSPORT ThriftProxy_TransportType = 0 // The Thrift proxy will assume the client is using the Thrift framed transport. FRAMED ThriftProxy_TransportType = 1 // The Thrift proxy will assume the client is using the Thrift unframed transport. UNFRAMED ThriftProxy_TransportType = 2 )
func (ThriftProxy_TransportType) EnumDescriptor ¶
func (ThriftProxy_TransportType) EnumDescriptor() ([]byte, []int)
func (ThriftProxy_TransportType) String ¶
func (x ThriftProxy_TransportType) String() string