envoy_api_v2_filter_http

package
v0.0.0-...-84cf697 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package envoy_api_v2_filter_http is a generated protocol buffer package.

It is generated from these files:

api/filter/http/buffer.proto
api/filter/http/fault.proto
api/filter/http/gzip.proto
api/filter/http/health_check.proto
api/filter/http/ip_tagging.proto
api/filter/http/lua.proto
api/filter/http/rate_limit.proto
api/filter/http/router.proto
api/filter/http/transcoder.proto

It has these top-level messages:

Buffer
FaultAbort
HTTPFault
Gzip
HealthCheck
IPTagging
Lua
RateLimit
Router
GrpcJsonTranscoder

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBuffer = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBuffer   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthFault = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFault   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthGzip = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGzip   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthHealthCheck = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHealthCheck   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthIpTagging = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIpTagging   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthLua = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLua   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRateLimit = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRateLimit   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRouter = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRouter   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthTranscoder = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTranscoder   = fmt.Errorf("proto: integer overflow")
)
View Source
var Gzip_CompressionLevel_Enum_name = map[int32]string{
	0: "DEFAULT",
	1: "BEST",
	2: "SPEED",
}
View Source
var Gzip_CompressionLevel_Enum_value = map[string]int32{
	"DEFAULT": 0,
	"BEST":    1,
	"SPEED":   2,
}
View Source
var Gzip_CompressionStrategy_name = map[int32]string{
	0: "DEFAULT",
	1: "FILTERED",
	2: "HUFFMAN",
	3: "RLE",
}
View Source
var Gzip_CompressionStrategy_value = map[string]int32{
	"DEFAULT":  0,
	"FILTERED": 1,
	"HUFFMAN":  2,
	"RLE":      3,
}
View Source
var IPTagging_RequestType_name = map[int32]string{
	0: "BOTH",
	1: "INTERNAL",
	2: "EXTERNAL",
}
View Source
var IPTagging_RequestType_value = map[string]int32{
	"BOTH":     0,
	"INTERNAL": 1,
	"EXTERNAL": 2,
}

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// The maximum request size that the filter will buffer before the connection
	// manager will stop buffering and return a 413 response.
	MaxRequestBytes *google_protobuf1.UInt32Value `protobuf:"bytes,1,opt,name=max_request_bytes,json=maxRequestBytes" json:"max_request_bytes,omitempty"`
	// The maximum number of seconds that the filter will wait for a complete
	// request before returning a 408 response.
	MaxRequestTime *google_protobuf.Duration `protobuf:"bytes,2,opt,name=max_request_time,json=maxRequestTime" json:"max_request_time,omitempty"`
}

func (*Buffer) Descriptor

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

func (*Buffer) GetMaxRequestBytes

func (m *Buffer) GetMaxRequestBytes() *google_protobuf1.UInt32Value

func (*Buffer) GetMaxRequestTime

func (m *Buffer) GetMaxRequestTime() *google_protobuf.Duration

func (*Buffer) Marshal

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

func (*Buffer) MarshalTo

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

func (*Buffer) ProtoMessage

func (*Buffer) ProtoMessage()

func (*Buffer) Reset

func (m *Buffer) Reset()

func (*Buffer) Size

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

func (*Buffer) String

func (m *Buffer) String() string

func (*Buffer) Unmarshal

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

type FaultAbort

type FaultAbort struct {
	// An integer between 0-100 indicating the percentage of requests/operations/connections
	// that will be aborted with the error code provided.
	Percent uint32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"`
	// Types that are valid to be assigned to ErrorType:
	//	*FaultAbort_HttpStatus
	ErrorType isFaultAbort_ErrorType `protobuf_oneof:"error_type"`
}

func (*FaultAbort) Descriptor

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

func (*FaultAbort) GetErrorType

func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType

func (*FaultAbort) GetHttpStatus

func (m *FaultAbort) GetHttpStatus() uint32

func (*FaultAbort) GetPercent

func (m *FaultAbort) GetPercent() uint32

func (*FaultAbort) Marshal

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

func (*FaultAbort) MarshalTo

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

func (*FaultAbort) ProtoMessage

func (*FaultAbort) ProtoMessage()

func (*FaultAbort) Reset

func (m *FaultAbort) Reset()

func (*FaultAbort) Size

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

func (*FaultAbort) String

func (m *FaultAbort) String() string

func (*FaultAbort) Unmarshal

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

func (*FaultAbort) XXX_OneofFuncs

func (*FaultAbort) 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 FaultAbort_HttpStatus

type FaultAbort_HttpStatus struct {
	HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"`
}

func (*FaultAbort_HttpStatus) MarshalTo

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

func (*FaultAbort_HttpStatus) Size

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

type GrpcJsonTranscoder

type GrpcJsonTranscoder struct {
	// Types that are valid to be assigned to DescriptorSet:
	//	*GrpcJsonTranscoder_ProtoDescriptor
	//	*GrpcJsonTranscoder_ProtoDescriptorBin
	DescriptorSet isGrpcJsonTranscoder_DescriptorSet `protobuf_oneof:"descriptor_set"`
	// A list of strings that supplies the service names that the
	// transcoder will translate. If the service name doesn't exist in “proto_descriptor“, Envoy
	// will fail at startup. The “proto_descriptor“ may contain more services than the service names
	// specified here, but they won't be translated.
	Services []string `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
	// Control options for response JSON. These options are passed directly to
	// `JsonPrintOptions <https://developers.google.com/protocol-buffers/docs/reference/cpp/
	// google.protobuf.util.json_util#JsonPrintOptions>`_.
	PrintOptions *GrpcJsonTranscoder_PrintOptions `protobuf:"bytes,3,opt,name=print_options,json=printOptions" json:"print_options,omitempty"`
}

func (*GrpcJsonTranscoder) Descriptor

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

func (*GrpcJsonTranscoder) GetDescriptorSet

func (m *GrpcJsonTranscoder) GetDescriptorSet() isGrpcJsonTranscoder_DescriptorSet

func (*GrpcJsonTranscoder) GetPrintOptions

func (*GrpcJsonTranscoder) GetProtoDescriptor

func (m *GrpcJsonTranscoder) GetProtoDescriptor() string

func (*GrpcJsonTranscoder) GetProtoDescriptorBin

func (m *GrpcJsonTranscoder) GetProtoDescriptorBin() []byte

func (*GrpcJsonTranscoder) GetServices

func (m *GrpcJsonTranscoder) GetServices() []string

func (*GrpcJsonTranscoder) Marshal

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

func (*GrpcJsonTranscoder) MarshalTo

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

func (*GrpcJsonTranscoder) ProtoMessage

func (*GrpcJsonTranscoder) ProtoMessage()

func (*GrpcJsonTranscoder) Reset

func (m *GrpcJsonTranscoder) Reset()

func (*GrpcJsonTranscoder) Size

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

func (*GrpcJsonTranscoder) String

func (m *GrpcJsonTranscoder) String() string

func (*GrpcJsonTranscoder) Unmarshal

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

func (*GrpcJsonTranscoder) XXX_OneofFuncs

func (*GrpcJsonTranscoder) 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 GrpcJsonTranscoder_PrintOptions

type GrpcJsonTranscoder_PrintOptions struct {
	// Whether to add spaces, line breaks and indentation to make the JSON
	// output easy to read. Defaults to false.
	AddWhitespace bool `protobuf:"varint,1,opt,name=add_whitespace,json=addWhitespace,proto3" json:"add_whitespace,omitempty"`
	// Whether to always print primitive fields. By default primitive
	// fields with default values will be omitted in JSON output. For
	// example, an int32 field set to 0 will be omitted. Setting this flag to
	// true will override the default behavior and print primitive fields
	// regardless of their values. Defaults to false.
	AlwaysPrintPrimitiveFields bool `` /* 144-byte string literal not displayed */
	// Whether to always print enums as ints. By default they are rendered
	// as strings. Defaults to false.
	AlwaysPrintEnumsAsInts bool `` /* 134-byte string literal not displayed */
	// Whether to preserve proto field names. By default protobuf will
	// generate JSON field names using the “json_name“ option, or lower camel case,
	// in that order. Setting this flag will preserve the original field names. Defaults to false.
	PreserveProtoFieldNames bool `` /* 135-byte string literal not displayed */
}

func (*GrpcJsonTranscoder_PrintOptions) Descriptor

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

func (*GrpcJsonTranscoder_PrintOptions) GetAddWhitespace

func (m *GrpcJsonTranscoder_PrintOptions) GetAddWhitespace() bool

func (*GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintEnumsAsInts

func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintEnumsAsInts() bool

func (*GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintPrimitiveFields

func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintPrimitiveFields() bool

func (*GrpcJsonTranscoder_PrintOptions) GetPreserveProtoFieldNames

func (m *GrpcJsonTranscoder_PrintOptions) GetPreserveProtoFieldNames() bool

func (*GrpcJsonTranscoder_PrintOptions) Marshal

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

func (*GrpcJsonTranscoder_PrintOptions) MarshalTo

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

func (*GrpcJsonTranscoder_PrintOptions) ProtoMessage

func (*GrpcJsonTranscoder_PrintOptions) ProtoMessage()

func (*GrpcJsonTranscoder_PrintOptions) Reset

func (*GrpcJsonTranscoder_PrintOptions) Size

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

func (*GrpcJsonTranscoder_PrintOptions) String

func (*GrpcJsonTranscoder_PrintOptions) Unmarshal

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

type GrpcJsonTranscoder_ProtoDescriptor

type GrpcJsonTranscoder_ProtoDescriptor struct {
	ProtoDescriptor string `protobuf:"bytes,1,opt,name=proto_descriptor,json=protoDescriptor,proto3,oneof"`
}

func (*GrpcJsonTranscoder_ProtoDescriptor) MarshalTo

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

func (*GrpcJsonTranscoder_ProtoDescriptor) Size

type GrpcJsonTranscoder_ProtoDescriptorBin

type GrpcJsonTranscoder_ProtoDescriptorBin struct {
	ProtoDescriptorBin []byte `protobuf:"bytes,4,opt,name=proto_descriptor_bin,json=protoDescriptorBin,proto3,oneof"`
}

func (*GrpcJsonTranscoder_ProtoDescriptorBin) MarshalTo

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

func (*GrpcJsonTranscoder_ProtoDescriptorBin) Size

type Gzip

type Gzip struct {
	// Value from 1 to 9 that controls the amount of internal memory
	// used by zlib. Higher values use more memory, but are faster and produce better compression
	// results. Default value is 8.
	MemoryLevel *google_protobuf1.UInt32Value `protobuf:"bytes,1,opt,name=memory_level,json=memoryLevel" json:"memory_level,omitempty"`
	// Minimum response length, in bytes, which will trigger
	// compression. Default value is 30.
	ContentLength *google_protobuf1.UInt32Value `protobuf:"bytes,2,opt,name=content_length,json=contentLength" json:"content_length,omitempty"`
	// Allows selecting Zlib's compression level. This setting will affect
	// speed and amount of compression applied to the content. "BEST" option provides higher
	// compression at cost of higher latency, "SPEED" provides lower compression with minimum impact
	// on response time. "DEFAULT" provides an optimal result between speed and compression. This
	// field will be set to "DEFAULT" if not specified.
	CompressionLevel Gzip_CompressionLevel_Enum `` /* 167-byte string literal not displayed */
	// Allows selecting zlib's compression strategy. Strategy is directly
	// related to the characteristics of the content which is being compressed. Most of the time
	// "DEFAULT" will be the best choice, however there are situations which changing the strategy
	// might produce better results. For example, Run-length encoding (RLE) is normally used when the
	// content is known for having sequences which same data occurs many consecutive times. For more
	// information about each strategy, please refer to Zlib manual. This field will be set to
	// "DEFAULT" if not specified.
	CompressionStrategy Gzip_CompressionStrategy `` /* 174-byte string literal not displayed */
	// Array of strings that allows specifying which "cache-control" header
	// values yield compression. Normally, if "cache-control" is present in the response headers,
	// compression should only occur if directives indicate that the content should not be cached;
	// e.g. no-cache or no-store.
	CacheControl []string `protobuf:"bytes,5,rep,name=cache_control,json=cacheControl" json:"cache_control,omitempty"`
	// Array of strings that allows specifying which mime-types yield compression; e.g.
	// application/json, text/html, etc. When this field is not specified, compression will be applied
	// to any "content-type".
	ContentType []string `protobuf:"bytes,6,rep,name=content_type,json=contentType" json:"content_type,omitempty"`
	// Allows disabling compression if response contains "etag" (entity tag)
	// header. Default is false.
	DisableOnEtag *google_protobuf1.BoolValue `protobuf:"bytes,7,opt,name=disable_on_etag,json=disableOnEtag" json:"disable_on_etag,omitempty"`
	// Allows disabling compression if response contains "last-modified"
	// header. Default is false.
	DisableOnLastModified *google_protobuf1.BoolValue `protobuf:"bytes,8,opt,name=disable_on_last_modified,json=disableOnLastModified" json:"disable_on_last_modified,omitempty"`
}

Gzip is an HTTP filter which enables Envoy to compress dispatched data from an upstream service upon client request. This is useful in situations where large payloads need to be transmitted without compromising the response time. Note that when compression is applied, this filter will set "content-encoding" and "transfer-encoding" headers to gzip and chunked, respectively. TODO(gsagula): elaborate the last part in the final documentation.

func (*Gzip) Descriptor

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

func (*Gzip) GetCacheControl

func (m *Gzip) GetCacheControl() []string

func (*Gzip) GetCompressionLevel

func (m *Gzip) GetCompressionLevel() Gzip_CompressionLevel_Enum

func (*Gzip) GetCompressionStrategy

func (m *Gzip) GetCompressionStrategy() Gzip_CompressionStrategy

func (*Gzip) GetContentLength

func (m *Gzip) GetContentLength() *google_protobuf1.UInt32Value

func (*Gzip) GetContentType

func (m *Gzip) GetContentType() []string

func (*Gzip) GetDisableOnEtag

func (m *Gzip) GetDisableOnEtag() *google_protobuf1.BoolValue

func (*Gzip) GetDisableOnLastModified

func (m *Gzip) GetDisableOnLastModified() *google_protobuf1.BoolValue

func (*Gzip) GetMemoryLevel

func (m *Gzip) GetMemoryLevel() *google_protobuf1.UInt32Value

func (*Gzip) Marshal

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

func (*Gzip) MarshalTo

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

func (*Gzip) ProtoMessage

func (*Gzip) ProtoMessage()

func (*Gzip) Reset

func (m *Gzip) Reset()

func (*Gzip) Size

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

func (*Gzip) String

func (m *Gzip) String() string

func (*Gzip) Unmarshal

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

type Gzip_CompressionLevel

type Gzip_CompressionLevel struct {
}

func (*Gzip_CompressionLevel) Descriptor

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

func (*Gzip_CompressionLevel) Marshal

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

func (*Gzip_CompressionLevel) MarshalTo

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

func (*Gzip_CompressionLevel) ProtoMessage

func (*Gzip_CompressionLevel) ProtoMessage()

func (*Gzip_CompressionLevel) Reset

func (m *Gzip_CompressionLevel) Reset()

func (*Gzip_CompressionLevel) Size

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

func (*Gzip_CompressionLevel) String

func (m *Gzip_CompressionLevel) String() string

func (*Gzip_CompressionLevel) Unmarshal

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

type Gzip_CompressionLevel_Enum

type Gzip_CompressionLevel_Enum int32
const (
	Gzip_CompressionLevel_DEFAULT Gzip_CompressionLevel_Enum = 0
	Gzip_CompressionLevel_BEST    Gzip_CompressionLevel_Enum = 1
	Gzip_CompressionLevel_SPEED   Gzip_CompressionLevel_Enum = 2
)

func (Gzip_CompressionLevel_Enum) EnumDescriptor

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

func (Gzip_CompressionLevel_Enum) String

type Gzip_CompressionStrategy

type Gzip_CompressionStrategy int32
const (
	Gzip_DEFAULT  Gzip_CompressionStrategy = 0
	Gzip_FILTERED Gzip_CompressionStrategy = 1
	Gzip_HUFFMAN  Gzip_CompressionStrategy = 2
	Gzip_RLE      Gzip_CompressionStrategy = 3
)

func (Gzip_CompressionStrategy) EnumDescriptor

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

func (Gzip_CompressionStrategy) String

func (x Gzip_CompressionStrategy) String() string

type HTTPFault

type HTTPFault struct {
	// If specified, the filter will inject delays based on the values in the
	// object. At least *abort* or *delay* must be specified.
	Delay *envoy_api_v2_filter.FaultDelay `protobuf:"bytes,1,opt,name=delay" json:"delay,omitempty"`
	// If specified, the filter will abort requests based on the values in
	// the object. At least *abort* or *delay* must be specified.
	Abort *FaultAbort `protobuf:"bytes,2,opt,name=abort" json:"abort,omitempty"`
	// Specifies the name of the (destination) upstream cluster that the
	// filter should match on. Fault injection will be restricted to requests
	// bound to the specific upstream cluster.
	UpstreamCluster string `protobuf:"bytes,3,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"`
	// Specifies a set of headers that the filter should match on. The fault
	// injection filter can be applied selectively to requests that match a set of
	// headers specified in the fault filter config. The chances of actual fault
	// injection further depend on the value of the :ref:`percent
	// <envoy_api_field_filter.http.FaultAbort.percent>` field. The filter will
	// check the request's headers against all the specified headers in the filter
	// config. A match will happen if all the headers in the config are present in
	// the request with the same values (or based on presence if the *value* field
	// is not in the config).
	Headers []*envoy_api_v24.HeaderMatcher `protobuf:"bytes,4,rep,name=headers" json:"headers,omitempty"`
	// Faults are injected for the specified list of downstream hosts. If this
	// setting is not set, faults are injected for all downstream nodes.
	// Downstream node name is taken from :ref:`the HTTP
	// x-envoy-downstream-service-node
	// <config_http_conn_man_headers_downstream-service-node>` header and compared
	// against downstream_nodes list.
	DownstreamNodes []string `protobuf:"bytes,5,rep,name=downstream_nodes,json=downstreamNodes" json:"downstream_nodes,omitempty"`
}

func (*HTTPFault) Descriptor

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

func (*HTTPFault) GetAbort

func (m *HTTPFault) GetAbort() *FaultAbort

func (*HTTPFault) GetDelay

func (m *HTTPFault) GetDelay() *envoy_api_v2_filter.FaultDelay

func (*HTTPFault) GetDownstreamNodes

func (m *HTTPFault) GetDownstreamNodes() []string

func (*HTTPFault) GetHeaders

func (m *HTTPFault) GetHeaders() []*envoy_api_v24.HeaderMatcher

func (*HTTPFault) GetUpstreamCluster

func (m *HTTPFault) GetUpstreamCluster() string

func (*HTTPFault) Marshal

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

func (*HTTPFault) MarshalTo

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

func (*HTTPFault) ProtoMessage

func (*HTTPFault) ProtoMessage()

func (*HTTPFault) Reset

func (m *HTTPFault) Reset()

func (*HTTPFault) Size

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

func (*HTTPFault) String

func (m *HTTPFault) String() string

func (*HTTPFault) Unmarshal

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

type HealthCheck

type HealthCheck struct {
	// Specifies whether the filter operates in pass through mode or not.
	PassThroughMode *google_protobuf1.BoolValue `protobuf:"bytes,1,opt,name=pass_through_mode,json=passThroughMode" json:"pass_through_mode,omitempty"`
	// Specifies the incoming HTTP endpoint that should be considered the
	// health check endpoint. For example */healthcheck*.
	Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// If operating in pass through mode, the amount of time in milliseconds
	// that the filter should cache the upstream response.
	CacheTime *google_protobuf.Duration `protobuf:"bytes,3,opt,name=cache_time,json=cacheTime" json:"cache_time,omitempty"`
}

func (*HealthCheck) Descriptor

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

func (*HealthCheck) GetCacheTime

func (m *HealthCheck) GetCacheTime() *google_protobuf.Duration

func (*HealthCheck) GetEndpoint

func (m *HealthCheck) GetEndpoint() string

func (*HealthCheck) GetPassThroughMode

func (m *HealthCheck) GetPassThroughMode() *google_protobuf1.BoolValue

func (*HealthCheck) Marshal

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

func (*HealthCheck) MarshalTo

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

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) Reset

func (m *HealthCheck) Reset()

func (*HealthCheck) Size

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

func (*HealthCheck) String

func (m *HealthCheck) String() string

func (*HealthCheck) Unmarshal

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

type IPTagging

type IPTagging struct {
	// The type of requests the filter should apply to. The supported types
	// are internal, external or both. A request is considered internal if
	// x-envoy-internal is set to true. If x-envoy-internal is not set or
	// false, a request is considered external. The filter defaults to both,
	// and it will apply to all request types.
	RequestType IPTagging_RequestType `` /* 147-byte string literal not displayed */
	IpTags      []*IPTagging_IPTag    `protobuf:"bytes,2,rep,name=ip_tags,json=ipTags" json:"ip_tags,omitempty"`
}

This is an HTTP filter which enables Envoy to tag requests with extra information such as location, cloud source, and any extra data. This is useful to prevent against DDoS.

func (*IPTagging) Descriptor

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

func (*IPTagging) GetIpTags

func (m *IPTagging) GetIpTags() []*IPTagging_IPTag

func (*IPTagging) GetRequestType

func (m *IPTagging) GetRequestType() IPTagging_RequestType

func (*IPTagging) Marshal

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

func (*IPTagging) MarshalTo

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

func (*IPTagging) ProtoMessage

func (*IPTagging) ProtoMessage()

func (*IPTagging) Reset

func (m *IPTagging) Reset()

func (*IPTagging) Size

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

func (*IPTagging) String

func (m *IPTagging) String() string

func (*IPTagging) Unmarshal

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

type IPTagging_IPTag

type IPTagging_IPTag struct {
	// Specifies the ip tag name to apply.
	IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"`
	// A list of IP address and subnet masks that will be tagged with the
	// ip_tag_name. Both IPv4 and IPv6 CIDR addresses are allowed here.
	IpList []*envoy_api_v2.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList" json:"ip_list,omitempty"`
}

func (*IPTagging_IPTag) Descriptor

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

func (*IPTagging_IPTag) GetIpList

func (m *IPTagging_IPTag) GetIpList() []*envoy_api_v2.CidrRange

func (*IPTagging_IPTag) GetIpTagName

func (m *IPTagging_IPTag) GetIpTagName() string

func (*IPTagging_IPTag) Marshal

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

func (*IPTagging_IPTag) MarshalTo

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

func (*IPTagging_IPTag) ProtoMessage

func (*IPTagging_IPTag) ProtoMessage()

func (*IPTagging_IPTag) Reset

func (m *IPTagging_IPTag) Reset()

func (*IPTagging_IPTag) Size

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

func (*IPTagging_IPTag) String

func (m *IPTagging_IPTag) String() string

func (*IPTagging_IPTag) Unmarshal

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

type IPTagging_RequestType

type IPTagging_RequestType int32
const (
	IPTagging_BOTH     IPTagging_RequestType = 0
	IPTagging_INTERNAL IPTagging_RequestType = 1
	IPTagging_EXTERNAL IPTagging_RequestType = 2
)

func (IPTagging_RequestType) EnumDescriptor

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

func (IPTagging_RequestType) String

func (x IPTagging_RequestType) String() string

type Lua

type Lua struct {
	// The Lua code that Envoy will execute. This can be a very small script that
	// further loads code from disk if desired. Note that if JSON configuration is used, the code must
	// be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
	// strings so complex scripts can be easily expressed inline in the configuration.
	InlineCode string `protobuf:"bytes,1,opt,name=inline_code,json=inlineCode,proto3" json:"inline_code,omitempty"`
}

func (*Lua) Descriptor

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

func (*Lua) GetInlineCode

func (m *Lua) GetInlineCode() string

func (*Lua) Marshal

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

func (*Lua) MarshalTo

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

func (*Lua) ProtoMessage

func (*Lua) ProtoMessage()

func (*Lua) Reset

func (m *Lua) Reset()

func (*Lua) Size

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

func (*Lua) String

func (m *Lua) String() string

func (*Lua) Unmarshal

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

type RateLimit

type RateLimit struct {
	// The rate limit domain to use when calling the rate limit service.
	Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	// Specifies the rate limit configurations to be applied with the same
	// stage number. If not set, the default stage number is 0.
	//
	// .. note::
	//
	//  The filter supports a range of 0 - 10 inclusively for stage numbers.
	Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"`
	// The type of requests the filter should apply to. The supported
	// types are *internal*, *external* or *both*. A request is considered internal if
	// :ref:`x-envoy-internal<config_http_conn_man_headers_x-envoy-internal>` is set to true. If
	// :ref:`x-envoy-internal<config_http_conn_man_headers_x-envoy-internal>` is not set or false, a
	// request is considered external. The filter defaults to *both*, and it will apply to all request
	// types.
	RequestType string `protobuf:"bytes,3,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The timeout in milliseconds for the rate limit service RPC. If not
	// set, this defaults to 20ms.
	Timeout *google_protobuf.Duration `protobuf:"bytes,4,opt,name=timeout" json:"timeout,omitempty"`
}

func (*RateLimit) Descriptor

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

func (*RateLimit) GetDomain

func (m *RateLimit) GetDomain() string

func (*RateLimit) GetRequestType

func (m *RateLimit) GetRequestType() string

func (*RateLimit) GetStage

func (m *RateLimit) GetStage() uint32

func (*RateLimit) GetTimeout

func (m *RateLimit) GetTimeout() *google_protobuf.Duration

func (*RateLimit) Marshal

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

func (*RateLimit) MarshalTo

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

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) Reset

func (m *RateLimit) Reset()

func (*RateLimit) Size

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

func (*RateLimit) String

func (m *RateLimit) String() string

func (*RateLimit) Unmarshal

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

type Router

type Router struct {
	// Whether the router generates dynamic cluster statistics. Defaults to
	// true. Can be disabled in high performance scenarios.
	DynamicStats *google_protobuf1.BoolValue `protobuf:"bytes,1,opt,name=dynamic_stats,json=dynamicStats" json:"dynamic_stats,omitempty"`
	// Whether to start a child span for egress routed calls. This can be
	// useful in scenarios where other filters (auth, ratelimit, etc.) make
	// outbound calls and have child spans rooted at the same ingress
	// parent. Defaults to false.
	StartChildSpan bool `protobuf:"varint,2,opt,name=start_child_span,json=startChildSpan,proto3" json:"start_child_span,omitempty"`
	// Configuration for HTTP upstream logs emitted by the router. Upstream logs
	// are configured in the same way as access logs, but each log entry represents
	// an upstream request. Presuming retries are configured, multiple upstream
	// requests may be made for each downstream (inbound) request.
	UpstreamLog []*envoy_api_v2_filter_accesslog.AccessLog `protobuf:"bytes,3,rep,name=upstream_log,json=upstreamLog" json:"upstream_log,omitempty"`
}

func (*Router) Descriptor

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

func (*Router) GetDynamicStats

func (m *Router) GetDynamicStats() *google_protobuf1.BoolValue

func (*Router) GetStartChildSpan

func (m *Router) GetStartChildSpan() bool

func (*Router) GetUpstreamLog

func (m *Router) GetUpstreamLog() []*envoy_api_v2_filter_accesslog.AccessLog

func (*Router) Marshal

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

func (*Router) MarshalTo

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

func (*Router) ProtoMessage

func (*Router) ProtoMessage()

func (*Router) Reset

func (m *Router) Reset()

func (*Router) Size

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

func (*Router) String

func (m *Router) String() string

func (*Router) Unmarshal

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

Jump to

Keyboard shortcuts

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