v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRoute = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRoute   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthThriftProxy = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowThriftProxy   = fmt.Errorf("proto: integer overflow")
)
View Source
var ThriftProxy_ProtocolType_name = map[int32]string{
	0: "AUTO_PROTOCOL",
	1: "BINARY",
	2: "LAX_BINARY",
	3: "COMPACT",
}
View Source
var ThriftProxy_ProtocolType_value = map[string]int32{
	"AUTO_PROTOCOL": 0,
	"BINARY":        1,
	"LAX_BINARY":    2,
	"COMPACT":       3,
}
View Source
var ThriftProxy_TransportType_name = map[int32]string{
	0: "AUTO_TRANSPORT",
	1: "FRAMED",
	2: "UNFRAMED",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Route) GetMatch

func (m *Route) GetMatch() RouteMatch

func (*Route) GetRoute

func (m *Route) GetRoute() RouteAction

func (*Route) Marshal

func (m *Route) Marshal() (dAtA []byte, err error)

func (*Route) MarshalTo

func (m *Route) MarshalTo(dAtA []byte) (int, error)

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) Size

func (m *Route) Size() (n int)

func (*Route) String

func (m *Route) String() string

func (*Route) Unmarshal

func (m *Route) Unmarshal(dAtA []byte) error

func (*Route) Validate

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

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) MarshalTo

func (m *RouteAction) MarshalTo(dAtA []byte) (int, 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

type RouteActionValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

RouteActionValidationError is the validation error returned by RouteAction.Validate if the designated constraints aren't met.

func (RouteActionValidationError) Error

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

type RouteConfigurationValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (RouteConfigurationValidationError) Error

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) MarshalTo

func (m *RouteMatch) MarshalTo(dAtA []byte) (int, 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

type RouteMatchValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (RouteMatchValidationError) Error

Error satisfies the builtin error interface

type RouteValidationError

type RouteValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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) MarshalTo

func (m *ThriftProxy) MarshalTo(dAtA []byte) (int, 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

type ThriftProxyValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (ThriftProxyValidationError) Error

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

Directories

Path Synopsis
Package router is a generated protocol buffer package.
Package router is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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