mirror of https://github.com/istio/api.git
Update to latest tools.
This commit is contained in:
parent
11e69f5b2a
commit
231fadc578
|
|
@ -2,7 +2,7 @@ version: 2
|
|||
defaults: &defaults
|
||||
working_directory: /src/istio.io/api
|
||||
docker:
|
||||
- image: gcr.io/istio-testing/api-build-tools:2018-10-31
|
||||
- image: gcr.io/istio-testing/api-build-tools:2019-02-23
|
||||
environment:
|
||||
GOPATH: /go
|
||||
OUT_PATH: /src
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -13,9 +13,9 @@ out_path = $(OUT_PATH)
|
|||
docker_lock = protolock
|
||||
docker_tool = prototool
|
||||
else
|
||||
gen_img := gcr.io/istio-testing/protoc:2018-06-12
|
||||
gen_img := gcr.io/istio-testing/protoc:2019-02-23
|
||||
lock_img := gcr.io/istio-testing/protolock:2018-10-23
|
||||
all_img := gcr.io/istio-testing/api-build-tools:2018-10-31
|
||||
all_img := gcr.io/istio-testing/api-build-tools:2019-02-23
|
||||
pwd := $(shell pwd)
|
||||
mount_dir := /src
|
||||
repo_dir := istio.io/api
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -3,17 +3,24 @@
|
|||
|
||||
package v1alpha1
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import io "io"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Network provides information about the endpoints in a routable L3
|
||||
// network. A single routable L3 network can have one or more service
|
||||
// registries. Note that the network has no relation to the locality of the
|
||||
|
|
@ -23,15 +30,46 @@ type Network struct {
|
|||
// REQUIRED: The list of endpoints in the network (obtained through the
|
||||
// constituent service registries or from CIDR ranges). All endpoints in
|
||||
// the network are directly accessible to one another.
|
||||
Endpoints []*Network_NetworkEndpoints `protobuf:"bytes,2,rep,name=endpoints" json:"endpoints,omitempty"`
|
||||
Endpoints []*Network_NetworkEndpoints `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||
// REQUIRED: Set of gateways associated with the network.
|
||||
Gateways []*Network_IstioNetworkGateway `protobuf:"bytes,3,rep,name=gateways" json:"gateways,omitempty"`
|
||||
Gateways []*Network_IstioNetworkGateway `protobuf:"bytes,3,rep,name=gateways,proto3" json:"gateways,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Network) Reset() { *m = Network{} }
|
||||
func (m *Network) String() string { return proto.CompactTextString(m) }
|
||||
func (*Network) ProtoMessage() {}
|
||||
func (*Network) Descriptor() ([]byte, []int) { return fileDescriptorNetwork, []int{0} }
|
||||
func (m *Network) Reset() { *m = Network{} }
|
||||
func (m *Network) String() string { return proto.CompactTextString(m) }
|
||||
func (*Network) ProtoMessage() {}
|
||||
func (*Network) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a15df2a96e10cd86, []int{0}
|
||||
}
|
||||
func (m *Network) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Network.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Network) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Network.Merge(m, src)
|
||||
}
|
||||
func (m *Network) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Network) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Network.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Network proto.InternalMessageInfo
|
||||
|
||||
func (m *Network) GetEndpoints() []*Network_NetworkEndpoints {
|
||||
if m != nil {
|
||||
|
|
@ -71,15 +109,44 @@ type Network_NetworkEndpoints struct {
|
|||
// Types that are valid to be assigned to Ne:
|
||||
// *Network_NetworkEndpoints_FromCidr
|
||||
// *Network_NetworkEndpoints_FromRegistry
|
||||
Ne isNetwork_NetworkEndpoints_Ne `protobuf_oneof:"ne"`
|
||||
Ne isNetwork_NetworkEndpoints_Ne `protobuf_oneof:"ne"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Network_NetworkEndpoints) Reset() { *m = Network_NetworkEndpoints{} }
|
||||
func (m *Network_NetworkEndpoints) String() string { return proto.CompactTextString(m) }
|
||||
func (*Network_NetworkEndpoints) ProtoMessage() {}
|
||||
func (*Network_NetworkEndpoints) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptorNetwork, []int{0, 0}
|
||||
return fileDescriptor_a15df2a96e10cd86, []int{0, 0}
|
||||
}
|
||||
func (m *Network_NetworkEndpoints) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Network_NetworkEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Network_NetworkEndpoints.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Network_NetworkEndpoints) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Network_NetworkEndpoints.Merge(m, src)
|
||||
}
|
||||
func (m *Network_NetworkEndpoints) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Network_NetworkEndpoints) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Network_NetworkEndpoints.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Network_NetworkEndpoints proto.InternalMessageInfo
|
||||
|
||||
type isNetwork_NetworkEndpoints_Ne interface {
|
||||
isNetwork_NetworkEndpoints_Ne()
|
||||
|
|
@ -170,11 +237,11 @@ func _Network_NetworkEndpoints_OneofSizer(msg proto.Message) (n int) {
|
|||
// ne
|
||||
switch x := m.Ne.(type) {
|
||||
case *Network_NetworkEndpoints_FromCidr:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.FromCidr)))
|
||||
n += len(x.FromCidr)
|
||||
case *Network_NetworkEndpoints_FromRegistry:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.FromRegistry)))
|
||||
n += len(x.FromRegistry)
|
||||
case nil:
|
||||
|
|
@ -195,15 +262,44 @@ type Network_IstioNetworkGateway struct {
|
|||
// REQUIRED: The port associated with the gateway.
|
||||
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
|
||||
// The locality associated with an explicitly specified gateway (i.e. ip)
|
||||
Locality string `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"`
|
||||
Locality string `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Network_IstioNetworkGateway) Reset() { *m = Network_IstioNetworkGateway{} }
|
||||
func (m *Network_IstioNetworkGateway) String() string { return proto.CompactTextString(m) }
|
||||
func (*Network_IstioNetworkGateway) ProtoMessage() {}
|
||||
func (*Network_IstioNetworkGateway) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptorNetwork, []int{0, 1}
|
||||
return fileDescriptor_a15df2a96e10cd86, []int{0, 1}
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Network_IstioNetworkGateway.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Network_IstioNetworkGateway.Merge(m, src)
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Network_IstioNetworkGateway.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Network_IstioNetworkGateway proto.InternalMessageInfo
|
||||
|
||||
type isNetwork_IstioNetworkGateway_Gw interface {
|
||||
isNetwork_IstioNetworkGateway_Gw()
|
||||
|
|
@ -308,11 +404,11 @@ func _Network_IstioNetworkGateway_OneofSizer(msg proto.Message) (n int) {
|
|||
// gw
|
||||
switch x := m.Gw.(type) {
|
||||
case *Network_IstioNetworkGateway_RegistryServiceName:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.RegistryServiceName)))
|
||||
n += len(x.RegistryServiceName)
|
||||
case *Network_IstioNetworkGateway_Address:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Address)))
|
||||
n += len(x.Address)
|
||||
case nil:
|
||||
|
|
@ -339,13 +435,44 @@ type MeshNetworks struct {
|
|||
// REQUIRED: The set of networks inside this mesh. Each network should
|
||||
// have a unique name and information about how to infer the endpoints in
|
||||
// the network as well as the gateways associated with the network.
|
||||
Networks map[string]*Network `protobuf:"bytes,1,rep,name=networks" json:"networks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Networks map[string]*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MeshNetworks) Reset() { *m = MeshNetworks{} }
|
||||
func (m *MeshNetworks) String() string { return proto.CompactTextString(m) }
|
||||
func (*MeshNetworks) ProtoMessage() {}
|
||||
func (*MeshNetworks) Descriptor() ([]byte, []int) { return fileDescriptorNetwork, []int{1} }
|
||||
func (m *MeshNetworks) Reset() { *m = MeshNetworks{} }
|
||||
func (m *MeshNetworks) String() string { return proto.CompactTextString(m) }
|
||||
func (*MeshNetworks) ProtoMessage() {}
|
||||
func (*MeshNetworks) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a15df2a96e10cd86, []int{1}
|
||||
}
|
||||
func (m *MeshNetworks) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MeshNetworks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MeshNetworks.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MeshNetworks) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MeshNetworks.Merge(m, src)
|
||||
}
|
||||
func (m *MeshNetworks) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MeshNetworks) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MeshNetworks.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MeshNetworks proto.InternalMessageInfo
|
||||
|
||||
func (m *MeshNetworks) GetNetworks() map[string]*Network {
|
||||
if m != nil {
|
||||
|
|
@ -359,7 +486,41 @@ func init() {
|
|||
proto.RegisterType((*Network_NetworkEndpoints)(nil), "istio.mesh.v1alpha1.Network.NetworkEndpoints")
|
||||
proto.RegisterType((*Network_IstioNetworkGateway)(nil), "istio.mesh.v1alpha1.Network.IstioNetworkGateway")
|
||||
proto.RegisterType((*MeshNetworks)(nil), "istio.mesh.v1alpha1.MeshNetworks")
|
||||
proto.RegisterMapType((map[string]*Network)(nil), "istio.mesh.v1alpha1.MeshNetworks.NetworksEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("mesh/v1alpha1/network.proto", fileDescriptor_a15df2a96e10cd86) }
|
||||
|
||||
var fileDescriptor_a15df2a96e10cd86 = []byte{
|
||||
// 403 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x8e, 0xda, 0x30,
|
||||
0x10, 0xc6, 0xeb, 0x84, 0x96, 0x30, 0x80, 0x84, 0x8c, 0x2a, 0x45, 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x53, 0x50, 0x5c, 0xf8, 0x34, 0xe1, 0xfe, 0xd1, 0x67, 0xfd,
|
||||
0xf7, 0x22, 0xff, 0xa5, 0x1f, 0xee, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x70, 0x44, 0x24, 0xc4,
|
||||
0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Network) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
|
@ -399,6 +560,9 @@ func (m *Network) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += n
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -424,6 +588,9 @@ func (m *Network_NetworkEndpoints) MarshalTo(dAtA []byte) (int, error) {
|
|||
}
|
||||
i += nn1
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -476,6 +643,9 @@ func (m *Network_IstioNetworkGateway) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintNetwork(dAtA, i, uint64(len(m.Locality)))
|
||||
i += copy(dAtA[i:], m.Locality)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -538,6 +708,9 @@ func (m *MeshNetworks) MarshalTo(dAtA []byte) (int, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -551,6 +724,9 @@ func encodeVarintNetwork(dAtA []byte, offset int, v uint64) int {
|
|||
return offset + 1
|
||||
}
|
||||
func (m *Network) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Endpoints) > 0 {
|
||||
|
|
@ -565,19 +741,31 @@ func (m *Network) Size() (n int) {
|
|||
n += 1 + l + sovNetwork(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Network_NetworkEndpoints) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Ne != nil {
|
||||
n += m.Ne.Size()
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Network_NetworkEndpoints_FromCidr) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.FromCidr)
|
||||
|
|
@ -585,6 +773,9 @@ func (m *Network_NetworkEndpoints_FromCidr) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
func (m *Network_NetworkEndpoints_FromRegistry) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.FromRegistry)
|
||||
|
|
@ -592,6 +783,9 @@ func (m *Network_NetworkEndpoints_FromRegistry) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Gw != nil {
|
||||
|
|
@ -604,10 +798,16 @@ func (m *Network_IstioNetworkGateway) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovNetwork(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Network_IstioNetworkGateway_RegistryServiceName) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.RegistryServiceName)
|
||||
|
|
@ -615,6 +815,9 @@ func (m *Network_IstioNetworkGateway_RegistryServiceName) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
func (m *Network_IstioNetworkGateway_Address) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Address)
|
||||
|
|
@ -622,6 +825,9 @@ func (m *Network_IstioNetworkGateway_Address) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
func (m *MeshNetworks) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Networks) > 0 {
|
||||
|
|
@ -637,6 +843,9 @@ func (m *MeshNetworks) Size() (n int) {
|
|||
n += mapEntrySize + 1 + sovNetwork(uint64(mapEntrySize))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -668,7 +877,7 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -696,7 +905,7 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -705,6 +914,9 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -727,7 +939,7 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -736,6 +948,9 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -753,9 +968,13 @@ func (m *Network) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -780,7 +999,7 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -808,7 +1027,7 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -818,6 +1037,9 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -837,7 +1059,7 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -847,6 +1069,9 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -861,9 +1086,13 @@ func (m *Network_NetworkEndpoints) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -888,7 +1117,7 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -916,7 +1145,7 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -926,6 +1155,9 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -945,7 +1177,7 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -955,6 +1187,9 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -974,7 +1209,7 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Port |= (uint32(b) & 0x7F) << shift
|
||||
m.Port |= uint32(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -993,7 +1228,7 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1003,6 +1238,9 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1017,9 +1255,13 @@ func (m *Network_IstioNetworkGateway) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1044,7 +1286,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1072,7 +1314,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1081,6 +1323,9 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1101,7 +1346,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1118,7 +1363,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1128,6 +1373,9 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1144,7 +1392,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
mapmsglen |= (int(b) & 0x7F) << shift
|
||||
mapmsglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1153,7 +1401,7 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
postmsgIndex := iNdEx + mapmsglen
|
||||
if mapmsglen < 0 {
|
||||
if postmsgIndex < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if postmsgIndex > l {
|
||||
|
|
@ -1190,9 +1438,13 @@ func (m *MeshNetworks) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthNetwork
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1256,10 +1508,13 @@ func skipNetwork(dAtA []byte) (n int, err error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
iNdEx += length
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthNetwork
|
||||
}
|
||||
iNdEx += length
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthNetwork
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 3:
|
||||
for {
|
||||
|
|
@ -1288,6 +1543,9 @@ func skipNetwork(dAtA []byte) (n int, err error) {
|
|||
return 0, err
|
||||
}
|
||||
iNdEx = start + next
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthNetwork
|
||||
}
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 4:
|
||||
|
|
@ -1306,35 +1564,3 @@ var (
|
|||
ErrInvalidLengthNetwork = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowNetwork = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("mesh/v1alpha1/network.proto", fileDescriptorNetwork) }
|
||||
|
||||
var fileDescriptorNetwork = []byte{
|
||||
// 403 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x8e, 0xda, 0x30,
|
||||
0x10, 0xc6, 0xeb, 0x84, 0x96, 0x30, 0x80, 0x84, 0x8c, 0x2a, 0x45, 0x69, 0x8b, 0x10, 0x52, 0xa5,
|
||||
0x5c, 0x9a, 0x14, 0xda, 0x43, 0xd5, 0x23, 0x15, 0x6a, 0x2b, 0x5a, 0x0e, 0xee, 0xa9, 0x3d, 0x14,
|
||||
0xb9, 0xc4, 0x05, 0x8b, 0x24, 0x8e, 0x6c, 0x2f, 0x28, 0x0f, 0xb3, 0xb7, 0x7d, 0x86, 0x7d, 0x86,
|
||||
0x3d, 0xee, 0x23, 0xac, 0x78, 0x92, 0x55, 0xfe, 0xee, 0xb2, 0x42, 0x9c, 0x6c, 0xcf, 0xf7, 0xfd,
|
||||
0x66, 0xc6, 0x63, 0xc3, 0xab, 0x88, 0xa9, 0x8d, 0xbf, 0x1b, 0xd3, 0x30, 0xd9, 0xd0, 0xb1, 0x1f,
|
||||
0x33, 0xbd, 0x17, 0x72, 0xeb, 0x25, 0x52, 0x68, 0x81, 0xfb, 0x5c, 0x69, 0x2e, 0xbc, 0xcc, 0xe2,
|
||||
0x55, 0x96, 0xd1, 0x95, 0x09, 0xcd, 0x45, 0x61, 0xc3, 0x73, 0x68, 0xb1, 0x38, 0x48, 0x04, 0x8f,
|
||||
0xb5, 0xb2, 0x8d, 0xa1, 0xe9, 0xb6, 0x27, 0xef, 0xbc, 0x13, 0x90, 0x57, 0x02, 0xd5, 0x3a, 0xab,
|
||||
0x20, 0xf2, 0xc0, 0xe3, 0x1f, 0x60, 0xad, 0xa9, 0x66, 0x7b, 0x9a, 0x2a, 0xdb, 0xcc, 0x73, 0xbd,
|
||||
0x3f, 0x9b, 0xeb, 0x7b, 0xa6, 0x95, 0x87, 0xaf, 0x05, 0x48, 0xea, 0x0c, 0xce, 0x5f, 0xe8, 0x3d,
|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0x9e, 0xbc,
|
||||
0x3e, 0xf7, 0x96, 0xa4, 0xb0, 0x7e, 0x36, 0x3e, 0xa1, 0xa9, 0x7b, 0x73, 0x18, 0xa0, 0xdb, 0xc3,
|
||||
0x00, 0xdd, 0x1d, 0x06, 0xe8, 0x8f, 0x53, 0x50, 0x5c, 0xf8, 0x34, 0xe1, 0xfe, 0xd1, 0x67, 0xfd,
|
||||
0xf7, 0x22, 0xff, 0xa5, 0x1f, 0xee, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x70, 0x44, 0x24, 0xc4,
|
||||
0x02, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -3,18 +3,25 @@
|
|||
|
||||
package v1alpha3
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import google_protobuf3 "github.com/gogo/protobuf/types"
|
||||
|
||||
import io "io"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type EnvoyFilter_ListenerMatch_ListenerType int32
|
||||
|
||||
const (
|
||||
|
|
@ -34,6 +41,7 @@ var EnvoyFilter_ListenerMatch_ListenerType_name = map[int32]string{
|
|||
2: "SIDECAR_OUTBOUND",
|
||||
3: "GATEWAY",
|
||||
}
|
||||
|
||||
var EnvoyFilter_ListenerMatch_ListenerType_value = map[string]int32{
|
||||
"ANY": 0,
|
||||
"SIDECAR_INBOUND": 1,
|
||||
|
|
@ -44,8 +52,9 @@ var EnvoyFilter_ListenerMatch_ListenerType_value = map[string]int32{
|
|||
func (x EnvoyFilter_ListenerMatch_ListenerType) String() string {
|
||||
return proto.EnumName(EnvoyFilter_ListenerMatch_ListenerType_name, int32(x))
|
||||
}
|
||||
|
||||
func (EnvoyFilter_ListenerMatch_ListenerType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 1, 0}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 1, 0}
|
||||
}
|
||||
|
||||
type EnvoyFilter_ListenerMatch_ListenerProtocol int32
|
||||
|
|
@ -64,6 +73,7 @@ var EnvoyFilter_ListenerMatch_ListenerProtocol_name = map[int32]string{
|
|||
1: "HTTP",
|
||||
2: "TCP",
|
||||
}
|
||||
|
||||
var EnvoyFilter_ListenerMatch_ListenerProtocol_value = map[string]int32{
|
||||
"ALL": 0,
|
||||
"HTTP": 1,
|
||||
|
|
@ -73,8 +83,9 @@ var EnvoyFilter_ListenerMatch_ListenerProtocol_value = map[string]int32{
|
|||
func (x EnvoyFilter_ListenerMatch_ListenerProtocol) String() string {
|
||||
return proto.EnumName(EnvoyFilter_ListenerMatch_ListenerProtocol_name, int32(x))
|
||||
}
|
||||
|
||||
func (EnvoyFilter_ListenerMatch_ListenerProtocol) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 1, 1}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 1, 1}
|
||||
}
|
||||
|
||||
// Index/position in the filter chain.
|
||||
|
|
@ -97,6 +108,7 @@ var EnvoyFilter_InsertPosition_Index_name = map[int32]string{
|
|||
2: "BEFORE",
|
||||
3: "AFTER",
|
||||
}
|
||||
|
||||
var EnvoyFilter_InsertPosition_Index_value = map[string]int32{
|
||||
"FIRST": 0,
|
||||
"LAST": 1,
|
||||
|
|
@ -107,8 +119,9 @@ var EnvoyFilter_InsertPosition_Index_value = map[string]int32{
|
|||
func (x EnvoyFilter_InsertPosition_Index) String() string {
|
||||
return proto.EnumName(EnvoyFilter_InsertPosition_Index_name, int32(x))
|
||||
}
|
||||
|
||||
func (EnvoyFilter_InsertPosition_Index) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 2, 0}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 2, 0}
|
||||
}
|
||||
|
||||
type EnvoyFilter_Filter_FilterType int32
|
||||
|
|
@ -127,6 +140,7 @@ var EnvoyFilter_Filter_FilterType_name = map[int32]string{
|
|||
1: "HTTP",
|
||||
2: "NETWORK",
|
||||
}
|
||||
|
||||
var EnvoyFilter_Filter_FilterType_value = map[string]int32{
|
||||
"INVALID": 0,
|
||||
"HTTP": 1,
|
||||
|
|
@ -136,8 +150,9 @@ var EnvoyFilter_Filter_FilterType_value = map[string]int32{
|
|||
func (x EnvoyFilter_Filter_FilterType) String() string {
|
||||
return proto.EnumName(EnvoyFilter_Filter_FilterType_name, int32(x))
|
||||
}
|
||||
|
||||
func (EnvoyFilter_Filter_FilterType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 3, 0}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 3, 0}
|
||||
}
|
||||
|
||||
// `EnvoyFilter` describes Envoy proxy-specific filters that can be used to
|
||||
|
|
@ -187,18 +202,49 @@ type EnvoyFilter struct {
|
|||
// NOTE: There can be only one EnvoyFilter bound to a specific workload.
|
||||
// The behavior is undefined if multiple EnvoyFilter configurations are
|
||||
// specified for the same workload.
|
||||
WorkloadLabels map[string]string `protobuf:"bytes,1,rep,name=workload_labels,json=workloadLabels" json:"workload_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
WorkloadLabels map[string]string `protobuf:"bytes,1,rep,name=workload_labels,json=workloadLabels,proto3" json:"workload_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// REQUIRED: Envoy network filters/http filters to be added to matching
|
||||
// listeners. When adding network filters to http connections, care
|
||||
// should be taken to ensure that the filter is added before
|
||||
// envoy.http_connection_manager.
|
||||
Filters []*EnvoyFilter_Filter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
|
||||
Filters []*EnvoyFilter_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter) Reset() { *m = EnvoyFilter{} }
|
||||
func (m *EnvoyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter) ProtoMessage() {}
|
||||
func (*EnvoyFilter) Descriptor() ([]byte, []int) { return fileDescriptorEnvoyFilter, []int{0} }
|
||||
func (m *EnvoyFilter) Reset() { *m = EnvoyFilter{} }
|
||||
func (m *EnvoyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter) ProtoMessage() {}
|
||||
func (*EnvoyFilter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0}
|
||||
}
|
||||
func (m *EnvoyFilter) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *EnvoyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_EnvoyFilter.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *EnvoyFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EnvoyFilter.Merge(m, src)
|
||||
}
|
||||
func (m *EnvoyFilter) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *EnvoyFilter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EnvoyFilter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EnvoyFilter proto.InternalMessageInfo
|
||||
|
||||
func (m *EnvoyFilter) GetWorkloadLabels() map[string]string {
|
||||
if m != nil {
|
||||
|
|
@ -239,15 +285,44 @@ type EnvoyFilter_ListenerMatch struct {
|
|||
ListenerProtocol EnvoyFilter_ListenerMatch_ListenerProtocol `protobuf:"varint,4,opt,name=listener_protocol,json=listenerProtocol,proto3,enum=istio.networking.v1alpha3.EnvoyFilter_ListenerMatch_ListenerProtocol" json:"listener_protocol,omitempty"`
|
||||
// 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" json:"address,omitempty"`
|
||||
Address []string `protobuf:"bytes,5,rep,name=address,proto3" json:"address,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_ListenerMatch) Reset() { *m = EnvoyFilter_ListenerMatch{} }
|
||||
func (m *EnvoyFilter_ListenerMatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter_ListenerMatch) ProtoMessage() {}
|
||||
func (*EnvoyFilter_ListenerMatch) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 1}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 1}
|
||||
}
|
||||
func (m *EnvoyFilter_ListenerMatch) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *EnvoyFilter_ListenerMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_EnvoyFilter_ListenerMatch.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *EnvoyFilter_ListenerMatch) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EnvoyFilter_ListenerMatch.Merge(m, src)
|
||||
}
|
||||
func (m *EnvoyFilter_ListenerMatch) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *EnvoyFilter_ListenerMatch) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EnvoyFilter_ListenerMatch.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EnvoyFilter_ListenerMatch proto.InternalMessageInfo
|
||||
|
||||
func (m *EnvoyFilter_ListenerMatch) GetPortNumber() uint32 {
|
||||
if m != nil {
|
||||
|
|
@ -290,15 +365,44 @@ type EnvoyFilter_InsertPosition struct {
|
|||
Index EnvoyFilter_InsertPosition_Index `protobuf:"varint,1,opt,name=index,proto3,enum=istio.networking.v1alpha3.EnvoyFilter_InsertPosition_Index" json:"index,omitempty"`
|
||||
// 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"`
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_InsertPosition) Reset() { *m = EnvoyFilter_InsertPosition{} }
|
||||
func (m *EnvoyFilter_InsertPosition) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter_InsertPosition) ProtoMessage() {}
|
||||
func (*EnvoyFilter_InsertPosition) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptorEnvoyFilter, []int{0, 2}
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 2}
|
||||
}
|
||||
func (m *EnvoyFilter_InsertPosition) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *EnvoyFilter_InsertPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_EnvoyFilter_InsertPosition.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *EnvoyFilter_InsertPosition) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EnvoyFilter_InsertPosition.Merge(m, src)
|
||||
}
|
||||
func (m *EnvoyFilter_InsertPosition) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *EnvoyFilter_InsertPosition) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EnvoyFilter_InsertPosition.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EnvoyFilter_InsertPosition proto.InternalMessageInfo
|
||||
|
||||
func (m *EnvoyFilter_InsertPosition) GetIndex() EnvoyFilter_InsertPosition_Index {
|
||||
if m != nil {
|
||||
|
|
@ -318,9 +422,9 @@ func (m *EnvoyFilter_InsertPosition) GetRelativeTo() string {
|
|||
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.
|
||||
ListenerMatch *EnvoyFilter_ListenerMatch `protobuf:"bytes,1,opt,name=listener_match,json=listenerMatch" json:"listener_match,omitempty"`
|
||||
ListenerMatch *EnvoyFilter_ListenerMatch `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" json:"insert_position,omitempty"`
|
||||
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 `protobuf:"varint,3,opt,name=filter_type,json=filterType,proto3,enum=istio.networking.v1alpha3.EnvoyFilter_Filter_FilterType" json:"filter_type,omitempty"`
|
||||
// REQUIRED: The name of the filter to instantiate. The name must match a supported
|
||||
|
|
@ -328,13 +432,44 @@ type EnvoyFilter_Filter struct {
|
|||
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 *google_protobuf3.Struct `protobuf:"bytes,5,opt,name=filter_config,json=filterConfig" json:"filter_config,omitempty"`
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_Filter) Reset() { *m = EnvoyFilter_Filter{} }
|
||||
func (m *EnvoyFilter_Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter_Filter) ProtoMessage() {}
|
||||
func (*EnvoyFilter_Filter) Descriptor() ([]byte, []int) { return fileDescriptorEnvoyFilter, []int{0, 3} }
|
||||
func (m *EnvoyFilter_Filter) Reset() { *m = EnvoyFilter_Filter{} }
|
||||
func (m *EnvoyFilter_Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnvoyFilter_Filter) ProtoMessage() {}
|
||||
func (*EnvoyFilter_Filter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_16d9b2922bd3e4a9, []int{0, 3}
|
||||
}
|
||||
func (m *EnvoyFilter_Filter) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *EnvoyFilter_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_EnvoyFilter_Filter.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *EnvoyFilter_Filter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EnvoyFilter_Filter.Merge(m, src)
|
||||
}
|
||||
func (m *EnvoyFilter_Filter) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *EnvoyFilter_Filter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EnvoyFilter_Filter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EnvoyFilter_Filter proto.InternalMessageInfo
|
||||
|
||||
func (m *EnvoyFilter_Filter) GetListenerMatch() *EnvoyFilter_ListenerMatch {
|
||||
if m != nil {
|
||||
|
|
@ -364,7 +499,7 @@ func (m *EnvoyFilter_Filter) GetFilterName() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_Filter) GetFilterConfig() *google_protobuf3.Struct {
|
||||
func (m *EnvoyFilter_Filter) GetFilterConfig() *types.Struct {
|
||||
if m != nil {
|
||||
return m.FilterConfig
|
||||
}
|
||||
|
|
@ -372,15 +507,70 @@ func (m *EnvoyFilter_Filter) GetFilterConfig() *google_protobuf3.Struct {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*EnvoyFilter)(nil), "istio.networking.v1alpha3.EnvoyFilter")
|
||||
proto.RegisterType((*EnvoyFilter_ListenerMatch)(nil), "istio.networking.v1alpha3.EnvoyFilter.ListenerMatch")
|
||||
proto.RegisterType((*EnvoyFilter_InsertPosition)(nil), "istio.networking.v1alpha3.EnvoyFilter.InsertPosition")
|
||||
proto.RegisterType((*EnvoyFilter_Filter)(nil), "istio.networking.v1alpha3.EnvoyFilter.Filter")
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.EnvoyFilter_ListenerMatch_ListenerType", EnvoyFilter_ListenerMatch_ListenerType_name, EnvoyFilter_ListenerMatch_ListenerType_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.EnvoyFilter_ListenerMatch_ListenerProtocol", EnvoyFilter_ListenerMatch_ListenerProtocol_name, EnvoyFilter_ListenerMatch_ListenerProtocol_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.EnvoyFilter_InsertPosition_Index", EnvoyFilter_InsertPosition_Index_name, EnvoyFilter_InsertPosition_Index_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.EnvoyFilter_Filter_FilterType", EnvoyFilter_Filter_FilterType_name, EnvoyFilter_Filter_FilterType_value)
|
||||
proto.RegisterType((*EnvoyFilter)(nil), "istio.networking.v1alpha3.EnvoyFilter")
|
||||
proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.EnvoyFilter.WorkloadLabelsEntry")
|
||||
proto.RegisterType((*EnvoyFilter_ListenerMatch)(nil), "istio.networking.v1alpha3.EnvoyFilter.ListenerMatch")
|
||||
proto.RegisterType((*EnvoyFilter_InsertPosition)(nil), "istio.networking.v1alpha3.EnvoyFilter.InsertPosition")
|
||||
proto.RegisterType((*EnvoyFilter_Filter)(nil), "istio.networking.v1alpha3.EnvoyFilter.Filter")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("networking/v1alpha3/envoy_filter.proto", fileDescriptor_16d9b2922bd3e4a9)
|
||||
}
|
||||
|
||||
var fileDescriptor_16d9b2922bd3e4a9 = []byte{
|
||||
// 706 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x41, 0x6f, 0xda, 0x4c,
|
||||
0x10, 0x8d, 0x71, 0x08, 0x1f, 0xe3, 0x40, 0xfc, 0x6d, 0x22, 0xd5, 0x45, 0x55, 0x8a, 0x38, 0x54,
|
||||
0x5c, 0x6a, 0x5a, 0xd2, 0x4a, 0x51, 0xda, 0x8b, 0x93, 0x98, 0x14, 0x95, 0x02, 0x5d, 0x9c, 0x46,
|
||||
0x69, 0xa5, 0x5a, 0x06, 0x16, 0xb2, 0x8a, 0xf1, 0x5a, 0xf6, 0x42, 0xc2, 0xcf, 0xea, 0xb1, 0xd7,
|
||||
0x9e, 0x7a, 0x6c, 0xff, 0x41, 0x95, 0x5f, 0x52, 0x79, 0x6d, 0x08, 0x44, 0xa9, 0x94, 0xa6, 0x27,
|
||||
0x7b, 0x9f, 0xde, 0xbc, 0x99, 0xd9, 0x79, 0xb3, 0xf0, 0xc4, 0x23, 0xfc, 0x82, 0x05, 0xe7, 0xd4,
|
||||
0x1b, 0x56, 0x26, 0xcf, 0x1d, 0xd7, 0x3f, 0x73, 0x76, 0x2a, 0xc4, 0x9b, 0xb0, 0xa9, 0x3d, 0xa0,
|
||||
0x2e, 0x27, 0x81, 0xee, 0x07, 0x8c, 0x33, 0xf4, 0x90, 0x86, 0x9c, 0x32, 0xfd, 0x9a, 0xad, 0xcf,
|
||||
0xd8, 0x85, 0x47, 0x43, 0xc6, 0x86, 0x2e, 0xa9, 0x08, 0x62, 0x77, 0x3c, 0xa8, 0x84, 0x3c, 0x18,
|
||||
0xf7, 0x78, 0x1c, 0x58, 0xfa, 0x06, 0xa0, 0x98, 0x91, 0x5e, 0x4d, 0xc8, 0xa1, 0x1e, 0x6c, 0x44,
|
||||
0x0a, 0x2e, 0x73, 0xfa, 0xb6, 0xeb, 0x74, 0x89, 0x1b, 0x6a, 0x52, 0x51, 0x2e, 0x2b, 0xd5, 0x3d,
|
||||
0xfd, 0x8f, 0x29, 0xf4, 0x05, 0x01, 0xfd, 0x24, 0x89, 0x6e, 0x88, 0x60, 0xd3, 0xe3, 0xc1, 0x14,
|
||||
0xe7, 0x2f, 0x96, 0x40, 0x74, 0x04, 0x99, 0xb8, 0xfa, 0x50, 0x4b, 0x09, 0xf1, 0xa7, 0x77, 0x14,
|
||||
0x8f, 0x3f, 0x78, 0x16, 0x5d, 0x30, 0x60, 0xf3, 0x96, 0x7c, 0x48, 0x05, 0xf9, 0x9c, 0x4c, 0x35,
|
||||
0xa9, 0x28, 0x95, 0xb3, 0x38, 0xfa, 0x45, 0x5b, 0x90, 0x9e, 0x38, 0xee, 0x98, 0x68, 0x29, 0x81,
|
||||
0xc5, 0x87, 0xbd, 0xd4, 0xae, 0x54, 0xf8, 0x29, 0x43, 0xae, 0x41, 0x43, 0x4e, 0x3c, 0x12, 0xbc,
|
||||
0x73, 0x78, 0xef, 0x0c, 0x3d, 0x06, 0xc5, 0x67, 0x01, 0xb7, 0xbd, 0xf1, 0xa8, 0x4b, 0x02, 0xa1,
|
||||
0x92, 0xc3, 0x10, 0x41, 0x4d, 0x81, 0xa0, 0x32, 0xa8, 0x31, 0xc1, 0x19, 0x11, 0xdb, 0x0f, 0xc8,
|
||||
0x80, 0x5e, 0x26, 0xba, 0x79, 0xc1, 0x72, 0x46, 0xa4, 0x2d, 0x50, 0x34, 0x80, 0x9c, 0x9b, 0x68,
|
||||
0xdb, 0x7c, 0xea, 0x13, 0x4d, 0x2e, 0x4a, 0xe5, 0x7c, 0xd5, 0xb8, 0x63, 0xbb, 0x4b, 0x75, 0xcd,
|
||||
0x4f, 0xd6, 0xd4, 0x27, 0x78, 0xdd, 0x5d, 0x38, 0xa1, 0x00, 0xfe, 0x9f, 0xe7, 0x11, 0x73, 0xed,
|
||||
0x31, 0x57, 0x5b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,
|
||||
0x5d, 0x13, 0x05, 0xec, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x26, 0x48, 0xc9, 0xfc, 0xde, 0x05,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
|
@ -425,6 +615,9 @@ func (m *EnvoyFilter) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += n
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -479,6 +672,9 @@ func (m *EnvoyFilter_ListenerMatch) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += copy(dAtA[i:], s)
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -508,6 +704,9 @@ func (m *EnvoyFilter_InsertPosition) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintEnvoyFilter(dAtA, i, uint64(len(m.RelativeTo)))
|
||||
i += copy(dAtA[i:], m.RelativeTo)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -567,6 +766,9 @@ func (m *EnvoyFilter_Filter) MarshalTo(dAtA []byte) (int, error) {
|
|||
}
|
||||
i += n3
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -580,6 +782,9 @@ func encodeVarintEnvoyFilter(dAtA []byte, offset int, v uint64) int {
|
|||
return offset + 1
|
||||
}
|
||||
func (m *EnvoyFilter) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.WorkloadLabels) > 0 {
|
||||
|
|
@ -596,10 +801,16 @@ func (m *EnvoyFilter) Size() (n int) {
|
|||
n += 1 + l + sovEnvoyFilter(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_ListenerMatch) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.PortNumber != 0 {
|
||||
|
|
@ -621,10 +832,16 @@ func (m *EnvoyFilter_ListenerMatch) Size() (n int) {
|
|||
n += 1 + l + sovEnvoyFilter(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_InsertPosition) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Index != 0 {
|
||||
|
|
@ -634,10 +851,16 @@ func (m *EnvoyFilter_InsertPosition) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovEnvoyFilter(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *EnvoyFilter_Filter) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.ListenerMatch != nil {
|
||||
|
|
@ -659,6 +882,9 @@ func (m *EnvoyFilter_Filter) Size() (n int) {
|
|||
l = m.FilterConfig.Size()
|
||||
n += 1 + l + sovEnvoyFilter(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -690,7 +916,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -718,7 +944,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -727,6 +953,9 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -747,7 +976,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -764,7 +993,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -774,6 +1003,9 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -790,7 +1022,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapvalue |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -800,6 +1032,9 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
||||
if postStringIndexmapvalue < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postStringIndexmapvalue > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -836,7 +1071,7 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -845,6 +1080,9 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -862,9 +1100,13 @@ func (m *EnvoyFilter) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -889,7 +1131,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -917,7 +1159,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.PortNumber |= (uint32(b) & 0x7F) << shift
|
||||
m.PortNumber |= uint32(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -936,7 +1178,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -946,6 +1188,9 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -965,7 +1210,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.ListenerType |= (EnvoyFilter_ListenerMatch_ListenerType(b) & 0x7F) << shift
|
||||
m.ListenerType |= EnvoyFilter_ListenerMatch_ListenerType(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -984,7 +1229,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.ListenerProtocol |= (EnvoyFilter_ListenerMatch_ListenerProtocol(b) & 0x7F) << shift
|
||||
m.ListenerProtocol |= EnvoyFilter_ListenerMatch_ListenerProtocol(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1003,7 +1248,7 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1013,6 +1258,9 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1027,9 +1275,13 @@ func (m *EnvoyFilter_ListenerMatch) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1054,7 +1306,7 @@ func (m *EnvoyFilter_InsertPosition) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1082,7 +1334,7 @@ func (m *EnvoyFilter_InsertPosition) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Index |= (EnvoyFilter_InsertPosition_Index(b) & 0x7F) << shift
|
||||
m.Index |= EnvoyFilter_InsertPosition_Index(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1101,7 +1353,7 @@ func (m *EnvoyFilter_InsertPosition) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1111,6 +1363,9 @@ func (m *EnvoyFilter_InsertPosition) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1125,9 +1380,13 @@ func (m *EnvoyFilter_InsertPosition) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1152,7 +1411,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1180,7 +1439,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1189,6 +1448,9 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1213,7 +1475,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1222,6 +1484,9 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1246,7 +1511,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.FilterType |= (EnvoyFilter_Filter_FilterType(b) & 0x7F) << shift
|
||||
m.FilterType |= EnvoyFilter_Filter_FilterType(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1265,7 +1530,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1275,6 +1540,9 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1294,7 +1562,7 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1303,11 +1571,14 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.FilterConfig == nil {
|
||||
m.FilterConfig = &google_protobuf3.Struct{}
|
||||
m.FilterConfig = &types.Struct{}
|
||||
}
|
||||
if err := m.FilterConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
|
|
@ -1322,9 +1593,13 @@ func (m *EnvoyFilter_Filter) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1388,10 +1663,13 @@ func skipEnvoyFilter(dAtA []byte) (n int, err error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
iNdEx += length
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
iNdEx += length
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 3:
|
||||
for {
|
||||
|
|
@ -1420,6 +1698,9 @@ func skipEnvoyFilter(dAtA []byte) (n int, err error) {
|
|||
return 0, err
|
||||
}
|
||||
iNdEx = start + next
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthEnvoyFilter
|
||||
}
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 4:
|
||||
|
|
@ -1438,54 +1719,3 @@ var (
|
|||
ErrInvalidLengthEnvoyFilter = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowEnvoyFilter = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/envoy_filter.proto", fileDescriptorEnvoyFilter) }
|
||||
|
||||
var fileDescriptorEnvoyFilter = []byte{
|
||||
// 706 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x41, 0x6f, 0xda, 0x4c,
|
||||
0x10, 0x8d, 0x71, 0x08, 0x1f, 0xe3, 0x40, 0xfc, 0x6d, 0x22, 0xd5, 0x45, 0x55, 0x8a, 0x38, 0x54,
|
||||
0x5c, 0x6a, 0x5a, 0xd2, 0x4a, 0x51, 0xda, 0x8b, 0x93, 0x98, 0x14, 0x95, 0x02, 0x5d, 0x9c, 0x46,
|
||||
0x69, 0xa5, 0x5a, 0x06, 0x16, 0xb2, 0x8a, 0xf1, 0x5a, 0xf6, 0x42, 0xc2, 0xcf, 0xea, 0xb1, 0xd7,
|
||||
0x9e, 0x7a, 0x6c, 0xff, 0x41, 0x95, 0x5f, 0x52, 0x79, 0x6d, 0x08, 0x44, 0xa9, 0x94, 0xa6, 0x27,
|
||||
0x7b, 0x9f, 0xde, 0xbc, 0x99, 0xd9, 0x79, 0xb3, 0xf0, 0xc4, 0x23, 0xfc, 0x82, 0x05, 0xe7, 0xd4,
|
||||
0x1b, 0x56, 0x26, 0xcf, 0x1d, 0xd7, 0x3f, 0x73, 0x76, 0x2a, 0xc4, 0x9b, 0xb0, 0xa9, 0x3d, 0xa0,
|
||||
0x2e, 0x27, 0x81, 0xee, 0x07, 0x8c, 0x33, 0xf4, 0x90, 0x86, 0x9c, 0x32, 0xfd, 0x9a, 0xad, 0xcf,
|
||||
0xd8, 0x85, 0x47, 0x43, 0xc6, 0x86, 0x2e, 0xa9, 0x08, 0x62, 0x77, 0x3c, 0xa8, 0x84, 0x3c, 0x18,
|
||||
0xf7, 0x78, 0x1c, 0x58, 0xfa, 0x06, 0xa0, 0x98, 0x91, 0x5e, 0x4d, 0xc8, 0xa1, 0x1e, 0x6c, 0x44,
|
||||
0x0a, 0x2e, 0x73, 0xfa, 0xb6, 0xeb, 0x74, 0x89, 0x1b, 0x6a, 0x52, 0x51, 0x2e, 0x2b, 0xd5, 0x3d,
|
||||
0xfd, 0x8f, 0x29, 0xf4, 0x05, 0x01, 0xfd, 0x24, 0x89, 0x6e, 0x88, 0x60, 0xd3, 0xe3, 0xc1, 0x14,
|
||||
0xe7, 0x2f, 0x96, 0x40, 0x74, 0x04, 0x99, 0xb8, 0xfa, 0x50, 0x4b, 0x09, 0xf1, 0xa7, 0x77, 0x14,
|
||||
0x8f, 0x3f, 0x78, 0x16, 0x5d, 0x30, 0x60, 0xf3, 0x96, 0x7c, 0x48, 0x05, 0xf9, 0x9c, 0x4c, 0x35,
|
||||
0xa9, 0x28, 0x95, 0xb3, 0x38, 0xfa, 0x45, 0x5b, 0x90, 0x9e, 0x38, 0xee, 0x98, 0x68, 0x29, 0x81,
|
||||
0xc5, 0x87, 0xbd, 0xd4, 0xae, 0x54, 0xf8, 0x29, 0x43, 0xae, 0x41, 0x43, 0x4e, 0x3c, 0x12, 0xbc,
|
||||
0x73, 0x78, 0xef, 0x0c, 0x3d, 0x06, 0xc5, 0x67, 0x01, 0xb7, 0xbd, 0xf1, 0xa8, 0x4b, 0x02, 0xa1,
|
||||
0x92, 0xc3, 0x10, 0x41, 0x4d, 0x81, 0xa0, 0x32, 0xa8, 0x31, 0xc1, 0x19, 0x11, 0xdb, 0x0f, 0xc8,
|
||||
0x80, 0x5e, 0x26, 0xba, 0x79, 0xc1, 0x72, 0x46, 0xa4, 0x2d, 0x50, 0x34, 0x80, 0x9c, 0x9b, 0x68,
|
||||
0xdb, 0x7c, 0xea, 0x13, 0x4d, 0x2e, 0x4a, 0xe5, 0x7c, 0xd5, 0xb8, 0x63, 0xbb, 0x4b, 0x75, 0xcd,
|
||||
0x4f, 0xd6, 0xd4, 0x27, 0x78, 0xdd, 0x5d, 0x38, 0xa1, 0x00, 0xfe, 0x9f, 0xe7, 0x11, 0x73, 0xed,
|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x72, 0xcb, 0x03, 0xde,
|
||||
0x5d, 0x13, 0x05, 0xec, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x26, 0x48, 0xc9, 0xfc, 0xde, 0x05,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,17 +3,24 @@
|
|||
|
||||
package v1alpha3
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import io "io"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// TLS modes enforced by the proxy
|
||||
type Server_TLSOptions_TLSmode int32
|
||||
|
||||
|
|
@ -46,6 +53,7 @@ var Server_TLSOptions_TLSmode_name = map[int32]string{
|
|||
2: "MUTUAL",
|
||||
3: "AUTO_PASSTHROUGH",
|
||||
}
|
||||
|
||||
var Server_TLSOptions_TLSmode_value = map[string]int32{
|
||||
"PASSTHROUGH": 0,
|
||||
"SIMPLE": 1,
|
||||
|
|
@ -56,8 +64,9 @@ var Server_TLSOptions_TLSmode_value = map[string]int32{
|
|||
func (x Server_TLSOptions_TLSmode) String() string {
|
||||
return proto.EnumName(Server_TLSOptions_TLSmode_name, int32(x))
|
||||
}
|
||||
|
||||
func (Server_TLSOptions_TLSmode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorGateway, []int{1, 0, 0}
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{1, 0, 0}
|
||||
}
|
||||
|
||||
// TLS protocol versions.
|
||||
|
|
@ -83,6 +92,7 @@ var Server_TLSOptions_TLSProtocol_name = map[int32]string{
|
|||
3: "TLSV1_2",
|
||||
4: "TLSV1_3",
|
||||
}
|
||||
|
||||
var Server_TLSOptions_TLSProtocol_value = map[string]int32{
|
||||
"TLS_AUTO": 0,
|
||||
"TLSV1_0": 1,
|
||||
|
|
@ -94,8 +104,9 @@ var Server_TLSOptions_TLSProtocol_value = map[string]int32{
|
|||
func (x Server_TLSOptions_TLSProtocol) String() string {
|
||||
return proto.EnumName(Server_TLSOptions_TLSProtocol_name, int32(x))
|
||||
}
|
||||
|
||||
func (Server_TLSOptions_TLSProtocol) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorGateway, []int{1, 0, 1}
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{1, 0, 1}
|
||||
}
|
||||
|
||||
// `Gateway` describes a load balancer operating at the edge of the mesh
|
||||
|
|
@ -235,19 +246,50 @@ func (Server_TLSOptions_TLSProtocol) EnumDescriptor() ([]byte, []int) {
|
|||
// ```
|
||||
type Gateway struct {
|
||||
// REQUIRED: A list of server specifications.
|
||||
Servers []*Server `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"`
|
||||
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.
|
||||
Selector map[string]string `protobuf:"bytes,2,rep,name=selector" json:"selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Selector map[string]string `protobuf:"bytes,2,rep,name=selector,proto3" json:"selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Gateway) Reset() { *m = Gateway{} }
|
||||
func (m *Gateway) String() string { return proto.CompactTextString(m) }
|
||||
func (*Gateway) ProtoMessage() {}
|
||||
func (*Gateway) Descriptor() ([]byte, []int) { return fileDescriptorGateway, []int{0} }
|
||||
func (m *Gateway) Reset() { *m = Gateway{} }
|
||||
func (m *Gateway) String() string { return proto.CompactTextString(m) }
|
||||
func (*Gateway) ProtoMessage() {}
|
||||
func (*Gateway) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{0}
|
||||
}
|
||||
func (m *Gateway) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Gateway.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Gateway) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Gateway.Merge(m, src)
|
||||
}
|
||||
func (m *Gateway) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Gateway) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Gateway.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Gateway proto.InternalMessageInfo
|
||||
|
||||
func (m *Gateway) GetServers() []*Server {
|
||||
if m != nil {
|
||||
|
|
@ -328,7 +370,7 @@ type Server struct {
|
|||
// REQUIRED: The Port on which the proxy should listen for incoming
|
||||
// connections. If using unix domain socket, use 0 as the port number,
|
||||
// with a valid protocol and port name, along with the bind parameter.
|
||||
Port *Port `protobuf:"bytes,1,opt,name=port" json:"port,omitempty"`
|
||||
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
|
||||
|
|
@ -348,21 +390,52 @@ type Server struct {
|
|||
// VirtualServices with hosts dev.example.com, prod.example.com will
|
||||
// match. However, VirtualServices with hosts example.com or
|
||||
// newexample.com will not match.
|
||||
Hosts []string `protobuf:"bytes,2,rep,name=hosts" json:"hosts,omitempty"`
|
||||
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" json:"tls,omitempty"`
|
||||
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"`
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *Server) Reset() { *m = Server{} }
|
||||
func (m *Server) String() string { return proto.CompactTextString(m) }
|
||||
func (*Server) ProtoMessage() {}
|
||||
func (*Server) Descriptor() ([]byte, []int) { return fileDescriptorGateway, []int{1} }
|
||||
func (m *Server) Reset() { *m = Server{} }
|
||||
func (m *Server) String() string { return proto.CompactTextString(m) }
|
||||
func (*Server) ProtoMessage() {}
|
||||
func (*Server) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{1}
|
||||
}
|
||||
func (m *Server) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Server.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Server) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Server.Merge(m, src)
|
||||
}
|
||||
func (m *Server) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Server) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Server.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Server proto.InternalMessageInfo
|
||||
|
||||
func (m *Server) GetPort() *Port {
|
||||
if m != nil {
|
||||
|
|
@ -433,20 +506,51 @@ type Server_TLSOptions struct {
|
|||
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" json:"subject_alt_names,omitempty"`
|
||||
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 `protobuf:"varint,7,opt,name=min_protocol_version,json=minProtocolVersion,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSProtocol" json:"min_protocol_version,omitempty"`
|
||||
// Optional: Maximum TLS protocol version.
|
||||
MaxProtocolVersion Server_TLSOptions_TLSProtocol `protobuf:"varint,8,opt,name=max_protocol_version,json=maxProtocolVersion,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSProtocol" json:"max_protocol_version,omitempty"`
|
||||
// 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" json:"cipher_suites,omitempty"`
|
||||
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 (m *Server_TLSOptions) Reset() { *m = Server_TLSOptions{} }
|
||||
func (m *Server_TLSOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*Server_TLSOptions) ProtoMessage() {}
|
||||
func (*Server_TLSOptions) Descriptor() ([]byte, []int) { return fileDescriptorGateway, []int{1, 0} }
|
||||
func (m *Server_TLSOptions) Reset() { *m = Server_TLSOptions{} }
|
||||
func (m *Server_TLSOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*Server_TLSOptions) ProtoMessage() {}
|
||||
func (*Server_TLSOptions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{1, 0}
|
||||
}
|
||||
func (m *Server_TLSOptions) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Server_TLSOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Server_TLSOptions.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Server_TLSOptions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Server_TLSOptions.Merge(m, src)
|
||||
}
|
||||
func (m *Server_TLSOptions) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Server_TLSOptions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Server_TLSOptions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Server_TLSOptions proto.InternalMessageInfo
|
||||
|
||||
func (m *Server_TLSOptions) GetHttpsRedirect() bool {
|
||||
if m != nil {
|
||||
|
|
@ -528,13 +632,44 @@ type Port struct {
|
|||
// 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"`
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Port) Reset() { *m = Port{} }
|
||||
func (m *Port) String() string { return proto.CompactTextString(m) }
|
||||
func (*Port) ProtoMessage() {}
|
||||
func (*Port) Descriptor() ([]byte, []int) { return fileDescriptorGateway, []int{2} }
|
||||
func (m *Port) Reset() { *m = Port{} }
|
||||
func (m *Port) String() string { return proto.CompactTextString(m) }
|
||||
func (*Port) ProtoMessage() {}
|
||||
func (*Port) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_067d98d02f84cc0b, []int{2}
|
||||
}
|
||||
func (m *Port) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Port.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Port) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Port.Merge(m, src)
|
||||
}
|
||||
func (m *Port) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Port) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Port.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Port proto.InternalMessageInfo
|
||||
|
||||
func (m *Port) GetNumber() uint32 {
|
||||
if m != nil {
|
||||
|
|
@ -558,13 +693,64 @@ func (m *Port) GetName() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.Server_TLSOptions_TLSmode", Server_TLSOptions_TLSmode_name, Server_TLSOptions_TLSmode_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.Server_TLSOptions_TLSProtocol", Server_TLSOptions_TLSProtocol_name, Server_TLSOptions_TLSProtocol_value)
|
||||
proto.RegisterType((*Gateway)(nil), "istio.networking.v1alpha3.Gateway")
|
||||
proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.Gateway.SelectorEntry")
|
||||
proto.RegisterType((*Server)(nil), "istio.networking.v1alpha3.Server")
|
||||
proto.RegisterType((*Server_TLSOptions)(nil), "istio.networking.v1alpha3.Server.TLSOptions")
|
||||
proto.RegisterType((*Port)(nil), "istio.networking.v1alpha3.Port")
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.Server_TLSOptions_TLSmode", Server_TLSOptions_TLSmode_name, Server_TLSOptions_TLSmode_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.Server_TLSOptions_TLSProtocol", Server_TLSOptions_TLSProtocol_name, Server_TLSOptions_TLSProtocol_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/gateway.proto", fileDescriptor_067d98d02f84cc0b) }
|
||||
|
||||
var fileDescriptor_067d98d02f84cc0b = []byte{
|
||||
// 674 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x5d, 0x4f, 0x1a, 0x4d,
|
||||
0x14, 0x76, 0x01, 0xf9, 0x38, 0x88, 0xac, 0x13, 0xf3, 0x66, 0x5f, 0x2f, 0xfc, 0xa0, 0x69, 0x6a,
|
||||
0x9b, 0x76, 0x51, 0xe8, 0x85, 0xa9, 0x49, 0x13, 0xda, 0x18, 0x69, 0x8a, 0x42, 0x76, 0xc1, 0x8b,
|
||||
0xde, 0x6c, 0x86, 0x65, 0x94, 0xd1, 0x65, 0x67, 0x33, 0x33, 0xa0, 0xfc, 0xb3, 0xfe, 0x84, 0x5e,
|
||||
0xb6, 0xff, 0xa0, 0xb1, 0x7f, 0xa4, 0xd9, 0xd9, 0x41, 0xe8, 0x97, 0x8d, 0xe9, 0xdd, 0x39, 0xcf,
|
||||
0x3c, 0xcf, 0x73, 0xe6, 0x9c, 0xf9, 0x80, 0x9d, 0x90, 0xc8, 0x6b, 0xc6, 0xaf, 0x68, 0x78, 0x51,
|
||||
0x9d, 0xec, 0xe3, 0x20, 0x1a, 0xe2, 0x7a, 0xf5, 0x02, 0x4b, 0x72, 0x8d, 0xa7, 0x76, 0xc4, 0x99,
|
||||
0x64, 0xe8, 0x7f, 0x2a, 0x24, 0x65, 0xf6, 0x9c, 0x68, 0xcf, 0x88, 0x95, 0x2f, 0x06, 0xe4, 0x8e,
|
||||
0x13, 0x32, 0x3a, 0x84, 0x9c, 0x20, 0x7c, 0x42, 0xb8, 0xb0, 0x8c, 0xed, 0xf4, 0x6e, 0xb1, 0xb6,
|
||||
0x63, 0xff, 0x51, 0x68, 0xbb, 0x8a, 0xe9, 0xcc, 0x14, 0xa8, 0x05, 0x79, 0x41, 0x02, 0xe2, 0x4b,
|
||||
0xc6, 0xad, 0x94, 0x52, 0xef, 0xdd, 0xa3, 0xd6, 0x25, 0x6d, 0x57, 0x4b, 0x8e, 0x42, 0xc9, 0xa7,
|
||||
0xce, 0x9d, 0xc3, 0xc6, 0x21, 0x94, 0x7e, 0x58, 0x42, 0x26, 0xa4, 0xaf, 0xc8, 0xd4, 0x32, 0xb6,
|
||||
0x8d, 0xdd, 0x82, 0x13, 0x87, 0x68, 0x1d, 0x96, 0x27, 0x38, 0x18, 0x13, 0x2b, 0xa5, 0xb0, 0x24,
|
||||
0x79, 0x95, 0x3a, 0x30, 0x2a, 0x1f, 0x73, 0x90, 0x4d, 0xb6, 0x87, 0xea, 0x90, 0x89, 0x18, 0x97,
|
||||
0x4a, 0x57, 0xac, 0x6d, 0xdd, 0xb3, 0xa3, 0x0e, 0xe3, 0xd2, 0x51, 0x64, 0x84, 0x20, 0xd3, 0xa7,
|
||||
0xe1, 0xc0, 0xca, 0x28, 0x63, 0x15, 0xc7, 0xd5, 0x86, 0x4c, 0x48, 0xa1, 0x7a, 0x2b, 0x38, 0x49,
|
||||
0x82, 0x5e, 0x43, 0x5a, 0x06, 0xc2, 0x4a, 0x2b, 0xf7, 0xe7, 0x7f, 0x9d, 0x96, 0xdd, 0x6d, 0xb9,
|
||||
0xed, 0x48, 0x52, 0x16, 0x0a, 0x27, 0x16, 0xa2, 0xa7, 0x60, 0x0e, 0xc8, 0x39, 0x1e, 0x07, 0xd2,
|
||||
0x23, 0xe1, 0x20, 0x62, 0x34, 0x94, 0xd6, 0xb2, 0xaa, 0x5a, 0xd6, 0xf8, 0x91, 0x86, 0x37, 0xbe,
|
||||
0x2d, 0x03, 0xcc, 0xe5, 0xe8, 0x31, 0xac, 0x0e, 0xa5, 0x8c, 0x84, 0xc7, 0xc9, 0x80, 0x72, 0xe2,
|
||||
0x27, 0x2d, 0xe6, 0x9d, 0x92, 0x42, 0x1d, 0x0d, 0xa2, 0x26, 0x64, 0x46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x24, 0xa0, 0xab, 0xb0, 0x4a, 0x13,
|
||||
0x72, 0xfa, 0x6c, 0x51, 0x19, 0x8a, 0x9d, 0x86, 0xeb, 0x76, 0x9b, 0x4e, 0xbb, 0x77, 0xdc, 0x34,
|
||||
0x97, 0x10, 0x40, 0xd6, 0x7d, 0x77, 0xd2, 0x69, 0x1d, 0x99, 0x46, 0x1c, 0x9f, 0xf4, 0xba, 0xbd,
|
||||
0x46, 0xcb, 0x4c, 0xa1, 0x75, 0x30, 0x1b, 0xbd, 0x6e, 0xdb, 0x5b, 0x64, 0xa7, 0x2b, 0x6d, 0x28,
|
||||
0x2e, 0xec, 0x08, 0xad, 0x40, 0xbe, 0xdb, 0x72, 0xbd, 0x98, 0x68, 0x2e, 0xa1, 0xa2, 0x2a, 0x73,
|
||||
0xb6, 0xef, 0xed, 0x99, 0xc6, 0x3c, 0xd9, 0x37, 0x53, 0xf3, 0xa4, 0x66, 0xa6, 0xe7, 0x49, 0xdd,
|
||||
0xcc, 0x54, 0x4e, 0x21, 0x13, 0x3f, 0x44, 0xf4, 0x1f, 0x64, 0xc3, 0xf1, 0xa8, 0x4f, 0xb8, 0xba,
|
||||
0xd6, 0x25, 0x47, 0x67, 0x68, 0x03, 0xf2, 0xb3, 0x39, 0xea, 0x77, 0x7f, 0x97, 0xc7, 0xcf, 0x56,
|
||||
0xdd, 0x8e, 0xe4, 0x4e, 0xaa, 0xf8, 0x8d, 0xfd, 0xe9, 0x76, 0xd3, 0xf8, 0x7c, 0xbb, 0x69, 0x7c,
|
||||
0xbd, 0xdd, 0x34, 0x3e, 0x6c, 0x27, 0xa3, 0xa6, 0xac, 0x8a, 0x23, 0x5a, 0xfd, 0xcd, 0xbf, 0xd9,
|
||||
0xcf, 0x2a, 0xb7, 0xfa, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x11, 0xfe, 0x50, 0x55, 0x05,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Gateway) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
|
@ -609,6 +795,9 @@ func (m *Gateway) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += copy(dAtA[i:], v)
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -674,6 +863,9 @@ func (m *Server) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintGateway(dAtA, i, uint64(len(m.DefaultEndpoint)))
|
||||
i += copy(dAtA[i:], m.DefaultEndpoint)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -771,6 +963,9 @@ func (m *Server_TLSOptions) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintGateway(dAtA, i, uint64(len(m.CredentialName)))
|
||||
i += copy(dAtA[i:], m.CredentialName)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -806,6 +1001,9 @@ func (m *Port) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintGateway(dAtA, i, uint64(len(m.Name)))
|
||||
i += copy(dAtA[i:], m.Name)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -819,6 +1017,9 @@ func encodeVarintGateway(dAtA []byte, offset int, v uint64) int {
|
|||
return offset + 1
|
||||
}
|
||||
func (m *Gateway) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Servers) > 0 {
|
||||
|
|
@ -835,10 +1036,16 @@ func (m *Gateway) Size() (n int) {
|
|||
n += mapEntrySize + 1 + sovGateway(uint64(mapEntrySize))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Server) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Port != nil {
|
||||
|
|
@ -863,10 +1070,16 @@ func (m *Server) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovGateway(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Server_TLSOptions) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.HttpsRedirect {
|
||||
|
|
@ -909,10 +1122,16 @@ func (m *Server_TLSOptions) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovGateway(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *Port) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Number != 0 {
|
||||
|
|
@ -926,6 +1145,9 @@ func (m *Port) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovGateway(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -957,7 +1179,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -985,7 +1207,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -994,6 +1216,9 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1016,7 +1241,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1025,6 +1250,9 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1045,7 +1273,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1062,7 +1290,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1072,6 +1300,9 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1088,7 +1319,7 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapvalue |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1098,6 +1329,9 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
||||
if postStringIndexmapvalue < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postStringIndexmapvalue > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1129,9 +1363,13 @@ func (m *Gateway) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1156,7 +1394,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1184,7 +1422,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1193,6 +1431,9 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1217,7 +1458,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1227,6 +1468,9 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1246,7 +1490,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1255,6 +1499,9 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1279,7 +1526,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1289,6 +1536,9 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1308,7 +1558,7 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1318,6 +1568,9 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1332,9 +1585,13 @@ func (m *Server) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1359,7 +1616,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1387,7 +1644,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
v |= (int(b) & 0x7F) << shift
|
||||
v |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1407,7 +1664,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Mode |= (Server_TLSOptions_TLSmode(b) & 0x7F) << shift
|
||||
m.Mode |= Server_TLSOptions_TLSmode(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1426,7 +1683,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1436,6 +1693,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1455,7 +1715,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1465,6 +1725,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1484,7 +1747,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1494,6 +1757,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1513,7 +1779,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1523,6 +1789,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1542,7 +1811,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.MinProtocolVersion |= (Server_TLSOptions_TLSProtocol(b) & 0x7F) << shift
|
||||
m.MinProtocolVersion |= Server_TLSOptions_TLSProtocol(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1561,7 +1830,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.MaxProtocolVersion |= (Server_TLSOptions_TLSProtocol(b) & 0x7F) << shift
|
||||
m.MaxProtocolVersion |= Server_TLSOptions_TLSProtocol(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1580,7 +1849,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1590,6 +1859,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1609,7 +1881,7 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1619,6 +1891,9 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1633,9 +1908,13 @@ func (m *Server_TLSOptions) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1660,7 +1939,7 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1688,7 +1967,7 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Number |= (uint32(b) & 0x7F) << shift
|
||||
m.Number |= uint32(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1707,7 +1986,7 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1717,6 +1996,9 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1736,7 +2018,7 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1746,6 +2028,9 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthGateway
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1760,9 +2045,13 @@ func (m *Port) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthGateway
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1826,10 +2115,13 @@ func skipGateway(dAtA []byte) (n int, err error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
iNdEx += length
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthGateway
|
||||
}
|
||||
iNdEx += length
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthGateway
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 3:
|
||||
for {
|
||||
|
|
@ -1858,6 +2150,9 @@ func skipGateway(dAtA []byte) (n int, err error) {
|
|||
return 0, err
|
||||
}
|
||||
iNdEx = start + next
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthGateway
|
||||
}
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 4:
|
||||
|
|
@ -1876,52 +2171,3 @@ var (
|
|||
ErrInvalidLengthGateway = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowGateway = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/gateway.proto", fileDescriptorGateway) }
|
||||
|
||||
var fileDescriptorGateway = []byte{
|
||||
// 674 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xdb, 0x4e, 0xdb, 0x4c,
|
||||
0x10, 0xc6, 0x49, 0xc8, 0x61, 0x42, 0x88, 0x59, 0xa1, 0x5f, 0xfe, 0xb9, 0xe0, 0x90, 0xaa, 0x2a,
|
||||
0xad, 0x5a, 0x07, 0x92, 0x5e, 0xa0, 0x22, 0x55, 0x4a, 0x2b, 0x44, 0xaa, 0x06, 0x12, 0xd9, 0x09,
|
||||
0x17, 0xbd, 0xb1, 0x36, 0xce, 0x42, 0x16, 0x1c, 0xaf, 0xb5, 0xbb, 0x09, 0xe4, 0xcd, 0xfa, 0x08,
|
||||
0xbd, 0x6c, 0xdf, 0xa0, 0xa2, 0x2f, 0x52, 0xed, 0xda, 0x21, 0xe9, 0x89, 0x0a, 0xf5, 0x6e, 0xe6,
|
||||
0x9b, 0x99, 0x6f, 0x66, 0xbe, 0x59, 0x1b, 0x76, 0x42, 0x22, 0xaf, 0x19, 0xbf, 0xa2, 0xe1, 0x45,
|
||||
0x75, 0xb2, 0x8f, 0x83, 0x68, 0x88, 0xeb, 0xd5, 0x0b, 0x2c, 0xc9, 0x35, 0x9e, 0xda, 0x11, 0x67,
|
||||
0x92, 0xa1, 0xff, 0xa9, 0x90, 0x94, 0xd9, 0xf3, 0x44, 0x7b, 0x96, 0x58, 0xf9, 0x62, 0x40, 0xee,
|
||||
0x38, 0x4e, 0x46, 0x87, 0x90, 0x13, 0x84, 0x4f, 0x08, 0x17, 0x96, 0xb1, 0x9d, 0xde, 0x2d, 0xd6,
|
||||
0x76, 0xec, 0x3f, 0x16, 0xda, 0xae, 0xce, 0x74, 0x66, 0x15, 0xa8, 0x05, 0x79, 0x41, 0x02, 0xe2,
|
||||
0x4b, 0xc6, 0xad, 0x94, 0xae, 0xde, 0xbb, 0xa7, 0x3a, 0x69, 0x69, 0xbb, 0x49, 0xc9, 0x51, 0x28,
|
||||
0xf9, 0xd4, 0xb9, 0x63, 0xd8, 0x38, 0x84, 0xd2, 0x0f, 0x21, 0x64, 0x42, 0xfa, 0x8a, 0x4c, 0x2d,
|
||||
0x63, 0xdb, 0xd8, 0x2d, 0x38, 0xca, 0x44, 0xeb, 0xb0, 0x3c, 0xc1, 0xc1, 0x98, 0x58, 0x29, 0x8d,
|
||||
0xc5, 0xce, 0xab, 0xd4, 0x81, 0x51, 0xf9, 0x98, 0x83, 0x6c, 0x3c, 0x1e, 0xaa, 0x43, 0x26, 0x62,
|
||||
0x5c, 0xea, 0xba, 0x62, 0x6d, 0xeb, 0x9e, 0x89, 0x3a, 0x8c, 0x4b, 0x47, 0x27, 0x2b, 0xe6, 0x21,
|
||||
0x13, 0x52, 0xe8, 0x3d, 0x0a, 0x4e, 0xec, 0xa0, 0xd7, 0x90, 0x96, 0x81, 0xb0, 0xd2, 0x9a, 0xe9,
|
||||
0xf9, 0x5f, 0x95, 0xb1, 0xbb, 0x2d, 0xb7, 0x1d, 0x49, 0xca, 0x42, 0xe1, 0xa8, 0x42, 0x84, 0x20,
|
||||
0xd3, 0xa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0x30,
|
||||
0xbd, 0x74, 0xfc, 0x26, 0xb5, 0xfd, 0xc6, 0xfe, 0x74, 0xbb, 0x69, 0x7c, 0xbe, 0xdd, 0x34, 0xbe,
|
||||
0xde, 0x6e, 0x1a, 0x1f, 0xb6, 0xe3, 0x9b, 0x50, 0x56, 0xc5, 0x11, 0xad, 0xfe, 0xe6, 0xbf, 0xd9,
|
||||
0xcf, 0x6a, 0xb6, 0xfa, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xbd, 0x84, 0xff, 0x55, 0x05,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,17 +3,24 @@
|
|||
|
||||
package v1alpha3
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import io "io"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// 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
|
||||
|
|
@ -37,6 +44,7 @@ var ServiceEntry_Location_name = map[int32]string{
|
|||
0: "MESH_EXTERNAL",
|
||||
1: "MESH_INTERNAL",
|
||||
}
|
||||
|
||||
var ServiceEntry_Location_value = map[string]int32{
|
||||
"MESH_EXTERNAL": 0,
|
||||
"MESH_INTERNAL": 1,
|
||||
|
|
@ -45,8 +53,9 @@ var ServiceEntry_Location_value = map[string]int32{
|
|||
func (x ServiceEntry_Location) String() string {
|
||||
return proto.EnumName(ServiceEntry_Location_name, int32(x))
|
||||
}
|
||||
|
||||
func (ServiceEntry_Location) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorServiceEntry, []int{0, 0}
|
||||
return fileDescriptor_9220e0fa673c4bf8, []int{0, 0}
|
||||
}
|
||||
|
||||
// Resolution determines how the proxy will resolve the IP addresses of
|
||||
|
|
@ -86,6 +95,7 @@ var ServiceEntry_Resolution_name = map[int32]string{
|
|||
1: "STATIC",
|
||||
2: "DNS",
|
||||
}
|
||||
|
||||
var ServiceEntry_Resolution_value = map[string]int32{
|
||||
"NONE": 0,
|
||||
"STATIC": 1,
|
||||
|
|
@ -95,8 +105,9 @@ var ServiceEntry_Resolution_value = map[string]int32{
|
|||
func (x ServiceEntry_Resolution) String() string {
|
||||
return proto.EnumName(ServiceEntry_Resolution_name, int32(x))
|
||||
}
|
||||
|
||||
func (ServiceEntry_Resolution) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptorServiceEntry, []int{0, 1}
|
||||
return fileDescriptor_9220e0fa673c4bf8, []int{0, 1}
|
||||
}
|
||||
|
||||
// `ServiceEntry` enables adding additional entries into Istio's internal
|
||||
|
|
@ -412,7 +423,7 @@ type ServiceEntry struct {
|
|||
// protocols such as mongo/opaque TCP/HTTPS. In such scenarios, the
|
||||
// IP addresses specified in the Addresses field or the port will be used
|
||||
// to uniquely identify the destination.
|
||||
Hosts []string `protobuf:"bytes,1,rep,name=hosts" json:"hosts,omitempty"`
|
||||
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 services, the addresses field will be ignored and
|
||||
// the destination will be identified based on the HTTP Host/Authority
|
||||
|
|
@ -427,11 +438,11 @@ type ServiceEntry struct {
|
|||
// 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" json:"addresses,omitempty"`
|
||||
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" json:"ports,omitempty"`
|
||||
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"`
|
||||
|
|
@ -441,7 +452,7 @@ type ServiceEntry struct {
|
|||
// said port will be allowed (i.e. 0.0.0.0:<port>).
|
||||
Resolution ServiceEntry_Resolution `protobuf:"varint,5,opt,name=resolution,proto3,enum=istio.networking.v1alpha3.ServiceEntry_Resolution" json:"resolution,omitempty"`
|
||||
// One or more endpoints associated with the service.
|
||||
Endpoints []*ServiceEntry_Endpoint `protobuf:"bytes,6,rep,name=endpoints" json:"endpoints,omitempty"`
|
||||
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 used by sidecars, gateways and virtual services defined in
|
||||
// other namespaces. This feature provides a mechanism for service owners
|
||||
|
|
@ -458,19 +469,50 @@ type ServiceEntry struct {
|
|||
// 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.
|
||||
ExportTo []string `protobuf:"bytes,7,rep,name=export_to,json=exportTo" json:"export_to,omitempty"`
|
||||
ExportTo []string `protobuf:"bytes,7,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
|
||||
// The list of subject alternate names allowed for workloads 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" json:"subject_alt_names,omitempty"`
|
||||
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 (m *ServiceEntry) Reset() { *m = ServiceEntry{} }
|
||||
func (m *ServiceEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceEntry) ProtoMessage() {}
|
||||
func (*ServiceEntry) Descriptor() ([]byte, []int) { return fileDescriptorServiceEntry, []int{0} }
|
||||
func (m *ServiceEntry) Reset() { *m = ServiceEntry{} }
|
||||
func (m *ServiceEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceEntry) ProtoMessage() {}
|
||||
func (*ServiceEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9220e0fa673c4bf8, []int{0}
|
||||
}
|
||||
func (m *ServiceEntry) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *ServiceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_ServiceEntry.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *ServiceEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ServiceEntry.Merge(m, src)
|
||||
}
|
||||
func (m *ServiceEntry) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *ServiceEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ServiceEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ServiceEntry proto.InternalMessageInfo
|
||||
|
||||
func (m *ServiceEntry) GetHosts() []string {
|
||||
if m != nil {
|
||||
|
|
@ -539,9 +581,9 @@ type ServiceEntry_Endpoint struct {
|
|||
// 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 `protobuf:"bytes,2,rep,name=ports" json:"ports,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
Ports map[string]uint32 `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
// One or more labels associated with the endpoint.
|
||||
Labels map[string]string `protobuf:"bytes,3,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// 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
|
||||
|
|
@ -571,15 +613,44 @@ type ServiceEntry_Endpoint struct {
|
|||
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"`
|
||||
Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ServiceEntry_Endpoint) Reset() { *m = ServiceEntry_Endpoint{} }
|
||||
func (m *ServiceEntry_Endpoint) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceEntry_Endpoint) ProtoMessage() {}
|
||||
func (*ServiceEntry_Endpoint) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptorServiceEntry, []int{0, 0}
|
||||
return fileDescriptor_9220e0fa673c4bf8, []int{0, 0}
|
||||
}
|
||||
func (m *ServiceEntry_Endpoint) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *ServiceEntry_Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_ServiceEntry_Endpoint.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *ServiceEntry_Endpoint) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ServiceEntry_Endpoint.Merge(m, src)
|
||||
}
|
||||
func (m *ServiceEntry_Endpoint) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *ServiceEntry_Endpoint) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ServiceEntry_Endpoint.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ServiceEntry_Endpoint proto.InternalMessageInfo
|
||||
|
||||
func (m *ServiceEntry_Endpoint) GetAddress() string {
|
||||
if m != nil {
|
||||
|
|
@ -624,11 +695,55 @@ func (m *ServiceEntry_Endpoint) GetWeight() uint32 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ServiceEntry)(nil), "istio.networking.v1alpha3.ServiceEntry")
|
||||
proto.RegisterType((*ServiceEntry_Endpoint)(nil), "istio.networking.v1alpha3.ServiceEntry.Endpoint")
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.ServiceEntry_Location", ServiceEntry_Location_name, ServiceEntry_Location_value)
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.ServiceEntry_Resolution", ServiceEntry_Resolution_name, ServiceEntry_Resolution_value)
|
||||
proto.RegisterType((*ServiceEntry)(nil), "istio.networking.v1alpha3.ServiceEntry")
|
||||
proto.RegisterType((*ServiceEntry_Endpoint)(nil), "istio.networking.v1alpha3.ServiceEntry.Endpoint")
|
||||
proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.ServiceEntry.Endpoint.LabelsEntry")
|
||||
proto.RegisterMapType((map[string]uint32)(nil), "istio.networking.v1alpha3.ServiceEntry.Endpoint.PortsEntry")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("networking/v1alpha3/service_entry.proto", fileDescriptor_9220e0fa673c4bf8)
|
||||
}
|
||||
|
||||
var fileDescriptor_9220e0fa673c4bf8 = []byte{
|
||||
// 527 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdf, 0x8e, 0xd2, 0x40,
|
||||
0x14, 0xc6, 0x77, 0xe8, 0x52, 0xda, 0xb3, 0xae, 0xb2, 0x13, 0x63, 0x46, 0x34, 0x58, 0xb9, 0x91,
|
||||
0x68, 0x52, 0x56, 0x36, 0x26, 0xeb, 0x9f, 0x1b, 0xd4, 0x26, 0x6e, 0x82, 0x55, 0x07, 0x2e, 0x8c,
|
||||
0x37, 0x64, 0x80, 0x09, 0xd4, 0xad, 0x1d, 0xd2, 0x19, 0x40, 0xde, 0xc2, 0xa7, 0xf0, 0x59, 0xbc,
|
||||
0xf4, 0x11,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6a,
|
||||
0xcf, 0xe1, 0x60, 0xc7, 0xde, 0x65, 0x52, 0x77, 0x47, 0xda, 0x38, 0x06, 0xa7, 0xd8, 0x4a, 0x7c,
|
||||
0x04, 0x87, 0xef, 0x83, 0xde, 0xbb, 0x41, 0xf0, 0xb9, 0x1f, 0xd0, 0xb0, 0xd3, 0xad, 0xee, 0x6d,
|
||||
0x52, 0x67, 0xa1, 0x49, 0xa1, 0xc6, 0x13, 0x80, 0xed, 0xde, 0x61, 0x07, 0xf6, 0xc3, 0x0f, 0x61,
|
||||
0x50, 0xdd, 0xc3, 0x00, 0x76, 0xaf, 0xdf, 0xe9, 0x9f, 0xbd, 0xa9, 0x22, 0x5c, 0x01, 0xeb, 0x6d,
|
||||
0xd8, 0xab, 0x96, 0x5e, 0xfb, 0xbf, 0xd6, 0x75, 0xf4, 0x7b, 0x5d, 0x47, 0x7f, 0xd6, 0x75, 0xf4,
|
||||
0xc5, 0xcb, 0x9b, 0x1e, 0x89, 0x16, 0x9b, 0x45, 0xad, 0x0b, 0x9e, 0xf9, 0xd0, 0xd6, 0xef, 0xfb,
|
||||
0xe4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x53, 0xa9, 0xc0, 0x48, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *ServiceEntry) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
|
@ -738,6 +853,9 @@ func (m *ServiceEntry) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += copy(dAtA[i:], s)
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -812,6 +930,9 @@ func (m *ServiceEntry_Endpoint) MarshalTo(dAtA []byte) (int, error) {
|
|||
i++
|
||||
i = encodeVarintServiceEntry(dAtA, i, uint64(m.Weight))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -825,6 +946,9 @@ func encodeVarintServiceEntry(dAtA []byte, offset int, v uint64) int {
|
|||
return offset + 1
|
||||
}
|
||||
func (m *ServiceEntry) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Hosts) > 0 {
|
||||
|
|
@ -869,10 +993,16 @@ func (m *ServiceEntry) Size() (n int) {
|
|||
n += 1 + l + sovServiceEntry(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *ServiceEntry_Endpoint) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Address)
|
||||
|
|
@ -906,6 +1036,9 @@ func (m *ServiceEntry_Endpoint) Size() (n int) {
|
|||
if m.Weight != 0 {
|
||||
n += 1 + sovServiceEntry(uint64(m.Weight))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -937,7 +1070,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -965,7 +1098,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -975,6 +1108,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -994,7 +1130,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1004,6 +1140,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1023,7 +1162,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1032,6 +1171,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1054,7 +1196,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Location |= (ServiceEntry_Location(b) & 0x7F) << shift
|
||||
m.Location |= ServiceEntry_Location(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1073,7 +1215,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Resolution |= (ServiceEntry_Resolution(b) & 0x7F) << shift
|
||||
m.Resolution |= ServiceEntry_Resolution(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1092,7 +1234,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1101,6 +1243,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1123,7 +1268,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1133,6 +1278,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1152,7 +1300,7 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1162,6 +1310,9 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1176,9 +1327,13 @@ func (m *ServiceEntry) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1203,7 +1358,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1231,7 +1386,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1241,6 +1396,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1260,7 +1418,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1269,6 +1427,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1289,7 +1450,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1306,7 +1467,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1316,6 +1477,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1331,7 +1495,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
mapvalue |= (uint32(b) & 0x7F) << shift
|
||||
mapvalue |= uint32(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1367,7 +1531,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1376,6 +1540,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1396,7 +1563,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1413,7 +1580,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1423,6 +1590,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1439,7 +1609,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapvalue |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1449,6 +1619,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
||||
if postStringIndexmapvalue < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postStringIndexmapvalue > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1485,7 +1658,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1495,6 +1668,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1514,7 +1690,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1524,6 +1700,9 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1543,7 +1722,7 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Weight |= (uint32(b) & 0x7F) << shift
|
||||
m.Weight |= uint32(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1557,9 +1736,13 @@ func (m *ServiceEntry_Endpoint) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthServiceEntry
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1623,10 +1806,13 @@ func skipServiceEntry(dAtA []byte) (n int, err error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
iNdEx += length
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthServiceEntry
|
||||
}
|
||||
iNdEx += length
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthServiceEntry
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 3:
|
||||
for {
|
||||
|
|
@ -1655,6 +1841,9 @@ func skipServiceEntry(dAtA []byte) (n int, err error) {
|
|||
return 0, err
|
||||
}
|
||||
iNdEx = start + next
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthServiceEntry
|
||||
}
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 4:
|
||||
|
|
@ -1673,42 +1862,3 @@ var (
|
|||
ErrInvalidLengthServiceEntry = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowServiceEntry = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/service_entry.proto", fileDescriptorServiceEntry) }
|
||||
|
||||
var fileDescriptorServiceEntry = []byte{
|
||||
// 527 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdf, 0x8e, 0xd2, 0x40,
|
||||
0x14, 0xc6, 0x77, 0xe8, 0x52, 0xda, 0xb3, 0xae, 0xb2, 0x13, 0x63, 0x46, 0x34, 0x58, 0xb9, 0x91,
|
||||
0x68, 0x52, 0x56, 0x36, 0x26, 0xeb, 0x9f, 0x1b, 0xd4, 0x26, 0x6e, 0x82, 0x55, 0x07, 0x2e, 0x8c,
|
||||
0x37, 0x64, 0x80, 0x09, 0xd4, 0xad, 0x1d, 0xd2, 0x19, 0x40, 0xde, 0xc2, 0xa7, 0xf0, 0x59, 0xbc,
|
||||
0xf4, 0x11, 0x0c, 0x4f, 0x62, 0x3a, 0x9d, 0x02, 0x17, 0xab, 0xbb, 0x7b, 0xd7, 0x73, 0xe6, 0x7c,
|
||||
0xbf, 0x7e, 0x73, 0xce, 0x19, 0x78, 0x94, 0x70, 0xb5, 0x14, 0xe9, 0x79, 0x94, 0x4c, 0x5a, 0x8b,
|
||||
0xa7, 0x2c, 0x9e, 0x4d, 0xd9, 0x49, 0x4b, 0xf2, 0x74, 0x11, 0x8d, 0xf8, 0x80, 0x27, 0x2a, 0x5d,
|
||||
0xf9, 0xb3, 0x54, 0x28, 0x81, 0xef, 0x46, 0x52, 0x45, 0xc2, 0xdf, 0x96, 0xfb, 0x45, 0x79, 0xed,
|
||||
0xe1, 0x45, 0x8c, 0x09, 0x53, 0x7c, 0xc9, 0x8c, 0xba, 0xf1, 0xb3, 0x02, 0x37, 0x7a, 0x39, 0x35,
|
||||
0xc8, 0xa0, 0xf8, 0x36, 0x94, 0xa7, 0x42, 0x2a, 0x49, 0x90, 0x67, 0x35, 0x5d, 0x9a, 0x07, 0xf8,
|
||||
0x3e, 0xb8, 0x6c, 0x3c, 0x4e, 0xb9, 0x94, 0x5c, 0x92, 0x92, 0x3e, 0xd9, 0x26, 0xf0, 0x33, 0x28,
|
||||
0xcf, 0x44, 0xaa, 0x24, 0xb1, 0x3c, 0xab, 0x79, 0xd0, 0x7e, 0xe0, 0xff, 0xd3, 0x92, 0xff, 0x51,
|
||||
0xa4, 0x8a, 0xe6, 0xd5, 0xb8, 0x0b, 0x4e, 0x2c, 0x46, 0x4c, 0x45, 0x22, 0x21, 0xfb, 0x1e, 0x6a,
|
||||
0xde, 0x6c, 0x1f, 0xff, 0x47, 0xb9, 0xeb, 0xd2, 0xef, 0x1a, 0x1d, 0xdd, 0x10, 0x30, 0x05, 0x48,
|
||||
0xb9, 0x14, 0xf1, 0x5c, 0xf3, 0xca, 0x9a, 0xd7, 0xbe, 0x2a, 0x8f, 0x6e, 0x94, 0x74, 0x87, 0x82,
|
||||
0x43, 0x70, 0x79, 0x32, 0x9e, 0x89, 0x28, 0x51, 0x92, 0xd8, 0xfa, 0x72, 0x57,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, 0x06, 0xa7, 0xd8, 0x4a, 0x7c,
|
||||
0x04, 0x87, 0xef, 0x83, 0xde, 0xbb, 0x41, 0xf0, 0xb9, 0x1f, 0xd0, 0xb0, 0xd3, 0xad, 0xee, 0x6d,
|
||||
0x52, 0x67, 0xa1, 0x49, 0xa1, 0xc6, 0x13, 0x80, 0xed, 0xde, 0x61, 0x07, 0xf6, 0xc3, 0x0f, 0x61,
|
||||
0x50, 0xdd, 0xc3, 0x00, 0x76, 0xaf, 0xdf, 0xe9, 0x9f, 0xbd, 0xa9, 0x22, 0x5c, 0x01, 0xeb, 0x6d,
|
||||
0xd8, 0xab, 0x96, 0x5e, 0xfb, 0xbf, 0xd6, 0x75, 0xf4, 0x7b, 0x5d, 0x47, 0x7f, 0xd6, 0x75, 0xf4,
|
||||
0xc5, 0xcb, 0x9b, 0x1e, 0x89, 0x16, 0x9b, 0x45, 0xad, 0x0b, 0x9e, 0xf9, 0xd0, 0xd6, 0xef, 0xfb,
|
||||
0xe4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x53, 0xa9, 0xc0, 0x48, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,17 +3,24 @@
|
|||
|
||||
package v1alpha3
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import io "io"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// CaptureMode describes how traffic to a listener is expected to be
|
||||
// captured. Applicable only when the listener is bound to an IP.
|
||||
type CaptureMode int32
|
||||
|
|
@ -36,6 +43,7 @@ var CaptureMode_name = map[int32]string{
|
|||
1: "IPTABLES",
|
||||
2: "NONE",
|
||||
}
|
||||
|
||||
var CaptureMode_value = map[string]int32{
|
||||
"DEFAULT": 0,
|
||||
"IPTABLES": 1,
|
||||
|
|
@ -45,7 +53,10 @@ var CaptureMode_value = map[string]int32{
|
|||
func (x CaptureMode) String() string {
|
||||
return proto.EnumName(CaptureMode_name, int32(x))
|
||||
}
|
||||
func (CaptureMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorSidecar, []int{0} }
|
||||
|
||||
func (CaptureMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5c11342f04ad3d1, []int{0}
|
||||
}
|
||||
|
||||
// `Sidecar` describes the configuration of the sidecar proxy that mediates
|
||||
// inbound and outbound communication to the workload it is attached to. By
|
||||
|
|
@ -129,24 +140,55 @@ type Sidecar struct {
|
|||
// sidecar configuration should be applied. If omitted, the sidecar
|
||||
// configuration will be applied to all workloads in the same config
|
||||
// namespace.
|
||||
WorkloadSelector *WorkloadSelector `protobuf:"bytes,1,opt,name=workload_selector,json=workloadSelector" json:"workload_selector,omitempty"`
|
||||
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. If omitted, Istio will
|
||||
// autoconfigure the sidecar based on the information about the workload
|
||||
// obtained from the orchestration platform (e.g., exposed ports, services,
|
||||
// etc.).
|
||||
Ingress []*IstioIngressListener `protobuf:"bytes,2,rep,name=ingress" json:"ingress,omitempty"`
|
||||
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 to other services in the
|
||||
// mesh. If omitted, Istio will autoconfigure 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" json:"egress,omitempty"`
|
||||
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 (m *Sidecar) Reset() { *m = Sidecar{} }
|
||||
func (m *Sidecar) String() string { return proto.CompactTextString(m) }
|
||||
func (*Sidecar) ProtoMessage() {}
|
||||
func (*Sidecar) Descriptor() ([]byte, []int) { return fileDescriptorSidecar, []int{0} }
|
||||
func (m *Sidecar) Reset() { *m = Sidecar{} }
|
||||
func (m *Sidecar) String() string { return proto.CompactTextString(m) }
|
||||
func (*Sidecar) ProtoMessage() {}
|
||||
func (*Sidecar) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5c11342f04ad3d1, []int{0}
|
||||
}
|
||||
func (m *Sidecar) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Sidecar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Sidecar.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *Sidecar) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Sidecar.Merge(m, src)
|
||||
}
|
||||
func (m *Sidecar) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Sidecar) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Sidecar.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Sidecar proto.InternalMessageInfo
|
||||
|
||||
func (m *Sidecar) GetWorkloadSelector() *WorkloadSelector {
|
||||
if m != nil {
|
||||
|
|
@ -175,7 +217,7 @@ 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" json:"port,omitempty"`
|
||||
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 autoconfigure the defaults
|
||||
|
|
@ -191,13 +233,44 @@ type IstioIngressListener struct {
|
|||
// redirect traffic arriving at the bind point on the sidecar to a port
|
||||
// or unix domain socket where the application workload 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"`
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *IstioIngressListener) Reset() { *m = IstioIngressListener{} }
|
||||
func (m *IstioIngressListener) String() string { return proto.CompactTextString(m) }
|
||||
func (*IstioIngressListener) ProtoMessage() {}
|
||||
func (*IstioIngressListener) Descriptor() ([]byte, []int) { return fileDescriptorSidecar, []int{1} }
|
||||
func (m *IstioIngressListener) Reset() { *m = IstioIngressListener{} }
|
||||
func (m *IstioIngressListener) String() string { return proto.CompactTextString(m) }
|
||||
func (*IstioIngressListener) ProtoMessage() {}
|
||||
func (*IstioIngressListener) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5c11342f04ad3d1, []int{1}
|
||||
}
|
||||
func (m *IstioIngressListener) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *IstioIngressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_IstioIngressListener.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *IstioIngressListener) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_IstioIngressListener.Merge(m, src)
|
||||
}
|
||||
func (m *IstioIngressListener) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *IstioIngressListener) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_IstioIngressListener.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_IstioIngressListener proto.InternalMessageInfo
|
||||
|
||||
func (m *IstioIngressListener) GetPort() *Port {
|
||||
if m != nil {
|
||||
|
|
@ -239,7 +312,7 @@ type IstioEgressListener struct {
|
|||
// 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" json:"port,omitempty"`
|
||||
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
|
||||
|
|
@ -270,13 +343,44 @@ type IstioEgressListener struct {
|
|||
// namespace can be imported. Private services/configuration will not be
|
||||
// imported. Refer to the scope setting associated with VirtualService,
|
||||
// DestinationRule, ServiceEntry, etc. for details.
|
||||
Hosts []string `protobuf:"bytes,4,rep,name=hosts" json:"hosts,omitempty"`
|
||||
Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *IstioEgressListener) Reset() { *m = IstioEgressListener{} }
|
||||
func (m *IstioEgressListener) String() string { return proto.CompactTextString(m) }
|
||||
func (*IstioEgressListener) ProtoMessage() {}
|
||||
func (*IstioEgressListener) Descriptor() ([]byte, []int) { return fileDescriptorSidecar, []int{2} }
|
||||
func (m *IstioEgressListener) Reset() { *m = IstioEgressListener{} }
|
||||
func (m *IstioEgressListener) String() string { return proto.CompactTextString(m) }
|
||||
func (*IstioEgressListener) ProtoMessage() {}
|
||||
func (*IstioEgressListener) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5c11342f04ad3d1, []int{2}
|
||||
}
|
||||
func (m *IstioEgressListener) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *IstioEgressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_IstioEgressListener.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *IstioEgressListener) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_IstioEgressListener.Merge(m, src)
|
||||
}
|
||||
func (m *IstioEgressListener) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *IstioEgressListener) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_IstioEgressListener.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_IstioEgressListener proto.InternalMessageInfo
|
||||
|
||||
func (m *IstioEgressListener) GetPort() *Port {
|
||||
if m != nil {
|
||||
|
|
@ -318,13 +422,44 @@ type WorkloadSelector struct {
|
|||
// 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 `protobuf:"bytes,1,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WorkloadSelector) Reset() { *m = WorkloadSelector{} }
|
||||
func (m *WorkloadSelector) String() string { return proto.CompactTextString(m) }
|
||||
func (*WorkloadSelector) ProtoMessage() {}
|
||||
func (*WorkloadSelector) Descriptor() ([]byte, []int) { return fileDescriptorSidecar, []int{3} }
|
||||
func (m *WorkloadSelector) Reset() { *m = WorkloadSelector{} }
|
||||
func (m *WorkloadSelector) String() string { return proto.CompactTextString(m) }
|
||||
func (*WorkloadSelector) ProtoMessage() {}
|
||||
func (*WorkloadSelector) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5c11342f04ad3d1, []int{3}
|
||||
}
|
||||
func (m *WorkloadSelector) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *WorkloadSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_WorkloadSelector.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *WorkloadSelector) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WorkloadSelector.Merge(m, src)
|
||||
}
|
||||
func (m *WorkloadSelector) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *WorkloadSelector) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WorkloadSelector.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WorkloadSelector proto.InternalMessageInfo
|
||||
|
||||
func (m *WorkloadSelector) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
|
|
@ -334,12 +469,50 @@ func (m *WorkloadSelector) GetLabels() map[string]string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.CaptureMode", CaptureMode_name, CaptureMode_value)
|
||||
proto.RegisterType((*Sidecar)(nil), "istio.networking.v1alpha3.Sidecar")
|
||||
proto.RegisterType((*IstioIngressListener)(nil), "istio.networking.v1alpha3.IstioIngressListener")
|
||||
proto.RegisterType((*IstioEgressListener)(nil), "istio.networking.v1alpha3.IstioEgressListener")
|
||||
proto.RegisterType((*WorkloadSelector)(nil), "istio.networking.v1alpha3.WorkloadSelector")
|
||||
proto.RegisterEnum("istio.networking.v1alpha3.CaptureMode", CaptureMode_name, CaptureMode_value)
|
||||
proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.WorkloadSelector.LabelsEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/sidecar.proto", fileDescriptor_b5c11342f04ad3d1) }
|
||||
|
||||
var fileDescriptor_b5c11342f04ad3d1 = []byte{
|
||||
// 465 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0x71, 0x13, 0xda, 0xf5, 0xcd, 0x04, 0xc1, 0xec, 0x10, 0x76, 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 0xe5, 0x33, 0x34, 0xe1, 0xeb, 0xe2, 0x65, 0xe3,
|
||||
0x39, 0x79, 0xdc, 0x03, 0xe7, 0x4a, 0x24, 0xea, 0x40, 0xeb, 0x75, 0x7c, 0xb0, 0xf7, 0x76, 0x70,
|
||||
0xe2, 0xde, 0xa0, 0xdb, 0xb0, 0x95, 0x1c, 0x9f, 0xec, 0xed, 0x0f, 0xe2, 0xa1, 0x4b, 0xe8, 0x16,
|
||||
0xd8, 0x87, 0x47, 0x87, 0xb1, 0xdb, 0xd8, 0x0f, 0xbf, 0x2e, 0x3b, 0xe4, 0xdb, 0xb2, 0x43, 0x7e,
|
||||
0x2c, 0x3b, 0xe4, 0x83, 0x5f, 0x6f, 0x9e, 0x8b, 0x88, 0x95, 0x3c, 0x5a, 0xf3, 0x4a, 0xc7, 0xcd,
|
||||
0xea, 0x79, 0xf6, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x32, 0x9f, 0xa8, 0x1c, 0x01, 0x04, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
||||
func (m *Sidecar) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
|
@ -389,6 +562,9 @@ func (m *Sidecar) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += n
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -434,6 +610,9 @@ func (m *IstioIngressListener) MarshalTo(dAtA []byte) (int, error) {
|
|||
i = encodeVarintSidecar(dAtA, i, uint64(len(m.DefaultEndpoint)))
|
||||
i += copy(dAtA[i:], m.DefaultEndpoint)
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -488,6 +667,9 @@ func (m *IstioEgressListener) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += copy(dAtA[i:], s)
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -523,6 +705,9 @@ func (m *WorkloadSelector) MarshalTo(dAtA []byte) (int, error) {
|
|||
i += copy(dAtA[i:], v)
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
|
|
@ -536,6 +721,9 @@ func encodeVarintSidecar(dAtA []byte, offset int, v uint64) int {
|
|||
return offset + 1
|
||||
}
|
||||
func (m *Sidecar) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.WorkloadSelector != nil {
|
||||
|
|
@ -554,10 +742,16 @@ func (m *Sidecar) Size() (n int) {
|
|||
n += 1 + l + sovSidecar(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *IstioIngressListener) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Port != nil {
|
||||
|
|
@ -575,10 +769,16 @@ func (m *IstioIngressListener) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovSidecar(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *IstioEgressListener) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Port != nil {
|
||||
|
|
@ -598,10 +798,16 @@ func (m *IstioEgressListener) Size() (n int) {
|
|||
n += 1 + l + sovSidecar(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *WorkloadSelector) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Labels) > 0 {
|
||||
|
|
@ -612,6 +818,9 @@ func (m *WorkloadSelector) Size() (n int) {
|
|||
n += mapEntrySize + 1 + sovSidecar(uint64(mapEntrySize))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
@ -643,7 +852,7 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -671,7 +880,7 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -680,6 +889,9 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -704,7 +916,7 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -713,6 +925,9 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -735,7 +950,7 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -744,6 +959,9 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -761,9 +979,13 @@ func (m *Sidecar) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -788,7 +1010,7 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -816,7 +1038,7 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -825,6 +1047,9 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -849,7 +1074,7 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -859,6 +1084,9 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -878,7 +1106,7 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.CaptureMode |= (CaptureMode(b) & 0x7F) << shift
|
||||
m.CaptureMode |= CaptureMode(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -897,7 +1125,7 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -907,6 +1135,9 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -921,9 +1152,13 @@ func (m *IstioIngressListener) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -948,7 +1183,7 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -976,7 +1211,7 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -985,6 +1220,9 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1009,7 +1247,7 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1019,6 +1257,9 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1038,7 +1279,7 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.CaptureMode |= (CaptureMode(b) & 0x7F) << shift
|
||||
m.CaptureMode |= CaptureMode(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1057,7 +1298,7 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= (uint64(b) & 0x7F) << shift
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1067,6 +1308,9 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1081,9 +1325,13 @@ func (m *IstioEgressListener) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1108,7 +1356,7 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1136,7 +1384,7 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= (int(b) & 0x7F) << shift
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1145,6 +1393,9 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1165,7 +1416,7 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= (uint64(b) & 0x7F) << shift
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1182,7 +1433,7 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1192,6 +1443,9 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1208,7 +1462,7 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
||||
stringLenmapvalue |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
|
@ -1218,6 +1472,9 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
||||
if postStringIndexmapvalue < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if postStringIndexmapvalue > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
|
|
@ -1249,9 +1506,13 @@ func (m *WorkloadSelector) Unmarshal(dAtA []byte) error {
|
|||
if skippy < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSidecar
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
|
@ -1315,10 +1576,13 @@ func skipSidecar(dAtA []byte) (n int, err error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
iNdEx += length
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthSidecar
|
||||
}
|
||||
iNdEx += length
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthSidecar
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 3:
|
||||
for {
|
||||
|
|
@ -1347,6 +1611,9 @@ func skipSidecar(dAtA []byte) (n int, err error) {
|
|||
return 0, err
|
||||
}
|
||||
iNdEx = start + next
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthSidecar
|
||||
}
|
||||
}
|
||||
return iNdEx, nil
|
||||
case 4:
|
||||
|
|
@ -1365,39 +1632,3 @@ var (
|
|||
ErrInvalidLengthSidecar = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowSidecar = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("networking/v1alpha3/sidecar.proto", fileDescriptorSidecar) }
|
||||
|
||||
var fileDescriptorSidecar = []byte{
|
||||
// 465 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0x71, 0x13, 0xda, 0xf5, 0xcd, 0x04, 0xc1, 0xec, 0x10, 0x76, 0x28, 0xa1, 0x07, 0x14,
|
||||
0x40, 0x4a, 0x44, 0x7b, 0xe0, 0xcf, 0x6d, 0x83, 0x4c, 0x8a, 0x54, 0xb6, 0x29, 0x1d, 0x02, 0x71,
|
||||
0xa9, 0xdc, 0xe6, 0xa5, 0xb3, 0x16, 0xe2, 0xc8, 0x76, 0x57, 0xf5, 0xcb, 0xf0, 0x55, 0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0f, 0xe2, 0xa1, 0x4b, 0xe8, 0x16,
|
||||
0xd8, 0x87, 0x47, 0x87, 0xb1, 0xdb, 0xd8, 0x0f, 0xbf, 0x2e, 0x3b, 0xe4, 0xdb, 0xb2, 0x43, 0x7e,
|
||||
0x2c, 0x3b, 0xe4, 0x83, 0x5f, 0x6f, 0x9e, 0x8b, 0x88, 0x95, 0x3c, 0x5a, 0xf3, 0x4a, 0xc7, 0xcd,
|
||||
0xea, 0x79, 0xf6, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x32, 0x9f, 0xa8, 0x1c, 0x01, 0x04, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -8,7 +8,7 @@ RUN apk update && \
|
|||
|
||||
FROM gcr.io/istio-testing/protolock:2018-10-23 as protolock
|
||||
|
||||
FROM gcr.io/istio-testing/protoc:2018-06-12
|
||||
FROM gcr.io/istio-testing/protoc:2019-02-23
|
||||
|
||||
COPY --from=protolock \
|
||||
/usr/bin/protolock \
|
||||
|
|
|
|||
Loading…
Reference in New Issue