v2

package
v0.0.0-...-2f21695 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

x_proxy.proto

It has these top-level messages:

XProxy
Rds
StreamFilter

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthXProxy = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowXProxy   = fmt.Errorf("proto: integer overflow")
)
View Source
var XProxy_Protocol_name = map[int32]string{
	0: "X",
	1: "Http2",
}
View Source
var XProxy_Protocol_value = map[string]int32{
	"X":     0,
	"Http2": 1,
}
View Source
var XProxy_Tracing_OperationName_name = map[int32]string{
	0: "INGRESS",
	1: "EGRESS",
}
View Source
var XProxy_Tracing_OperationName_value = map[string]int32{
	"INGRESS": 0,
	"EGRESS":  1,
}

Functions

This section is empty.

Types

type Rds

type Rds struct {
	// Configuration source specifier for RDS.
	ConfigSource envoy_api_v2_core2.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource" json:"config_source"`
	// The name of the route configuration. This name will be passed to the RDS
	// API. This allows an Envoy configuration with multiple HTTP listeners (and
	// associated HTTP connection manager filters) to use different route
	// configurations.
	RouteConfigName string `protobuf:"bytes,2,opt,name=route_config_name,json=routeConfigName,proto3" json:"route_config_name,omitempty"`
}

func (*Rds) Descriptor

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

func (*Rds) GetConfigSource

func (m *Rds) GetConfigSource() envoy_api_v2_core2.ConfigSource

func (*Rds) GetRouteConfigName

func (m *Rds) GetRouteConfigName() string

func (*Rds) Marshal

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

func (*Rds) MarshalTo

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

func (*Rds) ProtoMessage

func (*Rds) ProtoMessage()

func (*Rds) Reset

func (m *Rds) Reset()

func (*Rds) Size

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

func (*Rds) String

func (m *Rds) String() string

func (*Rds) Unmarshal

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

type StreamFilter

type StreamFilter struct {
	// The name of the filter to instantiate. The name must match a supported
	// filter. The built-in filters are:
	//
	// [#comment:TODO(mattklein123): Auto generate the following list]
	// * :ref:`envoy.buffer <config_http_filters_buffer>`
	// * :ref:`envoy.cors <config_http_filters_cors>`
	// * :ref:`envoy.fault <config_http_filters_fault_injection>`
	// * :ref:`envoy.gzip <config_http_filters_gzip>`
	// * :ref:`envoy.http_dynamo_filter <config_http_filters_dynamo>`
	// * :ref:`envoy.grpc_http1_bridge <config_http_filters_grpc_bridge>`
	// * :ref:`envoy.grpc_json_transcoder <config_http_filters_grpc_json_transcoder>`
	// * :ref:`envoy.grpc_web <config_http_filters_grpc_web>`
	// * :ref:`envoy.health_check <config_http_filters_health_check>`
	// * :ref:`envoy.header_to_metadata <config_http_filters_header_to_metadata>`
	// * :ref:`envoy.ip_tagging <config_http_filters_ip_tagging>`
	// * :ref:`envoy.lua <config_http_filters_lua>`
	// * :ref:`envoy.rate_limit <config_http_filters_rate_limit>`
	// * :ref:`envoy.router <config_http_filters_router>`
	// * :ref:`envoy.squash <config_http_filters_squash>`
	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.
	Config *google_protobuf.Struct `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
}

func (*StreamFilter) Descriptor

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

func (*StreamFilter) GetConfig

func (m *StreamFilter) GetConfig() *google_protobuf.Struct

func (*StreamFilter) GetName

func (m *StreamFilter) GetName() string

func (*StreamFilter) Marshal

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

func (*StreamFilter) MarshalTo

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

func (*StreamFilter) ProtoMessage

func (*StreamFilter) ProtoMessage()

func (*StreamFilter) Reset

func (m *StreamFilter) Reset()

func (*StreamFilter) Size

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

func (*StreamFilter) String

func (m *StreamFilter) String() string

func (*StreamFilter) Unmarshal

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

type XProxy

type XProxy struct {
	// Supplies the x's real protocol.
	XProtocol string `protobuf:"bytes,1,opt,name=x_protocol,json=xProtocol,proto3" json:"x_protocol,omitempty"`
	// The human readable prefix to use when emitting statistics for the
	// connection manager. See the :ref:`statistics documentation <config_http_conn_man_stats>` for
	// more information.
	StatPrefix string `protobuf:"bytes,2,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// Types that are valid to be assigned to RouteSpecifier:
	//	*XProxy_Rds
	//	*XProxy_RouteConfig
	RouteSpecifier     isXProxy_RouteSpecifier `protobuf_oneof:"route_specifier"`
	DownstreamProtocol XProxy_Protocol         `` /* 176-byte string literal not displayed */
	UpstreamProtocol   XProxy_Protocol         `` /* 170-byte string literal not displayed */
	// A list of individual HTTP filters that make up the filter chain for
	// requests made to the connection manager. Order matters as the filters are
	// processed sequentially as request events happen.
	StreamFilters []*StreamFilter `protobuf:"bytes,7,rep,name=stream_filters,json=streamFilters" json:"stream_filters,omitempty"`
	// A list of meta used to add to http2 header
	MetasToAddToHeader []string `protobuf:"bytes,8,rep,name=metas_to_add_to_header,json=metasToAddToHeader" json:"metas_to_add_to_header,omitempty"`
	// Presence of the object defines whether the connection manager
	// emits :ref:`tracing <arch_overview_tracing>` data to the :ref:`configured tracing provider
	// <envoy_api_msg_config.trace.v2.Tracing>`.
	Tracing *XProxy_Tracing `protobuf:"bytes,9,opt,name=tracing" json:"tracing,omitempty"`
	// An optional override that the connection manager will write to the server
	// header in responses. If not set, the default is *envoy*.
	ServerName string `protobuf:"bytes,10,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	// The idle timeout for connections managed by the connection manager. The
	// idle timeout is defined as the period in which there are no active
	// requests. If not set, there is no idle timeout. When the idle timeout is
	// reached the connection will be closed. If the connection is an HTTP/2
	// connection a drain sequence will occur prior to closing the connection. See
	// :ref:`drain_timeout
	// <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`.
	IdleTimeout *time.Duration `protobuf:"bytes,11,opt,name=idle_timeout,json=idleTimeout,stdduration" json:"idle_timeout,omitempty"`
	// The time that Envoy will wait between sending an HTTP/2 “shutdown
	// notification” (GOAWAY frame with max stream ID) and a final GOAWAY frame.
	// This is used so that Envoy provides a grace period for new streams that
	// race with the final GOAWAY frame. During this grace period, Envoy will
	// continue to accept new streams. After the grace period, a final GOAWAY
	// frame is sent and Envoy will start refusing new streams. Draining occurs
	// both when a connection hits the idle timeout or during general server
	// draining. The default grace period is 5000 milliseconds (5 seconds) if this
	// option is not specified.
	DrainTimeout *time.Duration `protobuf:"bytes,12,opt,name=drain_timeout,json=drainTimeout,stdduration" json:"drain_timeout,omitempty"`
	// Configuration for :ref:`HTTP access logs <arch_overview_access_logs>`
	// emitted by the connection manager.
	AccessLog []*envoy_config_filter_accesslog_v2.AccessLog `protobuf:"bytes,13,rep,name=access_log,json=accessLog" json:"access_log,omitempty"`
}

[#comment:next free field: 23]

func (*XProxy) Descriptor

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

func (*XProxy) GetAccessLog

func (m *XProxy) GetAccessLog() []*envoy_config_filter_accesslog_v2.AccessLog

func (*XProxy) GetDownstreamProtocol

func (m *XProxy) GetDownstreamProtocol() XProxy_Protocol

func (*XProxy) GetDrainTimeout

func (m *XProxy) GetDrainTimeout() *time.Duration

func (*XProxy) GetIdleTimeout

func (m *XProxy) GetIdleTimeout() *time.Duration

func (*XProxy) GetMetasToAddToHeader

func (m *XProxy) GetMetasToAddToHeader() []string

func (*XProxy) GetRds

func (m *XProxy) GetRds() *Rds

func (*XProxy) GetRouteConfig

func (m *XProxy) GetRouteConfig() *envoy_api_v21.RouteConfiguration

func (*XProxy) GetRouteSpecifier

func (m *XProxy) GetRouteSpecifier() isXProxy_RouteSpecifier

func (*XProxy) GetServerName

func (m *XProxy) GetServerName() string

func (*XProxy) GetStatPrefix

func (m *XProxy) GetStatPrefix() string

func (*XProxy) GetStreamFilters

func (m *XProxy) GetStreamFilters() []*StreamFilter

func (*XProxy) GetTracing

func (m *XProxy) GetTracing() *XProxy_Tracing

func (*XProxy) GetUpstreamProtocol

func (m *XProxy) GetUpstreamProtocol() XProxy_Protocol

func (*XProxy) GetXProtocol

func (m *XProxy) GetXProtocol() string

func (*XProxy) Marshal

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

func (*XProxy) MarshalTo

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

func (*XProxy) ProtoMessage

func (*XProxy) ProtoMessage()

func (*XProxy) Reset

func (m *XProxy) Reset()

func (*XProxy) Size

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

func (*XProxy) String

func (m *XProxy) String() string

func (*XProxy) Unmarshal

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

func (*XProxy) XXX_OneofFuncs

func (*XProxy) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type XProxy_Protocol

type XProxy_Protocol int32
const (
	// For every protocol
	X XProxy_Protocol = 0
	// protocol between sidecars
	Http2 XProxy_Protocol = 1
)

func (XProxy_Protocol) EnumDescriptor

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

func (XProxy_Protocol) String

func (x XProxy_Protocol) String() string

type XProxy_Rds

type XProxy_Rds struct {
	Rds *Rds `protobuf:"bytes,3,opt,name=rds,oneof"`
}

func (*XProxy_Rds) MarshalTo

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

func (*XProxy_Rds) Size

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

type XProxy_RouteConfig

type XProxy_RouteConfig struct {
	RouteConfig *envoy_api_v21.RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,oneof"`
}

func (*XProxy_RouteConfig) MarshalTo

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

func (*XProxy_RouteConfig) Size

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

type XProxy_Tracing

type XProxy_Tracing struct {
	// The span name will be derived from this field.
	OperationName XProxy_Tracing_OperationName `` /* 174-byte string literal not displayed */
	// A list of meta used to create tags for the active span
	RequestMetasForTags []string `protobuf:"bytes,2,rep,name=request_metas_for_tags,json=requestMetasForTags" json:"request_metas_for_tags,omitempty"`
	// [#not-implemented-hide:]
	// Target percentage of requests managed by this HTTP connection manager that will be force
	// traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
	// header is set. This field is a direct analog for the runtime variable
	// 'tracing.client_sampling' in the :ref:`HTTP Connection Manager
	// <config_http_conn_man_runtime>`.
	// Default: 100%
	ClientSampling *envoy_type1.Percent `protobuf:"bytes,3,opt,name=client_sampling,json=clientSampling" json:"client_sampling,omitempty"`
	// [#not-implemented-hide:]
	// Target percentage of requests managed by this HTTP connection manager that will be randomly
	// selected for trace generation, if not requested by the client or not forced. This field is
	// a direct analog for the runtime variable 'tracing.random_sampling' in the
	// :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
	// Default: 100%
	RandomSampling *envoy_type1.Percent `protobuf:"bytes,4,opt,name=random_sampling,json=randomSampling" json:"random_sampling,omitempty"`
	// [#not-implemented-hide:]
	// Target percentage of requests managed by this HTTP connection manager that will be traced
	// after all other sampling checks have been applied (client-directed, force tracing, random
	// sampling). This field functions as an upper limit on the total configured sampling rate. For
	// instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
	// of client requests with the appropriate headers to be force traced. This field is a direct
	// analog for the runtime variable 'tracing.global_enabled' in the
	// :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
	// Default: 100%
	OverallSampling *envoy_type1.Percent `protobuf:"bytes,5,opt,name=overall_sampling,json=overallSampling" json:"overall_sampling,omitempty"`
}

func (*XProxy_Tracing) Descriptor

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

func (*XProxy_Tracing) GetClientSampling

func (m *XProxy_Tracing) GetClientSampling() *envoy_type1.Percent

func (*XProxy_Tracing) GetOperationName

func (m *XProxy_Tracing) GetOperationName() XProxy_Tracing_OperationName

func (*XProxy_Tracing) GetOverallSampling

func (m *XProxy_Tracing) GetOverallSampling() *envoy_type1.Percent

func (*XProxy_Tracing) GetRandomSampling

func (m *XProxy_Tracing) GetRandomSampling() *envoy_type1.Percent

func (*XProxy_Tracing) GetRequestMetasForTags

func (m *XProxy_Tracing) GetRequestMetasForTags() []string

func (*XProxy_Tracing) Marshal

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

func (*XProxy_Tracing) MarshalTo

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

func (*XProxy_Tracing) ProtoMessage

func (*XProxy_Tracing) ProtoMessage()

func (*XProxy_Tracing) Reset

func (m *XProxy_Tracing) Reset()

func (*XProxy_Tracing) Size

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

func (*XProxy_Tracing) String

func (m *XProxy_Tracing) String() string

func (*XProxy_Tracing) Unmarshal

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

type XProxy_Tracing_OperationName

type XProxy_Tracing_OperationName int32
const (
	// The XProxy listener is used for ingress/incoming requests.
	INGRESS XProxy_Tracing_OperationName = 0
	// The XProxy listener is used for egress/outgoing requests.
	EGRESS XProxy_Tracing_OperationName = 1
)

func (XProxy_Tracing_OperationName) EnumDescriptor

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

func (XProxy_Tracing_OperationName) String

Jump to

Keyboard shortcuts

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