v1alpha3

package
v0.0.0-...-be8a513 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDestinationRule = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDestinationRule   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthEnvoyFilter = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEnvoyFilter   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthGateway = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGateway   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthServiceEntry = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowServiceEntry   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthSidecar = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSidecar   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthVirtualService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVirtualService   = fmt.Errorf("proto: integer overflow")
)
View Source
var CaptureMode_name = map[int32]string{
	0: "DEFAULT",
	1: "IPTABLES",
	2: "NONE",
}
View Source
var CaptureMode_value = map[string]int32{
	"DEFAULT":  0,
	"IPTABLES": 1,
	"NONE":     2,
}
View Source
var ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name = map[int32]string{
	0: "DEFAULT",
	1: "DO_NOT_UPGRADE",
	2: "UPGRADE",
}
View Source
var ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value = map[string]int32{
	"DEFAULT":        0,
	"DO_NOT_UPGRADE": 1,
	"UPGRADE":        2,
}
View Source
var EnvoyFilter_ApplyTo_name = map[int32]string{
	0: "INVALID",
	1: "LISTENER",
	2: "FILTER_CHAIN",
	3: "NETWORK_FILTER",
	4: "HTTP_FILTER",
	5: "ROUTE_CONFIGURATION",
	6: "VIRTUAL_HOST",
	7: "CLUSTER",
}
View Source
var EnvoyFilter_ApplyTo_value = map[string]int32{
	"INVALID":             0,
	"LISTENER":            1,
	"FILTER_CHAIN":        2,
	"NETWORK_FILTER":      3,
	"HTTP_FILTER":         4,
	"ROUTE_CONFIGURATION": 5,
	"VIRTUAL_HOST":        6,
	"CLUSTER":             7,
}
View Source
var EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol_name = map[int32]string{
	0: "ALL",
	1: "HTTP",
	2: "TCP",
}
View Source
var EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol_value = map[string]int32{
	"ALL":  0,
	"HTTP": 1,
	"TCP":  2,
}
View Source
var EnvoyFilter_DeprecatedListenerMatch_ListenerType_name = map[int32]string{
	0: "ANY",
	1: "SIDECAR_INBOUND",
	2: "SIDECAR_OUTBOUND",
	3: "GATEWAY",
}
View Source
var EnvoyFilter_DeprecatedListenerMatch_ListenerType_value = map[string]int32{
	"ANY":              0,
	"SIDECAR_INBOUND":  1,
	"SIDECAR_OUTBOUND": 2,
	"GATEWAY":          3,
}
View Source
var EnvoyFilter_Filter_FilterType_name = map[int32]string{
	0: "INVALID",
	1: "HTTP",
	2: "NETWORK",
}
View Source
var EnvoyFilter_Filter_FilterType_value = map[string]int32{
	"INVALID": 0,
	"HTTP":    1,
	"NETWORK": 2,
}
View Source
var EnvoyFilter_InsertPosition_Index_name = map[int32]string{
	0: "FIRST",
	1: "LAST",
	2: "BEFORE",
	3: "AFTER",
}
View Source
var EnvoyFilter_InsertPosition_Index_value = map[string]int32{
	"FIRST":  0,
	"LAST":   1,
	"BEFORE": 2,
	"AFTER":  3,
}
View Source
var EnvoyFilter_PatchContext_name = map[int32]string{
	0: "ANY",
	1: "SIDECAR_INBOUND",
	2: "SIDECAR_OUTBOUND",
	3: "GATEWAY",
}
View Source
var EnvoyFilter_PatchContext_value = map[string]int32{
	"ANY":              0,
	"SIDECAR_INBOUND":  1,
	"SIDECAR_OUTBOUND": 2,
	"GATEWAY":          3,
}
View Source
var EnvoyFilter_Patch_Operation_name = map[int32]string{
	0: "INVALID",
	1: "MERGE",
	2: "ADD",
	3: "REMOVE",
	4: "INSERT_BEFORE",
	5: "INSERT_AFTER",
}
View Source
var EnvoyFilter_Patch_Operation_value = map[string]int32{
	"INVALID":       0,
	"MERGE":         1,
	"ADD":           2,
	"REMOVE":        3,
	"INSERT_BEFORE": 4,
	"INSERT_AFTER":  5,
}
View Source
var LoadBalancerSettings_SimpleLB_name = map[int32]string{
	0: "ROUND_ROBIN",
	1: "LEAST_CONN",
	2: "RANDOM",
	3: "PASSTHROUGH",
}
View Source
var LoadBalancerSettings_SimpleLB_value = map[string]int32{
	"ROUND_ROBIN": 0,
	"LEAST_CONN":  1,
	"RANDOM":      2,
	"PASSTHROUGH": 3,
}
View Source
var Server_TLSOptions_TLSProtocol_name = map[int32]string{
	0: "TLS_AUTO",
	1: "TLSV1_0",
	2: "TLSV1_1",
	3: "TLSV1_2",
	4: "TLSV1_3",
}
View Source
var Server_TLSOptions_TLSProtocol_value = map[string]int32{
	"TLS_AUTO": 0,
	"TLSV1_0":  1,
	"TLSV1_1":  2,
	"TLSV1_2":  3,
	"TLSV1_3":  4,
}
View Source
var Server_TLSOptions_TLSmode_name = map[int32]string{
	0: "PASSTHROUGH",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "AUTO_PASSTHROUGH",
}
View Source
var Server_TLSOptions_TLSmode_value = map[string]int32{
	"PASSTHROUGH":      0,
	"SIMPLE":           1,
	"MUTUAL":           2,
	"AUTO_PASSTHROUGH": 3,
}
View Source
var ServiceEntry_Location_name = map[int32]string{
	0: "MESH_EXTERNAL",
	1: "MESH_INTERNAL",
}
View Source
var ServiceEntry_Location_value = map[string]int32{
	"MESH_EXTERNAL": 0,
	"MESH_INTERNAL": 1,
}
View Source
var ServiceEntry_Resolution_name = map[int32]string{
	0: "NONE",
	1: "STATIC",
	2: "DNS",
}
View Source
var ServiceEntry_Resolution_value = map[string]int32{
	"NONE":   0,
	"STATIC": 1,
	"DNS":    2,
}
View Source
var TLSSettings_TLSmode_name = map[int32]string{
	0: "DISABLE",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "ISTIO_MUTUAL",
}
View Source
var TLSSettings_TLSmode_value = map[string]int32{
	"DISABLE":      0,
	"SIMPLE":       1,
	"MUTUAL":       2,
	"ISTIO_MUTUAL": 3,
}

Functions

This section is empty.

Types

type CaptureMode

type CaptureMode int32

CaptureMode describes how traffic to a listener is expected to be captured. Applicable only when the listener is bound to an IP.

const (
	// The default capture mode defined by the environment
	CaptureMode_DEFAULT CaptureMode = 0
	// Capture traffic using IPtables redirection
	CaptureMode_IPTABLES CaptureMode = 1
	// No traffic capture. When used in egress listener, the application is
	// expected to explicitly communicate with the listener port/unix
	// domain socket. When used in ingress listener, care needs to be taken
	// to ensure that the listener port is not in use by other processes on
	// the host.
	CaptureMode_NONE CaptureMode = 2
)

func (CaptureMode) EnumDescriptor

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

func (CaptureMode) String

func (x CaptureMode) String() string

type ConnectionPoolSettings

type ConnectionPoolSettings struct {
	// Settings common to both HTTP and TCP upstream connections.
	Tcp *ConnectionPoolSettings_TCPSettings `protobuf:"bytes,1,opt,name=tcp,proto3" json:"tcp,omitempty"`
	// HTTP connection pool settings.
	Http                 *ConnectionPoolSettings_HTTPSettings `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

Connection pool settings for an upstream host. The settings apply to each individual host in the upstream service. See Envoy's [circuit breaker](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/circuit_breaking) for more details. Connection pool settings can be applied at the TCP level as well as at HTTP level.

For example, the following rule sets a limit of 100 connections to redis service called myredissrv with a connect timeout of 30ms

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-redis

spec:

host: myredissrv.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
      connectTimeout: 30ms
      tcpKeepalive:
        time: 7200s
        interval: 75s

```

func (*ConnectionPoolSettings) Descriptor

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

func (*ConnectionPoolSettings) GetHttp

func (*ConnectionPoolSettings) GetTcp

func (*ConnectionPoolSettings) Marshal

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

func (*ConnectionPoolSettings) MarshalTo

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

func (*ConnectionPoolSettings) ProtoMessage

func (*ConnectionPoolSettings) ProtoMessage()

func (*ConnectionPoolSettings) Reset

func (m *ConnectionPoolSettings) Reset()

func (*ConnectionPoolSettings) Size

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

func (*ConnectionPoolSettings) String

func (m *ConnectionPoolSettings) String() string

func (*ConnectionPoolSettings) Unmarshal

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

func (*ConnectionPoolSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings) XXX_Marshal

func (m *ConnectionPoolSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings) XXX_Merge

func (m *ConnectionPoolSettings) XXX_Merge(src proto.Message)

func (*ConnectionPoolSettings) XXX_Size

func (m *ConnectionPoolSettings) XXX_Size() int

func (*ConnectionPoolSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_HTTPSettings

type ConnectionPoolSettings_HTTPSettings struct {
	// Maximum number of pending HTTP requests to a destination. Default 1024.
	Http1MaxPendingRequests int32 `` /* 135-byte string literal not displayed */
	// Maximum number of requests to a backend. Default 1024.
	Http2MaxRequests int32 `protobuf:"varint,2,opt,name=http2_max_requests,json=http2MaxRequests,proto3" json:"http2_max_requests,omitempty"`
	// Maximum number of requests per connection to a backend. Setting this
	// parameter to 1 disables keep alive. Default 0, meaning "unlimited",
	// up to 2^29.
	MaxRequestsPerConnection int32 `` /* 138-byte string literal not displayed */
	// Maximum number of retries that can be outstanding to all hosts in a
	// cluster at a given time. Defaults to 1024.
	MaxRetries int32 `protobuf:"varint,4,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
	// The idle timeout for upstream connection pool connections. 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.
	// Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections.
	IdleTimeout *types.Duration `protobuf:"bytes,5,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// Specify if http1.1 connection should be upgraded to http2 for the associated destination.
	H2UpgradePolicy      ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy `` /* 192-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                            `json:"-"`
	XXX_unrecognized     []byte                                              `json:"-"`
	XXX_sizecache        int32                                               `json:"-"`
}

Settings applicable to HTTP1.1/HTTP2/GRPC connections.

func (*ConnectionPoolSettings_HTTPSettings) Descriptor

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

func (*ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy

func (*ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetIdleTimeout

func (m *ConnectionPoolSettings_HTTPSettings) GetIdleTimeout() *types.Duration

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRetries

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32

func (*ConnectionPoolSettings_HTTPSettings) Marshal

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

func (*ConnectionPoolSettings_HTTPSettings) MarshalTo

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

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()

func (*ConnectionPoolSettings_HTTPSettings) Reset

func (*ConnectionPoolSettings_HTTPSettings) Size

func (*ConnectionPoolSettings_HTTPSettings) String

func (*ConnectionPoolSettings_HTTPSettings) Unmarshal

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

func (*ConnectionPoolSettings_HTTPSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_HTTPSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_HTTPSettings) XXX_Marshal

func (m *ConnectionPoolSettings_HTTPSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_HTTPSettings) XXX_Merge

func (*ConnectionPoolSettings_HTTPSettings) XXX_Size

func (*ConnectionPoolSettings_HTTPSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings_HTTPSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy

type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy int32

Policy for upgrading http1.1 connections to http2.

const (
	// Use the global default.
	ConnectionPoolSettings_HTTPSettings_DEFAULT ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 0
	// Do not upgrade the connection to http2.
	// This opt-out option overrides the default.
	ConnectionPoolSettings_HTTPSettings_DO_NOT_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 1
	// Upgrade the connection to http2.
	// This opt-in option overrides the default.
	ConnectionPoolSettings_HTTPSettings_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 2
)

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String

type ConnectionPoolSettings_TCPSettings

type ConnectionPoolSettings_TCPSettings struct {
	// Maximum number of HTTP1 /TCP connections to a destination host. Default 1024.
	MaxConnections int32 `protobuf:"varint,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"`
	// TCP connection timeout.
	ConnectTimeout *types.Duration `protobuf:"bytes,2,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
	// If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
	TcpKeepalive         *ConnectionPoolSettings_TCPSettings_TcpKeepalive `protobuf:"bytes,3,opt,name=tcp_keepalive,json=tcpKeepalive,proto3" json:"tcp_keepalive,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                         `json:"-"`
	XXX_unrecognized     []byte                                           `json:"-"`
	XXX_sizecache        int32                                            `json:"-"`
}

Settings common to both HTTP and TCP upstream connections.

func (*ConnectionPoolSettings_TCPSettings) Descriptor

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

func (*ConnectionPoolSettings_TCPSettings) GetConnectTimeout

func (m *ConnectionPoolSettings_TCPSettings) GetConnectTimeout() *types.Duration

func (*ConnectionPoolSettings_TCPSettings) GetMaxConnections

func (m *ConnectionPoolSettings_TCPSettings) GetMaxConnections() int32

func (*ConnectionPoolSettings_TCPSettings) GetTcpKeepalive

func (*ConnectionPoolSettings_TCPSettings) Marshal

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

func (*ConnectionPoolSettings_TCPSettings) MarshalTo

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

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()

func (*ConnectionPoolSettings_TCPSettings) Reset

func (*ConnectionPoolSettings_TCPSettings) Size

func (*ConnectionPoolSettings_TCPSettings) String

func (*ConnectionPoolSettings_TCPSettings) Unmarshal

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

func (*ConnectionPoolSettings_TCPSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_TCPSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_TCPSettings) XXX_Marshal

func (m *ConnectionPoolSettings_TCPSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_TCPSettings) XXX_Merge

func (*ConnectionPoolSettings_TCPSettings) XXX_Size

func (*ConnectionPoolSettings_TCPSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings_TCPSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_TCPSettings_TcpKeepalive

type ConnectionPoolSettings_TCPSettings_TcpKeepalive struct {
	// Maximum number of keepalive probes to send without response before
	// deciding the connection is dead. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 9.)
	Probes uint32 `protobuf:"varint,1,opt,name=probes,proto3" json:"probes,omitempty"`
	// The time duration a connection needs to be idle before keep-alive
	// probes start being sent. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 7200s (ie 2 hours.)
	Time *types.Duration `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// The time duration between keep-alive probes.
	// Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 75s.)
	Interval             *types.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

TCP keepalive.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Marshal

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

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalTo

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Size

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) String

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Unmarshal

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Marshal

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Merge

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Size

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Unmarshal

type CorsPolicy

type CorsPolicy struct {
	// The list of origins that are allowed to perform CORS requests. The
	// content will be serialized into the Access-Control-Allow-Origin
	// header. Wildcard * will allow all origins.
	AllowOrigin []string `protobuf:"bytes,1,rep,name=allow_origin,json=allowOrigin,proto3" json:"allow_origin,omitempty"`
	// List of HTTP methods allowed to access the resource. The content will
	// be serialized into the Access-Control-Allow-Methods header.
	AllowMethods []string `protobuf:"bytes,2,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"`
	// List of HTTP headers that can be used when requesting the
	// resource. Serialized to Access-Control-Allow-Headers header.
	AllowHeaders []string `protobuf:"bytes,3,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"`
	// A white list of HTTP headers that the browsers are allowed to
	// access. Serialized into Access-Control-Expose-Headers header.
	ExposeHeaders []string `protobuf:"bytes,4,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
	// Specifies how long the results of a preflight request can be
	// cached. Translates to the `Access-Control-Max-Age` header.
	MaxAge *types.Duration `protobuf:"bytes,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// Indicates whether the caller is allowed to send the actual request
	// (not the preflight) using credentials. Translates to
	// `Access-Control-Allow-Credentials` header.
	AllowCredentials     *types.BoolValue `protobuf:"bytes,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Describes the Cross-Origin Resource Sharing (CORS) policy, for a given service. Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) for further details about cross origin resource sharing. For example, the following rule restricts cross origin requests to those originating from example.com domain using HTTP POST/GET, and sets the `Access-Control-Allow-Credentials` header to false. In addition, it only exposes `X-Foo-bar` header and sets an expiry period of 1 day.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  corsPolicy:
    allowOrigin:
    - example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "24h"

```

func (*CorsPolicy) Descriptor

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

func (*CorsPolicy) GetAllowCredentials

func (m *CorsPolicy) GetAllowCredentials() *types.BoolValue

func (*CorsPolicy) GetAllowHeaders

func (m *CorsPolicy) GetAllowHeaders() []string

func (*CorsPolicy) GetAllowMethods

func (m *CorsPolicy) GetAllowMethods() []string

func (*CorsPolicy) GetAllowOrigin

func (m *CorsPolicy) GetAllowOrigin() []string

func (*CorsPolicy) GetExposeHeaders

func (m *CorsPolicy) GetExposeHeaders() []string

func (*CorsPolicy) GetMaxAge

func (m *CorsPolicy) GetMaxAge() *types.Duration

func (*CorsPolicy) Marshal

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

func (*CorsPolicy) MarshalTo

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

func (*CorsPolicy) ProtoMessage

func (*CorsPolicy) ProtoMessage()

func (*CorsPolicy) Reset

func (m *CorsPolicy) Reset()

func (*CorsPolicy) Size

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

func (*CorsPolicy) String

func (m *CorsPolicy) String() string

func (*CorsPolicy) Unmarshal

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

func (*CorsPolicy) XXX_DiscardUnknown

func (m *CorsPolicy) XXX_DiscardUnknown()

func (*CorsPolicy) XXX_Marshal

func (m *CorsPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CorsPolicy) XXX_Merge

func (m *CorsPolicy) XXX_Merge(src proto.Message)

func (*CorsPolicy) XXX_Size

func (m *CorsPolicy) XXX_Size() int

func (*CorsPolicy) XXX_Unmarshal

func (m *CorsPolicy) XXX_Unmarshal(b []byte) error

type Destination

type Destination struct {
	// REQUIRED. The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/v1alpha3/service-entry/#ServiceEntry). Traffic forwarded to
	// destinations that are not found in either of the two, will be dropped.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The name of a subset within the service. Applicable only to services
	// within the mesh. The subset must be defined in a corresponding
	// DestinationRule.
	Subset string `protobuf:"bytes,2,opt,name=subset,proto3" json:"subset,omitempty"`
	// Specifies the port on the host that is being addressed. If a service
	// exposes only a single port it is not required to explicitly select the
	// port.
	Port                 *PortSelector `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Destination indicates the network addressable service to which the request/connection will be sent after processing a routing rule. The destination.host should unambiguously refer to a service in the service registry. Istio's service registry is composed of all the services found in the platform's service registry (e.g., Kubernetes services, Consul services), as well as services declared through the ServiceEntry(https://istio.io/docs/reference/config/networking/v1alpha3/service-entry/#ServiceEntry) resource.

*Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._

The following Kubernetes example routes all traffic by default to pods of the reviews service with label "version: v1" (i.e., subset v1), and some to subset v2, in a Kubernetes environment.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route
namespace: foo

spec:

hosts:
- reviews # interpreted as reviews.foo.svc.cluster.local
http:
- match:
  - uri:
      prefix: "/wpcatalog"
  - uri:
      prefix: "/consumercatalog"
  rewrite:
    uri: "/newcatalog"
  route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v2
- route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v1

```

And the associated DestinationRule

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination
namespace: foo

spec:

host: reviews # interpreted as reviews.foo.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

```

The following VirtualService sets a timeout of 5s for all calls to productpage.prod.svc.cluster.local service in Kubernetes. Notice that there are no subsets defined in this rule. Istio will fetch all instances of productpage.prod.svc.cluster.local service from the service registry and populate the sidecar's load balancing pool. Also, notice that this rule is set in the istio-system namespace but uses the fully qualified domain name of the productpage service, productpage.prod.svc.cluster.local. Therefore the rule's namespace does not have an impact in resolving the name of the productpage service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-productpage-rule
namespace: istio-system

spec:

hosts:
- productpage.prod.svc.cluster.local # ignores rule namespace
http:
- timeout: 5s
  route:
  - destination:
      host: productpage.prod.svc.cluster.local

```

To control routing for traffic bound to services outside the mesh, external services must first be added to Istio's internal service registry using the ServiceEntry resource. VirtualServices can then be defined to control traffic bound to these external services. For example, the following rules define a Service for wikipedia.org and set a timeout of 5s for http requests.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata:

name: external-svc-wikipedia

spec:

hosts:
- wikipedia.org
location: MESH_EXTERNAL
ports:
- number: 80
  name: example-http
  protocol: HTTP
resolution: DNS

apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-wiki-rule

spec:

hosts:
- wikipedia.org
http:
- timeout: 5s
  route:
  - destination:
      host: wikipedia.org

```

func (*Destination) Descriptor

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

func (*Destination) GetHost

func (m *Destination) GetHost() string

func (*Destination) GetPort

func (m *Destination) GetPort() *PortSelector

func (*Destination) GetSubset

func (m *Destination) GetSubset() string

func (*Destination) Marshal

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

func (*Destination) MarshalTo

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

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) Reset

func (m *Destination) Reset()

func (*Destination) Size

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

func (*Destination) String

func (m *Destination) String() string

func (*Destination) Unmarshal

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

func (*Destination) XXX_DiscardUnknown

func (m *Destination) XXX_DiscardUnknown()

func (*Destination) XXX_Marshal

func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Destination) XXX_Merge

func (m *Destination) XXX_Merge(src proto.Message)

func (*Destination) XXX_Size

func (m *Destination) XXX_Size() int

func (*Destination) XXX_Unmarshal

func (m *Destination) XXX_Unmarshal(b []byte) error

type DestinationRule

type DestinationRule struct {
	// REQUIRED. The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/v1alpha3/service-entry/#ServiceEntry). Rules defined for
	// services that do not exist in the service registry will be ignored.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews" will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// Note that the host field applies to both HTTP and TCP services.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Traffic policies to apply (load balancing policy, connection pool
	// sizes, outlier detection).
	TrafficPolicy *TrafficPolicy `protobuf:"bytes,2,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	// One or more named sets that represent individual versions of a
	// service. Traffic policies can be overridden at subset level.
	Subsets []*Subset `protobuf:"bytes,3,rep,name=subsets,proto3" json:"subsets,omitempty"`
	// A list of namespaces to which this destination rule is exported.
	// The resolution of a destination rule to apply to a service occurs in the
	// context of a hierarchy of namespaces. Exporting a destination rule allows
	// it to be included in the resolution hierarchy for services in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of destination rules
	// across namespace boundaries.
	//
	// If no namespaces are specified then the destination rule is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the destination rule is declared in. Similarly, the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo             []string `protobuf:"bytes,4,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DestinationRule) Descriptor

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

func (*DestinationRule) GetExportTo

func (m *DestinationRule) GetExportTo() []string

func (*DestinationRule) GetHost

func (m *DestinationRule) GetHost() string

func (*DestinationRule) GetSubsets

func (m *DestinationRule) GetSubsets() []*Subset

func (*DestinationRule) GetTrafficPolicy

func (m *DestinationRule) GetTrafficPolicy() *TrafficPolicy

func (*DestinationRule) Marshal

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

func (*DestinationRule) MarshalTo

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

func (*DestinationRule) ProtoMessage

func (*DestinationRule) ProtoMessage()

func (*DestinationRule) Reset

func (m *DestinationRule) Reset()

func (*DestinationRule) Size

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

func (*DestinationRule) String

func (m *DestinationRule) String() string

func (*DestinationRule) Unmarshal

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

func (*DestinationRule) XXX_DiscardUnknown

func (m *DestinationRule) XXX_DiscardUnknown()

func (*DestinationRule) XXX_Marshal

func (m *DestinationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestinationRule) XXX_Merge

func (m *DestinationRule) XXX_Merge(src proto.Message)

func (*DestinationRule) XXX_Size

func (m *DestinationRule) XXX_Size() int

func (*DestinationRule) XXX_Unmarshal

func (m *DestinationRule) XXX_Unmarshal(b []byte) error

type EnvoyFilter

type EnvoyFilter struct {
	// Deprecated. Use workload_selector instead.
	// $hide_from_docs
	WorkloadLabels map[string]string `` // Deprecated: Do not use.
	/* 191-byte string literal not displayed */
	// $hide_from_docs
	Filters []*EnvoyFilter_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Deprecated: Do not use.
	// Criteria used to select the specific set of pods/VMs on which
	// this patch configuration should be applied. If omitted, the set
	// of patches in this configuration will be applied to all workload
	// instances in the same namespace.  If omitted, the EnvoyFilter
	// patches will be applied to all workloads in the same
	// namespace. If the EnvoyFilter is present in the config root
	// namespace, it will be applied to all applicable workloads in any
	// namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,3,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// REQUIRED. One or more patches with match conditions.
	ConfigPatches        []*EnvoyFilter_EnvoyConfigObjectPatch `protobuf:"bytes,4,rep,name=config_patches,json=configPatches,proto3" json:"config_patches,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

func (*EnvoyFilter) Descriptor

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

func (*EnvoyFilter) GetConfigPatches

func (m *EnvoyFilter) GetConfigPatches() []*EnvoyFilter_EnvoyConfigObjectPatch

func (*EnvoyFilter) GetFilters deprecated

func (m *EnvoyFilter) GetFilters() []*EnvoyFilter_Filter

Deprecated: Do not use.

func (*EnvoyFilter) GetWorkloadLabels deprecated

func (m *EnvoyFilter) GetWorkloadLabels() map[string]string

Deprecated: Do not use.

func (*EnvoyFilter) GetWorkloadSelector

func (m *EnvoyFilter) GetWorkloadSelector() *WorkloadSelector

func (*EnvoyFilter) Marshal

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

func (*EnvoyFilter) MarshalTo

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

func (*EnvoyFilter) ProtoMessage

func (*EnvoyFilter) ProtoMessage()

func (*EnvoyFilter) Reset

func (m *EnvoyFilter) Reset()

func (*EnvoyFilter) Size

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

func (*EnvoyFilter) String

func (m *EnvoyFilter) String() string

func (*EnvoyFilter) Unmarshal

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

func (*EnvoyFilter) XXX_DiscardUnknown

func (m *EnvoyFilter) XXX_DiscardUnknown()

func (*EnvoyFilter) XXX_Marshal

func (m *EnvoyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter) XXX_Merge

func (m *EnvoyFilter) XXX_Merge(src proto.Message)

func (*EnvoyFilter) XXX_Size

func (m *EnvoyFilter) XXX_Size() int

func (*EnvoyFilter) XXX_Unmarshal

func (m *EnvoyFilter) XXX_Unmarshal(b []byte) error

type EnvoyFilter_ApplyTo

type EnvoyFilter_ApplyTo int32

ApplyTo specifies where in the Envoy configuration, the given patch should be applied.

const (
	EnvoyFilter_INVALID EnvoyFilter_ApplyTo = 0
	// Applies the patch to the listener.
	EnvoyFilter_LISTENER EnvoyFilter_ApplyTo = 1
	// Applies the patch to the filter chain.
	// $hide_from_docs
	EnvoyFilter_FILTER_CHAIN EnvoyFilter_ApplyTo = 2
	// Applies the patch to the network filter chain, to modify an
	// existing filter or add a new filter.
	EnvoyFilter_NETWORK_FILTER EnvoyFilter_ApplyTo = 3
	// Applies the patch to the HTTP filter chain in the http
	// connection manager, to modify an existing filter or add a new
	// filter.
	EnvoyFilter_HTTP_FILTER EnvoyFilter_ApplyTo = 4
	// Applies the patch to the Route configuration (rds output) inside a HTTP
	// connection manager. This does not apply to the virtual host.
	// $hide_from_docs
	EnvoyFilter_ROUTE_CONFIGURATION EnvoyFilter_ApplyTo = 5
	// Applies the patch to a virtual host inside a route configuration.
	// $hide_from_docs
	EnvoyFilter_VIRTUAL_HOST EnvoyFilter_ApplyTo = 6
	// Applies the patch to a cluster in a CDS output. Also used to add new clusters.
	EnvoyFilter_CLUSTER EnvoyFilter_ApplyTo = 7
)

func (EnvoyFilter_ApplyTo) EnumDescriptor

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

func (EnvoyFilter_ApplyTo) String

func (x EnvoyFilter_ApplyTo) String() string

type EnvoyFilter_ClusterMatch

type EnvoyFilter_ClusterMatch struct {
	// The service port for which this cluster was generated.  If
	// omitted, applies to clusters for any port.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// The fully qualified service name for this cluster. If omitted,
	// applies to clusters for any service. For services defined
	// through service entries, the service name is same as the hosts
	// defined in the service entry.
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// The subset associated with the service. If omitted, applies to
	// clusters for any subset of a service.
	Subset string `protobuf:"bytes,3,opt,name=subset,proto3" json:"subset,omitempty"`
	// The exact name of the cluster to match. To match a specific
	// cluster by name, such as the internally generated "Passthrough"
	// cluster, leave all fields in clusterMatch empty, except the
	// name.
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Conditions specified in ClusterMatch must be met for the patch to be applied to a cluster.

func (*EnvoyFilter_ClusterMatch) Descriptor

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

func (*EnvoyFilter_ClusterMatch) GetName

func (m *EnvoyFilter_ClusterMatch) GetName() string

func (*EnvoyFilter_ClusterMatch) GetPortNumber

func (m *EnvoyFilter_ClusterMatch) GetPortNumber() uint32

func (*EnvoyFilter_ClusterMatch) GetService

func (m *EnvoyFilter_ClusterMatch) GetService() string

func (*EnvoyFilter_ClusterMatch) GetSubset

func (m *EnvoyFilter_ClusterMatch) GetSubset() string

func (*EnvoyFilter_ClusterMatch) Marshal

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

func (*EnvoyFilter_ClusterMatch) MarshalTo

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

func (*EnvoyFilter_ClusterMatch) ProtoMessage

func (*EnvoyFilter_ClusterMatch) ProtoMessage()

func (*EnvoyFilter_ClusterMatch) Reset

func (m *EnvoyFilter_ClusterMatch) Reset()

func (*EnvoyFilter_ClusterMatch) Size

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

func (*EnvoyFilter_ClusterMatch) String

func (m *EnvoyFilter_ClusterMatch) String() string

func (*EnvoyFilter_ClusterMatch) Unmarshal

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

func (*EnvoyFilter_ClusterMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_ClusterMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_ClusterMatch) XXX_Marshal

func (m *EnvoyFilter_ClusterMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_ClusterMatch) XXX_Merge

func (m *EnvoyFilter_ClusterMatch) XXX_Merge(src proto.Message)

func (*EnvoyFilter_ClusterMatch) XXX_Size

func (m *EnvoyFilter_ClusterMatch) XXX_Size() int

func (*EnvoyFilter_ClusterMatch) XXX_Unmarshal

func (m *EnvoyFilter_ClusterMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_DeprecatedListenerMatch

type EnvoyFilter_DeprecatedListenerMatch struct {
	// The service port/gateway port to which traffic is being
	// sent/received. If not specified, matches all listeners. Even though
	// inbound listeners are generated for the instance/pod ports, only
	// service ports should be used to match listeners.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// Instead of using specific port numbers, a set of ports matching a
	// given port name prefix can be selected. E.g., "mongo" selects ports
	// named mongo-port, mongo, mongoDB, MONGO, etc. Matching is case
	// insensitive.
	PortNamePrefix string `protobuf:"bytes,2,opt,name=port_name_prefix,json=portNamePrefix,proto3" json:"port_name_prefix,omitempty"`
	// Inbound vs outbound sidecar listener or gateway listener. If not specified,
	// matches all listeners.
	ListenerType EnvoyFilter_DeprecatedListenerMatch_ListenerType `` /* 178-byte string literal not displayed */
	// Selects a class of listeners for the same protocol. Use the protocol
	// selection to select all HTTP listeners (includes HTTP2/gRPC/HTTPS
	// where Envoy terminates TLS) or all TCP listeners (includes HTTPS
	// passthrough using SNI). When adding a HTTP filter, the listenerProtocol
	// should be set to HTTP.
	ListenerProtocol EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol `` /* 194-byte string literal not displayed */
	// One or more IP addresses to which the listener is bound. If
	// specified, should match at least one address in the list.
	Address              []string `protobuf:"bytes,5,rep,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Deprecated. Select a listener to add the filter to based on the match conditions. All conditions specified in the ListenerMatch must be met for the filter to be applied to a listener. $hide_from_docs

func (*EnvoyFilter_DeprecatedListenerMatch) Descriptor

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

func (*EnvoyFilter_DeprecatedListenerMatch) GetAddress

func (m *EnvoyFilter_DeprecatedListenerMatch) GetAddress() []string

func (*EnvoyFilter_DeprecatedListenerMatch) GetListenerProtocol

func (*EnvoyFilter_DeprecatedListenerMatch) GetListenerType

func (*EnvoyFilter_DeprecatedListenerMatch) GetPortNamePrefix

func (m *EnvoyFilter_DeprecatedListenerMatch) GetPortNamePrefix() string

func (*EnvoyFilter_DeprecatedListenerMatch) GetPortNumber

func (m *EnvoyFilter_DeprecatedListenerMatch) GetPortNumber() uint32

func (*EnvoyFilter_DeprecatedListenerMatch) Marshal

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

func (*EnvoyFilter_DeprecatedListenerMatch) MarshalTo

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

func (*EnvoyFilter_DeprecatedListenerMatch) ProtoMessage

func (*EnvoyFilter_DeprecatedListenerMatch) ProtoMessage()

func (*EnvoyFilter_DeprecatedListenerMatch) Reset

func (*EnvoyFilter_DeprecatedListenerMatch) Size

func (*EnvoyFilter_DeprecatedListenerMatch) String

func (*EnvoyFilter_DeprecatedListenerMatch) Unmarshal

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

func (*EnvoyFilter_DeprecatedListenerMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_DeprecatedListenerMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_DeprecatedListenerMatch) XXX_Marshal

func (m *EnvoyFilter_DeprecatedListenerMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_DeprecatedListenerMatch) XXX_Merge

func (*EnvoyFilter_DeprecatedListenerMatch) XXX_Size

func (*EnvoyFilter_DeprecatedListenerMatch) XXX_Unmarshal

func (m *EnvoyFilter_DeprecatedListenerMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol

type EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol int32
const (
	// All protocols
	EnvoyFilter_DeprecatedListenerMatch_ALL EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol = 0
	// HTTP or HTTPS (with termination) / HTTP2/gRPC
	EnvoyFilter_DeprecatedListenerMatch_HTTP EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol = 1
	// Any non-HTTP listener
	EnvoyFilter_DeprecatedListenerMatch_TCP EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol = 2
)

func (EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol) EnumDescriptor

func (EnvoyFilter_DeprecatedListenerMatch_ListenerProtocol) String

type EnvoyFilter_DeprecatedListenerMatch_ListenerType

type EnvoyFilter_DeprecatedListenerMatch_ListenerType int32
const (
	// All listeners
	EnvoyFilter_DeprecatedListenerMatch_ANY EnvoyFilter_DeprecatedListenerMatch_ListenerType = 0
	// Inbound listener in sidecar
	EnvoyFilter_DeprecatedListenerMatch_SIDECAR_INBOUND EnvoyFilter_DeprecatedListenerMatch_ListenerType = 1
	// Outbound listener in sidecar
	EnvoyFilter_DeprecatedListenerMatch_SIDECAR_OUTBOUND EnvoyFilter_DeprecatedListenerMatch_ListenerType = 2
	// Gateway listener
	EnvoyFilter_DeprecatedListenerMatch_GATEWAY EnvoyFilter_DeprecatedListenerMatch_ListenerType = 3
)

func (EnvoyFilter_DeprecatedListenerMatch_ListenerType) EnumDescriptor

func (EnvoyFilter_DeprecatedListenerMatch_ListenerType) String

type EnvoyFilter_EnvoyConfigObjectMatch

type EnvoyFilter_EnvoyConfigObjectMatch struct {
	// Types that are valid to be assigned to ObjectTypes:
	//	*EnvoyFilter_EnvoyConfigObjectMatch_Listener
	//	*EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration
	//	*EnvoyFilter_EnvoyConfigObjectMatch_Cluster
	ObjectTypes          isEnvoyFilter_EnvoyConfigObjectMatch_ObjectTypes `protobuf_oneof:"object_types"`
	XXX_NoUnkeyedLiteral struct{}                                         `json:"-"`
	XXX_unrecognized     []byte                                           `json:"-"`
	XXX_sizecache        int32                                            `json:"-"`
}

func (*EnvoyFilter_EnvoyConfigObjectMatch) Descriptor

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

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetCluster

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetListener

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetObjectTypes

func (m *EnvoyFilter_EnvoyConfigObjectMatch) GetObjectTypes() isEnvoyFilter_EnvoyConfigObjectMatch_ObjectTypes

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetRouteConfiguration

func (*EnvoyFilter_EnvoyConfigObjectMatch) Marshal

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

func (*EnvoyFilter_EnvoyConfigObjectMatch) MarshalTo

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

func (*EnvoyFilter_EnvoyConfigObjectMatch) ProtoMessage

func (*EnvoyFilter_EnvoyConfigObjectMatch) ProtoMessage()

func (*EnvoyFilter_EnvoyConfigObjectMatch) Reset

func (*EnvoyFilter_EnvoyConfigObjectMatch) Size

func (*EnvoyFilter_EnvoyConfigObjectMatch) String

func (*EnvoyFilter_EnvoyConfigObjectMatch) Unmarshal

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

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_EnvoyConfigObjectMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_Marshal

func (m *EnvoyFilter_EnvoyConfigObjectMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_Merge

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_OneofFuncs

func (*EnvoyFilter_EnvoyConfigObjectMatch) 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.

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_Size

func (*EnvoyFilter_EnvoyConfigObjectMatch) XXX_Unmarshal

func (m *EnvoyFilter_EnvoyConfigObjectMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_EnvoyConfigObjectMatch_Cluster

type EnvoyFilter_EnvoyConfigObjectMatch_Cluster struct {
	Cluster *EnvoyFilter_ClusterMatch `protobuf:"bytes,5,opt,name=cluster,proto3,oneof"`
}

func (*EnvoyFilter_EnvoyConfigObjectMatch_Cluster) MarshalTo

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

func (*EnvoyFilter_EnvoyConfigObjectMatch_Cluster) Size

type EnvoyFilter_EnvoyConfigObjectMatch_Listener

type EnvoyFilter_EnvoyConfigObjectMatch_Listener struct {
	Listener *EnvoyFilter_ListenerMatch `protobuf:"bytes,1,opt,name=listener,proto3,oneof"`
}

func (*EnvoyFilter_EnvoyConfigObjectMatch_Listener) MarshalTo

func (*EnvoyFilter_EnvoyConfigObjectMatch_Listener) Size

type EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration

type EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration struct {
	RouteConfiguration *EnvoyFilter_RouteConfigurationMatch `protobuf:"bytes,3,opt,name=route_configuration,json=routeConfiguration,proto3,oneof"`
}

func (*EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration) MarshalTo

func (*EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration) Size

type EnvoyFilter_EnvoyConfigObjectPatch

type EnvoyFilter_EnvoyConfigObjectPatch struct {
	// Specifies where in the Envoy configuration, the patch should be
	// applied.  The match is expected to select the appropriate
	// object based on applyTo.  For example, an applyTo with
	// HTTP_FILTER is expected to have a match condition on the
	// listeners, with a network filter selection on
	// envoy.http_connection_manager and a sub filter selection on the
	// HTTP filter relative to which the insertion should be
	// performed.
	ApplyTo EnvoyFilter_ApplyTo `` /* 134-byte string literal not displayed */
	// Match on listener/route configuration/cluster.
	Match *EnvoyFilter_EnvoyConfigObjectMatch `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
	// The patch to apply along with the operation.
	Patch                *EnvoyFilter_Patch `protobuf:"bytes,3,opt,name=patch,proto3" json:"patch,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Changes to be made to various envoy config objects.

func (*EnvoyFilter_EnvoyConfigObjectPatch) Descriptor

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

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetApplyTo

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetMatch

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetPatch

func (*EnvoyFilter_EnvoyConfigObjectPatch) Marshal

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

func (*EnvoyFilter_EnvoyConfigObjectPatch) MarshalTo

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

func (*EnvoyFilter_EnvoyConfigObjectPatch) ProtoMessage

func (*EnvoyFilter_EnvoyConfigObjectPatch) ProtoMessage()

func (*EnvoyFilter_EnvoyConfigObjectPatch) Reset

func (*EnvoyFilter_EnvoyConfigObjectPatch) Size

func (*EnvoyFilter_EnvoyConfigObjectPatch) String

func (*EnvoyFilter_EnvoyConfigObjectPatch) Unmarshal

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

func (*EnvoyFilter_EnvoyConfigObjectPatch) XXX_DiscardUnknown

func (m *EnvoyFilter_EnvoyConfigObjectPatch) XXX_DiscardUnknown()

func (*EnvoyFilter_EnvoyConfigObjectPatch) XXX_Marshal

func (m *EnvoyFilter_EnvoyConfigObjectPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_EnvoyConfigObjectPatch) XXX_Merge

func (*EnvoyFilter_EnvoyConfigObjectPatch) XXX_Size

func (*EnvoyFilter_EnvoyConfigObjectPatch) XXX_Unmarshal

func (m *EnvoyFilter_EnvoyConfigObjectPatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_EnvoyFilterMatchCondition

type EnvoyFilter_EnvoyFilterMatchCondition struct {
	Context              EnvoyFilter_PatchContext            `protobuf:"varint,1,opt,name=context,proto3,enum=istio.networking.v1alpha3.EnvoyFilter_PatchContext" json:"context,omitempty"`
	Match                *EnvoyFilter_EnvoyConfigObjectMatch `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Match conditions for selecting an object to patch.

func (*EnvoyFilter_EnvoyFilterMatchCondition) Descriptor

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

func (*EnvoyFilter_EnvoyFilterMatchCondition) GetContext

func (*EnvoyFilter_EnvoyFilterMatchCondition) GetMatch

func (*EnvoyFilter_EnvoyFilterMatchCondition) Marshal

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

func (*EnvoyFilter_EnvoyFilterMatchCondition) MarshalTo

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

func (*EnvoyFilter_EnvoyFilterMatchCondition) ProtoMessage

func (*EnvoyFilter_EnvoyFilterMatchCondition) ProtoMessage()

func (*EnvoyFilter_EnvoyFilterMatchCondition) Reset

func (*EnvoyFilter_EnvoyFilterMatchCondition) Size

func (*EnvoyFilter_EnvoyFilterMatchCondition) String

func (*EnvoyFilter_EnvoyFilterMatchCondition) Unmarshal

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

func (*EnvoyFilter_EnvoyFilterMatchCondition) XXX_DiscardUnknown

func (m *EnvoyFilter_EnvoyFilterMatchCondition) XXX_DiscardUnknown()

func (*EnvoyFilter_EnvoyFilterMatchCondition) XXX_Marshal

func (m *EnvoyFilter_EnvoyFilterMatchCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_EnvoyFilterMatchCondition) XXX_Merge

func (*EnvoyFilter_EnvoyFilterMatchCondition) XXX_Size

func (*EnvoyFilter_EnvoyFilterMatchCondition) XXX_Unmarshal

func (m *EnvoyFilter_EnvoyFilterMatchCondition) XXX_Unmarshal(b []byte) error

type EnvoyFilter_Filter

type EnvoyFilter_Filter struct {
	// Filter will be added to the listener only if the match
	// conditions are true.  If not specified, the filters will be
	// applied to all listeners where possible, potentially resulting
	// in invalid configurations. It is recommended to specify the
	// listener match criteria for all filter insertions.
	ListenerMatch *EnvoyFilter_DeprecatedListenerMatch `protobuf:"bytes,1,opt,name=listener_match,json=listenerMatch,proto3" json:"listener_match,omitempty"`
	// Insert position in the filter chain. Defaults to FIRST
	InsertPosition *EnvoyFilter_InsertPosition `protobuf:"bytes,2,opt,name=insert_position,json=insertPosition,proto3" json:"insert_position,omitempty"`
	// REQUIRED: The type of filter to instantiate.
	FilterType EnvoyFilter_Filter_FilterType `` /* 153-byte string literal not displayed */
	// REQUIRED: The name of the filter to instantiate. The name must match a supported
	// filter _compiled into_ Envoy.
	FilterName string `protobuf:"bytes,4,opt,name=filter_name,json=filterName,proto3" json:"filter_name,omitempty"`
	// REQUIRED: Filter specific configuration which depends on the filter being
	// instantiated.
	FilterConfig         *types.Struct `protobuf:"bytes,5,opt,name=filter_config,json=filterConfig,proto3" json:"filter_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Deprecated. Envoy filters to be added to a network or http filter chain. $hide_from_docs

func (*EnvoyFilter_Filter) Descriptor

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

func (*EnvoyFilter_Filter) GetFilterConfig

func (m *EnvoyFilter_Filter) GetFilterConfig() *types.Struct

func (*EnvoyFilter_Filter) GetFilterName

func (m *EnvoyFilter_Filter) GetFilterName() string

func (*EnvoyFilter_Filter) GetFilterType

func (*EnvoyFilter_Filter) GetInsertPosition

func (m *EnvoyFilter_Filter) GetInsertPosition() *EnvoyFilter_InsertPosition

func (*EnvoyFilter_Filter) GetListenerMatch

func (*EnvoyFilter_Filter) Marshal

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

func (*EnvoyFilter_Filter) MarshalTo

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

func (*EnvoyFilter_Filter) ProtoMessage

func (*EnvoyFilter_Filter) ProtoMessage()

func (*EnvoyFilter_Filter) Reset

func (m *EnvoyFilter_Filter) Reset()

func (*EnvoyFilter_Filter) Size

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

func (*EnvoyFilter_Filter) String

func (m *EnvoyFilter_Filter) String() string

func (*EnvoyFilter_Filter) Unmarshal

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

func (*EnvoyFilter_Filter) XXX_DiscardUnknown

func (m *EnvoyFilter_Filter) XXX_DiscardUnknown()

func (*EnvoyFilter_Filter) XXX_Marshal

func (m *EnvoyFilter_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_Filter) XXX_Merge

func (m *EnvoyFilter_Filter) XXX_Merge(src proto.Message)

func (*EnvoyFilter_Filter) XXX_Size

func (m *EnvoyFilter_Filter) XXX_Size() int

func (*EnvoyFilter_Filter) XXX_Unmarshal

func (m *EnvoyFilter_Filter) XXX_Unmarshal(b []byte) error

type EnvoyFilter_Filter_FilterType

type EnvoyFilter_Filter_FilterType int32
const (
	// placeholder
	EnvoyFilter_Filter_INVALID EnvoyFilter_Filter_FilterType = 0
	// Http filter
	EnvoyFilter_Filter_HTTP EnvoyFilter_Filter_FilterType = 1
	// Network filter
	EnvoyFilter_Filter_NETWORK EnvoyFilter_Filter_FilterType = 2
)

func (EnvoyFilter_Filter_FilterType) EnumDescriptor

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

func (EnvoyFilter_Filter_FilterType) String

type EnvoyFilter_InsertPosition

type EnvoyFilter_InsertPosition struct {
	// Position of this filter in the filter chain.
	Index EnvoyFilter_InsertPosition_Index `` /* 128-byte string literal not displayed */
	// If BEFORE or AFTER position is specified, specify the name of the
	// filter relative to which this filter should be inserted.
	RelativeTo           string   `protobuf:"bytes,2,opt,name=relative_to,json=relativeTo,proto3" json:"relative_to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Deprecated. Indicates the relative index in the filter chain where the filter should be inserted. $hide_from_docs

func (*EnvoyFilter_InsertPosition) Descriptor

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

func (*EnvoyFilter_InsertPosition) GetIndex

func (*EnvoyFilter_InsertPosition) GetRelativeTo

func (m *EnvoyFilter_InsertPosition) GetRelativeTo() string

func (*EnvoyFilter_InsertPosition) Marshal

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

func (*EnvoyFilter_InsertPosition) MarshalTo

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

func (*EnvoyFilter_InsertPosition) ProtoMessage

func (*EnvoyFilter_InsertPosition) ProtoMessage()

func (*EnvoyFilter_InsertPosition) Reset

func (m *EnvoyFilter_InsertPosition) Reset()

func (*EnvoyFilter_InsertPosition) Size

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

func (*EnvoyFilter_InsertPosition) String

func (m *EnvoyFilter_InsertPosition) String() string

func (*EnvoyFilter_InsertPosition) Unmarshal

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

func (*EnvoyFilter_InsertPosition) XXX_DiscardUnknown

func (m *EnvoyFilter_InsertPosition) XXX_DiscardUnknown()

func (*EnvoyFilter_InsertPosition) XXX_Marshal

func (m *EnvoyFilter_InsertPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_InsertPosition) XXX_Merge

func (m *EnvoyFilter_InsertPosition) XXX_Merge(src proto.Message)

func (*EnvoyFilter_InsertPosition) XXX_Size

func (m *EnvoyFilter_InsertPosition) XXX_Size() int

func (*EnvoyFilter_InsertPosition) XXX_Unmarshal

func (m *EnvoyFilter_InsertPosition) XXX_Unmarshal(b []byte) error

type EnvoyFilter_InsertPosition_Index

type EnvoyFilter_InsertPosition_Index int32

Index/position in the filter chain.

const (
	// Insert first
	EnvoyFilter_InsertPosition_FIRST EnvoyFilter_InsertPosition_Index = 0
	// Insert last
	EnvoyFilter_InsertPosition_LAST EnvoyFilter_InsertPosition_Index = 1
	// Insert before the named filter.
	EnvoyFilter_InsertPosition_BEFORE EnvoyFilter_InsertPosition_Index = 2
	// Insert after the named filter.
	EnvoyFilter_InsertPosition_AFTER EnvoyFilter_InsertPosition_Index = 3
)

func (EnvoyFilter_InsertPosition_Index) EnumDescriptor

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

func (EnvoyFilter_InsertPosition_Index) String

type EnvoyFilter_ListenerMatch

type EnvoyFilter_ListenerMatch struct {
	// The service port/gateway port to which traffic is being
	// sent/received. If not specified, matches all listeners. Even though
	// inbound listeners are generated for the instance/pod ports, only
	// service ports should be used to match listeners.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// Instead of using specific port numbers, a set of ports matching
	// a given service's port name can be selected. Matching is case
	// insensitive.
	PortName string `protobuf:"bytes,2,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
	// Match a specific filter chain in a listener. If specified, the
	// patch will be applied to the filter chain (and a specific
	// filter if specified) and not to other filter chains in the
	// listener.
	FilterChain *EnvoyFilter_ListenerMatch_FilterChainMatch `protobuf:"bytes,3,opt,name=filter_chain,json=filterChain,proto3" json:"filter_chain,omitempty"`
	// Match a specific listener by its name. The listeners generated
	// by Pilot are typically named as IP:Port.
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Conditions specified in a listener match must be met for the patch to be applied to a specific listener across all filter chains, or a specific filter chain inside the listener.

func (*EnvoyFilter_ListenerMatch) Descriptor

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

func (*EnvoyFilter_ListenerMatch) GetFilterChain

func (*EnvoyFilter_ListenerMatch) GetName

func (m *EnvoyFilter_ListenerMatch) GetName() string

func (*EnvoyFilter_ListenerMatch) GetPortName

func (m *EnvoyFilter_ListenerMatch) GetPortName() string

func (*EnvoyFilter_ListenerMatch) GetPortNumber

func (m *EnvoyFilter_ListenerMatch) GetPortNumber() uint32

func (*EnvoyFilter_ListenerMatch) Marshal

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

func (*EnvoyFilter_ListenerMatch) MarshalTo

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

func (*EnvoyFilter_ListenerMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch) ProtoMessage()

func (*EnvoyFilter_ListenerMatch) Reset

func (m *EnvoyFilter_ListenerMatch) Reset()

func (*EnvoyFilter_ListenerMatch) Size

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

func (*EnvoyFilter_ListenerMatch) String

func (m *EnvoyFilter_ListenerMatch) String() string

func (*EnvoyFilter_ListenerMatch) Unmarshal

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

func (*EnvoyFilter_ListenerMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_ListenerMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_ListenerMatch) XXX_Marshal

func (m *EnvoyFilter_ListenerMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_ListenerMatch) XXX_Merge

func (m *EnvoyFilter_ListenerMatch) XXX_Merge(src proto.Message)

func (*EnvoyFilter_ListenerMatch) XXX_Size

func (m *EnvoyFilter_ListenerMatch) XXX_Size() int

func (*EnvoyFilter_ListenerMatch) XXX_Unmarshal

func (m *EnvoyFilter_ListenerMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_ListenerMatch_FilterChainMatch

type EnvoyFilter_ListenerMatch_FilterChainMatch struct {
	// The SNI value used by a filter chain's match condition.  This
	// condition will evaluate to false if the filter chain has no
	// sni match.
	Sni string `protobuf:"bytes,1,opt,name=sni,proto3" json:"sni,omitempty"`
	// Applies only to SIDECAR_INBOUND context. If non-empty, a
	// transport protocol to consider when determining a filter
	// chain match.  This value will be compared against the
	// transport protocol of a new connection, when it's detected by
	// one of the listener filters.
	//
	// Accepted values include:
	//
	// * `raw_buffer` - default, used when no transport protocol is detected.
	// * `tls` - set when TLS protocol is detected by the TLS inspector.
	TransportProtocol string `protobuf:"bytes,2,opt,name=transport_protocol,json=transportProtocol,proto3" json:"transport_protocol,omitempty"`
	// The name of a specific filter to apply the patch to. Set this
	// to envoy.http_connection_manager to add a filter or apply a
	// patch to the HTTP connection manager.
	Filter               *EnvoyFilter_ListenerMatch_FilterMatch `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

For listeners with multiple filter chains (e.g., inbound listeners on sidecars with permissive mTLS, gateway listeners with multiple SNI matches), the filter chain match can be used to select a specific filter chain to patch.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Descriptor

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetFilter

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetSni

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetTransportProtocol

func (m *EnvoyFilter_ListenerMatch_FilterChainMatch) GetTransportProtocol() string

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Marshal

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

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) MarshalTo

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

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Reset

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Size

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) String

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Unmarshal

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_Marshal

func (m *EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_Merge

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_Size

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) XXX_Unmarshal

type EnvoyFilter_ListenerMatch_FilterMatch

type EnvoyFilter_ListenerMatch_FilterMatch struct {
	// The filter name to match on.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The next level filter within this filter to match
	// upon. Typically used for HTTP Connection Manager filters and
	// Thrift filters. This field is REQUIRED when the apply to is
	// HTTP_FILTER.
	SubFilter            *EnvoyFilter_ListenerMatch_SubFilterMatch `protobuf:"bytes,2,opt,name=sub_filter,json=subFilter,proto3" json:"sub_filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                  `json:"-"`
	XXX_unrecognized     []byte                                    `json:"-"`
	XXX_sizecache        int32                                     `json:"-"`
}

Conditions to match a specific filter within a filter chain.

func (*EnvoyFilter_ListenerMatch_FilterMatch) Descriptor

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

func (*EnvoyFilter_ListenerMatch_FilterMatch) GetName

func (*EnvoyFilter_ListenerMatch_FilterMatch) GetSubFilter

func (*EnvoyFilter_ListenerMatch_FilterMatch) Marshal

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

func (*EnvoyFilter_ListenerMatch_FilterMatch) MarshalTo

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

func (*EnvoyFilter_ListenerMatch_FilterMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_FilterMatch) ProtoMessage()

func (*EnvoyFilter_ListenerMatch_FilterMatch) Reset

func (*EnvoyFilter_ListenerMatch_FilterMatch) Size

func (*EnvoyFilter_ListenerMatch_FilterMatch) String

func (*EnvoyFilter_ListenerMatch_FilterMatch) Unmarshal

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

func (*EnvoyFilter_ListenerMatch_FilterMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_ListenerMatch_FilterMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_ListenerMatch_FilterMatch) XXX_Marshal

func (m *EnvoyFilter_ListenerMatch_FilterMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_ListenerMatch_FilterMatch) XXX_Merge

func (*EnvoyFilter_ListenerMatch_FilterMatch) XXX_Size

func (*EnvoyFilter_ListenerMatch_FilterMatch) XXX_Unmarshal

func (m *EnvoyFilter_ListenerMatch_FilterMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_ListenerMatch_SubFilterMatch

type EnvoyFilter_ListenerMatch_SubFilterMatch struct {
	// The filter name to match on.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Conditions to match a specific filter within another filter. This field is typically useful to match a HTTP filter inside the envoy.http_connection_manager network filter. This could also be applicable for thrift filters.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Descriptor

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

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) GetName

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Marshal

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

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) MarshalTo

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

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Reset

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Size

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) String

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Unmarshal

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Marshal

func (m *EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Merge

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Size

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Unmarshal

func (m *EnvoyFilter_ListenerMatch_SubFilterMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_Patch

type EnvoyFilter_Patch struct {
	// Determines how the patch should be applied.
	Operation EnvoyFilter_Patch_Operation `` /* 131-byte string literal not displayed */
	// The proto equivalent of JSON Value. This will be merged using
	// json merge semantics with the existing proto in the path.
	Value                *types.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Patch specifies the JSON path in the generated proto and the content to merge/remove on the specific path.

func (*EnvoyFilter_Patch) Descriptor

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

func (*EnvoyFilter_Patch) GetOperation

func (*EnvoyFilter_Patch) GetValue

func (m *EnvoyFilter_Patch) GetValue() *types.Value

func (*EnvoyFilter_Patch) Marshal

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

func (*EnvoyFilter_Patch) MarshalTo

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

func (*EnvoyFilter_Patch) ProtoMessage

func (*EnvoyFilter_Patch) ProtoMessage()

func (*EnvoyFilter_Patch) Reset

func (m *EnvoyFilter_Patch) Reset()

func (*EnvoyFilter_Patch) Size

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

func (*EnvoyFilter_Patch) String

func (m *EnvoyFilter_Patch) String() string

func (*EnvoyFilter_Patch) Unmarshal

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

func (*EnvoyFilter_Patch) XXX_DiscardUnknown

func (m *EnvoyFilter_Patch) XXX_DiscardUnknown()

func (*EnvoyFilter_Patch) XXX_Marshal

func (m *EnvoyFilter_Patch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_Patch) XXX_Merge

func (m *EnvoyFilter_Patch) XXX_Merge(src proto.Message)

func (*EnvoyFilter_Patch) XXX_Size

func (m *EnvoyFilter_Patch) XXX_Size() int

func (*EnvoyFilter_Patch) XXX_Unmarshal

func (m *EnvoyFilter_Patch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_PatchContext

type EnvoyFilter_PatchContext int32

PatchContext selects a class of configurations based on the traffic flow direction and workload type.

const (
	// All listeners/routes/clusters in both sidecars and gateways.
	EnvoyFilter_ANY EnvoyFilter_PatchContext = 0
	// Inbound listener/route/cluster in sidecar.
	EnvoyFilter_SIDECAR_INBOUND EnvoyFilter_PatchContext = 1
	// Outbound listener/route/cluster in sidecar.
	EnvoyFilter_SIDECAR_OUTBOUND EnvoyFilter_PatchContext = 2
	// Gateway listener/route/cluster.
	EnvoyFilter_GATEWAY EnvoyFilter_PatchContext = 3
)

func (EnvoyFilter_PatchContext) EnumDescriptor

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

func (EnvoyFilter_PatchContext) String

func (x EnvoyFilter_PatchContext) String() string

type EnvoyFilter_Patch_Operation

type EnvoyFilter_Patch_Operation int32

Operation denotes how the patch should be applied to the selected configuration.

const (
	EnvoyFilter_Patch_INVALID EnvoyFilter_Patch_Operation = 0
	// Overlay the value onto the element selected by the path using
	// json merge semantics. For primitive fields this is equivalent
	// to ADD.
	EnvoyFilter_Patch_MERGE EnvoyFilter_Patch_Operation = 1
	// For maps this will either add to the map or replace the value
	// for the key. For fields this will replace the value.
	EnvoyFilter_Patch_ADD EnvoyFilter_Patch_Operation = 2
	// Remove the selected elements from their parent. Does not
	// require a value to be specified. When removing fields their
	// values are reset to their intrinsic default.
	EnvoyFilter_Patch_REMOVE EnvoyFilter_Patch_Operation = 3
	// Insert operation on an array of named objects. This operation
	// is typically useful only in the context of filters, where the
	// order of filters matter. For clusters and virtual hosts,
	// order of the element in the array does not matter. Insert
	// before the selected filter or sub filter. If no filter is
	// selected, the specified filter will be inserted at the front
	// of the list.
	EnvoyFilter_Patch_INSERT_BEFORE EnvoyFilter_Patch_Operation = 4
	// Insert operation on an array of named objects. This operation
	// is typically useful only in the context of filters, where the
	// order of filters matter. For clusters and virtual hosts,
	// order of the element in the array does not matter. Insert
	// after the selected filter or sub filter. If no filter is
	// selected, the specified filter will be inserted at the end
	// of the list.
	EnvoyFilter_Patch_INSERT_AFTER EnvoyFilter_Patch_Operation = 5
)

func (EnvoyFilter_Patch_Operation) EnumDescriptor

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

func (EnvoyFilter_Patch_Operation) String

type EnvoyFilter_RouteConfigurationMatch

type EnvoyFilter_RouteConfigurationMatch struct {
	// The service port number or gateway server port number for which
	// this route configuration was generated. If omitted, applies to
	// route configurations for all ports.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// Applicable only for GATEWAY context. The gateway server port
	// name for which this route configuration was generated.
	PortName string `protobuf:"bytes,2,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
	// The Istio gateway config's namespace/name for which this route
	// configuration was generated. Applies only if the context is
	// GATEWAY. Should be in the namespace/name format. Use this field
	// in conjunction with the portNumber and portName to accurately
	// select the Envoy route configuration for a specific HTTPS
	// server within a gateway config object.
	Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// Match a specific virtual host in a route configuration and
	// apply the patch to the virtual host.
	Vhost *EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch `protobuf:"bytes,4,opt,name=vhost,proto3" json:"vhost,omitempty"`
	// Route configuration name to match on. Can be used to match a
	// specific route configuration by name, such as the internally
	// generated "http_proxy" route configuration for all sidecars.
	Name                 string   `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Conditions specified in RouteConfigurationMatch must be met for the patch to be applied to a route configuration object or a specific virtual host within the route configuration.

func (*EnvoyFilter_RouteConfigurationMatch) Descriptor

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

func (*EnvoyFilter_RouteConfigurationMatch) GetGateway

func (*EnvoyFilter_RouteConfigurationMatch) GetName

func (*EnvoyFilter_RouteConfigurationMatch) GetPortName

func (*EnvoyFilter_RouteConfigurationMatch) GetPortNumber

func (m *EnvoyFilter_RouteConfigurationMatch) GetPortNumber() uint32

func (*EnvoyFilter_RouteConfigurationMatch) GetVhost

func (*EnvoyFilter_RouteConfigurationMatch) Marshal

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

func (*EnvoyFilter_RouteConfigurationMatch) MarshalTo

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

func (*EnvoyFilter_RouteConfigurationMatch) ProtoMessage

func (*EnvoyFilter_RouteConfigurationMatch) ProtoMessage()

func (*EnvoyFilter_RouteConfigurationMatch) Reset

func (*EnvoyFilter_RouteConfigurationMatch) Size

func (*EnvoyFilter_RouteConfigurationMatch) String

func (*EnvoyFilter_RouteConfigurationMatch) Unmarshal

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

func (*EnvoyFilter_RouteConfigurationMatch) XXX_DiscardUnknown

func (m *EnvoyFilter_RouteConfigurationMatch) XXX_DiscardUnknown()

func (*EnvoyFilter_RouteConfigurationMatch) XXX_Marshal

func (m *EnvoyFilter_RouteConfigurationMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_RouteConfigurationMatch) XXX_Merge

func (*EnvoyFilter_RouteConfigurationMatch) XXX_Size

func (*EnvoyFilter_RouteConfigurationMatch) XXX_Unmarshal

func (m *EnvoyFilter_RouteConfigurationMatch) XXX_Unmarshal(b []byte) error

type EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch

type EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch struct {
	// The VirtualHosts objects generated by Istio are named as
	// host:port, where the host typically corresponds to the
	// VirtualService's host field or the hostname of a service in the
	// registry.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Match a specific virtual host inside a route configuration.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Descriptor

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) GetName

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Marshal

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) MarshalTo

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) ProtoMessage

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Reset

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Size

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) String

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Unmarshal

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_DiscardUnknown

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_Marshal

func (m *EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_Merge

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_Size

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) XXX_Unmarshal

type Gateway

type Gateway struct {
	// REQUIRED: A list of server specifications.
	Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// REQUIRED: One or more labels that indicate a specific set of pods/VMs
	// on which this gateway configuration should be applied. The scope of
	// label search is restricted to the configuration namespace in which the
	// the resource is present. In other words, the Gateway resource must
	// reside in the same namespace as the gateway workload instance.
	Selector             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Gateway) Descriptor

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

func (*Gateway) GetSelector

func (m *Gateway) GetSelector() map[string]string

func (*Gateway) GetServers

func (m *Gateway) GetServers() []*Server

func (*Gateway) Marshal

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

func (*Gateway) MarshalTo

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

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) Reset

func (m *Gateway) Reset()

func (*Gateway) Size

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

func (*Gateway) String

func (m *Gateway) String() string

func (*Gateway) Unmarshal

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

func (*Gateway) XXX_DiscardUnknown

func (m *Gateway) XXX_DiscardUnknown()

func (*Gateway) XXX_Marshal

func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Gateway) XXX_Merge

func (m *Gateway) XXX_Merge(src proto.Message)

func (*Gateway) XXX_Size

func (m *Gateway) XXX_Size() int

func (*Gateway) XXX_Unmarshal

func (m *Gateway) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection

type HTTPFaultInjection struct {
	// Delay requests before forwarding, emulating various failures such as
	// network issues, overloaded upstream service, etc.
	Delay *HTTPFaultInjection_Delay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"`
	// Abort Http request attempts and return error codes back to downstream
	// service, giving the impression that the upstream service is faulty.
	Abort                *HTTPFaultInjection_Abort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

HTTPFaultInjection can be used to specify one or more faults to inject while forwarding http requests to the destination specified in a route. Fault specification is part of a VirtualService rule. Faults include aborting the Http request from downstream service, and/or delaying proxying of requests. A fault rule MUST HAVE delay or abort or both.

*Note:* Delay and abort faults are independent of one another, even if both are specified simultaneously.

func (*HTTPFaultInjection) Descriptor

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

func (*HTTPFaultInjection) GetAbort

func (*HTTPFaultInjection) GetDelay

func (*HTTPFaultInjection) Marshal

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

func (*HTTPFaultInjection) MarshalTo

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

func (*HTTPFaultInjection) ProtoMessage

func (*HTTPFaultInjection) ProtoMessage()

func (*HTTPFaultInjection) Reset

func (m *HTTPFaultInjection) Reset()

func (*HTTPFaultInjection) Size

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

func (*HTTPFaultInjection) String

func (m *HTTPFaultInjection) String() string

func (*HTTPFaultInjection) Unmarshal

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

func (*HTTPFaultInjection) XXX_DiscardUnknown

func (m *HTTPFaultInjection) XXX_DiscardUnknown()

func (*HTTPFaultInjection) XXX_Marshal

func (m *HTTPFaultInjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection) XXX_Merge

func (m *HTTPFaultInjection) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection) XXX_Size

func (m *HTTPFaultInjection) XXX_Size() int

func (*HTTPFaultInjection) XXX_Unmarshal

func (m *HTTPFaultInjection) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Abort

type HTTPFaultInjection_Abort struct {
	// Percentage of requests to be aborted with the error code provided (0-100).
	// Use of integer `percent` value is deprecated. Use the double `percentage`
	// field instead.
	Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // Deprecated: Do not use.
	// Types that are valid to be assigned to ErrorType:
	//	*HTTPFaultInjection_Abort_HttpStatus
	//	*HTTPFaultInjection_Abort_GrpcStatus
	//	*HTTPFaultInjection_Abort_Http2Error
	ErrorType isHTTPFaultInjection_Abort_ErrorType `protobuf_oneof:"error_type"`
	// Percentage of requests to be aborted with the error code provided.
	Percentage           *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Abort specification is used to prematurely abort a request with a pre-specified error code. The following example will return an HTTP 400 error code for 1 out of every 1000 requests to the "ratings" service "v1".

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  fault:
    abort:
      percentage:
        value: 0.1
      httpStatus: 400

```

The _httpStatus_ field is used to indicate the HTTP status code to return to the caller. The optional _percentage_ field can be used to only abort a certain percentage of requests. If not specified, all requests are aborted.

func (*HTTPFaultInjection_Abort) Descriptor

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

func (*HTTPFaultInjection_Abort) GetErrorType

func (m *HTTPFaultInjection_Abort) GetErrorType() isHTTPFaultInjection_Abort_ErrorType

func (*HTTPFaultInjection_Abort) GetGrpcStatus

func (m *HTTPFaultInjection_Abort) GetGrpcStatus() string

func (*HTTPFaultInjection_Abort) GetHttp2Error

func (m *HTTPFaultInjection_Abort) GetHttp2Error() string

func (*HTTPFaultInjection_Abort) GetHttpStatus

func (m *HTTPFaultInjection_Abort) GetHttpStatus() int32

func (*HTTPFaultInjection_Abort) GetPercent deprecated

func (m *HTTPFaultInjection_Abort) GetPercent() int32

Deprecated: Do not use.

func (*HTTPFaultInjection_Abort) GetPercentage

func (m *HTTPFaultInjection_Abort) GetPercentage() *Percent

func (*HTTPFaultInjection_Abort) Marshal

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

func (*HTTPFaultInjection_Abort) MarshalTo

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

func (*HTTPFaultInjection_Abort) ProtoMessage

func (*HTTPFaultInjection_Abort) ProtoMessage()

func (*HTTPFaultInjection_Abort) Reset

func (m *HTTPFaultInjection_Abort) Reset()

func (*HTTPFaultInjection_Abort) Size

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

func (*HTTPFaultInjection_Abort) String

func (m *HTTPFaultInjection_Abort) String() string

func (*HTTPFaultInjection_Abort) Unmarshal

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

func (*HTTPFaultInjection_Abort) XXX_DiscardUnknown

func (m *HTTPFaultInjection_Abort) XXX_DiscardUnknown()

func (*HTTPFaultInjection_Abort) XXX_Marshal

func (m *HTTPFaultInjection_Abort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection_Abort) XXX_Merge

func (m *HTTPFaultInjection_Abort) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection_Abort) XXX_OneofFuncs

func (*HTTPFaultInjection_Abort) 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.

func (*HTTPFaultInjection_Abort) XXX_Size

func (m *HTTPFaultInjection_Abort) XXX_Size() int

func (*HTTPFaultInjection_Abort) XXX_Unmarshal

func (m *HTTPFaultInjection_Abort) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Abort_GrpcStatus

type HTTPFaultInjection_Abort_GrpcStatus struct {
	GrpcStatus string `protobuf:"bytes,3,opt,name=grpc_status,json=grpcStatus,proto3,oneof"`
}

func (*HTTPFaultInjection_Abort_GrpcStatus) MarshalTo

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

func (*HTTPFaultInjection_Abort_GrpcStatus) Size

type HTTPFaultInjection_Abort_Http2Error

type HTTPFaultInjection_Abort_Http2Error struct {
	Http2Error string `protobuf:"bytes,4,opt,name=http2_error,json=http2Error,proto3,oneof"`
}

func (*HTTPFaultInjection_Abort_Http2Error) MarshalTo

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

func (*HTTPFaultInjection_Abort_Http2Error) Size

type HTTPFaultInjection_Abort_HttpStatus

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

func (*HTTPFaultInjection_Abort_HttpStatus) MarshalTo

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

func (*HTTPFaultInjection_Abort_HttpStatus) Size

type HTTPFaultInjection_Delay

type HTTPFaultInjection_Delay struct {
	// Percentage of requests on which the delay will be injected (0-100).
	// Use of integer `percent` value is deprecated. Use the double `percentage`
	// field instead.
	Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // Deprecated: Do not use.
	// Types that are valid to be assigned to HttpDelayType:
	//	*HTTPFaultInjection_Delay_FixedDelay
	//	*HTTPFaultInjection_Delay_ExponentialDelay
	HttpDelayType isHTTPFaultInjection_Delay_HttpDelayType `protobuf_oneof:"http_delay_type"`
	// Percentage of requests on which the delay will be injected.
	Percentage           *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delay specification is used to inject latency into the request forwarding path. The following example will introduce a 5 second delay in 1 out of every 1000 requests to the "v1" version of the "reviews" service from all pods with label env: prod

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- match:
  - sourceLabels:
      env: prod
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
  fault:
    delay:
      percentage:
        value: 0.1
      fixedDelay: 5s

```

The _fixedDelay_ field is used to indicate the amount of delay in seconds. The optional _percentage_ field can be used to only delay a certain percentage of requests. If left unspecified, all request will be delayed.

func (*HTTPFaultInjection_Delay) Descriptor

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

func (*HTTPFaultInjection_Delay) GetExponentialDelay

func (m *HTTPFaultInjection_Delay) GetExponentialDelay() *types.Duration

func (*HTTPFaultInjection_Delay) GetFixedDelay

func (m *HTTPFaultInjection_Delay) GetFixedDelay() *types.Duration

func (*HTTPFaultInjection_Delay) GetHttpDelayType

func (m *HTTPFaultInjection_Delay) GetHttpDelayType() isHTTPFaultInjection_Delay_HttpDelayType

func (*HTTPFaultInjection_Delay) GetPercent deprecated

func (m *HTTPFaultInjection_Delay) GetPercent() int32

Deprecated: Do not use.

func (*HTTPFaultInjection_Delay) GetPercentage

func (m *HTTPFaultInjection_Delay) GetPercentage() *Percent

func (*HTTPFaultInjection_Delay) Marshal

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

func (*HTTPFaultInjection_Delay) MarshalTo

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

func (*HTTPFaultInjection_Delay) ProtoMessage

func (*HTTPFaultInjection_Delay) ProtoMessage()

func (*HTTPFaultInjection_Delay) Reset

func (m *HTTPFaultInjection_Delay) Reset()

func (*HTTPFaultInjection_Delay) Size

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

func (*HTTPFaultInjection_Delay) String

func (m *HTTPFaultInjection_Delay) String() string

func (*HTTPFaultInjection_Delay) Unmarshal

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

func (*HTTPFaultInjection_Delay) XXX_DiscardUnknown

func (m *HTTPFaultInjection_Delay) XXX_DiscardUnknown()

func (*HTTPFaultInjection_Delay) XXX_Marshal

func (m *HTTPFaultInjection_Delay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection_Delay) XXX_Merge

func (m *HTTPFaultInjection_Delay) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection_Delay) XXX_OneofFuncs

func (*HTTPFaultInjection_Delay) 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.

func (*HTTPFaultInjection_Delay) XXX_Size

func (m *HTTPFaultInjection_Delay) XXX_Size() int

func (*HTTPFaultInjection_Delay) XXX_Unmarshal

func (m *HTTPFaultInjection_Delay) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Delay_ExponentialDelay

type HTTPFaultInjection_Delay_ExponentialDelay struct {
	ExponentialDelay *types.Duration `protobuf:"bytes,3,opt,name=exponential_delay,json=exponentialDelay,proto3,oneof"`
}

func (*HTTPFaultInjection_Delay_ExponentialDelay) MarshalTo

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

func (*HTTPFaultInjection_Delay_ExponentialDelay) Size

type HTTPFaultInjection_Delay_FixedDelay

type HTTPFaultInjection_Delay_FixedDelay struct {
	FixedDelay *types.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"`
}

func (*HTTPFaultInjection_Delay_FixedDelay) MarshalTo

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

func (*HTTPFaultInjection_Delay_FixedDelay) Size

type HTTPMatchRequest

type HTTPMatchRequest struct {
	// URI to match
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	// **Note:** Case-insensitive matching could be enabled via the
	// `ignore_uri_case` flag.
	Uri *StringMatch `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// URI Scheme
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Scheme *StringMatch `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// HTTP Method
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Method *StringMatch `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// HTTP Authority
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Authority *StringMatch `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
	// The header keys must be lowercase and use hyphen as the separator,
	// e.g. _x-request-id_.
	//
	// Header values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	// **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
	Headers map[string]*StringMatch `` /* 155-byte string literal not displayed */
	// Specifies the ports on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway match is
	// independent of sourceLabels.
	Gateways []string `protobuf:"bytes,8,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// Query parameters for matching.
	//
	// Ex:
	// - For a query parameter like "?key=true", the map key would be "key" and
	//   the string match could be defined as `exact: "true"`.
	// - For a query parameter like "?key", the map key would be "key" and the
	//   string match could be defined as `exact: ""`.
	// - For a query parameter like "?key=123", the map key would be "key" and the
	//   string match could be defined as `regex: "\d+$"`. Note that this
	//   configuration will only match values like "123" but not "a123" or "123a".
	//
	// **Note:** `prefix` matching is currently not supported.
	QueryParams map[string]*StringMatch `` /* 182-byte string literal not displayed */
	// Flag to specify whether the URI matching should be case-insensitive.
	//
	// **Note:** The case will be ignored only in the case of `exact` and `prefix`
	// URI matches.
	IgnoreUriCase        bool     `protobuf:"varint,10,opt,name=ignore_uri_case,json=ignoreUriCase,proto3" json:"ignore_uri_case,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HttpMatchRequest specifies a set of criterion to be met in order for the rule to be applied to the HTTP request. For example, the following restricts the rule to match only requests where the URL path starts with /ratings/v2/ and the request contains a custom `end-user` header with value `jason`.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - headers:
      end-user:
        exact: jason
    uri:
      prefix: "/ratings/v2/"
    ignoreUriCase: true
  route:
  - destination:
      host: ratings.prod.svc.cluster.local

```

HTTPMatchRequest CANNOT be empty.

func (*HTTPMatchRequest) Descriptor

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

func (*HTTPMatchRequest) GetAuthority

func (m *HTTPMatchRequest) GetAuthority() *StringMatch

func (*HTTPMatchRequest) GetGateways

func (m *HTTPMatchRequest) GetGateways() []string

func (*HTTPMatchRequest) GetHeaders

func (m *HTTPMatchRequest) GetHeaders() map[string]*StringMatch

func (*HTTPMatchRequest) GetIgnoreUriCase

func (m *HTTPMatchRequest) GetIgnoreUriCase() bool

func (*HTTPMatchRequest) GetMethod

func (m *HTTPMatchRequest) GetMethod() *StringMatch

func (*HTTPMatchRequest) GetPort

func (m *HTTPMatchRequest) GetPort() uint32

func (*HTTPMatchRequest) GetQueryParams

func (m *HTTPMatchRequest) GetQueryParams() map[string]*StringMatch

func (*HTTPMatchRequest) GetScheme

func (m *HTTPMatchRequest) GetScheme() *StringMatch

func (*HTTPMatchRequest) GetSourceLabels

func (m *HTTPMatchRequest) GetSourceLabels() map[string]string

func (*HTTPMatchRequest) GetUri

func (m *HTTPMatchRequest) GetUri() *StringMatch

func (*HTTPMatchRequest) Marshal

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

func (*HTTPMatchRequest) MarshalTo

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

func (*HTTPMatchRequest) ProtoMessage

func (*HTTPMatchRequest) ProtoMessage()

func (*HTTPMatchRequest) Reset

func (m *HTTPMatchRequest) Reset()

func (*HTTPMatchRequest) Size

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

func (*HTTPMatchRequest) String

func (m *HTTPMatchRequest) String() string

func (*HTTPMatchRequest) Unmarshal

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

func (*HTTPMatchRequest) XXX_DiscardUnknown

func (m *HTTPMatchRequest) XXX_DiscardUnknown()

func (*HTTPMatchRequest) XXX_Marshal

func (m *HTTPMatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPMatchRequest) XXX_Merge

func (m *HTTPMatchRequest) XXX_Merge(src proto.Message)

func (*HTTPMatchRequest) XXX_Size

func (m *HTTPMatchRequest) XXX_Size() int

func (*HTTPMatchRequest) XXX_Unmarshal

func (m *HTTPMatchRequest) XXX_Unmarshal(b []byte) error

type HTTPRedirect

type HTTPRedirect struct {
	// On a redirect, overwrite the Path portion of the URL with this
	// value. Note that the entire path will be replaced, irrespective of the
	// request URI being matched as an exact path or prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// On a redirect, overwrite the Authority/Host portion of the URL with
	// this value.
	Authority            string   `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HTTPRedirect can be used to send a 301 redirect response to the caller, where the Authority/Host and the URI in the response can be swapped with the specified values. For example, the following rule redirects requests for /v1/getProductRatings API on the ratings service to /v1/bookRatings provided by the bookratings service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  redirect:
    uri: /v1/bookRatings
    authority: newratings.default.svc.cluster.local
...

```

func (*HTTPRedirect) Descriptor

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

func (*HTTPRedirect) GetAuthority

func (m *HTTPRedirect) GetAuthority() string

func (*HTTPRedirect) GetUri

func (m *HTTPRedirect) GetUri() string

func (*HTTPRedirect) Marshal

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

func (*HTTPRedirect) MarshalTo

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

func (*HTTPRedirect) ProtoMessage

func (*HTTPRedirect) ProtoMessage()

func (*HTTPRedirect) Reset

func (m *HTTPRedirect) Reset()

func (*HTTPRedirect) Size

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

func (*HTTPRedirect) String

func (m *HTTPRedirect) String() string

func (*HTTPRedirect) Unmarshal

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

func (*HTTPRedirect) XXX_DiscardUnknown

func (m *HTTPRedirect) XXX_DiscardUnknown()

func (*HTTPRedirect) XXX_Marshal

func (m *HTTPRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRedirect) XXX_Merge

func (m *HTTPRedirect) XXX_Merge(src proto.Message)

func (*HTTPRedirect) XXX_Size

func (m *HTTPRedirect) XXX_Size() int

func (*HTTPRedirect) XXX_Unmarshal

func (m *HTTPRedirect) XXX_Unmarshal(b []byte) error

type HTTPRetry

type HTTPRetry struct {
	// REQUIRED. Number of retries for a given request. The interval
	// between retries will be determined automatically (25ms+). Actual
	// number of retries attempted depends on the httpReqTimeout.
	Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
	PerTryTimeout *types.Duration `protobuf:"bytes,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
	// Specifies the conditions under which retry takes place.
	// One or more policies can be specified using a ‘,’ delimited list.
	// See the [supported policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-on)
	// and [here](https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
	RetryOn              string   `protobuf:"bytes,3,opt,name=retry_on,json=retryOn,proto3" json:"retry_on,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes the retry policy to use when a HTTP request fails. For example, the following rule sets the maximum number of retries to 3 when calling ratings:v1 service, with a 2s timeout per retry attempt.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  retries:
    attempts: 3
    perTryTimeout: 2s
    retryOn: gateway-error,connect-failure,refused-stream

```

func (*HTTPRetry) Descriptor

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

func (*HTTPRetry) GetAttempts

func (m *HTTPRetry) GetAttempts() int32

func (*HTTPRetry) GetPerTryTimeout

func (m *HTTPRetry) GetPerTryTimeout() *types.Duration

func (*HTTPRetry) GetRetryOn

func (m *HTTPRetry) GetRetryOn() string

func (*HTTPRetry) Marshal

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

func (*HTTPRetry) MarshalTo

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

func (*HTTPRetry) ProtoMessage

func (*HTTPRetry) ProtoMessage()

func (*HTTPRetry) Reset

func (m *HTTPRetry) Reset()

func (*HTTPRetry) Size

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

func (*HTTPRetry) String

func (m *HTTPRetry) String() string

func (*HTTPRetry) Unmarshal

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

func (*HTTPRetry) XXX_DiscardUnknown

func (m *HTTPRetry) XXX_DiscardUnknown()

func (*HTTPRetry) XXX_Marshal

func (m *HTTPRetry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRetry) XXX_Merge

func (m *HTTPRetry) XXX_Merge(src proto.Message)

func (*HTTPRetry) XXX_Size

func (m *HTTPRetry) XXX_Size() int

func (*HTTPRetry) XXX_Unmarshal

func (m *HTTPRetry) XXX_Unmarshal(b []byte) error

type HTTPRewrite

type HTTPRewrite struct {
	// rewrite the path (or the prefix) portion of the URI with this
	// value. If the original URI was matched based on prefix, the value
	// provided in this field will replace the corresponding matched prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// rewrite the Authority/Host header with this value.
	Authority            string   `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HTTPRewrite can be used to rewrite specific parts of a HTTP request before forwarding the request to the destination. Rewrite primitive can be used only with HTTPRouteDestination. The following example demonstrates how to rewrite the URL prefix for api call (/ratings) to ratings service before making the actual API call.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      prefix: /ratings
  rewrite:
    uri: /v1/bookRatings
  route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1

```

func (*HTTPRewrite) Descriptor

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

func (*HTTPRewrite) GetAuthority

func (m *HTTPRewrite) GetAuthority() string

func (*HTTPRewrite) GetUri

func (m *HTTPRewrite) GetUri() string

func (*HTTPRewrite) Marshal

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

func (*HTTPRewrite) MarshalTo

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

func (*HTTPRewrite) ProtoMessage

func (*HTTPRewrite) ProtoMessage()

func (*HTTPRewrite) Reset

func (m *HTTPRewrite) Reset()

func (*HTTPRewrite) Size

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

func (*HTTPRewrite) String

func (m *HTTPRewrite) String() string

func (*HTTPRewrite) Unmarshal

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

func (*HTTPRewrite) XXX_DiscardUnknown

func (m *HTTPRewrite) XXX_DiscardUnknown()

func (*HTTPRewrite) XXX_Marshal

func (m *HTTPRewrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRewrite) XXX_Merge

func (m *HTTPRewrite) XXX_Merge(src proto.Message)

func (*HTTPRewrite) XXX_Size

func (m *HTTPRewrite) XXX_Size() int

func (*HTTPRewrite) XXX_Unmarshal

func (m *HTTPRewrite) XXX_Unmarshal(b []byte) error

type HTTPRoute

type HTTPRoute struct {
	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*HTTPMatchRequest `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// A http rule can either redirect or forward (default) traffic. The
	// forwarding target can be one of several versions of a service (see
	// glossary in beginning of document). Weights associated with the
	// service version determine the proportion of traffic it receives.
	Route []*HTTPRouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	// A http rule can either redirect or forward (default) traffic. If
	// traffic passthrough option is specified in the rule,
	// route/redirect will be ignored. The redirect primitive can be used to
	// send a HTTP 301 redirect to a different URI or Authority.
	Redirect *HTTPRedirect `protobuf:"bytes,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
	// Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with
	// Redirect primitive. Rewrite will be performed before forwarding.
	Rewrite *HTTPRewrite `protobuf:"bytes,4,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// Deprecated. Websocket upgrades are done automatically starting from Istio 1.0.
	// $hide_from_docs
	WebsocketUpgrade bool `protobuf:"varint,5,opt,name=websocket_upgrade,json=websocketUpgrade,proto3" json:"websocket_upgrade,omitempty"`
	// Timeout for HTTP requests.
	Timeout *types.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Retry policy for HTTP requests.
	Retries *HTTPRetry `protobuf:"bytes,7,opt,name=retries,proto3" json:"retries,omitempty"`
	// Fault injection policy to apply on HTTP traffic at the client side.
	// Note that timeouts or retries will not be enabled when faults are
	// enabled on the client side.
	Fault *HTTPFaultInjection `protobuf:"bytes,8,opt,name=fault,proto3" json:"fault,omitempty"`
	// Mirror HTTP traffic to a another destination in addition to forwarding
	// the requests to the intended destination. Mirrored traffic is on a
	// best effort basis where the sidecar/gateway will not wait for the
	// mirrored cluster to respond before returning the response from the
	// original destination.  Statistics will be generated for the mirrored
	// destination.
	Mirror *Destination `protobuf:"bytes,9,opt,name=mirror,proto3" json:"mirror,omitempty"`
	// Cross-Origin Resource Sharing policy (CORS). Refer to
	// [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
	// for further details about cross origin resource sharing.
	CorsPolicy *CorsPolicy `protobuf:"bytes,10,opt,name=cors_policy,json=corsPolicy,proto3" json:"cors_policy,omitempty"`
	// Use of `append_headers` is deprecated. Use the `headers`
	// field instead.
	AppendHeaders map[string]string `` // Deprecated: Do not use.
	/* 189-byte string literal not displayed */
	// Use of `remove_response_header` is deprecated. Use the `headers`
	// field instead.
	RemoveResponseHeaders []string `` // Deprecated: Do not use.
	/* 127-byte string literal not displayed */
	// Use of `append_response_headers` is deprecated. Use the `headers`
	// field instead.
	AppendResponseHeaders map[string]string `` // Deprecated: Do not use.
	/* 215-byte string literal not displayed */
	// Use of `remove_request_headers` is deprecated. Use the `headers`
	// field instead.
	RemoveRequestHeaders []string `protobuf:"bytes,14,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"` // Deprecated: Do not use.
	// Use of `append_request_headers` is deprecated. Use the `headers`
	// field instead.
	AppendRequestHeaders map[string]string `` // Deprecated: Do not use.
	/* 212-byte string literal not displayed */
	// Header manipulation rules
	Headers              *Headers `protobuf:"bytes,16,opt,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes match conditions and actions for routing HTTP/1.1, HTTP2, and gRPC traffic. See VirtualService for usage examples.

func (*HTTPRoute) Descriptor

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

func (*HTTPRoute) GetAppendHeaders deprecated

func (m *HTTPRoute) GetAppendHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetAppendRequestHeaders deprecated

func (m *HTTPRoute) GetAppendRequestHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetAppendResponseHeaders deprecated

func (m *HTTPRoute) GetAppendResponseHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetCorsPolicy

func (m *HTTPRoute) GetCorsPolicy() *CorsPolicy

func (*HTTPRoute) GetFault

func (m *HTTPRoute) GetFault() *HTTPFaultInjection

func (*HTTPRoute) GetHeaders

func (m *HTTPRoute) GetHeaders() *Headers

func (*HTTPRoute) GetMatch

func (m *HTTPRoute) GetMatch() []*HTTPMatchRequest

func (*HTTPRoute) GetMirror

func (m *HTTPRoute) GetMirror() *Destination

func (*HTTPRoute) GetRedirect

func (m *HTTPRoute) GetRedirect() *HTTPRedirect

func (*HTTPRoute) GetRemoveRequestHeaders deprecated

func (m *HTTPRoute) GetRemoveRequestHeaders() []string

Deprecated: Do not use.

func (*HTTPRoute) GetRemoveResponseHeaders deprecated

func (m *HTTPRoute) GetRemoveResponseHeaders() []string

Deprecated: Do not use.

func (*HTTPRoute) GetRetries

func (m *HTTPRoute) GetRetries() *HTTPRetry

func (*HTTPRoute) GetRewrite

func (m *HTTPRoute) GetRewrite() *HTTPRewrite

func (*HTTPRoute) GetRoute

func (m *HTTPRoute) GetRoute() []*HTTPRouteDestination

func (*HTTPRoute) GetTimeout

func (m *HTTPRoute) GetTimeout() *types.Duration

func (*HTTPRoute) GetWebsocketUpgrade

func (m *HTTPRoute) GetWebsocketUpgrade() bool

func (*HTTPRoute) Marshal

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

func (*HTTPRoute) MarshalTo

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

func (*HTTPRoute) ProtoMessage

func (*HTTPRoute) ProtoMessage()

func (*HTTPRoute) Reset

func (m *HTTPRoute) Reset()

func (*HTTPRoute) Size

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

func (*HTTPRoute) String

func (m *HTTPRoute) String() string

func (*HTTPRoute) Unmarshal

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

func (*HTTPRoute) XXX_DiscardUnknown

func (m *HTTPRoute) XXX_DiscardUnknown()

func (*HTTPRoute) XXX_Marshal

func (m *HTTPRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRoute) XXX_Merge

func (m *HTTPRoute) XXX_Merge(src proto.Message)

func (*HTTPRoute) XXX_Size

func (m *HTTPRoute) XXX_Size() int

func (*HTTPRoute) XXX_Unmarshal

func (m *HTTPRoute) XXX_Unmarshal(b []byte) error

type HTTPRouteDestination

type HTTPRouteDestination struct {
	// REQUIRED. Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// REQUIRED. The proportion of traffic to be forwarded to the service
	// version. (0-100). Sum of weights across destinations SHOULD BE == 100.
	// If there is only one destination in a rule, the weight value is assumed to
	// be 100.
	Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// Use of `remove_response_header` is deprecated. Use the `headers`
	// field instead.
	RemoveResponseHeaders []string `` // Deprecated: Do not use.
	/* 126-byte string literal not displayed */
	// Use of `append_response_headers` is deprecated. Use the `headers`
	// field instead.
	AppendResponseHeaders map[string]string `` // Deprecated: Do not use.
	/* 214-byte string literal not displayed */
	// Use of `remove_request_headers` is deprecated. Use the `headers`
	// field instead.
	RemoveRequestHeaders []string `protobuf:"bytes,5,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"` // Deprecated: Do not use.
	// Use of `append_request_headers` is deprecated. Use the `headers`
	// field instead.
	AppendRequestHeaders map[string]string `` // Deprecated: Do not use.
	/* 211-byte string literal not displayed */
	// Header manipulation rules
	Headers              *Headers `protobuf:"bytes,7,opt,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Each routing rule is associated with one or more service versions (see glossary in beginning of document). Weights associated with the version determine the proportion of traffic it receives. For example, the following rule will route 25% of traffic for the "reviews" service to instances with the "v2" tag and the remaining traffic (i.e., 75%) to "v1".

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    weight: 75

```

And the associated DestinationRule

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination

spec:

host: reviews.prod.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

```

Traffic can also be split across two entirely different services without having to define new subsets. For example, the following rule forwards 25% of traffic to reviews.com to dev.reviews.com

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route-two-domains

spec:

hosts:
- reviews.com
http:
- route:
  - destination:
      host: dev.reviews.com
    weight: 25
  - destination:
      host: reviews.com
    weight: 75

```

func (*HTTPRouteDestination) Descriptor

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

func (*HTTPRouteDestination) GetAppendRequestHeaders deprecated

func (m *HTTPRouteDestination) GetAppendRequestHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetAppendResponseHeaders deprecated

func (m *HTTPRouteDestination) GetAppendResponseHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetDestination

func (m *HTTPRouteDestination) GetDestination() *Destination

func (*HTTPRouteDestination) GetHeaders

func (m *HTTPRouteDestination) GetHeaders() *Headers

func (*HTTPRouteDestination) GetRemoveRequestHeaders deprecated

func (m *HTTPRouteDestination) GetRemoveRequestHeaders() []string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetRemoveResponseHeaders deprecated

func (m *HTTPRouteDestination) GetRemoveResponseHeaders() []string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetWeight

func (m *HTTPRouteDestination) GetWeight() int32

func (*HTTPRouteDestination) Marshal

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

func (*HTTPRouteDestination) MarshalTo

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

func (*HTTPRouteDestination) ProtoMessage

func (*HTTPRouteDestination) ProtoMessage()

func (*HTTPRouteDestination) Reset

func (m *HTTPRouteDestination) Reset()

func (*HTTPRouteDestination) Size

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

func (*HTTPRouteDestination) String

func (m *HTTPRouteDestination) String() string

func (*HTTPRouteDestination) Unmarshal

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

func (*HTTPRouteDestination) XXX_DiscardUnknown

func (m *HTTPRouteDestination) XXX_DiscardUnknown()

func (*HTTPRouteDestination) XXX_Marshal

func (m *HTTPRouteDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRouteDestination) XXX_Merge

func (m *HTTPRouteDestination) XXX_Merge(src proto.Message)

func (*HTTPRouteDestination) XXX_Size

func (m *HTTPRouteDestination) XXX_Size() int

func (*HTTPRouteDestination) XXX_Unmarshal

func (m *HTTPRouteDestination) XXX_Unmarshal(b []byte) error

type Headers

type Headers struct {
	// Header manipulation rules to apply before forwarding a request
	// to the destination service
	Request *Headers_HeaderOperations `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Header manipulation rules to apply before returning a response
	// to the caller
	Response             *Headers_HeaderOperations `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

Header manipulation rules

func (*Headers) Descriptor

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

func (*Headers) GetRequest

func (m *Headers) GetRequest() *Headers_HeaderOperations

func (*Headers) GetResponse

func (m *Headers) GetResponse() *Headers_HeaderOperations

func (*Headers) Marshal

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

func (*Headers) MarshalTo

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

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) Reset

func (m *Headers) Reset()

func (*Headers) Size

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

func (*Headers) String

func (m *Headers) String() string

func (*Headers) Unmarshal

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

func (*Headers) XXX_DiscardUnknown

func (m *Headers) XXX_DiscardUnknown()

func (*Headers) XXX_Marshal

func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers) XXX_Merge

func (m *Headers) XXX_Merge(src proto.Message)

func (*Headers) XXX_Size

func (m *Headers) XXX_Size() int

func (*Headers) XXX_Unmarshal

func (m *Headers) XXX_Unmarshal(b []byte) error

type Headers_HeaderOperations

type Headers_HeaderOperations struct {
	// Overwrite the headers specified by key with the given values
	Set map[string]string `` /* 147-byte string literal not displayed */
	// Append the given values to the headers specified by keys
	// (will create a comma-separated list of values)
	Add map[string]string `` /* 147-byte string literal not displayed */
	// Remove a the specified headers
	Remove               []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HeaderOperations Describes the header manipulations to apply

func (*Headers_HeaderOperations) Descriptor

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

func (*Headers_HeaderOperations) GetAdd

func (m *Headers_HeaderOperations) GetAdd() map[string]string

func (*Headers_HeaderOperations) GetRemove

func (m *Headers_HeaderOperations) GetRemove() []string

func (*Headers_HeaderOperations) GetSet

func (m *Headers_HeaderOperations) GetSet() map[string]string

func (*Headers_HeaderOperations) Marshal

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

func (*Headers_HeaderOperations) MarshalTo

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

func (*Headers_HeaderOperations) ProtoMessage

func (*Headers_HeaderOperations) ProtoMessage()

func (*Headers_HeaderOperations) Reset

func (m *Headers_HeaderOperations) Reset()

func (*Headers_HeaderOperations) Size

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

func (*Headers_HeaderOperations) String

func (m *Headers_HeaderOperations) String() string

func (*Headers_HeaderOperations) Unmarshal

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

func (*Headers_HeaderOperations) XXX_DiscardUnknown

func (m *Headers_HeaderOperations) XXX_DiscardUnknown()

func (*Headers_HeaderOperations) XXX_Marshal

func (m *Headers_HeaderOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers_HeaderOperations) XXX_Merge

func (m *Headers_HeaderOperations) XXX_Merge(src proto.Message)

func (*Headers_HeaderOperations) XXX_Size

func (m *Headers_HeaderOperations) XXX_Size() int

func (*Headers_HeaderOperations) XXX_Unmarshal

func (m *Headers_HeaderOperations) XXX_Unmarshal(b []byte) error

type IstioEgressListener

type IstioEgressListener struct {
	// The port associated with the listener. If using Unix domain socket,
	// use 0 as the port number, with a valid protocol. The port if
	// specified, will be used as the default destination port associated
	// with the imported hosts. If the port is omitted, Istio will infer the
	// listener ports based on the imported hosts. Note that when multiple
	// egress listeners are specified, where one or more listeners have
	// specific ports while others have no port, the hosts exposed on a
	// listener port will be based on the listener with the most specific
	// port.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The ip or the Unix domain socket to which the listener should be bound
	// to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or
	// `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If
	// omitted, Istio will automatically configure the defaults based on imported
	// services, the workload instances to which this configuration is applied to and
	// the captureMode. If captureMode is NONE, bind will default to
	// 127.0.0.1.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// When the bind address is an IP, the captureMode option dictates
	// how traffic to the listener is expected to be captured (or not).
	// captureMode must be DEFAULT or NONE for Unix domain socket binds.
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// REQUIRED: One or more service hosts exposed by the listener
	// in `namespace/dnsName` format. Services in the specified namespace
	// matching `dnsName` will be exposed.
	// The corresponding service can be a service in the service registry
	// (e.g., a Kubernetes or cloud foundry service) or a service specified
	// using a `ServiceEntry` or `VirtualService` configuration. Any
	// associated `DestinationRule` in the same namespace will also be used.
	//
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g., `prod/*.example.com`).
	// Set the `dnsName` to `*` to select all services from the specified namespace
	// (e.g.,`prod/*`). The `namespace` can also be set to `*` to select a particular
	// service from any available namespace (e.g., "*/foo.example.com").
	//
	// NOTE: Only services and configuration artifacts exported to the sidecar's
	// namespace (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will
	// not be available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	Hosts                []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IstioEgressListener specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload instance.

func (*IstioEgressListener) Descriptor

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

func (*IstioEgressListener) GetBind

func (m *IstioEgressListener) GetBind() string

func (*IstioEgressListener) GetCaptureMode

func (m *IstioEgressListener) GetCaptureMode() CaptureMode

func (*IstioEgressListener) GetHosts

func (m *IstioEgressListener) GetHosts() []string

func (*IstioEgressListener) GetPort

func (m *IstioEgressListener) GetPort() *Port

func (*IstioEgressListener) Marshal

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

func (*IstioEgressListener) MarshalTo

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

func (*IstioEgressListener) ProtoMessage

func (*IstioEgressListener) ProtoMessage()

func (*IstioEgressListener) Reset

func (m *IstioEgressListener) Reset()

func (*IstioEgressListener) Size

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

func (*IstioEgressListener) String

func (m *IstioEgressListener) String() string

func (*IstioEgressListener) Unmarshal

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

func (*IstioEgressListener) XXX_DiscardUnknown

func (m *IstioEgressListener) XXX_DiscardUnknown()

func (*IstioEgressListener) XXX_Marshal

func (m *IstioEgressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IstioEgressListener) XXX_Merge

func (m *IstioEgressListener) XXX_Merge(src proto.Message)

func (*IstioEgressListener) XXX_Size

func (m *IstioEgressListener) XXX_Size() int

func (*IstioEgressListener) XXX_Unmarshal

func (m *IstioEgressListener) XXX_Unmarshal(b []byte) error

type IstioIngressListener

type IstioIngressListener struct {
	// REQUIRED. The port associated with the listener. If using
	// Unix domain socket, use 0 as the port number, with a valid
	// protocol.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The ip or the Unix domain socket to which the listener should be bound
	// to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux
	// abstract namespace). If omitted, Istio will automatically configure the defaults
	// based on imported services and the workload instances to which this
	// configuration is applied to.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// When the bind address is an IP, the captureMode option dictates
	// how traffic to the listener is expected to be captured (or not).
	// captureMode must be DEFAULT or NONE for Unix domain socket binds.
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// REQUIRED: The loopback IP endpoint or Unix domain socket to which
	// traffic should be forwarded to. This configuration can be used to
	// redirect traffic arriving at the bind point on the sidecar to a port
	// or Unix domain socket where the application workload instance is listening for
	// connections. Format should be 127.0.0.1:PORT or `unix:///path/to/socket`
	DefaultEndpoint      string   `protobuf:"bytes,4,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IstioIngressListener specifies the properties of an inbound traffic listener on the sidecar proxy attached to a workload instance.

func (*IstioIngressListener) Descriptor

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

func (*IstioIngressListener) GetBind

func (m *IstioIngressListener) GetBind() string

func (*IstioIngressListener) GetCaptureMode

func (m *IstioIngressListener) GetCaptureMode() CaptureMode

func (*IstioIngressListener) GetDefaultEndpoint

func (m *IstioIngressListener) GetDefaultEndpoint() string

func (*IstioIngressListener) GetPort

func (m *IstioIngressListener) GetPort() *Port

func (*IstioIngressListener) Marshal

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

func (*IstioIngressListener) MarshalTo

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

func (*IstioIngressListener) ProtoMessage

func (*IstioIngressListener) ProtoMessage()

func (*IstioIngressListener) Reset

func (m *IstioIngressListener) Reset()

func (*IstioIngressListener) Size

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

func (*IstioIngressListener) String

func (m *IstioIngressListener) String() string

func (*IstioIngressListener) Unmarshal

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

func (*IstioIngressListener) XXX_DiscardUnknown

func (m *IstioIngressListener) XXX_DiscardUnknown()

func (*IstioIngressListener) XXX_Marshal

func (m *IstioIngressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IstioIngressListener) XXX_Merge

func (m *IstioIngressListener) XXX_Merge(src proto.Message)

func (*IstioIngressListener) XXX_Size

func (m *IstioIngressListener) XXX_Size() int

func (*IstioIngressListener) XXX_Unmarshal

func (m *IstioIngressListener) XXX_Unmarshal(b []byte) error

type L4MatchAttributes

type L4MatchAttributes struct {
	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,1,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx
	// form or just a.b.c.d
	// $hide_from_docs
	SourceSubnet string `protobuf:"bytes,3,opt,name=source_subnet,json=sourceSubnet,proto3" json:"source_subnet,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways             []string `protobuf:"bytes,5,rep,name=gateways,proto3" json:"gateways,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

L4 connection match attributes. Note that L4 connection matching support is incomplete.

func (*L4MatchAttributes) Descriptor

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

func (*L4MatchAttributes) GetDestinationSubnets

func (m *L4MatchAttributes) GetDestinationSubnets() []string

func (*L4MatchAttributes) GetGateways

func (m *L4MatchAttributes) GetGateways() []string

func (*L4MatchAttributes) GetPort

func (m *L4MatchAttributes) GetPort() uint32

func (*L4MatchAttributes) GetSourceLabels

func (m *L4MatchAttributes) GetSourceLabels() map[string]string

func (*L4MatchAttributes) GetSourceSubnet

func (m *L4MatchAttributes) GetSourceSubnet() string

func (*L4MatchAttributes) Marshal

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

func (*L4MatchAttributes) MarshalTo

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

func (*L4MatchAttributes) ProtoMessage

func (*L4MatchAttributes) ProtoMessage()

func (*L4MatchAttributes) Reset

func (m *L4MatchAttributes) Reset()

func (*L4MatchAttributes) Size

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

func (*L4MatchAttributes) String

func (m *L4MatchAttributes) String() string

func (*L4MatchAttributes) Unmarshal

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

func (*L4MatchAttributes) XXX_DiscardUnknown

func (m *L4MatchAttributes) XXX_DiscardUnknown()

func (*L4MatchAttributes) XXX_Marshal

func (m *L4MatchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*L4MatchAttributes) XXX_Merge

func (m *L4MatchAttributes) XXX_Merge(src proto.Message)

func (*L4MatchAttributes) XXX_Size

func (m *L4MatchAttributes) XXX_Size() int

func (*L4MatchAttributes) XXX_Unmarshal

func (m *L4MatchAttributes) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings

type LoadBalancerSettings struct {
	// Upstream load balancing policy.
	//
	// Types that are valid to be assigned to LbPolicy:
	//	*LoadBalancerSettings_Simple
	//	*LoadBalancerSettings_ConsistentHash
	LbPolicy             isLoadBalancerSettings_LbPolicy `protobuf_oneof:"lb_policy"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

Load balancing policies to apply for a specific destination. See Envoy's load balancing [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancing) for more details.

For example, the following rule uses a round robin load balancing policy for all traffic going to the ratings service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: ROUND_ROBIN

```

The following example sets up sticky sessions for the ratings service hashing-based load balancer for the same ratings service using the the User cookie as the hash key.

```yaml

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: bookinfo-ratings
spec:
  host: ratings.prod.svc.cluster.local
  trafficPolicy:
    loadBalancer:
      consistentHash:
        httpCookie:
          name: user
          ttl: 0s

```

func (*LoadBalancerSettings) Descriptor

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

func (*LoadBalancerSettings) GetConsistentHash

func (*LoadBalancerSettings) GetLbPolicy

func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy

func (*LoadBalancerSettings) GetSimple

func (*LoadBalancerSettings) Marshal

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

func (*LoadBalancerSettings) MarshalTo

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

func (*LoadBalancerSettings) ProtoMessage

func (*LoadBalancerSettings) ProtoMessage()

func (*LoadBalancerSettings) Reset

func (m *LoadBalancerSettings) Reset()

func (*LoadBalancerSettings) Size

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

func (*LoadBalancerSettings) String

func (m *LoadBalancerSettings) String() string

func (*LoadBalancerSettings) Unmarshal

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

func (*LoadBalancerSettings) XXX_DiscardUnknown

func (m *LoadBalancerSettings) XXX_DiscardUnknown()

func (*LoadBalancerSettings) XXX_Marshal

func (m *LoadBalancerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings) XXX_Merge

func (m *LoadBalancerSettings) XXX_Merge(src proto.Message)

func (*LoadBalancerSettings) XXX_OneofFuncs

func (*LoadBalancerSettings) 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.

func (*LoadBalancerSettings) XXX_Size

func (m *LoadBalancerSettings) XXX_Size() int

func (*LoadBalancerSettings) XXX_Unmarshal

func (m *LoadBalancerSettings) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings_ConsistentHash

type LoadBalancerSettings_ConsistentHash struct {
	ConsistentHash *LoadBalancerSettings_ConsistentHashLB `protobuf:"bytes,2,opt,name=consistent_hash,json=consistentHash,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHash) MarshalTo

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

func (*LoadBalancerSettings_ConsistentHash) Size

type LoadBalancerSettings_ConsistentHashLB

type LoadBalancerSettings_ConsistentHashLB struct {
	// REQUIRED: The hash key to use.
	//
	// Types that are valid to be assigned to HashKey:
	//	*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName
	//	*LoadBalancerSettings_ConsistentHashLB_HttpCookie
	//	*LoadBalancerSettings_ConsistentHashLB_UseSourceIp
	HashKey isLoadBalancerSettings_ConsistentHashLB_HashKey `protobuf_oneof:"hash_key"`
	// The minimum number of virtual nodes to use for the hash
	// ring. Defaults to 1024. Larger ring sizes result in more granular
	// load distributions. If the number of hosts in the load balancing
	// pool is larger than the ring size, each host will be assigned a
	// single virtual node.
	MinimumRingSize      uint64   `protobuf:"varint,4,opt,name=minimum_ring_size,json=minimumRingSize,proto3" json:"minimum_ring_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor

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

func (*LoadBalancerSettings_ConsistentHashLB) GetHashKey

func (m *LoadBalancerSettings_ConsistentHashLB) GetHashKey() isLoadBalancerSettings_ConsistentHashLB_HashKey

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpCookie

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName

func (m *LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName() string

func (*LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize

func (m *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64

func (*LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp

func (m *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool

func (*LoadBalancerSettings_ConsistentHashLB) Marshal

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

func (*LoadBalancerSettings_ConsistentHashLB) MarshalTo

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

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()

func (*LoadBalancerSettings_ConsistentHashLB) Reset

func (*LoadBalancerSettings_ConsistentHashLB) Size

func (*LoadBalancerSettings_ConsistentHashLB) String

func (*LoadBalancerSettings_ConsistentHashLB) Unmarshal

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

func (*LoadBalancerSettings_ConsistentHashLB) XXX_DiscardUnknown

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_DiscardUnknown()

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Marshal

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Merge

func (*LoadBalancerSettings_ConsistentHashLB) XXX_OneofFuncs

func (*LoadBalancerSettings_ConsistentHashLB) 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.

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Size

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Unmarshal

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie struct {
	// REQUIRED. Name of the cookie.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Path to set for the cookie.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// REQUIRED. Lifetime of the cookie.
	Ttl                  *time.Duration `protobuf:"bytes,3,opt,name=ttl,proto3,stdduration" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Describes a HTTP cookie that will be used as the hash key for the Consistent Hash load balancer. If the cookie is not present, it will be generated.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Marshal

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

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Size

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_DiscardUnknown

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_DiscardUnknown()

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Marshal

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Merge

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Size

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Unmarshal

type LoadBalancerSettings_ConsistentHashLB_HttpCookie

type LoadBalancerSettings_ConsistentHashLB_HttpCookie struct {
	HttpCookie *LoadBalancerSettings_ConsistentHashLB_HTTPCookie `protobuf:"bytes,2,opt,name=http_cookie,json=httpCookie,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HttpCookie) Size

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName struct {
	HttpHeaderName string `protobuf:"bytes,1,opt,name=http_header_name,json=httpHeaderName,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Size

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp struct {
	UseSourceIp bool `protobuf:"varint,3,opt,name=use_source_ip,json=useSourceIp,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Size

type LoadBalancerSettings_Simple

type LoadBalancerSettings_Simple struct {
	Simple LoadBalancerSettings_SimpleLB `protobuf:"varint,1,opt,name=simple,proto3,enum=istio.networking.v1alpha3.LoadBalancerSettings_SimpleLB,oneof"`
}

func (*LoadBalancerSettings_Simple) MarshalTo

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

func (*LoadBalancerSettings_Simple) Size

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

type LoadBalancerSettings_SimpleLB

type LoadBalancerSettings_SimpleLB int32

Standard load balancing algorithms that require no tuning.

const (
	// Round Robin policy. Default
	LoadBalancerSettings_ROUND_ROBIN LoadBalancerSettings_SimpleLB = 0
	// The least request load balancer uses an O(1) algorithm which selects
	// two random healthy hosts and picks the host which has fewer active
	// requests.
	LoadBalancerSettings_LEAST_CONN LoadBalancerSettings_SimpleLB = 1
	// The random load balancer selects a random healthy host. The random
	// load balancer generally performs better than round robin if no health
	// checking policy is configured.
	LoadBalancerSettings_RANDOM LoadBalancerSettings_SimpleLB = 2
	// This option will forward the connection to the original IP address
	// requested by the caller without doing any form of load
	// balancing. This option must be used with care. It is meant for
	// advanced use cases. Refer to Original Destination load balancer in
	// Envoy for further details.
	LoadBalancerSettings_PASSTHROUGH LoadBalancerSettings_SimpleLB = 3
)

func (LoadBalancerSettings_SimpleLB) EnumDescriptor

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

func (LoadBalancerSettings_SimpleLB) String

type OutlierDetection

type OutlierDetection struct {
	// Number of errors before a host is ejected from the connection
	// pool. Defaults to 5. When the upstream host is accessed over HTTP, a
	// 502, 503 or 504 return code qualifies as an error. When the upstream host
	// is accessed over an opaque TCP connection, connect timeouts and
	// connection error/failure events qualify as an error.
	ConsecutiveErrors int32 `protobuf:"varint,1,opt,name=consecutive_errors,json=consecutiveErrors,proto3" json:"consecutive_errors,omitempty"`
	// Time interval between ejection sweep analysis. format:
	// 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
	Interval *types.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	// Minimum ejection duration. A host will remain ejected for a period
	// equal to the product of minimum ejection duration and the number of
	// times the host has been ejected. This technique allows the system to
	// automatically increase the ejection period for unhealthy upstream
	// servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
	BaseEjectionTime *types.Duration `protobuf:"bytes,3,opt,name=base_ejection_time,json=baseEjectionTime,proto3" json:"base_ejection_time,omitempty"`
	// Maximum % of hosts in the load balancing pool for the upstream
	// service that can be ejected. Defaults to 10%.
	MaxEjectionPercent int32 `protobuf:"varint,4,opt,name=max_ejection_percent,json=maxEjectionPercent,proto3" json:"max_ejection_percent,omitempty"`
	// Outlier detection will be enabled as long as the associated load balancing
	// pool has at least min_health_percent hosts in healthy mode. When the
	// percentage of healthy hosts in the load balancing pool drops below this
	// threshold, outlier detection will be disabled and the proxy will load balance
	// across all hosts in the pool (healthy and unhealthy).  The default is 50%.
	MinHealthPercent     int32    `protobuf:"varint,5,opt,name=min_health_percent,json=minHealthPercent,proto3" json:"min_health_percent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Circuit breaker implementation that tracks the status of each individual host in the upstream service. Applicable to both HTTP and TCP services. For HTTP services, hosts that continually return 5xx errors for API calls are ejected from the pool for a pre-defined period of time. For TCP services, connection timeouts or connection failures to a given host counts as an error when measuring the consecutive errors metric. See Envoy's [outlier detection](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier) for more details.

The following rule sets a connection pool size of 100 connections and 1000 concurrent HTTP2 requests, with no more than 10 req/connection to "reviews" service. In addition, it configures upstream hosts to be scanned every 5 mins, such that any host that fails 7 consecutive times with 5XX error code will be ejected for 15 minutes.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-cb-policy

spec:

host: reviews.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
    http:
      http2MaxRequests: 1000
      maxRequestsPerConnection: 10
  outlierDetection:
    consecutiveErrors: 7
    interval: 5m
    baseEjectionTime: 15m

```

func (*OutlierDetection) Descriptor

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

func (*OutlierDetection) GetBaseEjectionTime

func (m *OutlierDetection) GetBaseEjectionTime() *types.Duration

func (*OutlierDetection) GetConsecutiveErrors

func (m *OutlierDetection) GetConsecutiveErrors() int32

func (*OutlierDetection) GetInterval

func (m *OutlierDetection) GetInterval() *types.Duration

func (*OutlierDetection) GetMaxEjectionPercent

func (m *OutlierDetection) GetMaxEjectionPercent() int32

func (*OutlierDetection) GetMinHealthPercent

func (m *OutlierDetection) GetMinHealthPercent() int32

func (*OutlierDetection) Marshal

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

func (*OutlierDetection) MarshalTo

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

func (*OutlierDetection) ProtoMessage

func (*OutlierDetection) ProtoMessage()

func (*OutlierDetection) Reset

func (m *OutlierDetection) Reset()

func (*OutlierDetection) Size

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

func (*OutlierDetection) String

func (m *OutlierDetection) String() string

func (*OutlierDetection) Unmarshal

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

func (*OutlierDetection) XXX_DiscardUnknown

func (m *OutlierDetection) XXX_DiscardUnknown()

func (*OutlierDetection) XXX_Marshal

func (m *OutlierDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierDetection) XXX_Merge

func (m *OutlierDetection) XXX_Merge(src proto.Message)

func (*OutlierDetection) XXX_Size

func (m *OutlierDetection) XXX_Size() int

func (*OutlierDetection) XXX_Unmarshal

func (m *OutlierDetection) XXX_Unmarshal(b []byte) error

type Percent

type Percent struct {
	Value                float64  `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Percent specifies a percentage in the range of [0.0, 100.0].

func (*Percent) Descriptor

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

func (*Percent) GetValue

func (m *Percent) GetValue() float64

func (*Percent) Marshal

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

func (*Percent) MarshalTo

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

func (*Percent) ProtoMessage

func (*Percent) ProtoMessage()

func (*Percent) Reset

func (m *Percent) Reset()

func (*Percent) Size

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

func (*Percent) String

func (m *Percent) String() string

func (*Percent) Unmarshal

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

func (*Percent) XXX_DiscardUnknown

func (m *Percent) XXX_DiscardUnknown()

func (*Percent) XXX_Marshal

func (m *Percent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Percent) XXX_Merge

func (m *Percent) XXX_Merge(src proto.Message)

func (*Percent) XXX_Size

func (m *Percent) XXX_Size() int

func (*Percent) XXX_Unmarshal

func (m *Percent) XXX_Unmarshal(b []byte) error

type Port

type Port struct {
	// REQUIRED: A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// REQUIRED: The protocol exposed on the port.
	// MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS.
	// TLS implies the connection will be routed based on the SNI header to
	// the destination without terminating the TLS connection.
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Label assigned to the port.
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Port describes the properties of a specific port of a service.

func (*Port) Descriptor

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

func (*Port) GetName

func (m *Port) GetName() string

func (*Port) GetNumber

func (m *Port) GetNumber() uint32

func (*Port) GetProtocol

func (m *Port) GetProtocol() string

func (*Port) Marshal

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

func (*Port) MarshalTo

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

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) Reset

func (m *Port) Reset()

func (*Port) Size

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

func (*Port) String

func (m *Port) String() string

func (*Port) Unmarshal

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

func (*Port) XXX_DiscardUnknown

func (m *Port) XXX_DiscardUnknown()

func (*Port) XXX_Marshal

func (m *Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Port) XXX_Merge

func (m *Port) XXX_Merge(src proto.Message)

func (*Port) XXX_Size

func (m *Port) XXX_Size() int

func (*Port) XXX_Unmarshal

func (m *Port) XXX_Unmarshal(b []byte) error

type PortSelector

type PortSelector struct {
	// Types that are valid to be assigned to Port:
	//	*PortSelector_Number
	//	*PortSelector_Name
	Port                 isPortSelector_Port `protobuf_oneof:"port"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

PortSelector specifies the number of a port to be used for matching or selection for final routing.

func (*PortSelector) Descriptor

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

func (*PortSelector) GetName

func (m *PortSelector) GetName() string

func (*PortSelector) GetNumber

func (m *PortSelector) GetNumber() uint32

func (*PortSelector) GetPort

func (m *PortSelector) GetPort() isPortSelector_Port

func (*PortSelector) Marshal

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

func (*PortSelector) MarshalTo

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

func (*PortSelector) ProtoMessage

func (*PortSelector) ProtoMessage()

func (*PortSelector) Reset

func (m *PortSelector) Reset()

func (*PortSelector) Size

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

func (*PortSelector) String

func (m *PortSelector) String() string

func (*PortSelector) Unmarshal

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

func (*PortSelector) XXX_DiscardUnknown

func (m *PortSelector) XXX_DiscardUnknown()

func (*PortSelector) XXX_Marshal

func (m *PortSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PortSelector) XXX_Merge

func (m *PortSelector) XXX_Merge(src proto.Message)

func (*PortSelector) XXX_OneofFuncs

func (*PortSelector) 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.

func (*PortSelector) XXX_Size

func (m *PortSelector) XXX_Size() int

func (*PortSelector) XXX_Unmarshal

func (m *PortSelector) XXX_Unmarshal(b []byte) error

type PortSelector_Name

type PortSelector_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

func (*PortSelector_Name) MarshalTo

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

func (*PortSelector_Name) Size

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

type PortSelector_Number

type PortSelector_Number struct {
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3,oneof"`
}

func (*PortSelector_Number) MarshalTo

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

func (*PortSelector_Number) Size

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

type RouteDestination

type RouteDestination struct {
	// REQUIRED. Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// REQUIRED. The proportion of traffic to be forwarded to the service
	// version. If there is only one destination in a rule, all traffic will be
	// routed to it irrespective of the weight.
	Weight               int32    `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

L4 routing rule weighted destination.

func (*RouteDestination) Descriptor

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

func (*RouteDestination) GetDestination

func (m *RouteDestination) GetDestination() *Destination

func (*RouteDestination) GetWeight

func (m *RouteDestination) GetWeight() int32

func (*RouteDestination) Marshal

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

func (*RouteDestination) MarshalTo

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

func (*RouteDestination) ProtoMessage

func (*RouteDestination) ProtoMessage()

func (*RouteDestination) Reset

func (m *RouteDestination) Reset()

func (*RouteDestination) Size

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

func (*RouteDestination) String

func (m *RouteDestination) String() string

func (*RouteDestination) Unmarshal

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

func (*RouteDestination) XXX_DiscardUnknown

func (m *RouteDestination) XXX_DiscardUnknown()

func (*RouteDestination) XXX_Marshal

func (m *RouteDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteDestination) XXX_Merge

func (m *RouteDestination) XXX_Merge(src proto.Message)

func (*RouteDestination) XXX_Size

func (m *RouteDestination) XXX_Size() int

func (*RouteDestination) XXX_Unmarshal

func (m *RouteDestination) XXX_Unmarshal(b []byte) error

type Server

type Server struct {
	// REQUIRED: The Port on which the proxy should listen for incoming
	// connections.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// $hide_from_docs
	// The ip or the Unix domain socket to which the listener should be bound
	// to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar`
	// (Linux abstract namespace). When using Unix domain sockets, the port
	// number should be 0.
	Bind string `protobuf:"bytes,4,opt,name=bind,proto3" json:"bind,omitempty"`
	// REQUIRED. One or more hosts exposed by this gateway.
	// While typically applicable to
	// HTTP services, it can also be used for TCP services using TLS with SNI.
	// A host is specified as a `dnsName` with an optional `namespace/` prefix.
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g., `prod/*.example.com`).
	// Set the `dnsName` to `*` to select all `VirtualService` hosts from the
	// specified namespace (e.g.,`prod/*`). If no `namespace/` is specified,
	// the `VirtualService` hosts will be selected from any available namespace.
	// Any associated `DestinationRule` in the same namespace will also be used.
	//
	// A `VirtualService` must be bound to the gateway and must have one or
	// more hosts that match the hosts specified in a server. The match
	// could be an exact match or a suffix match with the server's hosts. For
	// example, if the server's hosts specifies `*.example.com`, a
	// `VirtualService` with hosts `dev.example.com` or `prod.example.com` will
	// match. However, a `VirtualService` with host `example.com` or
	// `newexample.com` will not match.
	//
	// NOTE: Only virtual services exported to the gateway's namespace
	// (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will not be
	// available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	Hosts []string `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// Set of TLS related options that govern the server's behavior. Use
	// these options to control if all http requests should be redirected to
	// https, and the TLS modes to use.
	Tls *Server_TLSOptions `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"`
	// The loopback IP endpoint or Unix domain socket to which traffic should
	// be forwarded to by default. Format should be `127.0.0.1:PORT` or
	// `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace).
	DefaultEndpoint      string   `protobuf:"bytes,5,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`Server` describes the properties of the proxy on a given load balancer port. For example,

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-ingress

spec:

selector:
  app: my-ingress-gateway
servers:
- port:
    number: 80
    name: http2
    protocol: HTTP2
  hosts:
  - "*"

```

Another example

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tcp-ingress

spec:

selector:
  app: my-tcp-ingress-gateway
servers:
- port:
    number: 27018
    name: mongo
    protocol: MONGO
  hosts:
  - "*"

```

The following is an example of TLS configuration for port 443

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tls-ingress

spec:

selector:
  app: my-tls-ingress-gateway
servers:
- port:
    number: 443
    name: https
    protocol: HTTPS
  hosts:
  - "*"
  tls:
    mode: SIMPLE
    serverCertificate: /etc/certs/server.pem
    privateKey: /etc/certs/privatekey.pem

```

func (*Server) Descriptor

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

func (*Server) GetBind

func (m *Server) GetBind() string

func (*Server) GetDefaultEndpoint

func (m *Server) GetDefaultEndpoint() string

func (*Server) GetHosts

func (m *Server) GetHosts() []string

func (*Server) GetPort

func (m *Server) GetPort() *Port

func (*Server) GetTls

func (m *Server) GetTls() *Server_TLSOptions

func (*Server) Marshal

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

func (*Server) MarshalTo

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

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) Size

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

func (*Server) String

func (m *Server) String() string

func (*Server) Unmarshal

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

func (*Server) XXX_DiscardUnknown

func (m *Server) XXX_DiscardUnknown()

func (*Server) XXX_Marshal

func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server) XXX_Merge

func (m *Server) XXX_Merge(src proto.Message)

func (*Server) XXX_Size

func (m *Server) XXX_Size() int

func (*Server) XXX_Unmarshal

func (m *Server) XXX_Unmarshal(b []byte) error

type Server_TLSOptions

type Server_TLSOptions struct {
	// If set to true, the load balancer will send a 301 redirect for all
	// http connections, asking the clients to use HTTPS.
	HttpsRedirect bool `protobuf:"varint,1,opt,name=https_redirect,json=httpsRedirect,proto3" json:"https_redirect,omitempty"`
	// Optional: Indicates whether connections to this port should be
	// secured using TLS. The value of this field determines how TLS is
	// enforced.
	Mode Server_TLSOptions_TLSmode `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server-side TLS certificate to use.
	ServerCertificate string `protobuf:"bytes,3,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server's private key.
	PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to a file containing
	// certificate authority certificates to use in verifying a presented
	// client side certificate.
	CaCertificates string `protobuf:"bytes,5,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// The credentialName stands for a unique identifier that can be used
	// to identify the serverCertificate and the privateKey. The
	// credentialName appended with suffix "-cacert" is used to identify
	// the CaCertificates associated with this server. Gateway workloads
	// capable of fetching credentials from a remote credential store such
	// as Kubernetes secrets, will be configured to retrieve the
	// serverCertificate and the privateKey using credentialName, instead
	// of using the file system paths specified above. If using mutual TLS,
	// gateway workload instances will retrieve the CaCertificates using
	// credentialName-cacert. The semantics of the name are platform
	// dependent.  In Kubernetes, the default Istio supplied credential
	// server expects the credentialName to match the name of the
	// Kubernetes secret that holds the server certificate, the private
	// key, and the CA certificate (if using mutual TLS). Set the
	// `ISTIO_META_USER_SDS` metadata variable in the gateway's proxy to
	// enable the dynamic credential fetching feature.
	CredentialName string `protobuf:"bytes,10,opt,name=credential_name,json=credentialName,proto3" json:"credential_name,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate presented by the client.
	SubjectAltNames []string `protobuf:"bytes,6,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// Optional: Minimum TLS protocol version.
	MinProtocolVersion Server_TLSOptions_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: Maximum TLS protocol version.
	MaxProtocolVersion Server_TLSOptions_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: If specified, only support the specified cipher list.
	// Otherwise default to the default cipher list supported by Envoy.
	CipherSuites         []string `protobuf:"bytes,9,rep,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Server_TLSOptions) Descriptor

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

func (*Server_TLSOptions) GetCaCertificates

func (m *Server_TLSOptions) GetCaCertificates() string

func (*Server_TLSOptions) GetCipherSuites

func (m *Server_TLSOptions) GetCipherSuites() []string

func (*Server_TLSOptions) GetCredentialName

func (m *Server_TLSOptions) GetCredentialName() string

func (*Server_TLSOptions) GetHttpsRedirect

func (m *Server_TLSOptions) GetHttpsRedirect() bool

func (*Server_TLSOptions) GetMaxProtocolVersion

func (m *Server_TLSOptions) GetMaxProtocolVersion() Server_TLSOptions_TLSProtocol

func (*Server_TLSOptions) GetMinProtocolVersion

func (m *Server_TLSOptions) GetMinProtocolVersion() Server_TLSOptions_TLSProtocol

func (*Server_TLSOptions) GetMode

func (*Server_TLSOptions) GetPrivateKey

func (m *Server_TLSOptions) GetPrivateKey() string

func (*Server_TLSOptions) GetServerCertificate

func (m *Server_TLSOptions) GetServerCertificate() string

func (*Server_TLSOptions) GetSubjectAltNames

func (m *Server_TLSOptions) GetSubjectAltNames() []string

func (*Server_TLSOptions) Marshal

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

func (*Server_TLSOptions) MarshalTo

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

func (*Server_TLSOptions) ProtoMessage

func (*Server_TLSOptions) ProtoMessage()

func (*Server_TLSOptions) Reset

func (m *Server_TLSOptions) Reset()

func (*Server_TLSOptions) Size

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

func (*Server_TLSOptions) String

func (m *Server_TLSOptions) String() string

func (*Server_TLSOptions) Unmarshal

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

func (*Server_TLSOptions) XXX_DiscardUnknown

func (m *Server_TLSOptions) XXX_DiscardUnknown()

func (*Server_TLSOptions) XXX_Marshal

func (m *Server_TLSOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server_TLSOptions) XXX_Merge

func (m *Server_TLSOptions) XXX_Merge(src proto.Message)

func (*Server_TLSOptions) XXX_Size

func (m *Server_TLSOptions) XXX_Size() int

func (*Server_TLSOptions) XXX_Unmarshal

func (m *Server_TLSOptions) XXX_Unmarshal(b []byte) error

type Server_TLSOptions_TLSProtocol

type Server_TLSOptions_TLSProtocol int32

TLS protocol versions.

const (
	// Automatically choose the optimal TLS version.
	Server_TLSOptions_TLS_AUTO Server_TLSOptions_TLSProtocol = 0
	// TLS version 1.0
	Server_TLSOptions_TLSV1_0 Server_TLSOptions_TLSProtocol = 1
	// TLS version 1.1
	Server_TLSOptions_TLSV1_1 Server_TLSOptions_TLSProtocol = 2
	// TLS version 1.2
	Server_TLSOptions_TLSV1_2 Server_TLSOptions_TLSProtocol = 3
	// TLS version 1.3
	Server_TLSOptions_TLSV1_3 Server_TLSOptions_TLSProtocol = 4
)

func (Server_TLSOptions_TLSProtocol) EnumDescriptor

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

func (Server_TLSOptions_TLSProtocol) String

type Server_TLSOptions_TLSmode

type Server_TLSOptions_TLSmode int32

TLS modes enforced by the proxy

const (
	// The SNI string presented by the client will be used as the match
	// criterion in a VirtualService TLS route to determine the
	// destination service from the service registry.
	Server_TLSOptions_PASSTHROUGH Server_TLSOptions_TLSmode = 0
	// Secure connections with standard TLS semantics.
	Server_TLSOptions_SIMPLE Server_TLSOptions_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	Server_TLSOptions_MUTUAL Server_TLSOptions_TLSmode = 2
	// Similar to the passthrough mode, except servers with this TLS mode
	// do not require an associated VirtualService to map from the SNI
	// value to service in the registry. The destination details such as
	// the service/subset/port are encoded in the SNI value. The proxy
	// will forward to the upstream (Envoy) cluster (a group of
	// endpoints) specified by the SNI value. This server is typically
	// used to provide connectivity between services in disparate L3
	// networks that otherwise do not have direct connectivity between
	// their respective endpoints. Use of this mode assumes that both the
	// source and the destination are using Istio mTLS to secure traffic.
	Server_TLSOptions_AUTO_PASSTHROUGH Server_TLSOptions_TLSmode = 3
)

func (Server_TLSOptions_TLSmode) EnumDescriptor

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

func (Server_TLSOptions_TLSmode) String

func (x Server_TLSOptions_TLSmode) String() string

type ServiceEntry

type ServiceEntry struct {
	// REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS
	// name with wildcard prefix.
	//
	// 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules.
	// 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field.
	// 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value
	// will be matched against the hosts field.
	//
	// Note that when resolution is set to type DNS
	// and no endpoints are specified, the host field will be used as the DNS name
	// of the endpoint to route traffic to.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The virtual IP addresses associated with the service. Could be CIDR
	// prefix. For HTTP traffic, generated route configurations will include http route
	// domains for both the `addresses` and `hosts` field values and the destination will
	// be identified based on the HTTP Host/Authority header.
	// If one or more IP addresses are specified,
	// the incoming traffic will be identified as belonging to this service
	// if the destination IP matches the IP/CIDRs specified in the addresses
	// field. If the Addresses field is empty, traffic will be identified
	// solely based on the destination port. In such scenarios, the port on
	// which the service is being accessed must not be shared by any other
	// service in the mesh. In other words, the sidecar will behave as a
	// simple TCP proxy, forwarding incoming traffic on a specified port to
	// the specified destination endpoint IP/host. Unix domain socket
	// addresses are not supported in this field.
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// REQUIRED. The ports associated with the external service. If the
	// Endpoints are Unix domain socket addresses, there must be exactly one
	// port.
	Ports []*Port `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	// Specify whether the service should be considered external to the mesh
	// or part of the mesh.
	Location ServiceEntry_Location `protobuf:"varint,4,opt,name=location,proto3,enum=istio.networking.v1alpha3.ServiceEntry_Location" json:"location,omitempty"`
	// REQUIRED: Service discovery mode for the hosts. Care must be taken
	// when setting the resolution mode to NONE for a TCP port without
	// accompanying IP addresses. In such cases, traffic to any IP on
	// said port will be allowed (i.e. 0.0.0.0:<port>).
	Resolution ServiceEntry_Resolution `` /* 129-byte string literal not displayed */
	// One or more endpoints associated with the service.
	Endpoints []*ServiceEntry_Endpoint `protobuf:"bytes,6,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// A list of namespaces to which this service is exported. Exporting a service
	// allows it to be used by sidecars, gateways and virtual services defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of services across
	// namespace boundaries.
	//
	// If no namespaces are specified then the service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// For a Kubernetes Service, the equivalent effect can be achieved by setting
	// the annotation "networking.istio.io/exportTo" to a comma-separated list
	// of namespace names.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo []string `protobuf:"bytes,7,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	// The list of subject alternate names allowed for workload instances that
	// implement this service. This information is used to enforce
	// [secure-naming](https://istio.io/docs/concepts/security/#secure-naming).
	// If specified, the proxy will verify that the server
	// certificate's subject alternate name matches one of the specified values.
	SubjectAltNames      []string `protobuf:"bytes,8,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceEntry) Descriptor

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

func (*ServiceEntry) GetAddresses

func (m *ServiceEntry) GetAddresses() []string

func (*ServiceEntry) GetEndpoints

func (m *ServiceEntry) GetEndpoints() []*ServiceEntry_Endpoint

func (*ServiceEntry) GetExportTo

func (m *ServiceEntry) GetExportTo() []string

func (*ServiceEntry) GetHosts

func (m *ServiceEntry) GetHosts() []string

func (*ServiceEntry) GetLocation

func (m *ServiceEntry) GetLocation() ServiceEntry_Location

func (*ServiceEntry) GetPorts

func (m *ServiceEntry) GetPorts() []*Port

func (*ServiceEntry) GetResolution

func (m *ServiceEntry) GetResolution() ServiceEntry_Resolution

func (*ServiceEntry) GetSubjectAltNames

func (m *ServiceEntry) GetSubjectAltNames() []string

func (*ServiceEntry) Marshal

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

func (*ServiceEntry) MarshalTo

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

func (*ServiceEntry) ProtoMessage

func (*ServiceEntry) ProtoMessage()

func (*ServiceEntry) Reset

func (m *ServiceEntry) Reset()

func (*ServiceEntry) Size

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

func (*ServiceEntry) String

func (m *ServiceEntry) String() string

func (*ServiceEntry) Unmarshal

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

func (*ServiceEntry) XXX_DiscardUnknown

func (m *ServiceEntry) XXX_DiscardUnknown()

func (*ServiceEntry) XXX_Marshal

func (m *ServiceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceEntry) XXX_Merge

func (m *ServiceEntry) XXX_Merge(src proto.Message)

func (*ServiceEntry) XXX_Size

func (m *ServiceEntry) XXX_Size() int

func (*ServiceEntry) XXX_Unmarshal

func (m *ServiceEntry) XXX_Unmarshal(b []byte) error

type ServiceEntry_Endpoint

type ServiceEntry_Endpoint struct {
	// REQUIRED: Address associated with the network endpoint without the
	// port.  Domain names can be used if and only if the resolution is set
	// to DNS, and must be fully-qualified without wildcards. Use the form
	// unix:///absolute/path/to/socket for Unix domain socket endpoints.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Set of ports associated with the endpoint. The ports must be
	// associated with a port name that was declared as part of the
	// service. Do not use for `unix://` addresses.
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// One or more labels associated with the endpoint.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Network enables Istio to group endpoints resident in the same L3
	// domain/network. All endpoints in the same network are assumed to be
	// directly reachable from one another. When endpoints in different
	// networks cannot reach each other directly, an Istio Gateway can be
	// used to establish connectivity (usually using the
	// AUTO_PASSTHROUGH mode in a Gateway Server). This is
	// an advanced configuration used typically for spanning an Istio mesh
	// over multiple clusters.
	Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	// The locality associated with the endpoint. A locality corresponds
	// to a failure domain (e.g., country/region/zone). Arbitrary failure
	// domain hierarchies can be represented by separating each
	// encapsulating failure domain by /. For example, the locality of an
	// an endpoint in US, in US-East-1 region, within availability zone
	// az-1, in data center rack r11 can be represented as
	// us/us-east-1/az-1/r11. Istio will configure the sidecar to route to
	// endpoints within the same locality as the sidecar. If none of the
	// endpoints in the locality are available, endpoints parent locality
	// (but within the same network ID) will be chosen. For example, if
	// there are two endpoints in same network (networkID "n1"), say e1
	// with locality us/us-east-1/az-1/r11 and e2 with locality
	// us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality
	// will prefer e1 from the same locality over e2 from a different
	// locality. Endpoint e2 could be the IP associated with a gateway
	// (that bridges networks n1 and n2), or the IP associated with a
	// standard service endpoint.
	Locality string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	// The load balancing weight associated with the endpoint. Endpoints
	// with higher weights will receive proportionally higher traffic.
	Weight               uint32   `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Endpoint defines a network address (IP or hostname) associated with the mesh service.

func (*ServiceEntry_Endpoint) Descriptor

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

func (*ServiceEntry_Endpoint) GetAddress

func (m *ServiceEntry_Endpoint) GetAddress() string

func (*ServiceEntry_Endpoint) GetLabels

func (m *ServiceEntry_Endpoint) GetLabels() map[string]string

func (*ServiceEntry_Endpoint) GetLocality

func (m *ServiceEntry_Endpoint) GetLocality() string

func (*ServiceEntry_Endpoint) GetNetwork

func (m *ServiceEntry_Endpoint) GetNetwork() string

func (*ServiceEntry_Endpoint) GetPorts

func (m *ServiceEntry_Endpoint) GetPorts() map[string]uint32

func (*ServiceEntry_Endpoint) GetWeight

func (m *ServiceEntry_Endpoint) GetWeight() uint32

func (*ServiceEntry_Endpoint) Marshal

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

func (*ServiceEntry_Endpoint) MarshalTo

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

func (*ServiceEntry_Endpoint) ProtoMessage

func (*ServiceEntry_Endpoint) ProtoMessage()

func (*ServiceEntry_Endpoint) Reset

func (m *ServiceEntry_Endpoint) Reset()

func (*ServiceEntry_Endpoint) Size

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

func (*ServiceEntry_Endpoint) String

func (m *ServiceEntry_Endpoint) String() string

func (*ServiceEntry_Endpoint) Unmarshal

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

func (*ServiceEntry_Endpoint) XXX_DiscardUnknown

func (m *ServiceEntry_Endpoint) XXX_DiscardUnknown()

func (*ServiceEntry_Endpoint) XXX_Marshal

func (m *ServiceEntry_Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceEntry_Endpoint) XXX_Merge

func (m *ServiceEntry_Endpoint) XXX_Merge(src proto.Message)

func (*ServiceEntry_Endpoint) XXX_Size

func (m *ServiceEntry_Endpoint) XXX_Size() int

func (*ServiceEntry_Endpoint) XXX_Unmarshal

func (m *ServiceEntry_Endpoint) XXX_Unmarshal(b []byte) error

type ServiceEntry_Location

type ServiceEntry_Location int32

Location specifies whether the service is part of Istio mesh or outside the mesh. Location determines the behavior of several features, such as service-to-service mTLS authentication, policy enforcement, etc. When communicating with services outside the mesh, Istio's mTLS authentication is disabled, and policy enforcement is performed on the client-side as opposed to server-side.

const (
	// Signifies that the service is external to the mesh. Typically used
	// to indicate external services consumed through APIs.
	ServiceEntry_MESH_EXTERNAL ServiceEntry_Location = 0
	// Signifies that the service is part of the mesh. Typically used to
	// indicate services added explicitly as part of expanding the service
	// mesh to include unmanaged infrastructure (e.g., VMs added to a
	// Kubernetes based service mesh).
	ServiceEntry_MESH_INTERNAL ServiceEntry_Location = 1
)

func (ServiceEntry_Location) EnumDescriptor

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

func (ServiceEntry_Location) String

func (x ServiceEntry_Location) String() string

type ServiceEntry_Resolution

type ServiceEntry_Resolution int32

Resolution determines how the proxy will resolve the IP addresses of the network endpoints associated with the service, so that it can route to one of them. The resolution mode specified here has no impact on how the application resolves the IP address associated with the service. The application may still have to use DNS to resolve the service to an IP so that the outbound traffic can be captured by the Proxy. Alternatively, for HTTP services, the application could directly communicate with the proxy (e.g., by setting HTTP_PROXY) to talk to these services.

const (
	// Assume that incoming connections have already been resolved (to a
	// specific destination IP address). Such connections are typically
	// routed via the proxy using mechanisms such as IP table REDIRECT/
	// eBPF. After performing any routing related transformations, the
	// proxy will forward the connection to the IP address to which the
	// connection was bound.
	ServiceEntry_NONE ServiceEntry_Resolution = 0
	// Use the static IP addresses specified in endpoints (see below) as the
	// backing instances associated with the service.
	ServiceEntry_STATIC ServiceEntry_Resolution = 1
	// Attempt to resolve the IP address by querying the ambient DNS,
	// during request processing. If no endpoints are specified, the proxy
	// will resolve the DNS address specified in the hosts field, if
	// wildcards are not used. If endpoints are specified, the DNS
	// addresses specified in the endpoints will be resolved to determine
	// the destination IP address.  DNS resolution cannot be used with Unix
	// domain socket endpoints.
	ServiceEntry_DNS ServiceEntry_Resolution = 2
)

func (ServiceEntry_Resolution) EnumDescriptor

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

func (ServiceEntry_Resolution) String

func (x ServiceEntry_Resolution) String() string

type Sidecar

type Sidecar struct {
	// Criteria used to select the specific set of pods/VMs on which this
	// sidecar configuration should be applied. If omitted, the sidecar
	// configuration will be applied to all workload instances in the same namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,1,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// Ingress specifies the configuration of the sidecar for processing
	// inbound traffic to the attached workload instance. If omitted, Istio will
	// automatically configure the sidecar based on the information about the workload
	// obtained from the orchestration platform (e.g., exposed ports, services,
	// etc.). If specified, inbound ports are configured if and only if the
	// workload instance is associated with a service.
	Ingress []*IstioIngressListener `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"`
	// Egress specifies the configuration of the sidecar for processing
	// outbound traffic from the attached workload instance to other services in the
	// mesh. If omitted, Istio will automatically configure the sidecar to be able to
	// reach every service in the mesh that is visible to this namespace.
	Egress               []*IstioEgressListener `protobuf:"bytes,3,rep,name=egress,proto3" json:"egress,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Sidecar) Descriptor

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

func (*Sidecar) GetEgress

func (m *Sidecar) GetEgress() []*IstioEgressListener

func (*Sidecar) GetIngress

func (m *Sidecar) GetIngress() []*IstioIngressListener

func (*Sidecar) GetWorkloadSelector

func (m *Sidecar) GetWorkloadSelector() *WorkloadSelector

func (*Sidecar) Marshal

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

func (*Sidecar) MarshalTo

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

func (*Sidecar) ProtoMessage

func (*Sidecar) ProtoMessage()

func (*Sidecar) Reset

func (m *Sidecar) Reset()

func (*Sidecar) Size

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

func (*Sidecar) String

func (m *Sidecar) String() string

func (*Sidecar) Unmarshal

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

func (*Sidecar) XXX_DiscardUnknown

func (m *Sidecar) XXX_DiscardUnknown()

func (*Sidecar) XXX_Marshal

func (m *Sidecar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sidecar) XXX_Merge

func (m *Sidecar) XXX_Merge(src proto.Message)

func (*Sidecar) XXX_Size

func (m *Sidecar) XXX_Size() int

func (*Sidecar) XXX_Unmarshal

func (m *Sidecar) XXX_Unmarshal(b []byte) error

type StringMatch

type StringMatch struct {
	// Types that are valid to be assigned to MatchType:
	//	*StringMatch_Exact
	//	*StringMatch_Prefix
	//	*StringMatch_Regex
	MatchType            isStringMatch_MatchType `protobuf_oneof:"match_type"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Describes how to match a given string in HTTP headers. Match is case-sensitive.

func (*StringMatch) Descriptor

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

func (*StringMatch) GetExact

func (m *StringMatch) GetExact() string

func (*StringMatch) GetMatchType

func (m *StringMatch) GetMatchType() isStringMatch_MatchType

func (*StringMatch) GetPrefix

func (m *StringMatch) GetPrefix() string

func (*StringMatch) GetRegex

func (m *StringMatch) GetRegex() string

func (*StringMatch) Marshal

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

func (*StringMatch) MarshalTo

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

func (*StringMatch) ProtoMessage

func (*StringMatch) ProtoMessage()

func (*StringMatch) Reset

func (m *StringMatch) Reset()

func (*StringMatch) Size

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

func (*StringMatch) String

func (m *StringMatch) String() string

func (*StringMatch) Unmarshal

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

func (*StringMatch) XXX_DiscardUnknown

func (m *StringMatch) XXX_DiscardUnknown()

func (*StringMatch) XXX_Marshal

func (m *StringMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringMatch) XXX_Merge

func (m *StringMatch) XXX_Merge(src proto.Message)

func (*StringMatch) XXX_OneofFuncs

func (*StringMatch) 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.

func (*StringMatch) XXX_Size

func (m *StringMatch) XXX_Size() int

func (*StringMatch) XXX_Unmarshal

func (m *StringMatch) XXX_Unmarshal(b []byte) error

type StringMatch_Exact

type StringMatch_Exact struct {
	Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

func (*StringMatch_Exact) MarshalTo

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

func (*StringMatch_Exact) Size

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

type StringMatch_Prefix

type StringMatch_Prefix struct {
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

func (*StringMatch_Prefix) MarshalTo

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

func (*StringMatch_Prefix) Size

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

type StringMatch_Regex

type StringMatch_Regex struct {
	Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}

func (*StringMatch_Regex) MarshalTo

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

func (*StringMatch_Regex) Size

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

type Subset

type Subset struct {
	// REQUIRED. Name of the subset. The service name and the subset name can
	// be used for traffic splitting in a route rule.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Labels apply a filter over the endpoints of a service in the
	// service registry. See route rules for examples of usage.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Traffic policies that apply to this subset. Subsets inherit the
	// traffic policies specified at the DestinationRule level. Settings
	// specified at the subset level will override the corresponding settings
	// specified at the DestinationRule level.
	TrafficPolicy        *TrafficPolicy `protobuf:"bytes,3,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

A subset of endpoints of a service. Subsets can be used for scenarios like A/B testing, or routing to a specific version of a service. Refer to VirtualService(https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#VirtualService) documentation for examples of using subsets in these scenarios. In addition, traffic policies defined at the service-level can be overridden at a subset-level. The following rule uses a round robin load balancing policy for all traffic going to a subset named testversion that is composed of endpoints (e.g., pods) with labels (version:v3).

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_CONN
subsets:
- name: testversion
  labels:
    version: v3
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN

```

**Note:** Policies specified for subsets will not take effect until a route rule explicitly sends traffic to this subset.

One or more labels are typically required to identify the subset destination, however, when the corresponding DestinationRule represents a host that supports multiple SNI hosts (e.g., an egress gateway), a subset without labels may be meaningful. In this case a traffic policy with TLSSettings(#TLSSettings) can be used to identify a specific SNI host corresponding to the named subset.

func (*Subset) Descriptor

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

func (*Subset) GetLabels

func (m *Subset) GetLabels() map[string]string

func (*Subset) GetName

func (m *Subset) GetName() string

func (*Subset) GetTrafficPolicy

func (m *Subset) GetTrafficPolicy() *TrafficPolicy

func (*Subset) Marshal

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

func (*Subset) MarshalTo

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

func (*Subset) ProtoMessage

func (*Subset) ProtoMessage()

func (*Subset) Reset

func (m *Subset) Reset()

func (*Subset) Size

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

func (*Subset) String

func (m *Subset) String() string

func (*Subset) Unmarshal

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

func (*Subset) XXX_DiscardUnknown

func (m *Subset) XXX_DiscardUnknown()

func (*Subset) XXX_Marshal

func (m *Subset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Subset) XXX_Merge

func (m *Subset) XXX_Merge(src proto.Message)

func (*Subset) XXX_Size

func (m *Subset) XXX_Size() int

func (*Subset) XXX_Unmarshal

func (m *Subset) XXX_Unmarshal(b []byte) error

type TCPRoute

type TCPRoute struct {
	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*L4MatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route                []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-Mongo

spec:

hosts:
- mongo.prod.svc.cluster.local
tcp:
- match:
  - port: 27017
  route:
  - destination:
      host: mongo.backup.svc.cluster.local
      port:
        number: 5555

```

func (*TCPRoute) Descriptor

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

func (*TCPRoute) GetMatch

func (m *TCPRoute) GetMatch() []*L4MatchAttributes

func (*TCPRoute) GetRoute

func (m *TCPRoute) GetRoute() []*RouteDestination

func (*TCPRoute) Marshal

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

func (*TCPRoute) MarshalTo

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

func (*TCPRoute) ProtoMessage

func (*TCPRoute) ProtoMessage()

func (*TCPRoute) Reset

func (m *TCPRoute) Reset()

func (*TCPRoute) Size

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

func (*TCPRoute) String

func (m *TCPRoute) String() string

func (*TCPRoute) Unmarshal

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

func (*TCPRoute) XXX_DiscardUnknown

func (m *TCPRoute) XXX_DiscardUnknown()

func (*TCPRoute) XXX_Marshal

func (m *TCPRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TCPRoute) XXX_Merge

func (m *TCPRoute) XXX_Merge(src proto.Message)

func (*TCPRoute) XXX_Size

func (m *TCPRoute) XXX_Size() int

func (*TCPRoute) XXX_Unmarshal

func (m *TCPRoute) XXX_Unmarshal(b []byte) error

type TLSMatchAttributes

type TLSMatchAttributes struct {
	// REQUIRED. SNI (server name indicator) to match on. Wildcard prefixes
	// can be used in the SNI value, e.g., *.com will match foo.example.com
	// as well as example.com. An SNI value must be a subset (i.e., fall
	// within the domain) of the corresponding virtual serivce's hosts.
	SniHosts []string `protobuf:"bytes,1,rep,name=sni_hosts,json=sniHosts,proto3" json:"sni_hosts,omitempty"`
	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,2,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they
	// support, in these cases it is not required to explicitly select the
	// port.
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx
	// form or just a.b.c.d
	// $hide_from_docs
	SourceSubnet string `protobuf:"bytes,4,opt,name=source_subnet,json=sourceSubnet,proto3" json:"source_subnet,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways             []string `protobuf:"bytes,6,rep,name=gateways,proto3" json:"gateways,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TLS connection match attributes.

func (*TLSMatchAttributes) Descriptor

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

func (*TLSMatchAttributes) GetDestinationSubnets

func (m *TLSMatchAttributes) GetDestinationSubnets() []string

func (*TLSMatchAttributes) GetGateways

func (m *TLSMatchAttributes) GetGateways() []string

func (*TLSMatchAttributes) GetPort

func (m *TLSMatchAttributes) GetPort() uint32

func (*TLSMatchAttributes) GetSniHosts

func (m *TLSMatchAttributes) GetSniHosts() []string

func (*TLSMatchAttributes) GetSourceLabels

func (m *TLSMatchAttributes) GetSourceLabels() map[string]string

func (*TLSMatchAttributes) GetSourceSubnet

func (m *TLSMatchAttributes) GetSourceSubnet() string

func (*TLSMatchAttributes) Marshal

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

func (*TLSMatchAttributes) MarshalTo

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

func (*TLSMatchAttributes) ProtoMessage

func (*TLSMatchAttributes) ProtoMessage()

func (*TLSMatchAttributes) Reset

func (m *TLSMatchAttributes) Reset()

func (*TLSMatchAttributes) Size

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

func (*TLSMatchAttributes) String

func (m *TLSMatchAttributes) String() string

func (*TLSMatchAttributes) Unmarshal

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

func (*TLSMatchAttributes) XXX_DiscardUnknown

func (m *TLSMatchAttributes) XXX_DiscardUnknown()

func (*TLSMatchAttributes) XXX_Marshal

func (m *TLSMatchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSMatchAttributes) XXX_Merge

func (m *TLSMatchAttributes) XXX_Merge(src proto.Message)

func (*TLSMatchAttributes) XXX_Size

func (m *TLSMatchAttributes) XXX_Size() int

func (*TLSMatchAttributes) XXX_Unmarshal

func (m *TLSMatchAttributes) XXX_Unmarshal(b []byte) error

type TLSRoute

type TLSRoute struct {
	// REQUIRED. Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*TLSMatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route                []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Describes match conditions and actions for routing unterminated TLS traffic (TLS/HTTPS) The following routing rule forwards unterminated TLS traffic arriving at port 443 of gateway called "mygateway" to internal services in the mesh based on the SNI value.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-sni

spec:

hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
  - port: 443
    sniHosts:
    - login.bookinfo.com
  route:
  - destination:
      host: login.prod.svc.cluster.local
- match:
  - port: 443
    sniHosts:
    - reviews.bookinfo.com
  route:
  - destination:
      host: reviews.prod.svc.cluster.local

```

func (*TLSRoute) Descriptor

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

func (*TLSRoute) GetMatch

func (m *TLSRoute) GetMatch() []*TLSMatchAttributes

func (*TLSRoute) GetRoute

func (m *TLSRoute) GetRoute() []*RouteDestination

func (*TLSRoute) Marshal

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

func (*TLSRoute) MarshalTo

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

func (*TLSRoute) ProtoMessage

func (*TLSRoute) ProtoMessage()

func (*TLSRoute) Reset

func (m *TLSRoute) Reset()

func (*TLSRoute) Size

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

func (*TLSRoute) String

func (m *TLSRoute) String() string

func (*TLSRoute) Unmarshal

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

func (*TLSRoute) XXX_DiscardUnknown

func (m *TLSRoute) XXX_DiscardUnknown()

func (*TLSRoute) XXX_Marshal

func (m *TLSRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSRoute) XXX_Merge

func (m *TLSRoute) XXX_Merge(src proto.Message)

func (*TLSRoute) XXX_Size

func (m *TLSRoute) XXX_Size() int

func (*TLSRoute) XXX_Unmarshal

func (m *TLSRoute) XXX_Unmarshal(b []byte) error

type TLSSettings

type TLSSettings struct {
	// REQUIRED: Indicates whether connections to this port should be secured
	// using TLS. The value of this field determines how TLS is enforced.
	Mode TLSSettings_TLSmode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.TLSSettings_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client-side TLS certificate to use.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	ClientCertificate string `protobuf:"bytes,2,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client's private key.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// OPTIONAL: The path to the file containing certificate authority
	// certificates to use in verifying a presented server certificate. If
	// omitted, the proxy will not verify the server's certificate.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	CaCertificates string `protobuf:"bytes,4,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate. If specified, the proxy will verify that the server
	// certificate's subject alt name matches one of the specified values.
	// If specified, this list overrides the value of subject_alt_names
	// from the ServiceEntry.
	SubjectAltNames []string `protobuf:"bytes,5,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// SNI string to present to the server during TLS handshake.
	Sni                  string   `protobuf:"bytes,6,opt,name=sni,proto3" json:"sni,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SSL/TLS related settings for upstream connections. See Envoy's [TLS context](https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/auth/cert.proto.html) for more details. These settings are common to both HTTP and TCP upstreams.

For example, the following rule configures a client to use mutual TLS for connections to upstream database cluster.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: db-mtls

spec:

host: mydbserver.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: MUTUAL
    clientCertificate: /etc/certs/myclientcert.pem
    privateKey: /etc/certs/client_private_key.pem
    caCertificates: /etc/certs/rootcacerts.pem

```

The following rule configures a client to use TLS when talking to a foreign service whose domain matches *.foo.com.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: tls-foo

spec:

host: "*.foo.com"
trafficPolicy:
  tls:
    mode: SIMPLE

```

The following rule configures a client to use Istio mutual TLS when talking to rating services.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: ratings-istio-mtls

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: ISTIO_MUTUAL

```

func (*TLSSettings) Descriptor

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

func (*TLSSettings) GetCaCertificates

func (m *TLSSettings) GetCaCertificates() string

func (*TLSSettings) GetClientCertificate

func (m *TLSSettings) GetClientCertificate() string

func (*TLSSettings) GetMode

func (m *TLSSettings) GetMode() TLSSettings_TLSmode

func (*TLSSettings) GetPrivateKey

func (m *TLSSettings) GetPrivateKey() string

func (*TLSSettings) GetSni

func (m *TLSSettings) GetSni() string

func (*TLSSettings) GetSubjectAltNames

func (m *TLSSettings) GetSubjectAltNames() []string

func (*TLSSettings) Marshal

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

func (*TLSSettings) MarshalTo

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

func (*TLSSettings) ProtoMessage

func (*TLSSettings) ProtoMessage()

func (*TLSSettings) Reset

func (m *TLSSettings) Reset()

func (*TLSSettings) Size

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

func (*TLSSettings) String

func (m *TLSSettings) String() string

func (*TLSSettings) Unmarshal

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

func (*TLSSettings) XXX_DiscardUnknown

func (m *TLSSettings) XXX_DiscardUnknown()

func (*TLSSettings) XXX_Marshal

func (m *TLSSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSSettings) XXX_Merge

func (m *TLSSettings) XXX_Merge(src proto.Message)

func (*TLSSettings) XXX_Size

func (m *TLSSettings) XXX_Size() int

func (*TLSSettings) XXX_Unmarshal

func (m *TLSSettings) XXX_Unmarshal(b []byte) error

type TLSSettings_TLSmode

type TLSSettings_TLSmode int32

TLS connection mode

const (
	// Do not setup a TLS connection to the upstream endpoint.
	TLSSettings_DISABLE TLSSettings_TLSmode = 0
	// Originate a TLS connection to the upstream endpoint.
	TLSSettings_SIMPLE TLSSettings_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	TLSSettings_MUTUAL TLSSettings_TLSmode = 2
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	// Compared to Mutual mode, this mode uses certificates generated
	// automatically by Istio for mTLS authentication. When this mode is
	// used, all other fields in `TLSSettings` should be empty.
	TLSSettings_ISTIO_MUTUAL TLSSettings_TLSmode = 3
)

func (TLSSettings_TLSmode) EnumDescriptor

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

func (TLSSettings_TLSmode) String

func (x TLSSettings_TLSmode) String() string

type TrafficPolicy

type TrafficPolicy struct {
	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,1,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,2,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,3,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls *TLSSettings `protobuf:"bytes,4,opt,name=tls,proto3" json:"tls,omitempty"`
	// Traffic policies specific to individual ports. Note that port level
	// settings will override the destination-level settings. Traffic
	// settings specified at the destination-level will not be inherited when
	// overridden by port-level settings, i.e. default values will be applied
	// to fields omitted in port-level traffic policies.
	PortLevelSettings    []*TrafficPolicy_PortTrafficPolicy `protobuf:"bytes,5,rep,name=port_level_settings,json=portLevelSettings,proto3" json:"port_level_settings,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Traffic policies to apply for a specific destination, across all destination ports. See DestinationRule for examples.

func (*TrafficPolicy) Descriptor

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

func (*TrafficPolicy) GetConnectionPool

func (m *TrafficPolicy) GetConnectionPool() *ConnectionPoolSettings

func (*TrafficPolicy) GetLoadBalancer

func (m *TrafficPolicy) GetLoadBalancer() *LoadBalancerSettings

func (*TrafficPolicy) GetOutlierDetection

func (m *TrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy) GetPortLevelSettings

func (m *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolicy

func (*TrafficPolicy) GetTls

func (m *TrafficPolicy) GetTls() *TLSSettings

func (*TrafficPolicy) Marshal

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

func (*TrafficPolicy) MarshalTo

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

func (*TrafficPolicy) ProtoMessage

func (*TrafficPolicy) ProtoMessage()

func (*TrafficPolicy) Reset

func (m *TrafficPolicy) Reset()

func (*TrafficPolicy) Size

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

func (*TrafficPolicy) String

func (m *TrafficPolicy) String() string

func (*TrafficPolicy) Unmarshal

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

func (*TrafficPolicy) XXX_DiscardUnknown

func (m *TrafficPolicy) XXX_DiscardUnknown()

func (*TrafficPolicy) XXX_Marshal

func (m *TrafficPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrafficPolicy) XXX_Merge

func (m *TrafficPolicy) XXX_Merge(src proto.Message)

func (*TrafficPolicy) XXX_Size

func (m *TrafficPolicy) XXX_Size() int

func (*TrafficPolicy) XXX_Unmarshal

func (m *TrafficPolicy) XXX_Unmarshal(b []byte) error

type TrafficPolicy_PortTrafficPolicy

type TrafficPolicy_PortTrafficPolicy struct {
	// Specifies the port name or number of a port on the destination service
	// on which this policy is being applied.
	//
	// Names must comply with DNS label syntax (rfc1035) and therefore cannot
	// collide with numbers. If there are multiple ports on a service with
	// the same protocol the names should be of the form <protocol-name>-<DNS
	// label>.
	Port *PortSelector `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,2,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,3,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,4,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls                  *TLSSettings `protobuf:"bytes,5,opt,name=tls,proto3" json:"tls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Traffic policies that apply to specific ports of the service

func (*TrafficPolicy_PortTrafficPolicy) Descriptor

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

func (*TrafficPolicy_PortTrafficPolicy) GetConnectionPool

func (*TrafficPolicy_PortTrafficPolicy) GetLoadBalancer

func (*TrafficPolicy_PortTrafficPolicy) GetOutlierDetection

func (m *TrafficPolicy_PortTrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy_PortTrafficPolicy) GetPort

func (*TrafficPolicy_PortTrafficPolicy) GetTls

func (*TrafficPolicy_PortTrafficPolicy) Marshal

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

func (*TrafficPolicy_PortTrafficPolicy) MarshalTo

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

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()

func (*TrafficPolicy_PortTrafficPolicy) Reset

func (*TrafficPolicy_PortTrafficPolicy) Size

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

func (*TrafficPolicy_PortTrafficPolicy) String

func (*TrafficPolicy_PortTrafficPolicy) Unmarshal

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

func (*TrafficPolicy_PortTrafficPolicy) XXX_DiscardUnknown

func (m *TrafficPolicy_PortTrafficPolicy) XXX_DiscardUnknown()

func (*TrafficPolicy_PortTrafficPolicy) XXX_Marshal

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrafficPolicy_PortTrafficPolicy) XXX_Merge

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Merge(src proto.Message)

func (*TrafficPolicy_PortTrafficPolicy) XXX_Size

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Size() int

func (*TrafficPolicy_PortTrafficPolicy) XXX_Unmarshal

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Unmarshal(b []byte) error

type VirtualService

type VirtualService struct {
	// REQUIRED. The destination hosts to which traffic is being sent. Could
	// be a DNS name with wildcard prefix or an IP address.  Depending on the
	// platform, short-names can also be used instead of a FQDN (i.e. has no
	// dots in the name). In such a scenario, the FQDN of the host would be
	// derived based on the underlying platform.
	//
	// A single VirtualService can be used to describe all the traffic
	// properties of the corresponding hosts, including those for multiple
	// HTTP and TCP ports. Alternatively, the traffic properties of a host
	// can be defined using more than one VirtualService, with certain
	// caveats. Refer to the
	// [Operations Guide](https://istio.io/docs/ops/traffic-management/deploy-guidelines/#multiple-virtual-services-and-destination-rules-for-the-same-host)
	// for details.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// The hosts field applies to both HTTP and TCP services. Service inside
	// the mesh, i.e., those found in the service registry, must always be
	// referred to using their alphanumeric names. IP addresses are allowed
	// only for services defined via the Gateway.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The names of gateways and sidecars that should apply these routes. A
	// single VirtualService is used for sidecars inside the mesh as well as
	// for one or more gateways. The selection condition imposed by this
	// field can be overridden using the source field in the match conditions
	// of protocol-specific routes. The reserved word `mesh` is used to imply
	// all the sidecars in the mesh. When this field is omitted, the default
	// gateway (`mesh`) will be used, which would apply the rule to all
	// sidecars in the mesh. If a list of gateway names is provided, the
	// rules will apply only to the gateways. To apply the rules to both
	// gateways and sidecars, specify `mesh` as one of the gateway names.
	Gateways []string `protobuf:"bytes,2,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// An ordered list of route rules for HTTP traffic. HTTP routes will be
	// applied to platform service ports named 'http-*'/'http2-*'/'grpc-*', gateway
	// ports with protocol HTTP/HTTP2/GRPC/ TLS-terminated-HTTPS and service
	// entry ports using HTTP/HTTP2/GRPC protocols.  The first rule matching
	// an incoming request is used.
	Http []*HTTPRoute `protobuf:"bytes,3,rep,name=http,proto3" json:"http,omitempty"`
	// An ordered list of route rule for non-terminated TLS & HTTPS
	// traffic. Routing is typically performed using the SNI value presented
	// by the ClientHello message. TLS routes will be applied to platform
	// service ports named 'https-*', 'tls-*', unterminated gateway ports using
	// HTTPS/TLS protocols (i.e. with "passthrough" TLS mode) and service
	// entry ports using HTTPS/TLS protocols.  The first rule matching an
	// incoming request is used.  NOTE: Traffic 'https-*' or 'tls-*' ports
	// without associated virtual service will be treated as opaque TCP
	// traffic.
	Tls []*TLSRoute `protobuf:"bytes,5,rep,name=tls,proto3" json:"tls,omitempty"`
	// An ordered list of route rules for opaque TCP traffic. TCP routes will
	// be applied to any port that is not a HTTP or TLS port. The first rule
	// matching an incoming request is used.
	Tcp []*TCPRoute `protobuf:"bytes,4,rep,name=tcp,proto3" json:"tcp,omitempty"`
	// A list of namespaces to which this virtual service is exported. Exporting a
	// virtual service allows it to be used by sidecars and gateways defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of virtual services
	// across namespace boundaries.
	//
	// If no namespaces are specified then the virtual service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the virtual service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo             []string `protobuf:"bytes,6,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VirtualService) Descriptor

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

func (*VirtualService) GetExportTo

func (m *VirtualService) GetExportTo() []string

func (*VirtualService) GetGateways

func (m *VirtualService) GetGateways() []string

func (*VirtualService) GetHosts

func (m *VirtualService) GetHosts() []string

func (*VirtualService) GetHttp

func (m *VirtualService) GetHttp() []*HTTPRoute

func (*VirtualService) GetTcp

func (m *VirtualService) GetTcp() []*TCPRoute

func (*VirtualService) GetTls

func (m *VirtualService) GetTls() []*TLSRoute

func (*VirtualService) Marshal

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

func (*VirtualService) MarshalTo

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

func (*VirtualService) ProtoMessage

func (*VirtualService) ProtoMessage()

func (*VirtualService) Reset

func (m *VirtualService) Reset()

func (*VirtualService) Size

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

func (*VirtualService) String

func (m *VirtualService) String() string

func (*VirtualService) Unmarshal

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

func (*VirtualService) XXX_DiscardUnknown

func (m *VirtualService) XXX_DiscardUnknown()

func (*VirtualService) XXX_Marshal

func (m *VirtualService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VirtualService) XXX_Merge

func (m *VirtualService) XXX_Merge(src proto.Message)

func (*VirtualService) XXX_Size

func (m *VirtualService) XXX_Size() int

func (*VirtualService) XXX_Unmarshal

func (m *VirtualService) XXX_Unmarshal(b []byte) error

type WorkloadSelector

type WorkloadSelector struct {
	// REQUIRED: One or more labels that indicate a specific set of pods/VMs
	// on which this sidecar configuration should be applied. The scope of
	// label search is restricted to the configuration namespace in which the
	// the resource is present.
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

WorkloadSelector specifies the criteria used to determine if the Gateway, Sidecar, or EnvoyFilter resource can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload instance info such as labels attached to the pod/VM, or any other info that the proxy provides to Istio during the initial handshake. If multiple conditions are specified, all conditions need to match in order for the workload instance to be selected. Currently, only label based selection mechanism is supported.

func (*WorkloadSelector) Descriptor

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

func (*WorkloadSelector) GetLabels

func (m *WorkloadSelector) GetLabels() map[string]string

func (*WorkloadSelector) Marshal

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

func (*WorkloadSelector) MarshalTo

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

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) Reset

func (m *WorkloadSelector) Reset()

func (*WorkloadSelector) Size

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

func (*WorkloadSelector) String

func (m *WorkloadSelector) String() string

func (*WorkloadSelector) Unmarshal

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

func (*WorkloadSelector) XXX_DiscardUnknown

func (m *WorkloadSelector) XXX_DiscardUnknown()

func (*WorkloadSelector) XXX_Marshal

func (m *WorkloadSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WorkloadSelector) XXX_Merge

func (m *WorkloadSelector) XXX_Merge(src proto.Message)

func (*WorkloadSelector) XXX_Size

func (m *WorkloadSelector) XXX_Size() int

func (*WorkloadSelector) XXX_Unmarshal

func (m *WorkloadSelector) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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