From 701ea118bc52030118bd408681b8592a03536202 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:34:53 +0000 Subject: [PATCH] fix(deps): update module github.com/cilium/cilium to v1.17.0-rc.0 Signed-off-by: renovate[bot] --- go.mod | 2 +- go.sum | 8 +- vendor/github.com/cilium/cilium/AUTHORS | 5 +- .../cilium/cilium/api/v1/flow/flow.pb.go | 559 ++++----- .../api/v1/models/bgp_graceful_restart.go | 2 + .../cilium/api/v1/models/bgp_peer_families.go | 2 + .../cilium/api/v1/models/c_id_r_policy.go | 2 + .../api/v1/models/c_n_i_chaining_status.go | 2 + .../cilium/api/v1/models/clock_source.go | 2 + .../cilium/api/v1/models/endpoint_policy.go | 2 + .../cilium/api/v1/models/identity_range.go | 2 + .../cilium/api/v1/models/ip_v4_big_tcp.go | 2 + .../cilium/api/v1/models/ip_v6_big_tcp.go | 2 + .../api/v1/models/kube_proxy_replacement.go | 32 +- .../cilium/cilium/api/v1/models/l4_policy.go | 2 + .../cilium/api/v1/models/policy_rule.go | 2 + .../cilium/cilium/api/v1/models/routing.go | 2 + .../cilium/cilium/api/v1/models/srv6.go | 2 + .../api/v1/models/zz_generated.deepcopy.go | 442 +++++++ .../cilium/api/v1/observer/observer.pb.go | 210 ++-- .../api/v1/observer/observer_grpc.pb.go | 2 +- .../cilium/cilium/api/v1/relay/relay.pb.go | 13 +- .../cilium/cilium-cli/cli/connectivity.go | 1 - .../connectivity/builder/builder.go | 4 +- ...ient_egress_l7_tls_deny_without_headers.go | 2 +- .../builder/client_egress_l7_tls_headers.go | 4 +- .../connectivity/builder/to_fqdns.go | 11 +- .../cilium-cli/connectivity/check/check.go | 1 - .../connectivity/check/deployment.go | 6 - .../cilium-cli/connectivity/check/test.go | 19 - .../cilium-cli/connectivity/tests/errors.go | 32 +- .../cilium-cli/connectivity/tests/service.go | 8 - .../cilium-cli/connectivity/tests/world.go | 7 +- .../cilium/cilium-cli/defaults/defaults.go | 2 +- .../cilium/cilium/cilium-cli/install/aws.go | 70 ++ .../cilium/cilium/cilium-cli/install/helm.go | 10 +- .../cilium/cilium-cli/install/install.go | 10 + .../cilium/pkg/bgpv1/agent/controller.go | 3 - .../cilium/cilium/pkg/bgpv1/types/bgp.go | 14 - .../cilium/pkg/bgpv1/types/fake_router.go | 14 +- .../pkg/datapath/linux/probes/probes.go | 2 + .../cilium/cilium/pkg/defaults/defaults.go | 7 +- .../cilium/cilium/pkg/envoy/resource/envoy.go | 10 - .../cilium/pkg/k8s/apis/cilium.io/register.go | 2 +- .../v2alpha1/bgp_node_override_types.go | 7 - .../v2alpha1/zz_generated.deepcopy.go | 5 - .../v2alpha1/zz_generated.deepequal.go | 8 - .../cilium/cilium/pkg/metrics/metrics.go | 16 - .../cilium/cilium/pkg/option/config.go | 15 +- .../cilium/pkg/policy/api/rule_validation.go | 324 ++---- .../cilium/cilium/pkg/policy/mapstate.go | 14 +- .../cilium/cilium/pkg/policy/repository.go | 16 +- .../cilium/cilium/pkg/policy/resolve.go | 12 - .../proto_message_extraction/v3/config.pb.go | 526 --------- .../v3/config.pb.validate.go | 349 ------ .../generic_proxy/action/v3/action.pb.go | 334 ------ .../action/v3/action.pb.validate.go | 341 ------ .../generic_proxy/codecs/dubbo/v3/dubbo.pb.go | 163 --- .../codecs/dubbo/v3/dubbo.pb.validate.go | 136 --- .../generic_proxy/codecs/http1/v3/http1.pb.go | 221 ---- .../codecs/http1/v3/http1.pb.validate.go | 194 ---- .../generic_proxy/matcher/v3/matcher.pb.go | 653 ----------- .../matcher/v3/matcher.pb.validate.go | 1027 ----------------- .../generic_proxy/router/v3/router.pb.go | 196 ---- .../router/v3/router.pb.validate.go | 136 --- .../generic_proxy/v3/generic_proxy.pb.go | 415 ------- .../v3/generic_proxy.pb.validate.go | 533 --------- .../network/generic_proxy/v3/route.pb.go | 362 ------ .../generic_proxy/v3/route.pb.validate.go | 373 ------ .../input_matchers/metadata/v3/metadata.pb.go | 190 --- .../metadata/v3/metadata.pb.validate.go | 177 --- .../cpu_utilization/v3/cpu_utilization.pb.go | 161 --- .../v3/cpu_utilization.pb.validate.go | 138 --- .../redis_auth/v3/redis_external_auth.pb.go | 377 ------ .../v3/redis_external_auth.pb.validate.go | 306 ----- vendor/modules.txt | 12 +- 76 files changed, 1132 insertions(+), 8143 deletions(-) delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.validate.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.go delete mode 100644 vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.validate.go diff --git a/go.mod b/go.mod index 1b5c5aa0d1..43a0ab8b96 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ go 1.23.0 // as to why we are using a private fork. replace sigs.k8s.io/controller-tools => github.com/cilium/controller-tools v0.16.5-1 -require github.com/cilium/cilium v1.17.0-pre.3.0.20250108154004-47bb433883b2 +require github.com/cilium/cilium v1.17.0-rc.0 require ( cel.dev/expr v0.18.0 // indirect diff --git a/go.sum b/go.sum index 84a4374c58..1050f58a45 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNS github.com/chai2010/gettext-go v1.0.2/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA= github.com/cilium/charts v0.0.0-20241218153829-9518b30a2027 h1:DffBrEg57RLbc1jzajDDRYgTqWw1gr02+sMnzQp8yks= github.com/cilium/charts v0.0.0-20241218153829-9518b30a2027/go.mod h1:M3C9VOlFvRzuV+a01t07Tw4uFLSfkCH3L542IWjf6BU= -github.com/cilium/cilium v1.17.0-pre.3.0.20250108154004-47bb433883b2 h1:OchA13nVom6cJbv3JKt2R1Qmg0CY3uw5e4llxDusxYA= -github.com/cilium/cilium v1.17.0-pre.3.0.20250108154004-47bb433883b2/go.mod h1:UTaLU297951gY5wxCGShvANCLv31z3U9Tm62creoYpo= +github.com/cilium/cilium v1.17.0-rc.0 h1:hZOr+6rqHJ06vdjTZ/q1tOln2QxPSUQPdHrqVdqvbrg= +github.com/cilium/cilium v1.17.0-rc.0/go.mod h1:Z9TPDoKIIUfq8/U6KqGBFLYHPVbEXxHGdV1n4+FAZhw= github.com/cilium/ebpf v0.17.1 h1:G8mzU81R2JA1nE5/8SRubzqvBMmAmri2VL8BIZPWvV0= github.com/cilium/ebpf v0.17.1/go.mod h1:vay2FaYSmIlv3r8dNACd4mW/OCaZLJKJOo+IHBvCIO8= github.com/cilium/hive v0.0.0-20241213121623-605c1412b9b3 h1:RfmUH1ouzj0LzORYJRhp43e1rlGpx6GNv4NIRUakU2w= @@ -312,8 +312,8 @@ github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxU github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/mdlayher/netlink v1.7.2 h1:/UtM3ofJap7Vl4QWCPDGXY8d3GIY2UGSDbK+QWmY8/g= github.com/mdlayher/netlink v1.7.2/go.mod h1:xraEF7uJbxLhc5fpHL4cPe221LI2bdttWlU+ZGLfQSw= -github.com/mdlayher/socket v0.5.1 h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos= -github.com/mdlayher/socket v0.5.1/go.mod h1:TjPLHI1UgwEv5J1B5q0zTZq12A/6H7nKmtTanQE37IQ= +github.com/mdlayher/socket v0.4.1 h1:eM9y2/jlbs1M615oshPQOHZzj6R6wMT7bX5NPiQvn2U= +github.com/mdlayher/socket v0.4.1/go.mod h1:cAqeGjoufqdxWkD7DkpyS+wcefOtmu5OQ8KuoJGIReA= github.com/miekg/dns v1.1.62 h1:cN8OuEF1/x5Rq6Np+h1epln8OiyPWV+lROx9LxcGgIQ= github.com/miekg/dns v1.1.62/go.mod h1:mvDlcItzm+br7MToIKqkglaGhlFMHJ9DTNNWONWXbNQ= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= diff --git a/vendor/github.com/cilium/cilium/AUTHORS b/vendor/github.com/cilium/cilium/AUTHORS index e60872bc03..4ae3420936 100644 --- a/vendor/github.com/cilium/cilium/AUTHORS +++ b/vendor/github.com/cilium/cilium/AUTHORS @@ -335,6 +335,7 @@ guangwu guoguangwug@gmail.com Guilherme Oki guilherme.oki@wildlifestudios.com Guilherme Souza 101073+guilhermef@users.noreply.github.com Gunju Kim gjkim042@gmail.com +Gyutae Bae gyu.8ae@gmail.com hacktivist123 akintayoshedrack@gmail.com Hadrien Patte hadrien.patte@datadoghq.com Haitao Li lihaitao@gmail.com @@ -751,7 +752,7 @@ Richard Tweed RichardoC@users.noreply.github.com Ricky Ho horicky78@gmail.com Rio Kierkels riokierkels@gmail.com Robin Elfrink robin@15augustus.nl -Robin Gögge r.goegge@isovalent.com +Robin Gögge r.goegge@gmail.com Robin Hahling robin.hahling@gw-computing.net Rob Scott robertjscott@google.com Rocky Chen 40374064+rockc2020@users.noreply.github.com @@ -764,6 +765,7 @@ Ronald van Zantvoort the.loeki@gmail.com Ross Guarino rssguar@gmail.com roykharman roykharman@gmail.com Rudrakh Panigrahi rudrakh97@gmail.com +Rui Cao caorui.io@bytedance.com Rui Chen rui@chenrui.dev Rui Gu rui@covalent.io Rushikesh Butley rushikeshbutley@gmail.com @@ -903,6 +905,7 @@ Valas Valancius valas@google.com Vance Li vanceli@tencent.com Vanilla osu_Vanilla@126.com Vasu Dasari vasudasari@google.com +verysonglaa 39988258+verysonglaa@users.noreply.github.com Vigneshwaren Sunder vickymailed@gmail.com Viktor Kurchenko viktor.kurchenko@isovalent.com Viktor Kuzmin kvaster@gmail.com diff --git a/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go b/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go index 199c59e375..a514552de4 100644 --- a/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go +++ b/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.1 -// protoc v5.29.2 +// protoc-gen-go v1.35.2 +// protoc v5.29.1 // source: flow/flow.proto package flow @@ -1370,8 +1370,11 @@ func (DebugEventType) EnumDescriptor() ([]byte, []int) { } type Flow struct { - state protoimpl.MessageState `protogen:"open.v1"` - Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // uuid is a universally unique identifier for this flow. Uuid string `protobuf:"bytes,34,opt,name=uuid,proto3" json:"uuid,omitempty"` Verdict Verdict `protobuf:"varint,2,opt,name=verdict,proto3,enum=flow.Verdict" json:"verdict,omitempty"` @@ -1468,8 +1471,6 @@ type Flow struct { EgressDeniedBy []*Policy `protobuf:"bytes,21004,rep,name=egress_denied_by,json=egressDeniedBy,proto3" json:"egress_denied_by,omitempty"` // The CiliumNetworkPolicies denying the ingress of the flow. IngressDeniedBy []*Policy `protobuf:"bytes,21005,rep,name=ingress_denied_by,json=ingressDeniedBy,proto3" json:"ingress_denied_by,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *Flow) Reset() { @@ -1786,11 +1787,12 @@ func (x *Flow) GetIngressDeniedBy() []*Policy { } type FileInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` } func (x *FileInfo) Reset() { @@ -1838,17 +1840,18 @@ func (x *FileInfo) GetLine() uint32 { } type Layer4 struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Protocol: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Protocol: // // *Layer4_TCP // *Layer4_UDP // *Layer4_ICMPv4 // *Layer4_ICMPv6 // *Layer4_SCTP - Protocol isLayer4_Protocol `protobuf_oneof:"protocol"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Protocol isLayer4_Protocol `protobuf_oneof:"protocol"` } func (x *Layer4) Reset() { @@ -1881,54 +1884,44 @@ func (*Layer4) Descriptor() ([]byte, []int) { return file_flow_flow_proto_rawDescGZIP(), []int{2} } -func (x *Layer4) GetProtocol() isLayer4_Protocol { - if x != nil { - return x.Protocol +func (m *Layer4) GetProtocol() isLayer4_Protocol { + if m != nil { + return m.Protocol } return nil } func (x *Layer4) GetTCP() *TCP { - if x != nil { - if x, ok := x.Protocol.(*Layer4_TCP); ok { - return x.TCP - } + if x, ok := x.GetProtocol().(*Layer4_TCP); ok { + return x.TCP } return nil } func (x *Layer4) GetUDP() *UDP { - if x != nil { - if x, ok := x.Protocol.(*Layer4_UDP); ok { - return x.UDP - } + if x, ok := x.GetProtocol().(*Layer4_UDP); ok { + return x.UDP } return nil } func (x *Layer4) GetICMPv4() *ICMPv4 { - if x != nil { - if x, ok := x.Protocol.(*Layer4_ICMPv4); ok { - return x.ICMPv4 - } + if x, ok := x.GetProtocol().(*Layer4_ICMPv4); ok { + return x.ICMPv4 } return nil } func (x *Layer4) GetICMPv6() *ICMPv6 { - if x != nil { - if x, ok := x.Protocol.(*Layer4_ICMPv6); ok { - return x.ICMPv6 - } + if x, ok := x.GetProtocol().(*Layer4_ICMPv6); ok { + return x.ICMPv6 } return nil } func (x *Layer4) GetSCTP() *SCTP { - if x != nil { - if x, ok := x.Protocol.(*Layer4_SCTP); ok { - return x.SCTP - } + if x, ok := x.GetProtocol().(*Layer4_SCTP); ok { + return x.SCTP } return nil } @@ -1970,20 +1963,21 @@ func (*Layer4_SCTP) isLayer4_Protocol() {} // Message for L7 flow, which roughly corresponds to Cilium's accesslog [LogRecord](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L141): type Layer7 struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type L7FlowType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.L7FlowType" json:"type,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type L7FlowType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.L7FlowType" json:"type,omitempty"` // Latency of the response LatencyNs uint64 `protobuf:"varint,2,opt,name=latency_ns,json=latencyNs,proto3" json:"latency_ns,omitempty"` // L7 field. This field is set if and only if FlowType is L7. // - // Types that are valid to be assigned to Record: + // Types that are assignable to Record: // // *Layer7_Dns // *Layer7_Http // *Layer7_Kafka - Record isLayer7_Record `protobuf_oneof:"record"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Record isLayer7_Record `protobuf_oneof:"record"` } func (x *Layer7) Reset() { @@ -2030,36 +2024,30 @@ func (x *Layer7) GetLatencyNs() uint64 { return 0 } -func (x *Layer7) GetRecord() isLayer7_Record { - if x != nil { - return x.Record +func (m *Layer7) GetRecord() isLayer7_Record { + if m != nil { + return m.Record } return nil } func (x *Layer7) GetDns() *DNS { - if x != nil { - if x, ok := x.Record.(*Layer7_Dns); ok { - return x.Dns - } + if x, ok := x.GetRecord().(*Layer7_Dns); ok { + return x.Dns } return nil } func (x *Layer7) GetHttp() *HTTP { - if x != nil { - if x, ok := x.Record.(*Layer7_Http); ok { - return x.Http - } + if x, ok := x.GetRecord().(*Layer7_Http); ok { + return x.Http } return nil } func (x *Layer7) GetKafka() *Kafka { - if x != nil { - if x, ok := x.Record.(*Layer7_Kafka); ok { - return x.Kafka - } + if x, ok := x.GetRecord().(*Layer7_Kafka); ok { + return x.Kafka } return nil } @@ -2090,11 +2078,12 @@ func (*Layer7_Kafka) isLayer7_Record() {} // distributed trace. // For more information about trace context, check the [W3C Trace Context specification](https://www.w3.org/TR/trace-context/). type TraceContext struct { - state protoimpl.MessageState `protogen:"open.v1"` - // parent identifies the incoming request in a tracing system. - Parent *TraceParent `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // parent identifies the incoming request in a tracing system. + Parent *TraceParent `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` } func (x *TraceContext) Reset() { @@ -2136,12 +2125,13 @@ func (x *TraceContext) GetParent() *TraceParent { // TraceParent identifies the incoming request in a tracing system. type TraceParent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // trace_id is a unique value that identifies a trace. It is a byte array // represented as a hex string. - TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` } func (x *TraceParent) Reset() { @@ -2182,17 +2172,18 @@ func (x *TraceParent) GetTraceId() string { } type Endpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` - Identity uint32 `protobuf:"varint,2,opt,name=identity,proto3" json:"identity,omitempty"` - ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - // labels in `foo=bar` format. - Labels []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` - PodName string `protobuf:"bytes,5,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - Workloads []*Workload `protobuf:"bytes,6,rep,name=workloads,proto3" json:"workloads,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Identity uint32 `protobuf:"varint,2,opt,name=identity,proto3" json:"identity,omitempty"` + ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + // labels in `foo=bar` format. + Labels []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` + PodName string `protobuf:"bytes,5,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + Workloads []*Workload `protobuf:"bytes,6,rep,name=workloads,proto3" json:"workloads,omitempty"` } func (x *Endpoint) Reset() { @@ -2275,11 +2266,12 @@ func (x *Endpoint) GetWorkloads() []*Workload { } type Workload struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` } func (x *Workload) Reset() { @@ -2327,12 +2319,13 @@ func (x *Workload) GetKind() string { } type TCP struct { - state protoimpl.MessageState `protogen:"open.v1"` - SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` - DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` - Flags *TCPFlags `protobuf:"bytes,3,opt,name=flags,proto3" json:"flags,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` + DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` + Flags *TCPFlags `protobuf:"bytes,3,opt,name=flags,proto3" json:"flags,omitempty"` } func (x *TCP) Reset() { @@ -2387,8 +2380,11 @@ func (x *TCP) GetFlags() *TCPFlags { } type IP struct { - state protoimpl.MessageState `protogen:"open.v1"` - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // source_xlated is the post-translation source IP when the flow was // SNATed. When "source_xlated" is set, the "source" field is populated // with the pre-translation source IP address. @@ -2397,9 +2393,7 @@ type IP struct { IpVersion IPVersion `protobuf:"varint,3,opt,name=ipVersion,proto3,enum=flow.IPVersion" json:"ipVersion,omitempty"` // This field indicates whether the TraceReasonEncryptMask is set or not. // https://github.com/cilium/cilium/blob/ba0ed147bd5bb342f67b1794c2ad13c6e99d5236/pkg/monitor/datapath_trace.go#L27 - Encrypted bool `protobuf:"varint,4,opt,name=encrypted,proto3" json:"encrypted,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Encrypted bool `protobuf:"varint,4,opt,name=encrypted,proto3" json:"encrypted,omitempty"` } func (x *IP) Reset() { @@ -2468,11 +2462,12 @@ func (x *IP) GetEncrypted() bool { } type Ethernet struct { - state protoimpl.MessageState `protogen:"open.v1"` - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` } func (x *Ethernet) Reset() { @@ -2520,18 +2515,19 @@ func (x *Ethernet) GetDestination() string { } type TCPFlags struct { - state protoimpl.MessageState `protogen:"open.v1"` - FIN bool `protobuf:"varint,1,opt,name=FIN,proto3" json:"FIN,omitempty"` - SYN bool `protobuf:"varint,2,opt,name=SYN,proto3" json:"SYN,omitempty"` - RST bool `protobuf:"varint,3,opt,name=RST,proto3" json:"RST,omitempty"` - PSH bool `protobuf:"varint,4,opt,name=PSH,proto3" json:"PSH,omitempty"` - ACK bool `protobuf:"varint,5,opt,name=ACK,proto3" json:"ACK,omitempty"` - URG bool `protobuf:"varint,6,opt,name=URG,proto3" json:"URG,omitempty"` - ECE bool `protobuf:"varint,7,opt,name=ECE,proto3" json:"ECE,omitempty"` - CWR bool `protobuf:"varint,8,opt,name=CWR,proto3" json:"CWR,omitempty"` - NS bool `protobuf:"varint,9,opt,name=NS,proto3" json:"NS,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FIN bool `protobuf:"varint,1,opt,name=FIN,proto3" json:"FIN,omitempty"` + SYN bool `protobuf:"varint,2,opt,name=SYN,proto3" json:"SYN,omitempty"` + RST bool `protobuf:"varint,3,opt,name=RST,proto3" json:"RST,omitempty"` + PSH bool `protobuf:"varint,4,opt,name=PSH,proto3" json:"PSH,omitempty"` + ACK bool `protobuf:"varint,5,opt,name=ACK,proto3" json:"ACK,omitempty"` + URG bool `protobuf:"varint,6,opt,name=URG,proto3" json:"URG,omitempty"` + ECE bool `protobuf:"varint,7,opt,name=ECE,proto3" json:"ECE,omitempty"` + CWR bool `protobuf:"varint,8,opt,name=CWR,proto3" json:"CWR,omitempty"` + NS bool `protobuf:"varint,9,opt,name=NS,proto3" json:"NS,omitempty"` } func (x *TCPFlags) Reset() { @@ -2628,11 +2624,12 @@ func (x *TCPFlags) GetNS() bool { } type UDP struct { - state protoimpl.MessageState `protogen:"open.v1"` - SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` - DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` + DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` } func (x *UDP) Reset() { @@ -2680,11 +2677,12 @@ func (x *UDP) GetDestinationPort() uint32 { } type SCTP struct { - state protoimpl.MessageState `protogen:"open.v1"` - SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` - DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourcePort uint32 `protobuf:"varint,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` + DestinationPort uint32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"` } func (x *SCTP) Reset() { @@ -2732,11 +2730,12 @@ func (x *SCTP) GetDestinationPort() uint32 { } type ICMPv4 struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` - Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` + Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` } func (x *ICMPv4) Reset() { @@ -2784,11 +2783,12 @@ func (x *ICMPv4) GetCode() uint32 { } type ICMPv6 struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` - Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` + Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` } func (x *ICMPv6) Reset() { @@ -2836,14 +2836,15 @@ func (x *ICMPv6) GetCode() uint32 { } type Policy struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` - Revision uint64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` - Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` + Revision uint64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` } func (x *Policy) Reset() { @@ -2913,7 +2914,10 @@ func (x *Policy) GetKind() string { // EventTypeFilter is a filter describing a particular event type. type EventTypeFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // type is the primary flow type as defined by: // github.com/cilium/cilium/pkg/monitor/api.MessageType* Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` @@ -2922,9 +2926,7 @@ type EventTypeFilter struct { MatchSubType bool `protobuf:"varint,2,opt,name=match_sub_type,json=matchSubType,proto3" json:"match_sub_type,omitempty"` // sub_type is the secondary type, e.g. // - github.com/cilium/cilium/pkg/monitor/api.Trace* - SubType int32 `protobuf:"varint,3,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + SubType int32 `protobuf:"varint,3,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"` } func (x *EventTypeFilter) Reset() { @@ -2980,7 +2982,10 @@ func (x *EventTypeFilter) GetSubType() int32 { // CiliumEventType from which the flow originated. type CiliumEventType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // type of event the flow originated from, i.e. // github.com/cilium/cilium/pkg/monitor/api.MessageType* Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` @@ -2988,9 +2993,7 @@ type CiliumEventType struct { // - github.com/cilium/cilium/pkg/monitor/api.Trace* // - github.com/cilium/cilium/pkg/monitor/api.Drop* // - github.com/cilium/cilium/pkg/monitor/api.DbgCapture* - SubType int32 `protobuf:"varint,2,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + SubType int32 `protobuf:"varint,2,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"` } func (x *CiliumEventType) Reset() { @@ -3040,7 +3043,10 @@ func (x *CiliumEventType) GetSubType() int32 { // FlowFilter represent an individual flow filter. All fields are optional. If // multiple fields are set, then all fields must match for the filter to match. type FlowFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // uuid filters by a list of flow uuids. Uuid []string `protobuf:"bytes,29,rep,name=uuid,proto3" json:"uuid,omitempty"` // source_ip filters by a list of source ips. Each of the source ips can be @@ -3136,9 +3142,7 @@ type FlowFilter struct { TraceId []string `protobuf:"bytes,28,rep,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // experimental contains filters that are not stable yet. Support for // experimental features is always optional and subject to change. - Experimental *FlowFilter_Experimental `protobuf:"bytes,999,opt,name=experimental,proto3" json:"experimental,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Experimental *FlowFilter_Experimental `protobuf:"bytes,999,opt,name=experimental,proto3" json:"experimental,omitempty"` } func (x *FlowFilter) Reset() { @@ -3446,7 +3450,10 @@ func (x *FlowFilter) GetExperimental() *FlowFilter_Experimental { // DNS flow. This is basically directly mapped from Cilium's [LogRecordDNS](https://github.com/cilium/cilium/blob/04f3889d627774f79e56d14ddbc165b3169e2d01/pkg/proxy/accesslog/record.go#L264): type DNS struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // DNS name that's being looked up: e.g. "isovalent.com." Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // List of IP addresses in the DNS response. @@ -3469,9 +3476,7 @@ type DNS struct { Qtypes []string `protobuf:"bytes,7,rep,name=qtypes,proto3" json:"qtypes,omitempty"` // String representation of rrtypes defined in: // https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4 - Rrtypes []string `protobuf:"bytes,8,rep,name=rrtypes,proto3" json:"rrtypes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Rrtypes []string `protobuf:"bytes,8,rep,name=rrtypes,proto3" json:"rrtypes,omitempty"` } func (x *DNS) Reset() { @@ -3561,11 +3566,12 @@ func (x *DNS) GetRrtypes() []string { } type HTTPHeader struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *HTTPHeader) Reset() { @@ -3614,14 +3620,15 @@ func (x *HTTPHeader) GetValue() string { // L7 information for HTTP flows. It corresponds to Cilium's [accesslog.LogRecordHTTP](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L206) type. type HTTP struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` - Headers []*HTTPHeader `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` + Headers []*HTTPHeader `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` } func (x *HTTP) Reset() { @@ -3691,14 +3698,15 @@ func (x *HTTP) GetHeaders() []*HTTPHeader { // L7 information for Kafka flows. It corresponds to Cilium's [accesslog.LogRecordKafka](https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L229) type. type Kafka struct { - state protoimpl.MessageState `protogen:"open.v1"` - ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - ApiVersion int32 `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` - ApiKey string `protobuf:"bytes,3,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` - CorrelationId int32 `protobuf:"varint,4,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` - Topic string `protobuf:"bytes,5,opt,name=topic,proto3" json:"topic,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + ApiVersion int32 `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` + ApiKey string `protobuf:"bytes,3,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` + CorrelationId int32 `protobuf:"varint,4,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` + Topic string `protobuf:"bytes,5,opt,name=topic,proto3" json:"topic,omitempty"` } func (x *Kafka) Reset() { @@ -3767,11 +3775,12 @@ func (x *Kafka) GetTopic() string { } type Service struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` } func (x *Service) Reset() { @@ -3821,16 +3830,17 @@ func (x *Service) GetNamespace() string { // LostEvent is a message which notifies consumers about a loss of events // that happened before the events were captured by Hubble. type LostEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // source is the location where events got lost. Source LostEventSource `protobuf:"varint,1,opt,name=source,proto3,enum=flow.LostEventSource" json:"source,omitempty"` // num_events_lost is the number of events that haven been lost at source. NumEventsLost uint64 `protobuf:"varint,2,opt,name=num_events_lost,json=numEventsLost,proto3" json:"num_events_lost,omitempty"` // cpu on which the event was lost if the source of lost events is // PERF_EVENT_RING_BUFFER. - Cpu *wrapperspb.Int32Value `protobuf:"bytes,3,opt,name=cpu,proto3" json:"cpu,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Cpu *wrapperspb.Int32Value `protobuf:"bytes,3,opt,name=cpu,proto3" json:"cpu,omitempty"` } func (x *LostEvent) Reset() { @@ -3885,9 +3895,12 @@ func (x *LostEvent) GetCpu() *wrapperspb.Int32Value { } type AgentEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type AgentEventType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.AgentEventType" json:"type,omitempty"` - // Types that are valid to be assigned to Notification: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type AgentEventType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.AgentEventType" json:"type,omitempty"` + // Types that are assignable to Notification: // // *AgentEvent_Unknown // *AgentEvent_AgentStart @@ -3897,9 +3910,7 @@ type AgentEvent struct { // *AgentEvent_IpcacheUpdate // *AgentEvent_ServiceUpsert // *AgentEvent_ServiceDelete - Notification isAgentEvent_Notification `protobuf_oneof:"notification"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Notification isAgentEvent_Notification `protobuf_oneof:"notification"` } func (x *AgentEvent) Reset() { @@ -3939,81 +3950,65 @@ func (x *AgentEvent) GetType() AgentEventType { return AgentEventType_AGENT_EVENT_UNKNOWN } -func (x *AgentEvent) GetNotification() isAgentEvent_Notification { - if x != nil { - return x.Notification +func (m *AgentEvent) GetNotification() isAgentEvent_Notification { + if m != nil { + return m.Notification } return nil } func (x *AgentEvent) GetUnknown() *AgentEventUnknown { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_Unknown); ok { - return x.Unknown - } + if x, ok := x.GetNotification().(*AgentEvent_Unknown); ok { + return x.Unknown } return nil } func (x *AgentEvent) GetAgentStart() *TimeNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_AgentStart); ok { - return x.AgentStart - } + if x, ok := x.GetNotification().(*AgentEvent_AgentStart); ok { + return x.AgentStart } return nil } func (x *AgentEvent) GetPolicyUpdate() *PolicyUpdateNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_PolicyUpdate); ok { - return x.PolicyUpdate - } + if x, ok := x.GetNotification().(*AgentEvent_PolicyUpdate); ok { + return x.PolicyUpdate } return nil } func (x *AgentEvent) GetEndpointRegenerate() *EndpointRegenNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_EndpointRegenerate); ok { - return x.EndpointRegenerate - } + if x, ok := x.GetNotification().(*AgentEvent_EndpointRegenerate); ok { + return x.EndpointRegenerate } return nil } func (x *AgentEvent) GetEndpointUpdate() *EndpointUpdateNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_EndpointUpdate); ok { - return x.EndpointUpdate - } + if x, ok := x.GetNotification().(*AgentEvent_EndpointUpdate); ok { + return x.EndpointUpdate } return nil } func (x *AgentEvent) GetIpcacheUpdate() *IPCacheNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_IpcacheUpdate); ok { - return x.IpcacheUpdate - } + if x, ok := x.GetNotification().(*AgentEvent_IpcacheUpdate); ok { + return x.IpcacheUpdate } return nil } func (x *AgentEvent) GetServiceUpsert() *ServiceUpsertNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_ServiceUpsert); ok { - return x.ServiceUpsert - } + if x, ok := x.GetNotification().(*AgentEvent_ServiceUpsert); ok { + return x.ServiceUpsert } return nil } func (x *AgentEvent) GetServiceDelete() *ServiceDeleteNotification { - if x != nil { - if x, ok := x.Notification.(*AgentEvent_ServiceDelete); ok { - return x.ServiceDelete - } + if x, ok := x.GetNotification().(*AgentEvent_ServiceDelete); ok { + return x.ServiceDelete } return nil } @@ -4075,11 +4070,12 @@ func (*AgentEvent_ServiceUpsert) isAgentEvent_Notification() {} func (*AgentEvent_ServiceDelete) isAgentEvent_Notification() {} type AgentEventUnknown struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Notification string `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Notification string `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"` } func (x *AgentEventUnknown) Reset() { @@ -4127,10 +4123,11 @@ func (x *AgentEventUnknown) GetNotification() string { } type TimeNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` } func (x *TimeNotification) Reset() { @@ -4171,12 +4168,13 @@ func (x *TimeNotification) GetTime() *timestamppb.Timestamp { } type PolicyUpdateNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` - Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - RuleCount int64 `protobuf:"varint,3,opt,name=rule_count,json=ruleCount,proto3" json:"rule_count,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + RuleCount int64 `protobuf:"varint,3,opt,name=rule_count,json=ruleCount,proto3" json:"rule_count,omitempty"` } func (x *PolicyUpdateNotification) Reset() { @@ -4231,12 +4229,13 @@ func (x *PolicyUpdateNotification) GetRuleCount() int64 { } type EndpointRegenNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` } func (x *EndpointRegenNotification) Reset() { @@ -4291,14 +4290,15 @@ func (x *EndpointRegenNotification) GetError() string { } type EndpointUpdateNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` } func (x *EndpointUpdateNotification) Reset() { @@ -4367,17 +4367,18 @@ func (x *EndpointUpdateNotification) GetNamespace() string { } type IPCacheNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Cidr string `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"` - Identity uint32 `protobuf:"varint,2,opt,name=identity,proto3" json:"identity,omitempty"` - OldIdentity *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=old_identity,json=oldIdentity,proto3" json:"old_identity,omitempty"` - HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` - OldHostIp string `protobuf:"bytes,5,opt,name=old_host_ip,json=oldHostIp,proto3" json:"old_host_ip,omitempty"` - EncryptKey uint32 `protobuf:"varint,6,opt,name=encrypt_key,json=encryptKey,proto3" json:"encrypt_key,omitempty"` - Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` - PodName string `protobuf:"bytes,8,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cidr string `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"` + Identity uint32 `protobuf:"varint,2,opt,name=identity,proto3" json:"identity,omitempty"` + OldIdentity *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=old_identity,json=oldIdentity,proto3" json:"old_identity,omitempty"` + HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` + OldHostIp string `protobuf:"bytes,5,opt,name=old_host_ip,json=oldHostIp,proto3" json:"old_host_ip,omitempty"` + EncryptKey uint32 `protobuf:"varint,6,opt,name=encrypt_key,json=encryptKey,proto3" json:"encrypt_key,omitempty"` + Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` + PodName string `protobuf:"bytes,8,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` } func (x *IPCacheNotification) Reset() { @@ -4467,11 +4468,12 @@ func (x *IPCacheNotification) GetPodName() string { } type ServiceUpsertNotificationAddr struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } func (x *ServiceUpsertNotificationAddr) Reset() { @@ -4519,7 +4521,10 @@ func (x *ServiceUpsertNotificationAddr) GetPort() uint32 { } type ServiceUpsertNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FrontendAddress *ServiceUpsertNotificationAddr `protobuf:"bytes,2,opt,name=frontend_address,json=frontendAddress,proto3" json:"frontend_address,omitempty"` BackendAddresses []*ServiceUpsertNotificationAddr `protobuf:"bytes,3,rep,name=backend_addresses,json=backendAddresses,proto3" json:"backend_addresses,omitempty"` @@ -4530,8 +4535,6 @@ type ServiceUpsertNotification struct { Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` ExtTrafficPolicy string `protobuf:"bytes,8,opt,name=ext_traffic_policy,json=extTrafficPolicy,proto3" json:"ext_traffic_policy,omitempty"` IntTrafficPolicy string `protobuf:"bytes,9,opt,name=int_traffic_policy,json=intTrafficPolicy,proto3" json:"int_traffic_policy,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *ServiceUpsertNotification) Reset() { @@ -4629,10 +4632,11 @@ func (x *ServiceUpsertNotification) GetIntTrafficPolicy() string { } type ServiceDeleteNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } func (x *ServiceDeleteNotification) Reset() { @@ -4673,11 +4677,12 @@ func (x *ServiceDeleteNotification) GetId() uint32 { } type NetworkInterface struct { - state protoimpl.MessageState `protogen:"open.v1"` - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *NetworkInterface) Reset() { @@ -4725,17 +4730,18 @@ func (x *NetworkInterface) GetName() string { } type DebugEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type DebugEventType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.DebugEventType" json:"type,omitempty"` - Source *Endpoint `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Hash *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` - Arg1 *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=arg1,proto3" json:"arg1,omitempty"` - Arg2 *wrapperspb.UInt32Value `protobuf:"bytes,5,opt,name=arg2,proto3" json:"arg2,omitempty"` - Arg3 *wrapperspb.UInt32Value `protobuf:"bytes,6,opt,name=arg3,proto3" json:"arg3,omitempty"` - Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` - Cpu *wrapperspb.Int32Value `protobuf:"bytes,8,opt,name=cpu,proto3" json:"cpu,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type DebugEventType `protobuf:"varint,1,opt,name=type,proto3,enum=flow.DebugEventType" json:"type,omitempty"` + Source *Endpoint `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Hash *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` + Arg1 *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=arg1,proto3" json:"arg1,omitempty"` + Arg2 *wrapperspb.UInt32Value `protobuf:"bytes,5,opt,name=arg2,proto3" json:"arg2,omitempty"` + Arg3 *wrapperspb.UInt32Value `protobuf:"bytes,6,opt,name=arg3,proto3" json:"arg3,omitempty"` + Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` + Cpu *wrapperspb.Int32Value `protobuf:"bytes,8,opt,name=cpu,proto3" json:"cpu,omitempty"` } func (x *DebugEvent) Reset() { @@ -4827,7 +4833,10 @@ func (x *DebugEvent) GetCpu() *wrapperspb.Int32Value { // Experimental contains filters that are not stable yet. Support for // experimental features is always optional and subject to change. type FlowFilter_Experimental struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // cel_expression takes a common expression language (CEL) expression // returning a boolean to determine if the filter matched or not. // You can use the `_flow` variable to access fields on the flow using @@ -4838,8 +4847,6 @@ type FlowFilter_Experimental struct { // using non-CEL filters when possible, and try to specify CEL filters // last in the list of FlowFilters. CelExpression []string `protobuf:"bytes,1,rep,name=cel_expression,json=celExpression,proto3" json:"cel_expression,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *FlowFilter_Experimental) Reset() { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/bgp_graceful_restart.go b/vendor/github.com/cilium/cilium/api/v1/models/bgp_graceful_restart.go index dd2cee83c5..d24845f9f1 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/bgp_graceful_restart.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/bgp_graceful_restart.go @@ -17,6 +17,8 @@ import ( // BgpGracefulRestart BGP graceful restart parameters negotiated with the peer. // +// +k8s:deepcopy-gen=true +// // swagger:model BgpGracefulRestart type BgpGracefulRestart struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/bgp_peer_families.go b/vendor/github.com/cilium/cilium/api/v1/models/bgp_peer_families.go index bcf11b9aee..aac6013add 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/bgp_peer_families.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/bgp_peer_families.go @@ -17,6 +17,8 @@ import ( // BgpPeerFamilies BGP AFI SAFI state of the peer // +// +k8s:deepcopy-gen=true +// // swagger:model BgpPeerFamilies type BgpPeerFamilies struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/c_id_r_policy.go b/vendor/github.com/cilium/cilium/api/v1/models/c_id_r_policy.go index 2678070b19..b98e611a6a 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/c_id_r_policy.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/c_id_r_policy.go @@ -19,6 +19,8 @@ import ( // CIDRPolicy CIDR endpoint policy // +// +k8s:deepcopy-gen=true +// // swagger:model CIDRPolicy type CIDRPolicy struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/c_n_i_chaining_status.go b/vendor/github.com/cilium/cilium/api/v1/models/c_n_i_chaining_status.go index 70b7a6c30a..26e8a7236c 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/c_n_i_chaining_status.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/c_n_i_chaining_status.go @@ -20,6 +20,8 @@ import ( // CNIChainingStatus Status of CNI chaining // +// +k8s:deepcopy-gen=true +// // swagger:model CNIChainingStatus type CNIChainingStatus struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/clock_source.go b/vendor/github.com/cilium/cilium/api/v1/models/clock_source.go index 07df2b3dce..c5106d8661 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/clock_source.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/clock_source.go @@ -20,6 +20,8 @@ import ( // ClockSource Status of BPF clock source // +// +k8s:deepcopy-gen=true +// // swagger:model ClockSource type ClockSource struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/endpoint_policy.go b/vendor/github.com/cilium/cilium/api/v1/models/endpoint_policy.go index 1cf376fcdd..5f6150600a 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/endpoint_policy.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/endpoint_policy.go @@ -18,6 +18,8 @@ import ( // EndpointPolicy Policy information of an endpoint // +// +k8s:deepcopy-gen=true +// // swagger:model EndpointPolicy type EndpointPolicy struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/identity_range.go b/vendor/github.com/cilium/cilium/api/v1/models/identity_range.go index 548fe6ccc7..f05ed337b7 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/identity_range.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/identity_range.go @@ -17,6 +17,8 @@ import ( // IdentityRange Status of identity range of the cluster // +// +k8s:deepcopy-gen=true +// // swagger:model IdentityRange type IdentityRange struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/ip_v4_big_tcp.go b/vendor/github.com/cilium/cilium/api/v1/models/ip_v4_big_tcp.go index 87032000f0..41dedc1cdb 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/ip_v4_big_tcp.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/ip_v4_big_tcp.go @@ -17,6 +17,8 @@ import ( // IPV4BigTCP Status of IPv4 BIG TCP // +// +k8s:deepcopy-gen=true +// // swagger:model IPV4BigTCP type IPV4BigTCP struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/ip_v6_big_tcp.go b/vendor/github.com/cilium/cilium/api/v1/models/ip_v6_big_tcp.go index e600f624b0..ed6a0f8676 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/ip_v6_big_tcp.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/ip_v6_big_tcp.go @@ -17,6 +17,8 @@ import ( // IPV6BigTCP Status of IPv6 BIG TCP // +// +k8s:deepcopy-gen=true +// // swagger:model IPV6BigTCP type IPV6BigTCP struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go b/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go index 3c9e3e48a9..6477cb154b 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go @@ -791,7 +791,9 @@ func (m *KubeProxyReplacementFeatures) UnmarshalBinary(b []byte) error { return nil } -// KubeProxyReplacementFeaturesExternalIPs kube proxy replacement features external i ps +// KubeProxyReplacementFeaturesExternalIPs +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesExternalIPs type KubeProxyReplacementFeaturesExternalIPs struct { @@ -828,7 +830,9 @@ func (m *KubeProxyReplacementFeaturesExternalIPs) UnmarshalBinary(b []byte) erro return nil } -// KubeProxyReplacementFeaturesGracefulTermination kube proxy replacement features graceful termination +// KubeProxyReplacementFeaturesGracefulTermination +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesGracefulTermination type KubeProxyReplacementFeaturesGracefulTermination struct { @@ -865,7 +869,9 @@ func (m *KubeProxyReplacementFeaturesGracefulTermination) UnmarshalBinary(b []by return nil } -// KubeProxyReplacementFeaturesHostPort kube proxy replacement features host port +// KubeProxyReplacementFeaturesHostPort +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesHostPort type KubeProxyReplacementFeaturesHostPort struct { @@ -1137,7 +1143,9 @@ func (m *KubeProxyReplacementFeaturesNat46X64Gateway) UnmarshalBinary(b []byte) return nil } -// KubeProxyReplacementFeaturesNat46X64Service kube proxy replacement features nat46 x64 service +// KubeProxyReplacementFeaturesNat46X64Service +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesNat46X64Service type KubeProxyReplacementFeaturesNat46X64Service struct { @@ -1174,7 +1182,9 @@ func (m *KubeProxyReplacementFeaturesNat46X64Service) UnmarshalBinary(b []byte) return nil } -// KubeProxyReplacementFeaturesNodePort kube proxy replacement features node port +// KubeProxyReplacementFeaturesNodePort +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesNodePort type KubeProxyReplacementFeaturesNodePort struct { @@ -1437,7 +1447,9 @@ func (m *KubeProxyReplacementFeaturesNodePort) UnmarshalBinary(b []byte) error { return nil } -// KubeProxyReplacementFeaturesSessionAffinity kube proxy replacement features session affinity +// KubeProxyReplacementFeaturesSessionAffinity +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesSessionAffinity type KubeProxyReplacementFeaturesSessionAffinity struct { @@ -1474,7 +1486,9 @@ func (m *KubeProxyReplacementFeaturesSessionAffinity) UnmarshalBinary(b []byte) return nil } -// KubeProxyReplacementFeaturesSocketLB kube proxy replacement features socket l b +// KubeProxyReplacementFeaturesSocketLB +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesSocketLB type KubeProxyReplacementFeaturesSocketLB struct { @@ -1511,7 +1525,9 @@ func (m *KubeProxyReplacementFeaturesSocketLB) UnmarshalBinary(b []byte) error { return nil } -// KubeProxyReplacementFeaturesSocketLBTracing kube proxy replacement features socket l b tracing +// KubeProxyReplacementFeaturesSocketLBTracing +// +// +k8s:deepcopy-gen=true // // swagger:model KubeProxyReplacementFeaturesSocketLBTracing type KubeProxyReplacementFeaturesSocketLBTracing struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/l4_policy.go b/vendor/github.com/cilium/cilium/api/v1/models/l4_policy.go index 142c38bdad..b6c4c198b1 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/l4_policy.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/l4_policy.go @@ -19,6 +19,8 @@ import ( // L4Policy L4 endpoint policy // +// +k8s:deepcopy-gen=true +// // swagger:model L4Policy type L4Policy struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/policy_rule.go b/vendor/github.com/cilium/cilium/api/v1/models/policy_rule.go index 900a559161..cf24453f2a 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/policy_rule.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/policy_rule.go @@ -17,6 +17,8 @@ import ( // PolicyRule A policy rule including the rule labels it derives from // +// +k8s:deepcopy-gen=true +// // swagger:model PolicyRule type PolicyRule struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/routing.go b/vendor/github.com/cilium/cilium/api/v1/models/routing.go index fdf8b0a930..fe028cf6d7 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/routing.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/routing.go @@ -20,6 +20,8 @@ import ( // Routing Status of routing // +// +k8s:deepcopy-gen=true +// // swagger:model Routing type Routing struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/srv6.go b/vendor/github.com/cilium/cilium/api/v1/models/srv6.go index 005b38889a..1b3182a487 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/srv6.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/srv6.go @@ -20,6 +20,8 @@ import ( // Srv6 Status of the SRv6 // +// +k8s:deepcopy-gen=true +// // swagger:model Srv6 type Srv6 struct { diff --git a/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go b/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go index bb5487c2e2..d93fea4d1b 100644 --- a/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go +++ b/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go @@ -60,6 +60,22 @@ func (in *BandwidthManager) DeepCopy() *BandwidthManager { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BgpGracefulRestart) DeepCopyInto(out *BgpGracefulRestart) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpGracefulRestart. +func (in *BgpGracefulRestart) DeepCopy() *BgpGracefulRestart { + if in == nil { + return nil + } + out := new(BgpGracefulRestart) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BgpPeer) DeepCopyInto(out *BgpPeer) { *out = *in @@ -92,6 +108,92 @@ func (in *BgpPeer) DeepCopy() *BgpPeer { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BgpPeerFamilies) DeepCopyInto(out *BgpPeerFamilies) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpPeerFamilies. +func (in *BgpPeerFamilies) DeepCopy() *BgpPeerFamilies { + if in == nil { + return nil + } + out := new(BgpPeerFamilies) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CIDRPolicy) DeepCopyInto(out *CIDRPolicy) { + *out = *in + if in.Egress != nil { + in, out := &in.Egress, &out.Egress + *out = make([]*PolicyRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(PolicyRule) + (*in).DeepCopyInto(*out) + } + } + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]*PolicyRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(PolicyRule) + (*in).DeepCopyInto(*out) + } + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRPolicy. +func (in *CIDRPolicy) DeepCopy() *CIDRPolicy { + if in == nil { + return nil + } + out := new(CIDRPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CNIChainingStatus) DeepCopyInto(out *CNIChainingStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNIChainingStatus. +func (in *CNIChainingStatus) DeepCopy() *CNIChainingStatus { + if in == nil { + return nil + } + out := new(CNIChainingStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClockSource) DeepCopyInto(out *ClockSource) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClockSource. +func (in *ClockSource) DeepCopy() *ClockSource { + if in == nil { + return nil + } + out := new(ClockSource) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterMeshStatus) DeepCopyInto(out *ClusterMeshStatus) { *out = *in @@ -240,6 +342,52 @@ func (in *EncryptionStatus) DeepCopy() *EncryptionStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointPolicy) DeepCopyInto(out *EndpointPolicy) { + *out = *in + if in.AllowedEgressIdentities != nil { + in, out := &in.AllowedEgressIdentities, &out.AllowedEgressIdentities + *out = make([]int64, len(*in)) + copy(*out, *in) + } + if in.AllowedIngressIdentities != nil { + in, out := &in.AllowedIngressIdentities, &out.AllowedIngressIdentities + *out = make([]int64, len(*in)) + copy(*out, *in) + } + if in.CidrPolicy != nil { + in, out := &in.CidrPolicy, &out.CidrPolicy + *out = new(CIDRPolicy) + (*in).DeepCopyInto(*out) + } + if in.DeniedEgressIdentities != nil { + in, out := &in.DeniedEgressIdentities, &out.DeniedEgressIdentities + *out = make([]int64, len(*in)) + copy(*out, *in) + } + if in.DeniedIngressIdentities != nil { + in, out := &in.DeniedIngressIdentities, &out.DeniedIngressIdentities + *out = make([]int64, len(*in)) + copy(*out, *in) + } + if in.L4 != nil { + in, out := &in.L4, &out.L4 + *out = new(L4Policy) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPolicy. +func (in *EndpointPolicy) DeepCopy() *EndpointPolicy { + if in == nil { + return nil + } + out := new(EndpointPolicy) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HostFirewall) DeepCopyInto(out *HostFirewall) { *out = *in @@ -337,6 +485,38 @@ func (in *IPAMStatus) DeepCopy() *IPAMStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPV4BigTCP) DeepCopyInto(out *IPV4BigTCP) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPV4BigTCP. +func (in *IPV4BigTCP) DeepCopy() *IPV4BigTCP { + if in == nil { + return nil + } + out := new(IPV4BigTCP) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPV6BigTCP) DeepCopyInto(out *IPV6BigTCP) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPV6BigTCP. +func (in *IPV6BigTCP) DeepCopy() *IPV6BigTCP { + if in == nil { + return nil + } + out := new(IPV6BigTCP) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IPsecStatus) DeepCopyInto(out *IPsecStatus) { *out = *in @@ -365,6 +545,22 @@ func (in *IPsecStatus) DeepCopy() *IPsecStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IdentityRange) DeepCopyInto(out *IdentityRange) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IdentityRange. +func (in *IdentityRange) DeepCopy() *IdentityRange { + if in == nil { + return nil + } + out := new(IdentityRange) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *K8sStatus) DeepCopyInto(out *K8sStatus) { *out = *in @@ -510,6 +706,54 @@ func (in *KubeProxyReplacementFeatures) DeepCopy() *KubeProxyReplacementFeatures return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesExternalIPs) DeepCopyInto(out *KubeProxyReplacementFeaturesExternalIPs) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesExternalIPs. +func (in *KubeProxyReplacementFeaturesExternalIPs) DeepCopy() *KubeProxyReplacementFeaturesExternalIPs { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesExternalIPs) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesGracefulTermination) DeepCopyInto(out *KubeProxyReplacementFeaturesGracefulTermination) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesGracefulTermination. +func (in *KubeProxyReplacementFeaturesGracefulTermination) DeepCopy() *KubeProxyReplacementFeaturesGracefulTermination { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesGracefulTermination) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesHostPort) DeepCopyInto(out *KubeProxyReplacementFeaturesHostPort) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesHostPort. +func (in *KubeProxyReplacementFeaturesHostPort) DeepCopy() *KubeProxyReplacementFeaturesHostPort { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesHostPort) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KubeProxyReplacementFeaturesHostReachableServices) DeepCopyInto(out *KubeProxyReplacementFeaturesHostReachableServices) { *out = *in @@ -578,6 +822,124 @@ func (in *KubeProxyReplacementFeaturesNat46X64Gateway) DeepCopy() *KubeProxyRepl return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesNat46X64Service) DeepCopyInto(out *KubeProxyReplacementFeaturesNat46X64Service) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesNat46X64Service. +func (in *KubeProxyReplacementFeaturesNat46X64Service) DeepCopy() *KubeProxyReplacementFeaturesNat46X64Service { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesNat46X64Service) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesNodePort) DeepCopyInto(out *KubeProxyReplacementFeaturesNodePort) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesNodePort. +func (in *KubeProxyReplacementFeaturesNodePort) DeepCopy() *KubeProxyReplacementFeaturesNodePort { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesNodePort) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesSessionAffinity) DeepCopyInto(out *KubeProxyReplacementFeaturesSessionAffinity) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesSessionAffinity. +func (in *KubeProxyReplacementFeaturesSessionAffinity) DeepCopy() *KubeProxyReplacementFeaturesSessionAffinity { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesSessionAffinity) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesSocketLB) DeepCopyInto(out *KubeProxyReplacementFeaturesSocketLB) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesSocketLB. +func (in *KubeProxyReplacementFeaturesSocketLB) DeepCopy() *KubeProxyReplacementFeaturesSocketLB { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesSocketLB) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeProxyReplacementFeaturesSocketLBTracing) DeepCopyInto(out *KubeProxyReplacementFeaturesSocketLBTracing) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyReplacementFeaturesSocketLBTracing. +func (in *KubeProxyReplacementFeaturesSocketLBTracing) DeepCopy() *KubeProxyReplacementFeaturesSocketLBTracing { + if in == nil { + return nil + } + out := new(KubeProxyReplacementFeaturesSocketLBTracing) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *L4Policy) DeepCopyInto(out *L4Policy) { + *out = *in + if in.Egress != nil { + in, out := &in.Egress, &out.Egress + *out = make([]*PolicyRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(PolicyRule) + (*in).DeepCopyInto(*out) + } + } + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]*PolicyRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(PolicyRule) + (*in).DeepCopyInto(*out) + } + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L4Policy. +func (in *L4Policy) DeepCopy() *L4Policy { + if in == nil { + return nil + } + out := new(L4Policy) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Masquerading) DeepCopyInto(out *Masquerading) { *out = *in @@ -693,6 +1055,54 @@ func (in *NodeElement) DeepCopy() *NodeElement { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { + *out = *in + if in.DerivedFromRules != nil { + in, out := &in.DerivedFromRules, &out.DerivedFromRules + *out = make([][]string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = make([]string, len(*in)) + copy(*out, *in) + } + } + } + if in.RulesBySelector != nil { + in, out := &in.RulesBySelector, &out.RulesBySelector + *out = make(map[string][][]string, len(*in)) + for key, val := range *in { + var outVal [][]string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([][]string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = make([]string, len(*in)) + copy(*out, *in) + } + } + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. +func (in *PolicyRule) DeepCopy() *PolicyRule { + if in == nil { + return nil + } + out := new(PolicyRule) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxyStatistics) DeepCopyInto(out *ProxyStatistics) { *out = *in @@ -836,6 +1246,38 @@ func (in *RequestResponseStatistics) DeepCopy() *RequestResponseStatistics { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Routing) DeepCopyInto(out *Routing) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Routing. +func (in *Routing) DeepCopy() *Routing { + if in == nil { + return nil + } + out := new(Routing) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Srv6) DeepCopyInto(out *Srv6) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Srv6. +func (in *Srv6) DeepCopy() *Srv6 { + if in == nil { + return nil + } + out := new(Srv6) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StatusResponse) DeepCopyInto(out *StatusResponse) { *out = *in diff --git a/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go b/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go index 7654042313..07d1d5d735 100644 --- a/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go +++ b/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.1 -// protoc v5.29.2 +// protoc-gen-go v1.35.2 +// protoc v5.29.1 // source: observer/observer.proto package observer @@ -400,9 +400,9 @@ type DebugEvent = flow.DebugEvent type FlowFilter_Experimental = flow.FlowFilter_Experimental type ServerStatusRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *ServerStatusRequest) Reset() { @@ -436,7 +436,10 @@ func (*ServerStatusRequest) Descriptor() ([]byte, []int) { } type ServerStatusResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // number of currently captured flows // In a multi-node context, this is the cumulative count of all captured // flows. @@ -464,9 +467,7 @@ type ServerStatusResponse struct { Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` // Approximate rate of flows seen by Hubble per second over the last minute. // In a multi-node context, this is the sum of all flows rates. - FlowsRate float64 `protobuf:"fixed64,9,opt,name=flows_rate,json=flowsRate,proto3" json:"flows_rate,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + FlowsRate float64 `protobuf:"fixed64,9,opt,name=flows_rate,json=flowsRate,proto3" json:"flows_rate,omitempty"` } func (x *ServerStatusResponse) Reset() { @@ -563,7 +564,10 @@ func (x *ServerStatusResponse) GetFlowsRate() float64 { } type GetFlowsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Number of flows that should be returned. Incompatible with `since/until`. // Defaults to the most recent (last) `number` flows, unless `first` is // true, then it will return the earliest `number` flows. @@ -600,9 +604,7 @@ type GetFlowsRequest struct { // extensions can be used to add arbitrary additional metadata to GetFlowsRequest. // This can be used to extend functionality for other Hubble compatible // APIs, or experiment with new functionality without needing to change the public API. - Extensions *anypb.Any `protobuf:"bytes,150000,opt,name=extensions,proto3" json:"extensions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Extensions *anypb.Any `protobuf:"bytes,150000,opt,name=extensions,proto3" json:"extensions,omitempty"` } func (x *GetFlowsRequest) Reset() { @@ -707,8 +709,11 @@ func (x *GetFlowsRequest) GetExtensions() *anypb.Any { // GetFlowsResponse contains either a flow or a protocol message. type GetFlowsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to ResponseTypes: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ResponseTypes: // // *GetFlowsResponse_Flow // *GetFlowsResponse_NodeStatus @@ -717,9 +722,7 @@ type GetFlowsResponse struct { // Name of the node where this event was observed. NodeName string `protobuf:"bytes,1000,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Timestamp at which this event was observed. - Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` } func (x *GetFlowsResponse) Reset() { @@ -752,36 +755,30 @@ func (*GetFlowsResponse) Descriptor() ([]byte, []int) { return file_observer_observer_proto_rawDescGZIP(), []int{3} } -func (x *GetFlowsResponse) GetResponseTypes() isGetFlowsResponse_ResponseTypes { - if x != nil { - return x.ResponseTypes +func (m *GetFlowsResponse) GetResponseTypes() isGetFlowsResponse_ResponseTypes { + if m != nil { + return m.ResponseTypes } return nil } func (x *GetFlowsResponse) GetFlow() *flow.Flow { - if x != nil { - if x, ok := x.ResponseTypes.(*GetFlowsResponse_Flow); ok { - return x.Flow - } + if x, ok := x.GetResponseTypes().(*GetFlowsResponse_Flow); ok { + return x.Flow } return nil } func (x *GetFlowsResponse) GetNodeStatus() *relay.NodeStatusEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*GetFlowsResponse_NodeStatus); ok { - return x.NodeStatus - } + if x, ok := x.GetResponseTypes().(*GetFlowsResponse_NodeStatus); ok { + return x.NodeStatus } return nil } func (x *GetFlowsResponse) GetLostEvents() *flow.LostEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*GetFlowsResponse_LostEvents); ok { - return x.LostEvents - } + if x, ok := x.GetResponseTypes().(*GetFlowsResponse_LostEvents); ok { + return x.LostEvents } return nil } @@ -827,7 +824,10 @@ func (*GetFlowsResponse_NodeStatus) isGetFlowsResponse_ResponseTypes() {} func (*GetFlowsResponse_LostEvents) isGetFlowsResponse_ResponseTypes() {} type GetAgentEventsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Number of flows that should be returned. Incompatible with `since/until`. // Defaults to the most recent (last) `number` events, unless `first` is // true, then it will return the earliest `number` events. @@ -841,9 +841,7 @@ type GetAgentEventsRequest struct { // Since this time for returned agent events. Incompatible with `number`. Since *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=since,proto3" json:"since,omitempty"` // Until this time for returned agent events. Incompatible with `number`. - Until *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=until,proto3" json:"until,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Until *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=until,proto3" json:"until,omitempty"` } func (x *GetAgentEventsRequest) Reset() { @@ -913,14 +911,15 @@ func (x *GetAgentEventsRequest) GetUntil() *timestamppb.Timestamp { // GetAgentEventsResponse contains an event received from the Cilium agent. type GetAgentEventsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - AgentEvent *flow.AgentEvent `protobuf:"bytes,1,opt,name=agent_event,json=agentEvent,proto3" json:"agent_event,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AgentEvent *flow.AgentEvent `protobuf:"bytes,1,opt,name=agent_event,json=agentEvent,proto3" json:"agent_event,omitempty"` // Name of the node where this event was observed. NodeName string `protobuf:"bytes,1000,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Timestamp at which this event was observed. - Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` } func (x *GetAgentEventsResponse) Reset() { @@ -975,7 +974,10 @@ func (x *GetAgentEventsResponse) GetTime() *timestamppb.Timestamp { } type GetDebugEventsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Number of events that should be returned. Incompatible with `since/until`. // Defaults to the most recent (last) `number` events, unless `first` is // true, then it will return the earliest `number` events. @@ -989,9 +991,7 @@ type GetDebugEventsRequest struct { // Since this time for returned debug events. Incompatible with `number`. Since *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=since,proto3" json:"since,omitempty"` // Until this time for returned debug events. Incompatible with `number`. - Until *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=until,proto3" json:"until,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Until *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=until,proto3" json:"until,omitempty"` } func (x *GetDebugEventsRequest) Reset() { @@ -1061,14 +1061,15 @@ func (x *GetDebugEventsRequest) GetUntil() *timestamppb.Timestamp { // GetDebugEventsResponse contains a Cilium datapath debug events. type GetDebugEventsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - DebugEvent *flow.DebugEvent `protobuf:"bytes,1,opt,name=debug_event,json=debugEvent,proto3" json:"debug_event,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DebugEvent *flow.DebugEvent `protobuf:"bytes,1,opt,name=debug_event,json=debugEvent,proto3" json:"debug_event,omitempty"` // Name of the node where this event was observed. NodeName string `protobuf:"bytes,1000,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Timestamp at which this event was observed. - Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` } func (x *GetDebugEventsResponse) Reset() { @@ -1123,9 +1124,9 @@ func (x *GetDebugEventsResponse) GetTime() *timestamppb.Timestamp { } type GetNodesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetNodesRequest) Reset() { @@ -1160,11 +1161,12 @@ func (*GetNodesRequest) Descriptor() ([]byte, []int) { // GetNodesResponse contains the list of nodes. type GetNodesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Nodes is an exhaustive list of nodes. - Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Nodes is an exhaustive list of nodes. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` } func (x *GetNodesResponse) Reset() { @@ -1206,7 +1208,10 @@ func (x *GetNodesResponse) GetNodes() []*Node { // Node represents a cluster node. type Node struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name is the name of the node. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version is the version of Cilium/Hubble as reported by the node. @@ -1224,9 +1229,7 @@ type Node struct { // maximum capacity of the ring buffer MaxFlows uint64 `protobuf:"varint,8,opt,name=max_flows,json=maxFlows,proto3" json:"max_flows,omitempty"` // total amount of flows observed since the observer was started - SeenFlows uint64 `protobuf:"varint,9,opt,name=seen_flows,json=seenFlows,proto3" json:"seen_flows,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + SeenFlows uint64 `protobuf:"varint,9,opt,name=seen_flows,json=seenFlows,proto3" json:"seen_flows,omitempty"` } func (x *Node) Reset() { @@ -1324,14 +1327,15 @@ func (x *Node) GetSeenFlows() uint64 { // TLS represents TLS information. type TLS struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Enabled reports whether TLS is enabled or not. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // ServerName is the TLS server name that can be used as part of the TLS // cert validation process. - ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` } func (x *TLS) Reset() { @@ -1379,9 +1383,9 @@ func (x *TLS) GetServerName() string { } type GetNamespacesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetNamespacesRequest) Reset() { @@ -1416,11 +1420,12 @@ func (*GetNamespacesRequest) Descriptor() ([]byte, []int) { // GetNamespacesResponse contains the list of namespaces. type GetNamespacesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespaces is a list of namespaces with flows - Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Namespaces is a list of namespaces with flows + Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` } func (x *GetNamespacesResponse) Reset() { @@ -1461,11 +1466,12 @@ func (x *GetNamespacesResponse) GetNamespaces() []*Namespace { } type Namespace struct { - state protoimpl.MessageState `protogen:"open.v1"` - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` } func (x *Namespace) Reset() { @@ -1515,8 +1521,11 @@ func (x *Namespace) GetNamespace() string { // ExportEvent contains an event to be exported. Not to be used outside of the // exporter feature. type ExportEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to ResponseTypes: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ResponseTypes: // // *ExportEvent_Flow // *ExportEvent_NodeStatus @@ -1527,9 +1536,7 @@ type ExportEvent struct { // Name of the node where this event was observed. NodeName string `protobuf:"bytes,1000,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Timestamp at which this event was observed. - Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Time *timestamppb.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` } func (x *ExportEvent) Reset() { @@ -1562,54 +1569,44 @@ func (*ExportEvent) Descriptor() ([]byte, []int) { return file_observer_observer_proto_rawDescGZIP(), []int{15} } -func (x *ExportEvent) GetResponseTypes() isExportEvent_ResponseTypes { - if x != nil { - return x.ResponseTypes +func (m *ExportEvent) GetResponseTypes() isExportEvent_ResponseTypes { + if m != nil { + return m.ResponseTypes } return nil } func (x *ExportEvent) GetFlow() *flow.Flow { - if x != nil { - if x, ok := x.ResponseTypes.(*ExportEvent_Flow); ok { - return x.Flow - } + if x, ok := x.GetResponseTypes().(*ExportEvent_Flow); ok { + return x.Flow } return nil } func (x *ExportEvent) GetNodeStatus() *relay.NodeStatusEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*ExportEvent_NodeStatus); ok { - return x.NodeStatus - } + if x, ok := x.GetResponseTypes().(*ExportEvent_NodeStatus); ok { + return x.NodeStatus } return nil } func (x *ExportEvent) GetLostEvents() *flow.LostEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*ExportEvent_LostEvents); ok { - return x.LostEvents - } + if x, ok := x.GetResponseTypes().(*ExportEvent_LostEvents); ok { + return x.LostEvents } return nil } func (x *ExportEvent) GetAgentEvent() *flow.AgentEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*ExportEvent_AgentEvent); ok { - return x.AgentEvent - } + if x, ok := x.GetResponseTypes().(*ExportEvent_AgentEvent); ok { + return x.AgentEvent } return nil } func (x *ExportEvent) GetDebugEvent() *flow.DebugEvent { - if x != nil { - if x, ok := x.ResponseTypes.(*ExportEvent_DebugEvent); ok { - return x.DebugEvent - } + if x, ok := x.GetResponseTypes().(*ExportEvent_DebugEvent); ok { + return x.DebugEvent } return nil } @@ -1672,7 +1669,10 @@ func (*ExportEvent_DebugEvent) isExportEvent_ResponseTypes() {} // Experimental contains fields that are not stable yet. Support for // experimental features is always optional and subject to change. type GetFlowsRequest_Experimental struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // FieldMask allows clients to limit flow's fields that will be returned. // For example, {paths: ["source.id", "destination.id"]} will return flows // with only these two fields set. @@ -1680,9 +1680,7 @@ type GetFlowsRequest_Experimental struct { // removed in v1.17. // // Deprecated: Marked as deprecated in observer/observer.proto. - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` } func (x *GetFlowsRequest_Experimental) Reset() { diff --git a/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go b/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go index 362fb5b170..536886251d 100644 --- a/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go +++ b/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.29.2 +// - protoc v5.29.1 // source: observer/observer.proto package observer diff --git a/vendor/github.com/cilium/cilium/api/v1/relay/relay.pb.go b/vendor/github.com/cilium/cilium/api/v1/relay/relay.pb.go index cb38575371..3238ac08e8 100644 --- a/vendor/github.com/cilium/cilium/api/v1/relay/relay.pb.go +++ b/vendor/github.com/cilium/cilium/api/v1/relay/relay.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.1 -// protoc v5.29.2 +// protoc-gen-go v1.35.2 +// protoc v5.29.1 // source: relay/relay.proto package relay @@ -92,16 +92,17 @@ func (NodeState) EnumDescriptor() ([]byte, []int) { // NodeStatusEvent is a message sent by hubble-relay to inform clients about // the state of a particular node. type NodeStatusEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // state_change contains the new node state StateChange NodeState `protobuf:"varint,1,opt,name=state_change,json=stateChange,proto3,enum=relay.NodeState" json:"state_change,omitempty"` // node_names is the list of nodes for which the above state changes applies NodeNames []string `protobuf:"bytes,2,rep,name=node_names,json=nodeNames,proto3" json:"node_names,omitempty"` // message is an optional message attached to the state change (e.g. an // error message). The message applies to all nodes in node_names. - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` } func (x *NodeStatusEvent) Reset() { diff --git a/vendor/github.com/cilium/cilium/cilium-cli/cli/connectivity.go b/vendor/github.com/cilium/cilium/cilium-cli/cli/connectivity.go index 117420aa09..1c1dd8abc4 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/cli/connectivity.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/cli/connectivity.go @@ -129,7 +129,6 @@ func newCmdConnectivityTest(hooks api.Hooks) *cobra.Command { cmd.Flags().BoolVarP(¶ms.Timestamp, "timestamp", "t", false, "Show timestamp in messages") cmd.Flags().BoolVarP(¶ms.PauseOnFail, "pause-on-fail", "p", false, "Pause execution on test failure") cmd.Flags().StringVar(¶ms.ExternalTarget, "external-target", "one.one.one.one.", "Domain name to use as external target in connectivity tests") - cmd.Flags().StringVar(¶ms.ExternalOtherTarget, "external-other-target", "cilium.io.", "Domain name to use as a second external target in connectivity tests") cmd.Flags().StringVar(¶ms.ExternalTargetCANamespace, "external-target-ca-namespace", "", "Namespace of the CA secret for the external target. Used by client-egress-l7-tls test cases.") cmd.Flags().StringVar(¶ms.ExternalTargetCAName, "external-target-ca-name", "cabundle", "Name of the CA secret for the external target. Used by client-egress-l7-tls test cases.") cmd.Flags().StringVar(¶ms.ExternalCIDR, "external-cidr", "1.0.0.0/8", "CIDR to use as external target in connectivity tests") diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/builder.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/builder.go index caeb75dc7c..25451c4b77 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/builder.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/builder.go @@ -253,6 +253,8 @@ func concurrentTests(connTests []*check.ConnectivityTest) error { clientEgressL7Method{}, clientEgressL7{}, clientEgressL7NamedPort{}, + clientEgressL7TlsDenyWithoutHeaders{}, + clientEgressL7TlsHeaders{}, clientEgressTlsSni{}, clientEgressL7SetHeader{}, echoIngressAuthAlwaysFail{}, @@ -287,8 +289,6 @@ func sequentialTests(ct *check.ConnectivityTest) error { tests := []testBuilder{ hostFirewallIngress{}, hostFirewallEgress{}, - clientEgressL7TlsDenyWithoutHeaders{}, - clientEgressL7TlsHeaders{}, } return injectTests(tests, ct) } diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_deny_without_headers.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_deny_without_headers.go index 8e183c010a..3b58772808 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_deny_without_headers.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_deny_without_headers.go @@ -14,7 +14,7 @@ type clientEgressL7TlsDenyWithoutHeaders struct{} func (t clientEgressL7TlsDenyWithoutHeaders) build(ct *check.ConnectivityTest, templates map[string]string) { // Test L7 HTTPS interception using an egress policy on the clients. // Fail to load site due to missing headers. - newTest("seq-client-egress-l7-tls-deny-without-headers", ct). + newTest("client-egress-l7-tls-deny-without-headers", ct). WithFeatureRequirements(features.RequireEnabled(features.L7Proxy)). WithFeatureRequirements(features.RequireEnabled(features.PolicySecretBackendK8s)). WithCABundleSecret(). diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_headers.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_headers.go index ea551b0738..9ecc334fab 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_headers.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/client_egress_l7_tls_headers.go @@ -19,10 +19,10 @@ func (t clientEgressL7TlsHeaders) build(ct *check.ConnectivityTest, templates ma } func clientEgressL7TlsHeadersTest(ct *check.ConnectivityTest, templates map[string]string, portRanges bool) { - testName := "seq-client-egress-l7-tls-headers" + testName := "client-egress-l7-tls-headers" yamlFile := templates["clientEgressL7TLSPolicyYAML"] if portRanges { - testName = "seq-client-egress-l7-tls-headers-port-range" + testName = "client-egress-l7-tls-headers-port-range" yamlFile = templates["clientEgressL7TLSPolicyPortRangeYAML"] } // Test L7 HTTPS interception using an egress policy on the clients. diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/to_fqdns.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/to_fqdns.go index 0fd37b7cbe..b45e59207a 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/to_fqdns.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/builder/to_fqdns.go @@ -22,12 +22,17 @@ func (t toFqdns) build(ct *check.ConnectivityTest, templates map[string]string) WithFeatureRequirements(features.RequireEnabled(features.L7Proxy)). WithScenarios( tests.PodToWorld(tests.WithRetryDestPort(80)), - tests.PodToWorld2(), // resolves to ExternalOtherTarget + tests.PodToWorld2(), // resolves cilium.io. ). WithExpectations(func(a *check.Action) (egress, ingress check.Result) { - if a.Destination().Address(features.IPFamilyAny) == ct.Params().ExternalOtherTarget { + if a.Destination().Address(features.IPFamilyAny) == "cilium.io." { if a.Destination().Path() == "/" || a.Destination().Path() == "" { - // Expect packets to other external target to be dropped. + egress = check.ResultDNSOK + egress.HTTP = check.HTTP{ + Method: "GET", + URL: "https://cilium.io", + } + // Expect packets for cilium.io / 104.198.14.52 to be dropped. return check.ResultDropCurlTimeout, check.ResultNone } // Else expect HTTP drop by proxy diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/check.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/check.go index 0cf0549be5..3d64362796 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/check.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/check.go @@ -74,7 +74,6 @@ type Parameters struct { DeploymentAnnotations annotationsMap NamespaceAnnotations annotations ExternalTarget string - ExternalOtherTarget string ExternalCIDR string ExternalIP string ExternalDeploymentPort int diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/deployment.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/deployment.go index afe2e449cf..5eb0d2a95b 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/deployment.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/deployment.go @@ -28,7 +28,6 @@ import ( ciliumv2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" slimmetav1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/meta/v1" policyapi "github.com/cilium/cilium/pkg/policy/api" - "github.com/cilium/cilium/pkg/versioncheck" ) const ( @@ -575,11 +574,6 @@ func (ct *ConnectivityTest) deploy(ctx context.Context) error { } if enabled, _ := ct.Features.MatchRequirements(features.RequireEnabled(features.CNP)); enabled { - ipsec, _ := ct.Features.MatchRequirements(features.RequireMode(features.EncryptionPod, "ipsec")) - if ipsec && versioncheck.MustCompile(">=1.14.0 <1.16.0")(ct.CiliumVersion) { - // https://github.com/cilium/cilium/issues/36681 - continue - } for _, client := range ct.Clients() { ct.Logf("✨ [%s] Deploying %s CiliumNetworkPolicy...", client.ClusterName(), testConnDisruptCNPName) _, err = client.ApplyGeneric(ctx, newConnDisruptCNP(ct.params.TestNamespace)) diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/test.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/test.go index ec6d9b1782..c6a5f54961 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/test.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/check/test.go @@ -833,16 +833,6 @@ func (t *Test) collectSysdump() { func (t *Test) ForEachIPFamily(do func(features.IPFamily)) { ipFams := []features.IPFamily{features.IPFamilyV4, features.IPFamilyV6} - // The per-endpoint routes feature is broken with IPv6 on < v1.14 when there - // are any netpols installed (https://github.com/cilium/cilium/issues/23852 - // and https://github.com/cilium/cilium/issues/23910). - if f, ok := t.Context().Feature(features.EndpointRoutes); ok && - f.Enabled && t.HasNetworkPolicies() && - versioncheck.MustCompile("<1.14.0")(t.Context().CiliumVersion) { - - ipFams = []features.IPFamily{features.IPFamilyV4} - } - for _, ipFam := range ipFams { switch ipFam { case features.IPFamilyV4: @@ -866,12 +856,3 @@ func (t *Test) CertificateCAs() map[string][]byte { func (t *Test) CiliumLocalRedirectPolicies() map[string]*ciliumv2.CiliumLocalRedirectPolicy { return t.clrps } - -func (t *Test) HasNetworkPolicies() bool { - for _, obj := range t.resources { - if isPolicy(obj) { - return true - } - } - return false -} diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/errors.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/errors.go index 0ca5f8fa99..f9a553c99b 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/errors.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/errors.go @@ -64,21 +64,19 @@ func NoErrorsInLogs(ciliumVersion semver.Version, checkLevels []string) check.Sc failedCreategRPCClient, unableReallocateIngressIP, fqdnMaxIPPerHostname, failedGetMetricsAPI} // The list is adopted from cilium/cilium/test/helper/utils.go var errorMsgsWithExceptions = map[string][]logMatcher{ - panicMessage: nil, - deadLockHeader: nil, - RunInitFailed: nil, - emptyBPFInitArg: nil, - RemovingMapMsg: {stringMatcher("globals/cilium_policy")}, - symbolSubstitution: nil, - uninitializedRegen: nil, - unstableStat: nil, - missingIptablesWait: nil, - localIDRestoreFail: nil, - routerIPMismatch: nil, - emptyIPNodeIDAlloc: nil, - "DATA RACE": nil, - envoyErrorMessage: nil, - envoyCriticalMessage: nil, + panicMessage: nil, + deadLockHeader: nil, + RunInitFailed: nil, + emptyBPFInitArg: nil, + RemovingMapMsg: {stringMatcher("globals/cilium_policy")}, + symbolSubstitution: nil, + uninitializedRegen: nil, + unstableStat: nil, + missingIptablesWait: nil, + localIDRestoreFail: nil, + routerIPMismatch: nil, + emptyIPNodeIDAlloc: nil, + "DATA RACE": nil, } if slices.Contains(checkLevels, defaults.LogLevelError) { errorMsgsWithExceptions["level=error"] = errorLogExceptions @@ -311,10 +309,6 @@ const ( unableReallocateIngressIP stringMatcher = "unable to re-allocate ingress IPv6" // cf. https://github.com/cilium/cilium/issues/36072 fqdnMaxIPPerHostname stringMatcher = "Raise tofqdns-endpoint-max-ip-per-hostname to mitigate this" // cf. https://github.com/cilium/cilium/issues/36073 failedGetMetricsAPI stringMatcher = "retrieve the complete list of server APIs: metrics.k8s.io/v1beta1" // cf. https://github.com/cilium/cilium/issues/36085 - - // Logs messages that should not be in the cilium-envoy DS logs - envoyErrorMessage = "[error]" - envoyCriticalMessage = "[critical]" ) var ( diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/service.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/service.go index 9bc3d67b8e..74ffa2fd8f 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/service.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/service.go @@ -12,7 +12,6 @@ import ( "github.com/cilium/cilium/cilium-cli/connectivity/check" "github.com/cilium/cilium/cilium-cli/utils/features" - "github.com/cilium/cilium/pkg/versioncheck" ) // PodToService sends an HTTP request from all client Pods @@ -228,13 +227,6 @@ func curlNodePort(ctx context.Context, s check.Scenario, t *check.Test, } } - // Skip IPv6 requests when running on <1.14.0 Cilium with CNPs - if features.GetIPFamily(addr.Address) == features.IPFamilyV6 && - versioncheck.MustCompile("<1.14.0")(t.Context().CiliumVersion) && - t.HasNetworkPolicies() { - continue - } - // Manually construct an HTTP endpoint to override the destination IP // and port of the request. ep := check.HTTPEndpoint(name, fmt.Sprintf("%s://%s:%d%s", svc.Scheme(), addr.Address, np, svc.Path())) diff --git a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/world.go b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/world.go index e90221f615..6c46bc81fb 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/world.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/connectivity/tests/world.go @@ -70,7 +70,7 @@ func (s *podToWorld) Run(ctx context.Context, t *check.Test) { } } -// PodToWorld2 sends an HTTPS request to ExternalOtherTarget from random client +// PodToWorld2 sends an HTTPS request to cilium.io from from random client // Pods. func PodToWorld2() check.Scenario { return &podToWorld2{} @@ -84,8 +84,7 @@ func (s *podToWorld2) Name() string { } func (s *podToWorld2) Run(ctx context.Context, t *check.Test) { - extTarget := t.Context().Params().ExternalOtherTarget - https := check.HTTPEndpoint(extTarget+"-https", "https://"+extTarget) + https := check.HTTPEndpoint("cilium-io-https", "https://cilium.io.") fp := check.FlowParameters{ DNSRequired: true, @@ -97,7 +96,7 @@ func (s *podToWorld2) Run(ctx context.Context, t *check.Test) { for _, client := range ct.ClientPods() { // With https, over port 443. - t.NewAction(s, fmt.Sprintf("https-%s-%d", extTarget, i), &client, https, features.IPFamilyAny).Run(func(a *check.Action) { + t.NewAction(s, fmt.Sprintf("https-cilium-io-%d", i), &client, https, features.IPFamilyAny).Run(func(a *check.Action) { a.ExecInPod(ctx, ct.CurlCommand(https, features.IPFamilyAny)) a.ValidateFlows(ctx, client, a.GetEgressRequirements(fp)) a.ValidateMetrics(ctx, client, a.GetEgressMetricsRequirements()) diff --git a/vendor/github.com/cilium/cilium/cilium-cli/defaults/defaults.go b/vendor/github.com/cilium/cilium/cilium-cli/defaults/defaults.go index 91bd6a43ce..650bce1263 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/defaults/defaults.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/defaults/defaults.go @@ -76,7 +76,7 @@ const ( // renovate: datasource=docker ConnectivityTestConnDisruptImage = "quay.io/cilium/test-connection-disruption:v0.0.14@sha256:c3fd56e326ae16f6cb63dbb2e26b4e47ec07a123040623e11399a7fe1196baa0" // renovate: datasource=docker - ConnectivityTestFRRImage = "quay.io/frrouting/frr:10.2.1@sha256:c8543d3e0a1348cc0f2b19154fd8b0300e237773dbec65d9d6d6570c1d088deb" + ConnectivityTestFRRImage = "quay.io/frrouting/frr:10.2.0@sha256:68733b8504b30d2a8565e43038f1313a500f2d9d58251882915eff0fbbd85e59" // renovate: datasource=docker ConnectivityTestSocatImage = "docker.io/alpine/socat:1.8.0.0@sha256:a6be4c0262b339c53ddad723cdd178a1a13271e1137c65e27f90a08c16de02b8" diff --git a/vendor/github.com/cilium/cilium/cilium-cli/install/aws.go b/vendor/github.com/cilium/cilium/cilium-cli/install/aws.go index 91e371d2c9..6e7893410a 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/install/aws.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/install/aws.go @@ -5,8 +5,11 @@ package install import ( "context" + "errors" "fmt" + "strings" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/types" @@ -19,6 +22,37 @@ const ( AwsNodeDaemonSetNodeSelectorValue = "true" ) +const ( + AwsNodeImageFamilyAmazonLinux2 = "AmazonLinux2" + AwsNodeImageFamilyAmazonLinux2023 = "AmazonLinux2023" + AwsNodeImageFamilyBottlerocket = "Bottlerocket" + AwsNodeImageFamilyCustom = "Custom" + AwsNodeImageFamilyUbuntu = "Ubuntu" + AwsNodeImageFamilyWindows = "Windows" +) + +func (k *K8sInstaller) awsRetrieveNodeImageFamily() error { + // setting default fallback value + k.params.AWS.AwsNodeImageFamily = AwsNodeImageFamilyCustom + + nodes, err := k.client.ListNodes(context.Background(), metav1.ListOptions{}) + if err != nil { + k.Log("❌ Could not list cluster nodes, defaulted to fallback node image family value: %s", k.params.AWS.AwsNodeImageFamily) + return err + } + + ami, err := getNodeImage(nodes.Items) + if err != nil { + k.Log("❌ Could not detect AWS node image family, defaulted to fallback value: %s", k.params.AWS.AwsNodeImageFamily) + return err + } + + k.params.AWS.AwsNodeImageFamily = ami + k.Log("✅ Detected AWS node image family: %s", k.params.AWS.AwsNodeImageFamily) + + return nil +} + func getChainingMode(values map[string]interface{}) string { chainingMode, _, _ := unstructured.NestedString(values, "cni", "chainingMode") return chainingMode @@ -42,3 +76,39 @@ func (k *K8sInstaller) awsSetupChainingMode(ctx context.Context, values map[stri return nil } + +func getNodeImage(nodes []corev1.Node) (string, error) { + if len(nodes) == 0 { + return "", errors.New("unable to detect node OS, cluster has no nodes") + } + + amiFn := func(ami string) string { + ami = strings.ToUpper(ami) + switch { + case strings.Contains(ami, "AMAZON LINUX 2023"): + return AwsNodeImageFamilyAmazonLinux2023 + case strings.Contains(ami, "AMAZON LINUX 2"): + return AwsNodeImageFamilyAmazonLinux2 + case strings.Contains(ami, "BOTTLEROCKET"): + return AwsNodeImageFamilyBottlerocket + case strings.Contains(ami, "UBUNTU"): + return AwsNodeImageFamilyUbuntu + case strings.Contains(ami, "WINDOWS"): + return AwsNodeImageFamilyWindows + default: + return AwsNodeImageFamilyCustom + } + } + + ami := amiFn(nodes[0].Status.NodeInfo.OSImage) + // verify that all cluster nodes use the same OS image + // because currently mixed nodes setup is not supported + for i := 1; i < len(nodes); i++ { + nodeAmi := amiFn(nodes[i].Status.NodeInfo.OSImage) + if ami != nodeAmi { + return "", fmt.Errorf("cluster has nodes with different OS images: '%s' and '%s'", ami, nodeAmi) + } + } + + return ami, nil +} diff --git a/vendor/github.com/cilium/cilium/cilium-cli/install/helm.go b/vendor/github.com/cilium/cilium/cilium-cli/install/helm.go index 997365f06d..26fdcd0114 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/install/helm.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/install/helm.go @@ -64,13 +64,9 @@ func (k *K8sInstaller) getHelmValues() (map[string]interface{}, error) { // Can be removed once we drop support for <1.14.0 helmMapOpts["tunnel"] = tunnelDisabled } - if versioncheck.MustCompile(">=1.17.0")(k.chartVersion) { - // AL2023 uses ens interfaces, but we default to eth interfaces for everything else for backwards compatibility, - // since the CLI was assuming eth interfaces before support for AL2023 was introduced - helmMapOpts["egressMasqueradeInterfaces"] = "eth+ ens+" - } else { - helmMapOpts["egressMasqueradeInterfaces"] = "eth+" - } + // AL2023 uses ens interfaces, but we default to eth interfaces for everything else for backwards compatibility, + // since the CLI was assuming eth interfaces before support for AL2023 was introduced + helmMapOpts["egressMasqueradeInterfaces"] = "eth+ ens+" case DatapathGKE: helmMapOpts["ipam.mode"] = ipamKubernetes diff --git a/vendor/github.com/cilium/cilium/cilium-cli/install/install.go b/vendor/github.com/cilium/cilium/cilium-cli/install/install.go index 9f8a750175..a9a832dba3 100644 --- a/vendor/github.com/cilium/cilium/cilium-cli/install/install.go +++ b/vendor/github.com/cilium/cilium/cilium-cli/install/install.go @@ -92,6 +92,10 @@ type AzureParameters struct { IsBYOCNI bool } +type AWSParameters struct { + AwsNodeImageFamily string +} + type Parameters struct { Namespace string Writer io.Writer @@ -102,6 +106,7 @@ type Parameters struct { DatapathMode string IPv4NativeRoutingCIDR string Azure AzureParameters + AWS AWSParameters // HelmChartDirectory points to the location of a helm chart directory. // Useful to test from upstream where a helm release is not available yet. @@ -224,6 +229,11 @@ func (k *K8sInstaller) preinstall(ctx context.Context) error { } } case k8s.KindEKS: + // detect AWS AMI type + if err := k.awsRetrieveNodeImageFamily(); err != nil { + return err + } + // setup chaining mode if err := k.awsSetupChainingMode(ctx, helmValues); err != nil { return err diff --git a/vendor/github.com/cilium/cilium/pkg/bgpv1/agent/controller.go b/vendor/github.com/cilium/cilium/pkg/bgpv1/agent/controller.go index dfa9c9102d..3754e88aed 100644 --- a/vendor/github.com/cilium/cilium/pkg/bgpv1/agent/controller.go +++ b/vendor/github.com/cilium/cilium/pkg/bgpv1/agent/controller.go @@ -270,9 +270,6 @@ func (c *Controller) Reconcile(ctx context.Context) error { log.WithError(err).Error("failed to get BGPNodeConfig") return err } - if bgpncExists { - bgpnc = bgpnc.DeepCopy() // reconcilers can mutate the NodeConfig, make a copy to not mutate the version in store - } switch c.ConfigMode.Get() { case mode.Disabled: diff --git a/vendor/github.com/cilium/cilium/pkg/bgpv1/types/bgp.go b/vendor/github.com/cilium/cilium/pkg/bgpv1/types/bgp.go index 1541ccd930..42aa85b311 100644 --- a/vendor/github.com/cilium/cilium/pkg/bgpv1/types/bgp.go +++ b/vendor/github.com/cilium/cilium/pkg/bgpv1/types/bgp.go @@ -6,7 +6,6 @@ package types import ( "context" "net/netip" - "strings" "github.com/osrg/gobgp/v3/pkg/packet/bgp" @@ -127,19 +126,6 @@ type RoutePolicyConditions struct { MatchFamilies []Family } -// String() constructs a string identifier -func (r RoutePolicyConditions) String() string { - values := []string{} - values = append(values, r.MatchNeighbors...) - for _, family := range r.MatchFamilies { - values = append(values, family.String()) - } - for _, prefix := range r.MatchPrefixes { - values = append(values, prefix.CIDR.String()) - } - return strings.Join(values, "-") -} - // RoutePolicyAction defines the action taken on a route matched by a routing policy. type RoutePolicyAction int diff --git a/vendor/github.com/cilium/cilium/pkg/bgpv1/types/fake_router.go b/vendor/github.com/cilium/cilium/pkg/bgpv1/types/fake_router.go index 3c67c35606..f1bf0dc4ef 100644 --- a/vendor/github.com/cilium/cilium/pkg/bgpv1/types/fake_router.go +++ b/vendor/github.com/cilium/cilium/pkg/bgpv1/types/fake_router.go @@ -6,14 +6,12 @@ package types import "context" type FakeRouter struct { - paths map[string]*Path - policies map[string]*RoutePolicy + paths map[string]*Path } func NewFakeRouter() Router { return &FakeRouter{ - paths: make(map[string]*Path), - policies: make(map[string]*RoutePolicy), + paths: make(map[string]*Path), } } @@ -48,12 +46,10 @@ func (f *FakeRouter) WithdrawPath(ctx context.Context, p PathRequest) error { } func (f *FakeRouter) AddRoutePolicy(ctx context.Context, p RoutePolicyRequest) error { - f.policies[p.Policy.Name] = p.Policy return nil } func (f *FakeRouter) RemoveRoutePolicy(ctx context.Context, p RoutePolicyRequest) error { - delete(f.policies, p.Policy.Name) return nil } @@ -73,11 +69,7 @@ func (f *FakeRouter) GetRoutes(ctx context.Context, r *GetRoutesRequest) (*GetRo } func (f *FakeRouter) GetRoutePolicies(ctx context.Context) (*GetRoutePoliciesResponse, error) { - var policies []*RoutePolicy - for _, policy := range f.policies { - policies = append(policies, policy) - } - return &GetRoutePoliciesResponse{Policies: policies}, nil + return nil, nil } func (f *FakeRouter) GetBGP(ctx context.Context) (GetBGPResponse, error) { diff --git a/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go b/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go index 05d91502dd..dcf0950dcd 100644 --- a/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go +++ b/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go @@ -745,6 +745,7 @@ func ExecuteHeaderProbes() *FeatureProbes { // common probes {ebpf.CGroupSock, asm.FnGetNetnsCookie}, {ebpf.CGroupSockAddr, asm.FnGetNetnsCookie}, + {ebpf.CGroupSockAddr, asm.FnGetSocketCookie}, {ebpf.CGroupSock, asm.FnJiffies64}, {ebpf.CGroupSockAddr, asm.FnJiffies64}, {ebpf.SchedCLS, asm.FnJiffies64}, @@ -777,6 +778,7 @@ func writeCommonHeader(writer io.Writer, probes *FeatureProbes) error { features := map[string]bool{ "HAVE_NETNS_COOKIE": probes.ProgramHelpers[ProgramHelper{ebpf.CGroupSock, asm.FnGetNetnsCookie}] && probes.ProgramHelpers[ProgramHelper{ebpf.CGroupSockAddr, asm.FnGetNetnsCookie}], + "HAVE_SOCKET_COOKIE": probes.ProgramHelpers[ProgramHelper{ebpf.CGroupSockAddr, asm.FnGetSocketCookie}], "HAVE_JIFFIES": probes.ProgramHelpers[ProgramHelper{ebpf.CGroupSock, asm.FnJiffies64}] && probes.ProgramHelpers[ProgramHelper{ebpf.CGroupSockAddr, asm.FnJiffies64}] && probes.ProgramHelpers[ProgramHelper{ebpf.SchedCLS, asm.FnJiffies64}] && diff --git a/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go b/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go index 06b0fab602..e8032c231f 100644 --- a/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go +++ b/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go @@ -370,6 +370,10 @@ const ( // kvstore consecutive quorum errors before the agent assumes permanent failure KVstoreMaxConsecutiveQuorumErrors = 2 + // KVstoreKeepAliveIntervalFactor is the factor to calculate the interval + // from KVstoreLeaseTTL in which KVstore lease is being renewed. + KVstoreKeepAliveIntervalFactor = 3 + // LockLeaseTTL is the time-to-live of the lease dedicated for locks of Kvstore. LockLeaseTTL = 25 * time.Second @@ -581,9 +585,6 @@ const ( // EnableSourceIPVerification is the default value for source ip validation EnableSourceIPVerification = true - - // BGPRouterIDAllocationMode is default BGP router-id allocation mode - BGPRouterIDAllocationMode = "default" ) var ( diff --git a/vendor/github.com/cilium/cilium/pkg/envoy/resource/envoy.go b/vendor/github.com/cilium/cilium/pkg/envoy/resource/envoy.go index 1a1c1ed275..25b1eaefe8 100644 --- a/vendor/github.com/cilium/cilium/pkg/envoy/resource/envoy.go +++ b/vendor/github.com/cilium/cilium/pkg/envoy/resource/envoy.go @@ -106,7 +106,6 @@ import ( _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/oauth2/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/on_demand/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/original_src/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_logging/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/rate_limit_quota/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/http/ratelimit/v3" @@ -131,12 +130,6 @@ import ( _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/dubbo_proxy/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/echo/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/ext_authz/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/http_connection_manager/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/local_ratelimit/v3" _ "github.com/cilium/proxy/go/envoy/extensions/filters/network/mongo_proxy/v3" @@ -199,7 +192,6 @@ import ( _ "github.com/cilium/proxy/go/envoy/extensions/matching/common_inputs/ssl/v3" _ "github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/consistent_hashing/v3" _ "github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/ip/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3" _ "github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/runtime_fraction/v3" _ "github.com/cilium/proxy/go/envoy/extensions/network/dns_resolver/apple/v3" _ "github.com/cilium/proxy/go/envoy/extensions/network/dns_resolver/cares/v3" @@ -219,7 +211,6 @@ import ( _ "github.com/cilium/proxy/go/envoy/extensions/rbac/matchers/upstream_ip_port/v3" _ "github.com/cilium/proxy/go/envoy/extensions/regex_engines/v3" _ "github.com/cilium/proxy/go/envoy/extensions/request_id/uuid/v3" - _ "github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3" _ "github.com/cilium/proxy/go/envoy/extensions/resource_monitors/downstream_connections/v3" _ "github.com/cilium/proxy/go/envoy/extensions/resource_monitors/fixed_heap/v3" _ "github.com/cilium/proxy/go/envoy/extensions/resource_monitors/injected_resource/v3" @@ -269,7 +260,6 @@ import ( _ "github.com/cilium/proxy/go/envoy/service/metrics/v3" _ "github.com/cilium/proxy/go/envoy/service/rate_limit_quota/v3" _ "github.com/cilium/proxy/go/envoy/service/ratelimit/v3" - _ "github.com/cilium/proxy/go/envoy/service/redis_auth/v3" _ "github.com/cilium/proxy/go/envoy/service/route/v3" _ "github.com/cilium/proxy/go/envoy/service/runtime/v3" _ "github.com/cilium/proxy/go/envoy/service/secret/v3" diff --git a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go index 963cab1e9c..d339efce42 100644 --- a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go +++ b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go @@ -15,5 +15,5 @@ const ( // // Maintainers: Run ./Documentation/check-crd-compat-table.sh for each release // Developers: Bump patch for each change in the CRD schema. - CustomResourceDefinitionSchemaVersion = "1.31.0" + CustomResourceDefinitionSchemaVersion = "1.30.6" ) diff --git a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_override_types.go b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_override_types.go index 72f714df08..f14bdb419e 100644 --- a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_override_types.go +++ b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_override_types.go @@ -77,13 +77,6 @@ type CiliumBGPNodeConfigInstanceOverride struct { // +listType=map // +listMapKey=name Peers []CiliumBGPNodeConfigPeerOverride `json:"peers,omitempty"` - - // LocalASN is the ASN to use for this BGP instance. - // - // +kubebuilder:validation:Optional - // +kubebuilder:validation:Minimum=1 - // +kubebuilder:validation:Maximum=4294967295 - LocalASN *int64 `json:"localASN,omitempty"` } // CiliumBGPNodeConfigPeerOverride defines configuration options which can be overridden for a specific peer. diff --git a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go index 6a0a23bd17..ad712afe26 100644 --- a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go +++ b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go @@ -545,11 +545,6 @@ func (in *CiliumBGPNodeConfigInstanceOverride) DeepCopyInto(out *CiliumBGPNodeCo (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.LocalASN != nil { - in, out := &in.LocalASN, &out.LocalASN - *out = new(int64) - **out = **in - } return } diff --git a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go index 5e5d0bee96..cca99d9aea 100644 --- a/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go +++ b/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go @@ -560,14 +560,6 @@ func (in *CiliumBGPNodeConfigInstanceOverride) DeepEqual(other *CiliumBGPNodeCon } } - if (in.LocalASN == nil) != (other.LocalASN == nil) { - return false - } else if in.LocalASN != nil { - if *in.LocalASN != *other.LocalASN { - return false - } - } - return true } diff --git a/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go b/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go index 08ea50f93d..ac6a77f132 100644 --- a/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go +++ b/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go @@ -353,11 +353,6 @@ var ( // time taken to fully deploy an endpoint. PolicyImplementationDelay = NoOpObserverVec - // PolicyIncrementalUpdateDuration is the time it takes to apply an incremental update - // to the policy engine. An incremental update is a newly-learned identity that can be - // directly added to policy maps without a full policy recalculation. - PolicyIncrementalUpdateDuration = NoOpObserverVec - // CIDRGroup // CIDRGroupsReferenced is the number of CNPs and CCNPs referencing at least one CiliumCIDRGroup. @@ -674,7 +669,6 @@ type LegacyMetrics struct { PolicyChangeTotal metric.Vec[metric.Counter] PolicyEndpointStatus metric.Vec[metric.Gauge] PolicyImplementationDelay metric.Vec[metric.Observer] - PolicyIncrementalUpdateDuration metric.Vec[metric.Observer] CIDRGroupsReferenced metric.Gauge Identity metric.Vec[metric.Gauge] IdentityLabelSources metric.Vec[metric.Gauge] @@ -848,15 +842,6 @@ func NewLegacyMetrics() *LegacyMetrics { }, }), - PolicyIncrementalUpdateDuration: metric.NewHistogramVec(metric.HistogramOpts{ - ConfigName: Namespace + "_policy_incremental_update_duration", - - Namespace: Namespace, - Name: "policy_incremental_update_duration", - Help: "Time between learning about a new identity and it being fully added to all policies.", - Buckets: prometheus.ExponentialBuckets(10e-6, 10, 8), - }, []string{"scope"}), - CIDRGroupsReferenced: metric.NewGauge(metric.GaugeOpts{ ConfigName: Namespace + "cidrgroups_referenced", @@ -1396,7 +1381,6 @@ func NewLegacyMetrics() *LegacyMetrics { PolicyChangeTotal = lm.PolicyChangeTotal PolicyEndpointStatus = lm.PolicyEndpointStatus PolicyImplementationDelay = lm.PolicyImplementationDelay - PolicyIncrementalUpdateDuration = lm.PolicyIncrementalUpdateDuration CIDRGroupsReferenced = lm.CIDRGroupsReferenced Identity = lm.Identity IdentityLabelSources = lm.IdentityLabelSources diff --git a/vendor/github.com/cilium/cilium/pkg/option/config.go b/vendor/github.com/cilium/cilium/pkg/option/config.go index 9215cd7566..8557222a3c 100644 --- a/vendor/github.com/cilium/cilium/pkg/option/config.go +++ b/vendor/github.com/cilium/cilium/pkg/option/config.go @@ -1097,9 +1097,6 @@ const ( // EnableBGPControlPlaneStatusReport enables BGP Control Plane CRD status reporting EnableBGPControlPlaneStatusReport = "enable-bgp-control-plane-status-report" - // BGP router-id allocation mode in ipv6 standalone environment - BGPRouterIDAllocationMode = "bgp-router-id-allocation-mode" - // EnableRuntimeDeviceDetection is the name of the option to enable detection // of new and removed datapath devices during the agent runtime. EnableRuntimeDeviceDetection = "enable-runtime-device-detection" @@ -1793,6 +1790,11 @@ type DaemonConfig struct { // is marked as healthy. HealthCheckICMPFailureThreshold int + // KVstoreKeepAliveInterval is the interval in which the lease is being + // renewed. This must be set to a value lesser than the LeaseTTL ideally + // by a factor of 3. + KVstoreKeepAliveInterval time.Duration + // KVstoreLeaseTTL is the time-to-live for kvstore lease. KVstoreLeaseTTL time.Duration @@ -2188,9 +2190,6 @@ type DaemonConfig struct { // Enables BGP control plane status reporting. EnableBGPControlPlaneStatusReport bool - // BGPRouterIDAllocationMode is the mode to allocate the BGP router-id in ipv6 standalone environment. - BGPRouterIDAllocationMode string - // BPFMapEventBuffers has configuration on what BPF map event buffers to enabled // and configuration options for those. BPFMapEventBuffers map[string]string @@ -2906,6 +2905,7 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.KeepConfig = vp.GetBool(KeepConfig) c.KVStore = vp.GetString(KVStore) c.KVstoreLeaseTTL = vp.GetDuration(KVstoreLeaseTTL) + c.KVstoreKeepAliveInterval = c.KVstoreLeaseTTL / defaults.KVstoreKeepAliveIntervalFactor c.KVstorePeriodicSync = vp.GetDuration(KVstorePeriodicSync) c.KVstoreConnectivityTimeout = vp.GetDuration(KVstoreConnectivityTimeout) c.KVstorePodNetworkSupport = vp.GetBool(KVstorePodNetworkSupport) @@ -3300,9 +3300,6 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { // Enable BGP control plane status reporting c.EnableBGPControlPlaneStatusReport = vp.GetBool(EnableBGPControlPlaneStatusReport) - // BGP router-id allocation mode in IPv6 standalone environment - c.BGPRouterIDAllocationMode = vp.GetString(BGPRouterIDAllocationMode) - // Support failure-mode for policy map overflow c.EnableEndpointLockdownOnPolicyOverflow = vp.GetBool(EnableEndpointLockdownOnPolicyOverflow) diff --git a/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go b/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go index 126fd1c98d..1e627c3f51 100644 --- a/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go +++ b/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go @@ -23,9 +23,6 @@ const ( var ( ErrFromToNodesRequiresNodeSelectorOption = fmt.Errorf("FromNodes/ToNodes rules can only be applied when the %q flag is set", option.EnableNodeSelectorLabels) - errUnsupportedICMPWithToPorts = errors.New("the ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts") - errEmptyServerName = errors.New("empty server name is not allowed") - enableDefaultDenyDefault = true ) @@ -57,10 +54,10 @@ func (r *Rule) Sanitize() error { } if r.EndpointSelector.LabelSelector == nil && r.NodeSelector.LabelSelector == nil { - return errors.New("rule must have one of EndpointSelector or NodeSelector") + return fmt.Errorf("rule must have one of EndpointSelector or NodeSelector") } if r.EndpointSelector.LabelSelector != nil && r.NodeSelector.LabelSelector != nil { - return errors.New("rule cannot have both EndpointSelector and NodeSelector") + return fmt.Errorf("rule cannot have both EndpointSelector and NodeSelector") } if r.EndpointSelector.LabelSelector != nil { @@ -83,24 +80,12 @@ func (r *Rule) Sanitize() error { } } - for i := range r.IngressDeny { - if err := r.IngressDeny[i].sanitize(); err != nil { - return err - } - } - for i := range r.Egress { if err := r.Egress[i].sanitize(hostPolicy); err != nil { return err } } - for i := range r.EgressDeny { - if err := r.EgressDeny[i].sanitize(); err != nil { - return err - } - } - return nil } @@ -117,19 +102,32 @@ func countL7Rules(ports []PortRule) map[string]int { } func (i *IngressRule) sanitize(hostPolicy bool) error { + var retErr error + + l3Members := map[string]int{ + "FromEndpoints": len(i.FromEndpoints), + "FromCIDR": len(i.FromCIDR), + "FromCIDRSet": len(i.FromCIDRSet), + "FromEntities": len(i.FromEntities), + "FromNodes": len(i.FromNodes), + "FromGroups": len(i.FromGroups), + } l7Members := countL7Rules(i.ToPorts) l7IngressSupport := map[string]bool{ "DNS": false, "Kafka": true, "HTTP": true, } - - if err := i.IngressCommonRule.sanitize(); err != nil { - return err + if hostPolicy && len(l7Members) > 0 { + return fmt.Errorf("L7 policy is not supported on host ingress yet") } - if hostPolicy && len(l7Members) > 0 { - return errors.New("L7 policy is not supported on host ingress yet") + for m1 := range l3Members { + for m2 := range l3Members { + if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { + return fmt.Errorf("Combining %s and %s is not supported yet", m1, m2) + } + } } if len(l7Members) > 0 && !option.Config.EnableL7Proxy { @@ -146,41 +144,27 @@ func (i *IngressRule) sanitize(hostPolicy bool) error { } if len(i.ICMPs) > 0 && len(i.ToPorts) > 0 { - return errUnsupportedICMPWithToPorts + return fmt.Errorf("The ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts.") } - for n := range i.ToPorts { - if err := i.ToPorts[n].sanitize(true); err != nil { - return err - } + if len(i.FromNodes) > 0 && !option.Config.EnableNodeSelectorLabels { + retErr = ErrFromToNodesRequiresNodeSelectorOption } - for n := range i.ICMPs { - if err := i.ICMPs[n].verify(); err != nil { + for _, es := range i.FromEndpoints { + if err := es.sanitize(); err != nil { return err } } - i.SetAggregatedSelectors() - - return nil -} - -func (i *IngressDenyRule) sanitize() error { - if err := i.IngressCommonRule.sanitize(); err != nil { - return err - } - - if len(i.ICMPs) > 0 && !option.Config.EnableICMPRules { - return fmt.Errorf("ICMP rules can only be applied when the %q flag is set", option.EnableICMPRules) - } - - if len(i.ICMPs) > 0 && len(i.ToPorts) > 0 { - return errUnsupportedICMPWithToPorts + for _, es := range i.FromRequires { + if err := es.sanitize(); err != nil { + return err + } } for n := range i.ToPorts { - if err := i.ToPorts[n].sanitize(); err != nil { + if err := i.ToPorts[n].sanitize(true); err != nil { return err } } @@ -191,72 +175,33 @@ func (i *IngressDenyRule) sanitize() error { } } - i.SetAggregatedSelectors() - - return nil -} - -func (i *IngressCommonRule) sanitize() error { - l3Members := map[string]int{ - "FromEndpoints": len(i.FromEndpoints), - "FromCIDR": len(i.FromCIDR), - "FromCIDRSet": len(i.FromCIDRSet), - "FromEntities": len(i.FromEntities), - "FromNodes": len(i.FromNodes), - "FromGroups": len(i.FromGroups), - } - - for m1 := range l3Members { - for m2 := range l3Members { - if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { - return fmt.Errorf("combining %s and %s is not supported yet", m1, m2) - } - } - } - - var retErr error - - if len(i.FromNodes) > 0 && !option.Config.EnableNodeSelectorLabels { - retErr = ErrFromToNodesRequiresNodeSelectorOption - } - - for _, es := range i.FromEndpoints { - if err := es.sanitize(); err != nil { - return errors.Join(err, retErr) - } - } - - for _, es := range i.FromRequires { - if err := es.sanitize(); err != nil { - return errors.Join(err, retErr) - } - } - for _, ns := range i.FromNodes { if err := ns.sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for n := range i.FromCIDR { if err := i.FromCIDR[n].sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for n := range i.FromCIDRSet { if err := i.FromCIDRSet[n].sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for _, fromEntity := range i.FromEntities { _, ok := EntitySelectorMapping[fromEntity] if !ok { - return errors.Join(fmt.Errorf("unsupported entity: %s", fromEntity), retErr) + return fmt.Errorf("unsupported entity: %s", fromEntity) } } + i.SetAggregatedSelectors() + return retErr } @@ -295,8 +240,28 @@ func countNonGeneratedEndpoints(s []EndpointSelector) int { } func (e *EgressRule) sanitize(hostPolicy bool) error { - l3Members := e.l3Members() - l3DependentL4Support := e.l3DependentL4Support() + var retErr error + + l3Members := map[string]int{ + "ToCIDR": len(e.ToCIDR), + "ToCIDRSet": countNonGeneratedCIDRRules(e.ToCIDRSet), + "ToEndpoints": countNonGeneratedEndpoints(e.ToEndpoints), + "ToEntities": len(e.ToEntities), + "ToServices": len(e.ToServices), + "ToFQDNs": len(e.ToFQDNs), + "ToGroups": len(e.ToGroups), + "ToNodes": len(e.ToNodes), + } + l3DependentL4Support := map[interface{}]bool{ + "ToCIDR": true, + "ToCIDRSet": true, + "ToEndpoints": true, + "ToEntities": true, + "ToServices": true, + "ToFQDNs": true, + "ToGroups": true, + "ToNodes": true, + } l7Members := countL7Rules(e.ToPorts) l7EgressSupport := map[string]bool{ "DNS": true, @@ -304,13 +269,16 @@ func (e *EgressRule) sanitize(hostPolicy bool) error { "HTTP": !hostPolicy, } - if err := e.EgressCommonRule.sanitize(l3Members); err != nil { - return err + for m1 := range l3Members { + for m2 := range l3Members { + if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { + return fmt.Errorf("Combining %s and %s is not supported yet", m1, m2) + } + } } - for member := range l3Members { if l3Members[member] > 0 && len(e.ToPorts) > 0 && !l3DependentL4Support[member] { - return fmt.Errorf("combining %s and ToPorts is not supported yet", member) + return fmt.Errorf("Combining %s and ToPorts is not supported yet", member) } } @@ -332,69 +300,27 @@ func (e *EgressRule) sanitize(hostPolicy bool) error { } if len(e.ICMPs) > 0 && len(e.ToPorts) > 0 { - return errUnsupportedICMPWithToPorts + return fmt.Errorf("The ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts.") } - for i := range e.ToPorts { - if err := e.ToPorts[i].sanitize(false); err != nil { - return err - } + if len(e.ToNodes) > 0 && !option.Config.EnableNodeSelectorLabels { + retErr = ErrFromToNodesRequiresNodeSelectorOption } - for n := range e.ICMPs { - if err := e.ICMPs[n].verify(); err != nil { + for _, es := range e.ToEndpoints { + if err := es.sanitize(); err != nil { return err } } - for i := range e.ToFQDNs { - err := e.ToFQDNs[i].sanitize() - if err != nil { + for _, es := range e.ToRequires { + if err := es.sanitize(); err != nil { return err } } - e.SetAggregatedSelectors() - - return nil -} - -func (e *EgressRule) l3Members() map[string]int { - l3Members := e.EgressCommonRule.l3Members() - l3Members["ToFQDNs"] = len(e.ToFQDNs) - return l3Members -} - -func (e *EgressRule) l3DependentL4Support() map[string]bool { - l3DependentL4Support := e.EgressCommonRule.l3DependentL4Support() - l3DependentL4Support["ToFQDNs"] = true - return l3DependentL4Support -} - -func (e *EgressDenyRule) sanitize() error { - l3Members := e.l3Members() - l3DependentL4Support := e.l3DependentL4Support() - - if err := e.EgressCommonRule.sanitize(l3Members); err != nil { - return err - } - - for member := range l3Members { - if l3Members[member] > 0 && len(e.ToPorts) > 0 && !l3DependentL4Support[member] { - return fmt.Errorf("combining %s and ToPorts is not supported yet", member) - } - } - - if len(e.ICMPs) > 0 && !option.Config.EnableICMPRules { - return fmt.Errorf("ICMP rules can only be applied when the %q flag is set", option.EnableICMPRules) - } - - if len(e.ICMPs) > 0 && len(e.ToPorts) > 0 { - return errUnsupportedICMPWithToPorts - } - for i := range e.ToPorts { - if err := e.ToPorts[i].sanitize(); err != nil { + if err := e.ToPorts[i].sanitize(false); err != nil { return err } } @@ -405,95 +331,40 @@ func (e *EgressDenyRule) sanitize() error { } } - e.SetAggregatedSelectors() - - return nil -} - -func (e *EgressDenyRule) l3Members() map[string]int { - return e.EgressCommonRule.l3Members() -} - -func (e *EgressDenyRule) l3DependentL4Support() map[string]bool { - return e.EgressCommonRule.l3DependentL4Support() -} - -func (e *EgressCommonRule) sanitize(l3Members map[string]int) error { - for m1 := range l3Members { - for m2 := range l3Members { - if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { - return fmt.Errorf("combining %s and %s is not supported yet", m1, m2) - } - } - } - - var retErr error - - if len(e.ToNodes) > 0 && !option.Config.EnableNodeSelectorLabels { - retErr = ErrFromToNodesRequiresNodeSelectorOption - } - - for _, es := range e.ToEndpoints { - if err := es.sanitize(); err != nil { - return errors.Join(err, retErr) - } - } - - for _, es := range e.ToRequires { - if err := es.sanitize(); err != nil { - return errors.Join(err, retErr) - } - } - for _, ns := range e.ToNodes { if err := ns.sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for i := range e.ToCIDR { if err := e.ToCIDR[i].sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for i := range e.ToCIDRSet { if err := e.ToCIDRSet[i].sanitize(); err != nil { - return errors.Join(err, retErr) + return err } } for _, toEntity := range e.ToEntities { _, ok := EntitySelectorMapping[toEntity] if !ok { - return errors.Join(fmt.Errorf("unsupported entity: %s", toEntity), retErr) + return fmt.Errorf("unsupported entity: %s", toEntity) } } - return retErr -} - -func (e *EgressCommonRule) l3Members() map[string]int { - return map[string]int{ - "ToCIDR": len(e.ToCIDR), - "ToCIDRSet": countNonGeneratedCIDRRules(e.ToCIDRSet), - "ToEndpoints": countNonGeneratedEndpoints(e.ToEndpoints), - "ToEntities": len(e.ToEntities), - "ToServices": len(e.ToServices), - "ToGroups": len(e.ToGroups), - "ToNodes": len(e.ToNodes), + for i := range e.ToFQDNs { + err := e.ToFQDNs[i].sanitize() + if err != nil { + return err + } } -} -func (e *EgressCommonRule) l3DependentL4Support() map[string]bool { - return map[string]bool{ - "ToCIDR": true, - "ToCIDRSet": true, - "ToEndpoints": true, - "ToEntities": true, - "ToServices": true, - "ToGroups": true, - "ToNodes": true, - } + e.SetAggregatedSelectors() + + return retErr } func (pr *L7Rules) sanitize(ports []PortProtocol) error { @@ -521,7 +392,7 @@ func (pr *L7Rules) sanitize(ports []PortProtocol) error { // Forthcoming TPROXY redirection restricts DNS proxy to the standard DNS port (53). // Require the port 53 be explicitly configured, and disallow other port numbers. if len(ports) == 0 { - return errors.New("port 53 must be specified for DNS rules") + return fmt.Errorf("Port 53 must be specified for DNS rules") } nTypes++ @@ -565,7 +436,7 @@ func (pr *PortRule) sanitize(ingress bool) error { } for _, sn := range pr.ServerNames { if sn == "" { - return errEmptyServerName + return fmt.Errorf("Empty server name is not allowed") } } @@ -611,7 +482,7 @@ func (pr *PortRule) sanitize(ingress bool) error { // Sanitize L7 rules if !pr.Rules.IsEmpty() { if haveZeroPort { - return errors.New("L7 rules can not be used when a port is 0") + return fmt.Errorf("L7 rules can not be used when a port is 0") } if err := pr.Rules.sanitize(pr.Ports); err != nil { @@ -621,22 +492,9 @@ func (pr *PortRule) sanitize(ingress bool) error { return nil } -func (pr *PortDenyRule) sanitize() error { - if len(pr.Ports) > maxPorts { - return fmt.Errorf("too many ports, the max is %d", maxPorts) - } - for i := range pr.Ports { - if _, err := pr.Ports[i].sanitize(false); err != nil { - return err - } - } - - return nil -} - func (pp *PortProtocol) sanitize(hasDNSRules bool) (isZero bool, err error) { if pp.Port == "" { - return isZero, errors.New("Port must be specified") + return isZero, fmt.Errorf("Port must be specified") } // Port names are formatted as IANA Service Names. This means that @@ -647,7 +505,7 @@ func (pp *PortProtocol) sanitize(hasDNSRules bool) (isZero bool, err error) { } else { p, err := strconv.ParseUint(pp.Port, 0, 16) if err != nil { - return isZero, fmt.Errorf("unable to parse port: %w", err) + return isZero, fmt.Errorf("Unable to parse port: %w", err) } isZero = p == 0 if hasDNSRules && pp.EndPort > int32(p) { @@ -730,7 +588,7 @@ func (c *CIDRRule) sanitize() error { // the logic in api.CIDR.Sanitize(). prefix, err := netip.ParsePrefix(string(c.Cidr)) if err != nil { - return fmt.Errorf("unable to parse CIDRRule %q: %w", c.Cidr, err) + return fmt.Errorf("Unable to parse CIDRRule %q: %w", c.Cidr, err) } prefixLength := prefix.Bits() diff --git a/vendor/github.com/cilium/cilium/pkg/policy/mapstate.go b/vendor/github.com/cilium/cilium/pkg/policy/mapstate.go index a2283a4b1e..a2abbb0630 100644 --- a/vendor/github.com/cilium/cilium/pkg/policy/mapstate.go +++ b/vendor/github.com/cilium/cilium/pkg/policy/mapstate.go @@ -303,26 +303,26 @@ func (ms *mapState) LPMAncestors(key Key) iter.Seq2[Key, mapStateEntry] { } } -// lookup finds the policy verdict applicable to the given 'key' using the same precedence logic +// Lookup finds the policy verdict applicable to the given 'key' using the same precedence logic // between L3 and L4-only policies as the bpf datapath when both match the given 'key'. // To be used in testing in place of the bpf datapath when full integration testing is not desired. // Returns the closest matching covering policy entry and 'true' if found. // 'key' must not have a wildcard identity or port. -func (ms *mapState) lookup(key Key) (mapStateEntry, bool) { +func (ms *mapState) Lookup(key Key) (MapStateEntry, bool) { // Validate that the search key has no wildcards if key.Identity == 0 || key.Nexthdr == 0 || key.DestPort == 0 || key.EndPort() != key.DestPort { panic("invalid key for Lookup") } var l3key, l4key Key - var l3entry, l4entry mapStateEntry + var l3entry, l4entry MapStateEntry var haveL3, haveL4 bool for k, v := range ms.LPMAncestors(key) { if !haveL3 && k.Identity != 0 { - l3key, l3entry = k, v + l3key, l3entry = k, v.MapStateEntry haveL3 = true } if !haveL4 && k.Identity == 0 { - l4key, l4entry = k, v + l4key, l4entry = k, v.MapStateEntry haveL4 = true } if haveL3 && haveL4 { @@ -330,7 +330,7 @@ func (ms *mapState) lookup(key Key) (mapStateEntry, bool) { } } - authOverride := func(entry, other mapStateEntry) mapStateEntry { + authOverride := func(entry, other MapStateEntry) MapStateEntry { // This logic needs to be the same as in authPreferredInsert() where the newEntry's // auth type may be overridden by a covering key. // This also needs to reflect the logic in bpf/lib/policy.h __account_and_check(). @@ -391,7 +391,7 @@ func (ms *mapState) lookup(key Key) (mapStateEntry, bool) { } // Deny by default if no matches are found - return mapStateEntry{MapStateEntry: types.DenyEntry()}, false + return types.DenyEntry(), false } func (ms *mapState) Len() int { diff --git a/vendor/github.com/cilium/cilium/pkg/policy/repository.go b/vendor/github.com/cilium/cilium/pkg/policy/repository.go index eca9a31c25..5f867c91f4 100644 --- a/vendor/github.com/cilium/cilium/pkg/policy/repository.go +++ b/vendor/github.com/cilium/cilium/pkg/policy/repository.go @@ -119,7 +119,7 @@ type PolicyRepository interface { // This is used to skip policy calculation when a certain revision delta is // known to not affect the given identity. Pass a skipRevision of 0 to force // calculation. - GetSelectorPolicy(id *identity.Identity, skipRevision uint64, stats GetPolicyStatistics) (SelectorPolicy, uint64) + GetSelectorPolicy(id *identity.Identity, skipRevision uint64, stats GetPolicyStatistics) (SelectorPolicy, uint64, error) GetRevision() uint64 GetRulesList() *models.Policy @@ -133,7 +133,7 @@ type PolicyRepository interface { type GetPolicyStatistics interface { WaitingForPolicyRepository() *spanstat.SpanStat - SelectorPolicyCalculation() *spanstat.SpanStat + PolicyCalculation() *spanstat.SpanStat } // Repository is a list of policy rules which in combination form the security @@ -826,7 +826,7 @@ func wildcardRule(lbls labels.LabelArray, ingress bool) *rule { // This is used to skip policy calculation when a certain revision delta is // known to not affect the given identity. Pass a skipRevision of 0 to force // calculation. -func (r *Repository) GetSelectorPolicy(id *identity.Identity, skipRevision uint64, stats GetPolicyStatistics) (SelectorPolicy, uint64) { +func (r *Repository) GetSelectorPolicy(id *identity.Identity, skipRevision uint64, stats GetPolicyStatistics) (SelectorPolicy, uint64, error) { stats.WaitingForPolicyRepository().Start() r.RLock() defer r.RUnlock() @@ -837,21 +837,21 @@ func (r *Repository) GetSelectorPolicy(id *identity.Identity, skipRevision uint6 // Do we already have a given revision? // If so, skip calculation. if skipRevision >= rev { - return nil, rev + return nil, rev, nil } - stats.SelectorPolicyCalculation().Start() + stats.PolicyCalculation().Start() // This may call back in to the (locked) repository to generate the // selector policy sp, updated, err := r.policyCache.updateSelectorPolicy(id) - stats.SelectorPolicyCalculation().EndError(err) + stats.PolicyCalculation().EndError(err) // If we hit cache, reset the statistics. if !updated { - stats.SelectorPolicyCalculation().Reset() + stats.PolicyCalculation().Reset() } - return sp, rev + return sp, rev, nil } // ReplaceByResource replaces all rules by resource, returning the complete set of affected endpoints. diff --git a/vendor/github.com/cilium/cilium/pkg/policy/resolve.go b/vendor/github.com/cilium/cilium/pkg/policy/resolve.go index f6ad13059c..aff093cd53 100644 --- a/vendor/github.com/cilium/cilium/pkg/policy/resolve.go +++ b/vendor/github.com/cilium/cilium/pkg/policy/resolve.go @@ -103,18 +103,6 @@ func (p *EndpointPolicy) LookupRedirectPort(ingress bool, protocol string, port return 0, fmt.Errorf("Proxy port for redirect %q not found", proxyID) } -// Lookup finds the policy verdict applicable to the given 'key' using the same precedence logic -// between L3 and L4-only policies like the bpf datapath when both match the given 'key'. -// To be used in testing in place of the bpf datapath when full integration testing is not desired. -// Returns the closest matching covering policy entry, the labels of the rules that contributed to -// that verdict, and 'true' if found. -// Returns a deny entry when a match is not found, mirroring the datapath default deny behavior. -// 'key' must not have a wildcard identity or port. -func (p *EndpointPolicy) Lookup(key Key) (MapStateEntry, labels.LabelArrayList, bool) { - entry, found := p.policyMapState.lookup(key) - return entry.MapStateEntry, entry.derivedFromRules, found -} - // PolicyOwner is anything which consumes a EndpointPolicy. type PolicyOwner interface { GetID() uint64 diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go deleted file mode 100644 index c1e2f93bf8..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go +++ /dev/null @@ -1,526 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/http/proto_message_extraction/v3/config.proto - -package proto_message_extractionv3 - -import ( - v3 "github.com/cilium/proxy/go/envoy/config/core/v3" - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type ProtoMessageExtractionConfig_ExtractMode int32 - -const ( - ProtoMessageExtractionConfig_ExtractMode_UNSPECIFIED ProtoMessageExtractionConfig_ExtractMode = 0 - // The filter will extract the first and the last message for - // for streaming cases, containing - // client-side streaming, server-side streaming or bi-directional streaming. - ProtoMessageExtractionConfig_FIRST_AND_LAST ProtoMessageExtractionConfig_ExtractMode = 1 -) - -// Enum value maps for ProtoMessageExtractionConfig_ExtractMode. -var ( - ProtoMessageExtractionConfig_ExtractMode_name = map[int32]string{ - 0: "ExtractMode_UNSPECIFIED", - 1: "FIRST_AND_LAST", - } - ProtoMessageExtractionConfig_ExtractMode_value = map[string]int32{ - "ExtractMode_UNSPECIFIED": 0, - "FIRST_AND_LAST": 1, - } -) - -func (x ProtoMessageExtractionConfig_ExtractMode) Enum() *ProtoMessageExtractionConfig_ExtractMode { - p := new(ProtoMessageExtractionConfig_ExtractMode) - *p = x - return p -} - -func (x ProtoMessageExtractionConfig_ExtractMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProtoMessageExtractionConfig_ExtractMode) Descriptor() protoreflect.EnumDescriptor { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[0].Descriptor() -} - -func (ProtoMessageExtractionConfig_ExtractMode) Type() protoreflect.EnumType { - return &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[0] -} - -func (x ProtoMessageExtractionConfig_ExtractMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProtoMessageExtractionConfig_ExtractMode.Descriptor instead. -func (ProtoMessageExtractionConfig_ExtractMode) EnumDescriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{0, 0} -} - -type MethodExtraction_ExtractDirective int32 - -const ( - MethodExtraction_ExtractDirective_UNSPECIFIED MethodExtraction_ExtractDirective = 0 - // The value of this field will be extracted. - MethodExtraction_EXTRACT MethodExtraction_ExtractDirective = 1 - // It should be only annotated on Message type fields so if the field isn't - // empty, an empty Struct will be extracted. - MethodExtraction_EXTRACT_REDACT MethodExtraction_ExtractDirective = 2 -) - -// Enum value maps for MethodExtraction_ExtractDirective. -var ( - MethodExtraction_ExtractDirective_name = map[int32]string{ - 0: "ExtractDirective_UNSPECIFIED", - 1: "EXTRACT", - 2: "EXTRACT_REDACT", - } - MethodExtraction_ExtractDirective_value = map[string]int32{ - "ExtractDirective_UNSPECIFIED": 0, - "EXTRACT": 1, - "EXTRACT_REDACT": 2, - } -) - -func (x MethodExtraction_ExtractDirective) Enum() *MethodExtraction_ExtractDirective { - p := new(MethodExtraction_ExtractDirective) - *p = x - return p -} - -func (x MethodExtraction_ExtractDirective) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MethodExtraction_ExtractDirective) Descriptor() protoreflect.EnumDescriptor { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[1].Descriptor() -} - -func (MethodExtraction_ExtractDirective) Type() protoreflect.EnumType { - return &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[1] -} - -func (x MethodExtraction_ExtractDirective) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MethodExtraction_ExtractDirective.Descriptor instead. -func (MethodExtraction_ExtractDirective) EnumDescriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{1, 0} -} - -type ProtoMessageExtractionConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The proto descriptor set binary for the gRPC services. - // - // Types that are assignable to DescriptorSet: - // - // *ProtoMessageExtractionConfig_DataSource - // *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata - DescriptorSet isProtoMessageExtractionConfig_DescriptorSet `protobuf_oneof:"descriptor_set"` - Mode ProtoMessageExtractionConfig_ExtractMode `protobuf:"varint,3,opt,name=mode,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig_ExtractMode" json:"mode,omitempty"` - // Specify the message extraction info. - // The key is the fully qualified gRPC method name. - // “${package}.${Service}.${Method}“, like - // “endpoints.examples.bookstore.BookStore.GetShelf“ - // - // The value is the message extraction information for individual gRPC - // methods. - ExtractionByMethod map[string]*MethodExtraction `protobuf:"bytes,4,rep,name=extraction_by_method,json=extractionByMethod,proto3" json:"extraction_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ProtoMessageExtractionConfig) Reset() { - *x = ProtoMessageExtractionConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProtoMessageExtractionConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProtoMessageExtractionConfig) ProtoMessage() {} - -func (x *ProtoMessageExtractionConfig) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProtoMessageExtractionConfig.ProtoReflect.Descriptor instead. -func (*ProtoMessageExtractionConfig) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{0} -} - -func (m *ProtoMessageExtractionConfig) GetDescriptorSet() isProtoMessageExtractionConfig_DescriptorSet { - if m != nil { - return m.DescriptorSet - } - return nil -} - -func (x *ProtoMessageExtractionConfig) GetDataSource() *v3.DataSource { - if x, ok := x.GetDescriptorSet().(*ProtoMessageExtractionConfig_DataSource); ok { - return x.DataSource - } - return nil -} - -func (x *ProtoMessageExtractionConfig) GetProtoDescriptorTypedMetadata() string { - if x, ok := x.GetDescriptorSet().(*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata); ok { - return x.ProtoDescriptorTypedMetadata - } - return "" -} - -func (x *ProtoMessageExtractionConfig) GetMode() ProtoMessageExtractionConfig_ExtractMode { - if x != nil { - return x.Mode - } - return ProtoMessageExtractionConfig_ExtractMode_UNSPECIFIED -} - -func (x *ProtoMessageExtractionConfig) GetExtractionByMethod() map[string]*MethodExtraction { - if x != nil { - return x.ExtractionByMethod - } - return nil -} - -type isProtoMessageExtractionConfig_DescriptorSet interface { - isProtoMessageExtractionConfig_DescriptorSet() -} - -type ProtoMessageExtractionConfig_DataSource struct { - // It could be passed by a local file through “Datasource.filename“ or - // embedded in the “Datasource.inline_bytes“. - DataSource *v3.DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof"` -} - -type ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata struct { - // Unimplemented, the key of proto descriptor TypedMetadata. - // Among filters depending on the proto descriptor, we can have a - // TypedMetadata for proto descriptors, so that these filters can share one - // copy of proto descriptor in memory. - ProtoDescriptorTypedMetadata string `protobuf:"bytes,2,opt,name=proto_descriptor_typed_metadata,json=protoDescriptorTypedMetadata,proto3,oneof"` -} - -func (*ProtoMessageExtractionConfig_DataSource) isProtoMessageExtractionConfig_DescriptorSet() {} - -func (*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata) isProtoMessageExtractionConfig_DescriptorSet() { -} - -// This message can be used to support per route config approach later even -// though the Istio doesn't support that so far. -type MethodExtraction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The mapping of field path to its ExtractDirective for request messages - RequestExtractionByField map[string]MethodExtraction_ExtractDirective `protobuf:"bytes,2,rep,name=request_extraction_by_field,json=requestExtractionByField,proto3" json:"request_extraction_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction_ExtractDirective"` - // The mapping of field path to its ExtractDirective for response messages - ResponseExtractionByField map[string]MethodExtraction_ExtractDirective `protobuf:"bytes,3,rep,name=response_extraction_by_field,json=responseExtractionByField,proto3" json:"response_extraction_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction_ExtractDirective"` -} - -func (x *MethodExtraction) Reset() { - *x = MethodExtraction{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MethodExtraction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MethodExtraction) ProtoMessage() {} - -func (x *MethodExtraction) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MethodExtraction.ProtoReflect.Descriptor instead. -func (*MethodExtraction) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{1} -} - -func (x *MethodExtraction) GetRequestExtractionByField() map[string]MethodExtraction_ExtractDirective { - if x != nil { - return x.RequestExtractionByField - } - return nil -} - -func (x *MethodExtraction) GetResponseExtractionByField() map[string]MethodExtraction_ExtractDirective { - if x != nil { - return x.ResponseExtractionByField - } - return nil -} - -var File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc = []byte{ - 0x0a, 0x46, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x39, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x05, 0x0a, 0x1c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, - 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x1f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x77, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x63, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0xa1, 0x01, 0x0a, - 0x14, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x6f, 0x2e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x65, 0x78, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x1a, 0x92, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x61, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, - 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x0b, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4d, - 0x6f, 0x64, 0x65, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x4c, - 0x41, 0x53, 0x54, 0x10, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x22, 0x9b, 0x06, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa8, 0x01, 0x0a, - 0x1b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x69, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, - 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0xab, 0x01, 0x0a, 0x1c, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x62, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x6a, - 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x19, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0xa9, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x72, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x5c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x1a, 0xaa, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x72, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x5c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x55, - 0x0a, 0x10, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x58, 0x54, 0x52, 0x41, 0x43, 0x54, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x58, 0x54, 0x52, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x44, - 0x41, 0x43, 0x54, 0x10, 0x02, 0x42, 0xe5, 0x01, 0x0a, 0x47, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x7b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x76, 0x33, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x33, 0xba, 0x80, 0xc8, - 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData = file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc -) - -func file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData) - }) - return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData -} - -var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes = []interface{}{ - (ProtoMessageExtractionConfig_ExtractMode)(0), // 0: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode - (MethodExtraction_ExtractDirective)(0), // 1: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective - (*ProtoMessageExtractionConfig)(nil), // 2: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig - (*MethodExtraction)(nil), // 3: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction - nil, // 4: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry - nil, // 5: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry - nil, // 6: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry - (*v3.DataSource)(nil), // 7: envoy.config.core.v3.DataSource -} -var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs = []int32{ - 7, // 0: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.data_source:type_name -> envoy.config.core.v3.DataSource - 0, // 1: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.mode:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode - 4, // 2: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.extraction_by_method:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry - 5, // 3: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.request_extraction_by_field:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry - 6, // 4: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.response_extraction_by_field:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry - 3, // 5: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction - 1, // 6: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective - 1, // 7: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_init() } -func file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_init() { - if File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtoMessageExtractionConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MethodExtraction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ProtoMessageExtractionConfig_DataSource)(nil), - (*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc, - NumEnums: 2, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs, - EnumInfos: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes, - MessageInfos: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto = out.File - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc = nil - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes = nil - file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go deleted file mode 100644 index 6baef2f4e3..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go +++ /dev/null @@ -1,349 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/http/proto_message_extraction/v3/config.proto - -package proto_message_extractionv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on ProtoMessageExtractionConfig with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ProtoMessageExtractionConfig) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ProtoMessageExtractionConfig with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ProtoMessageExtractionConfigMultiError, or nil if none found. -func (m *ProtoMessageExtractionConfig) ValidateAll() error { - return m.validate(true) -} - -func (m *ProtoMessageExtractionConfig) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Mode - - { - sorted_keys := make([]string, len(m.GetExtractionByMethod())) - i := 0 - for key := range m.GetExtractionByMethod() { - sorted_keys[i] = key - i++ - } - sort.Slice(sorted_keys, func(i, j int) bool { return sorted_keys[i] < sorted_keys[j] }) - for _, key := range sorted_keys { - val := m.GetExtractionByMethod()[key] - _ = val - - // no validation rules for ExtractionByMethod[key] - - if all { - switch v := interface{}(val).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ProtoMessageExtractionConfigValidationError{ - field: fmt.Sprintf("ExtractionByMethod[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ProtoMessageExtractionConfigValidationError{ - field: fmt.Sprintf("ExtractionByMethod[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(val).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProtoMessageExtractionConfigValidationError{ - field: fmt.Sprintf("ExtractionByMethod[%v]", key), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - } - - switch v := m.DescriptorSet.(type) { - case *ProtoMessageExtractionConfig_DataSource: - if v == nil { - err := ProtoMessageExtractionConfigValidationError{ - field: "DescriptorSet", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetDataSource()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ProtoMessageExtractionConfigValidationError{ - field: "DataSource", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ProtoMessageExtractionConfigValidationError{ - field: "DataSource", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetDataSource()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProtoMessageExtractionConfigValidationError{ - field: "DataSource", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata: - if v == nil { - err := ProtoMessageExtractionConfigValidationError{ - field: "DescriptorSet", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - // no validation rules for ProtoDescriptorTypedMetadata - default: - _ = v // ensures v is used - } - - if len(errors) > 0 { - return ProtoMessageExtractionConfigMultiError(errors) - } - - return nil -} - -// ProtoMessageExtractionConfigMultiError is an error wrapping multiple -// validation errors returned by ProtoMessageExtractionConfig.ValidateAll() if -// the designated constraints aren't met. -type ProtoMessageExtractionConfigMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ProtoMessageExtractionConfigMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ProtoMessageExtractionConfigMultiError) AllErrors() []error { return m } - -// ProtoMessageExtractionConfigValidationError is the validation error returned -// by ProtoMessageExtractionConfig.Validate if the designated constraints -// aren't met. -type ProtoMessageExtractionConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProtoMessageExtractionConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProtoMessageExtractionConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProtoMessageExtractionConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProtoMessageExtractionConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProtoMessageExtractionConfigValidationError) ErrorName() string { - return "ProtoMessageExtractionConfigValidationError" -} - -// Error satisfies the builtin error interface -func (e ProtoMessageExtractionConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProtoMessageExtractionConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProtoMessageExtractionConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProtoMessageExtractionConfigValidationError{} - -// Validate checks the field values on MethodExtraction with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *MethodExtraction) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on MethodExtraction with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// MethodExtractionMultiError, or nil if none found. -func (m *MethodExtraction) ValidateAll() error { - return m.validate(true) -} - -func (m *MethodExtraction) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for RequestExtractionByField - - // no validation rules for ResponseExtractionByField - - if len(errors) > 0 { - return MethodExtractionMultiError(errors) - } - - return nil -} - -// MethodExtractionMultiError is an error wrapping multiple validation errors -// returned by MethodExtraction.ValidateAll() if the designated constraints -// aren't met. -type MethodExtractionMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m MethodExtractionMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m MethodExtractionMultiError) AllErrors() []error { return m } - -// MethodExtractionValidationError is the validation error returned by -// MethodExtraction.Validate if the designated constraints aren't met. -type MethodExtractionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MethodExtractionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MethodExtractionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MethodExtractionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MethodExtractionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MethodExtractionValidationError) ErrorName() string { return "MethodExtractionValidationError" } - -// Error satisfies the builtin error interface -func (e MethodExtractionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMethodExtraction.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MethodExtractionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MethodExtractionValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.go deleted file mode 100644 index 8e48135163..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.go +++ /dev/null @@ -1,334 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/action/v3/action.proto - -package actionv3 - -import ( - v3 "github.com/cilium/proxy/go/envoy/config/core/v3" - v31 "github.com/cilium/proxy/go/envoy/config/route/v3" - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - durationpb "google.golang.org/protobuf/types/known/durationpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Configuration for the route match action. -// [#next-free-field: 8] -type RouteAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the route action. This should be unique across all route actions. - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Types that are assignable to ClusterSpecifier: - // - // *RouteAction_Cluster - // *RouteAction_WeightedClusters - ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` - // Route metadata. - Metadata *v3.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Route level config for L7 generic filters. The key should be the related :ref:`extension name - // ` in the :ref:`generic filters - // `. - PerFilterConfig map[string]*anypb.Any `protobuf:"bytes,4,rep,name=per_filter_config,json=perFilterConfig,proto3" json:"per_filter_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Specifies the upstream timeout for the route. If not specified, the default is 15s. This - // spans between the point at which the entire downstream request (i.e. end-of-stream) has been - // processed and when the upstream response has been completely processed. A value of 0 will - // disable the route's timeout. - Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Specifies the retry policy for the route. If not specified, then no retries will be performed. - // - // .. note:: - // - // Only simplest retry policy is supported and only ``num_retries`` field is used for generic - // proxy. The default value for ``num_retries`` is 1 means that the request will be tried once - // and no additional retries will be performed. - RetryPolicy *v3.RetryPolicy `protobuf:"bytes,7,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` -} - -func (x *RouteAction) Reset() { - *x = RouteAction{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RouteAction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RouteAction) ProtoMessage() {} - -func (x *RouteAction) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RouteAction.ProtoReflect.Descriptor instead. -func (*RouteAction) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescGZIP(), []int{0} -} - -func (x *RouteAction) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier { - if m != nil { - return m.ClusterSpecifier - } - return nil -} - -func (x *RouteAction) GetCluster() string { - if x, ok := x.GetClusterSpecifier().(*RouteAction_Cluster); ok { - return x.Cluster - } - return "" -} - -func (x *RouteAction) GetWeightedClusters() *v31.WeightedCluster { - if x, ok := x.GetClusterSpecifier().(*RouteAction_WeightedClusters); ok { - return x.WeightedClusters - } - return nil -} - -func (x *RouteAction) GetMetadata() *v3.Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *RouteAction) GetPerFilterConfig() map[string]*anypb.Any { - if x != nil { - return x.PerFilterConfig - } - return nil -} - -func (x *RouteAction) GetTimeout() *durationpb.Duration { - if x != nil { - return x.Timeout - } - return nil -} - -func (x *RouteAction) GetRetryPolicy() *v3.RetryPolicy { - if x != nil { - return x.RetryPolicy - } - return nil -} - -type isRouteAction_ClusterSpecifier interface { - isRouteAction_ClusterSpecifier() -} - -type RouteAction_Cluster struct { - // Indicates the upstream cluster to which the request should be routed. - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` -} - -type RouteAction_WeightedClusters struct { - // [#not-implemented-hide:] - // Multiple upstream clusters can be specified for a given route. The request is routed to one - // of the upstream clusters based on weights assigned to each cluster. - // Currently ClusterWeight only supports the name and weight fields. - WeightedClusters *v31.WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` -} - -func (*RouteAction_Cluster) isRouteAction_ClusterSpecifier() {} - -func (*RouteAction_WeightedClusters) isRouteAction_ClusterSpecifier() {} - -var File_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDesc = []byte{ - 0x0a, 0x45, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x38, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, 0x73, - 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, - 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x04, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x77, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x5f, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x5a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0f, 0x70, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x44, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x76, 0x33, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, - 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x58, 0x0a, 0x14, 0x50, - 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x18, 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, - 0xd1, 0x01, 0x0a, 0x46, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x68, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, - 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x3b, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, - 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_goTypes = []interface{}{ - (*RouteAction)(nil), // 0: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction - nil, // 1: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.PerFilterConfigEntry - (*v31.WeightedCluster)(nil), // 2: envoy.config.route.v3.WeightedCluster - (*v3.Metadata)(nil), // 3: envoy.config.core.v3.Metadata - (*durationpb.Duration)(nil), // 4: google.protobuf.Duration - (*v3.RetryPolicy)(nil), // 5: envoy.config.core.v3.RetryPolicy - (*anypb.Any)(nil), // 6: google.protobuf.Any -} -var file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_depIdxs = []int32{ - 2, // 0: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.weighted_clusters:type_name -> envoy.config.route.v3.WeightedCluster - 3, // 1: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.metadata:type_name -> envoy.config.core.v3.Metadata - 1, // 2: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.per_filter_config:type_name -> envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.PerFilterConfigEntry - 4, // 3: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.timeout:type_name -> google.protobuf.Duration - 5, // 4: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.retry_policy:type_name -> envoy.config.core.v3.RetryPolicy - 6, // 5: envoy.extensions.filters.network.generic_proxy.action.v3.RouteAction.PerFilterConfigEntry.value:type_name -> google.protobuf.Any - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RouteAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*RouteAction_Cluster)(nil), - (*RouteAction_WeightedClusters)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_action_v3_action_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.validate.go deleted file mode 100644 index d87b455cb1..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3/action.pb.validate.go +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/action/v3/action.proto - -package actionv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on RouteAction with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *RouteAction) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RouteAction with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in RouteActionMultiError, or -// nil if none found. -func (m *RouteAction) ValidateAll() error { - return m.validate(true) -} - -func (m *RouteAction) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Name - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteActionValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - { - sorted_keys := make([]string, len(m.GetPerFilterConfig())) - i := 0 - for key := range m.GetPerFilterConfig() { - sorted_keys[i] = key - i++ - } - sort.Slice(sorted_keys, func(i, j int) bool { return sorted_keys[i] < sorted_keys[j] }) - for _, key := range sorted_keys { - val := m.GetPerFilterConfig()[key] - _ = val - - // no validation rules for PerFilterConfig[key] - - if all { - switch v := interface{}(val).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: fmt.Sprintf("PerFilterConfig[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: fmt.Sprintf("PerFilterConfig[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(val).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteActionValidationError{ - field: fmt.Sprintf("PerFilterConfig[%v]", key), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - } - - if all { - switch v := interface{}(m.GetTimeout()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "Timeout", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "Timeout", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteActionValidationError{ - field: "Timeout", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetRetryPolicy()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "RetryPolicy", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "RetryPolicy", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetRetryPolicy()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteActionValidationError{ - field: "RetryPolicy", - reason: "embedded message failed validation", - cause: err, - } - } - } - - oneofClusterSpecifierPresent := false - switch v := m.ClusterSpecifier.(type) { - case *RouteAction_Cluster: - if v == nil { - err := RouteActionValidationError{ - field: "ClusterSpecifier", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - oneofClusterSpecifierPresent = true - // no validation rules for Cluster - case *RouteAction_WeightedClusters: - if v == nil { - err := RouteActionValidationError{ - field: "ClusterSpecifier", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - oneofClusterSpecifierPresent = true - - if all { - switch v := interface{}(m.GetWeightedClusters()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "WeightedClusters", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteActionValidationError{ - field: "WeightedClusters", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetWeightedClusters()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteActionValidationError{ - field: "WeightedClusters", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - _ = v // ensures v is used - } - if !oneofClusterSpecifierPresent { - err := RouteActionValidationError{ - field: "ClusterSpecifier", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return RouteActionMultiError(errors) - } - - return nil -} - -// RouteActionMultiError is an error wrapping multiple validation errors -// returned by RouteAction.ValidateAll() if the designated constraints aren't met. -type RouteActionMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RouteActionMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RouteActionMultiError) AllErrors() []error { return m } - -// RouteActionValidationError is the validation error returned by -// RouteAction.Validate if the designated constraints aren't met. -type RouteActionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RouteActionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RouteActionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RouteActionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RouteActionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RouteActionValidationError) ErrorName() string { return "RouteActionValidationError" } - -// Error satisfies the builtin error interface -func (e RouteActionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRouteAction.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RouteActionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RouteActionValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.go deleted file mode 100644 index f9a92e5794..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.proto - -package dubbov3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type DubboCodecConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DubboCodecConfig) Reset() { - *x = DubboCodecConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DubboCodecConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DubboCodecConfig) ProtoMessage() {} - -func (x *DubboCodecConfig) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DubboCodecConfig.ProtoReflect.Descriptor instead. -func (*DubboCodecConfig) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescGZIP(), []int{0} -} - -var File_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDesc = []byte{ - 0x0a, 0x4a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2f, 0x76, 0x33, - 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x63, 0x6f, 0x64, - 0x65, 0x63, 0x73, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x78, 0x64, - 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, - 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, - 0x44, 0x75, 0x62, 0x62, 0x6f, 0x43, 0x6f, 0x64, 0x65, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x42, 0xdb, 0x01, 0x0a, 0x4c, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x76, - 0x33, 0x42, 0x0a, 0x44, 0x75, 0x62, 0x62, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x6d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2f, 0x64, 0x75, - 0x62, 0x62, 0x6f, 0x2f, 0x76, 0x33, 0x3b, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x76, 0x33, 0xba, 0x80, - 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_goTypes = []interface{}{ - (*DubboCodecConfig)(nil), // 0: envoy.extensions.filters.network.generic_proxy.codecs.dubbo.v3.DubboCodecConfig -} -var file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DubboCodecConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_codecs_dubbo_v3_dubbo_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.validate.go deleted file mode 100644 index 3e7d97daec..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.pb.validate.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3/dubbo.proto - -package dubbov3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on DubboCodecConfig with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *DubboCodecConfig) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DubboCodecConfig with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DubboCodecConfigMultiError, or nil if none found. -func (m *DubboCodecConfig) ValidateAll() error { - return m.validate(true) -} - -func (m *DubboCodecConfig) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DubboCodecConfigMultiError(errors) - } - - return nil -} - -// DubboCodecConfigMultiError is an error wrapping multiple validation errors -// returned by DubboCodecConfig.ValidateAll() if the designated constraints -// aren't met. -type DubboCodecConfigMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DubboCodecConfigMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DubboCodecConfigMultiError) AllErrors() []error { return m } - -// DubboCodecConfigValidationError is the validation error returned by -// DubboCodecConfig.Validate if the designated constraints aren't met. -type DubboCodecConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DubboCodecConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DubboCodecConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DubboCodecConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DubboCodecConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DubboCodecConfigValidationError) ErrorName() string { return "DubboCodecConfigValidationError" } - -// Error satisfies the builtin error interface -func (e DubboCodecConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDubboCodecConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DubboCodecConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DubboCodecConfigValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.go deleted file mode 100644 index 0dc6b0b061..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.go +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.proto - -package http1v3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Configuration for HTTP codec. This HTTP1 codec is used to parse and serialize HTTP1 messages -// for the generic proxy filter. -// Any decoding error will result in the generic proxy closing the connection. -// -// .. note:: -// -// This codec only supports HTTP1.1 messages and does not support HTTP1.0 messages. And it limits -// part of the HTTP1.1 features, such as upgrade, connect, etc. -// This codec is mainly designed for the features evaluation of the generic proxy filter. Please -// be cautious when using it in production. -type Http1CodecConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // If true, the codec will parse and serialize HTTP1 messages in a single frame per message. - // - // A frame is a minimal unit of data that can be processed by the generic proxy. If false, the - // codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec - // will output multiple frames for a single HTTP1 message to the generic proxy. - // If true, the codec will buffer the entire HTTP1 message body before sending it to the generic - // proxy. This may have better performance in small message scenarios and is more friendly to - // handle the HTTP1 message body. This also may result in higher memory usage and latency if - // the message body is large. - // - // Default is true. - SingleFrameMode *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=single_frame_mode,json=singleFrameMode,proto3" json:"single_frame_mode,omitempty"` - // The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used. - // This only makes sense when single_frame_mode is true. - // If the HTTP1 message body size exceeds this value, this will result in a decoding error - // and the generic proxy will close the connection. - MaxBufferSize *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=max_buffer_size,json=maxBufferSize,proto3" json:"max_buffer_size,omitempty"` -} - -func (x *Http1CodecConfig) Reset() { - *x = Http1CodecConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Http1CodecConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Http1CodecConfig) ProtoMessage() {} - -func (x *Http1CodecConfig) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Http1CodecConfig.ProtoReflect.Descriptor instead. -func (*Http1CodecConfig) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescGZIP(), []int{0} -} - -func (x *Http1CodecConfig) GetSingleFrameMode() *wrapperspb.BoolValue { - if x != nil { - return x.SingleFrameMode - } - return nil -} - -func (x *Http1CodecConfig) GetMaxBufferSize() *wrapperspb.UInt32Value { - if x != nil { - return x.MaxBufferSize - } - return nil -} - -var File_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDesc = []byte{ - 0x0a, 0x4a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x31, 0x2f, 0x76, 0x33, - 0x2f, 0x68, 0x74, 0x74, 0x70, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x63, 0x6f, 0x64, - 0x65, 0x63, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x31, 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, - 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, - 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, - 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x01, 0x0a, - 0x10, 0x48, 0x74, 0x74, 0x70, 0x31, 0x43, 0x6f, 0x64, 0x65, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x46, 0x0a, 0x11, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x6d, - 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, - 0x46, 0x72, 0x61, 0x6d, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x6d, 0x61, 0x78, - 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x42, - 0xdb, 0x01, 0x0a, 0x4c, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x31, 0x2e, 0x76, 0x33, - 0x42, 0x0a, 0x48, 0x74, 0x74, 0x70, 0x31, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x6d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x73, 0x2f, 0x68, 0x74, 0x74, - 0x70, 0x31, 0x2f, 0x76, 0x33, 0x3b, 0x68, 0x74, 0x74, 0x70, 0x31, 0x76, 0x33, 0xba, 0x80, 0xc8, - 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_goTypes = []interface{}{ - (*Http1CodecConfig)(nil), // 0: envoy.extensions.filters.network.generic_proxy.codecs.http1.v3.Http1CodecConfig - (*wrapperspb.BoolValue)(nil), // 1: google.protobuf.BoolValue - (*wrapperspb.UInt32Value)(nil), // 2: google.protobuf.UInt32Value -} -var file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_depIdxs = []int32{ - 1, // 0: envoy.extensions.filters.network.generic_proxy.codecs.http1.v3.Http1CodecConfig.single_frame_mode:type_name -> google.protobuf.BoolValue - 2, // 1: envoy.extensions.filters.network.generic_proxy.codecs.http1.v3.Http1CodecConfig.max_buffer_size:type_name -> google.protobuf.UInt32Value - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Http1CodecConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.validate.go deleted file mode 100644 index be5a6be651..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.pb.validate.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/codecs/http1/v3/http1.proto - -package http1v3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on Http1CodecConfig with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *Http1CodecConfig) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Http1CodecConfig with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// Http1CodecConfigMultiError, or nil if none found. -func (m *Http1CodecConfig) ValidateAll() error { - return m.validate(true) -} - -func (m *Http1CodecConfig) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetSingleFrameMode()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, Http1CodecConfigValidationError{ - field: "SingleFrameMode", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, Http1CodecConfigValidationError{ - field: "SingleFrameMode", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetSingleFrameMode()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return Http1CodecConfigValidationError{ - field: "SingleFrameMode", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetMaxBufferSize()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, Http1CodecConfigValidationError{ - field: "MaxBufferSize", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, Http1CodecConfigValidationError{ - field: "MaxBufferSize", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMaxBufferSize()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return Http1CodecConfigValidationError{ - field: "MaxBufferSize", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return Http1CodecConfigMultiError(errors) - } - - return nil -} - -// Http1CodecConfigMultiError is an error wrapping multiple validation errors -// returned by Http1CodecConfig.ValidateAll() if the designated constraints -// aren't met. -type Http1CodecConfigMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m Http1CodecConfigMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m Http1CodecConfigMultiError) AllErrors() []error { return m } - -// Http1CodecConfigValidationError is the validation error returned by -// Http1CodecConfig.Validate if the designated constraints aren't met. -type Http1CodecConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e Http1CodecConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e Http1CodecConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e Http1CodecConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e Http1CodecConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e Http1CodecConfigValidationError) ErrorName() string { return "Http1CodecConfigValidationError" } - -// Error satisfies the builtin error interface -func (e Http1CodecConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHttp1CodecConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = Http1CodecConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = Http1CodecConfigValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.go deleted file mode 100644 index 01b023e1b4..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.go +++ /dev/null @@ -1,653 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.proto - -package matcherv3 - -import ( - v3 "github.com/cilium/proxy/go/envoy/type/matcher/v3" - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Used to match request service of the downstream request. Only applicable if a service provided -// by the application protocol. -// This is deprecated and should be replaced by HostMatchInput. This is kept for backward compatibility. -type ServiceMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ServiceMatchInput) Reset() { - *x = ServiceMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceMatchInput) ProtoMessage() {} - -func (x *ServiceMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceMatchInput.ProtoReflect.Descriptor instead. -func (*ServiceMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{0} -} - -// Used to match request host of the generic downstream request. Only applicable if a host provided -// by the application protocol. -// This is same with the ServiceMatchInput and this should be preferred over ServiceMatchInput. -type HostMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *HostMatchInput) Reset() { - *x = HostMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HostMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HostMatchInput) ProtoMessage() {} - -func (x *HostMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HostMatchInput.ProtoReflect.Descriptor instead. -func (*HostMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{1} -} - -// Used to match request path of the generic downstream request. Only applicable if a path provided -// by the application protocol. -type PathMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PathMatchInput) Reset() { - *x = PathMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PathMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PathMatchInput) ProtoMessage() {} - -func (x *PathMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PathMatchInput.ProtoReflect.Descriptor instead. -func (*PathMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{2} -} - -// Used to match request method of the generic downstream request. Only applicable if a method provided -// by the application protocol. -type MethodMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MethodMatchInput) Reset() { - *x = MethodMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MethodMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MethodMatchInput) ProtoMessage() {} - -func (x *MethodMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MethodMatchInput.ProtoReflect.Descriptor instead. -func (*MethodMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{3} -} - -// Used to match an arbitrary property of the generic downstream request. -// These properties are populated by the codecs of application protocols. -type PropertyMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The property name to match on. - PropertyName string `protobuf:"bytes,1,opt,name=property_name,json=propertyName,proto3" json:"property_name,omitempty"` -} - -func (x *PropertyMatchInput) Reset() { - *x = PropertyMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PropertyMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PropertyMatchInput) ProtoMessage() {} - -func (x *PropertyMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PropertyMatchInput.ProtoReflect.Descriptor instead. -func (*PropertyMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{4} -} - -func (x *PropertyMatchInput) GetPropertyName() string { - if x != nil { - return x.PropertyName - } - return "" -} - -// Used to match an whole generic downstream request. -type RequestMatchInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *RequestMatchInput) Reset() { - *x = RequestMatchInput{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestMatchInput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestMatchInput) ProtoMessage() {} - -func (x *RequestMatchInput) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestMatchInput.ProtoReflect.Descriptor instead. -func (*RequestMatchInput) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{5} -} - -// Used to match an arbitrary key-value pair for headers, trailers or properties. -type KeyValueMatchEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The key name to match on. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The key value pattern. - StringMatch *v3.StringMatcher `protobuf:"bytes,2,opt,name=string_match,json=stringMatch,proto3" json:"string_match,omitempty"` -} - -func (x *KeyValueMatchEntry) Reset() { - *x = KeyValueMatchEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KeyValueMatchEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyValueMatchEntry) ProtoMessage() {} - -func (x *KeyValueMatchEntry) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyValueMatchEntry.ProtoReflect.Descriptor instead. -func (*KeyValueMatchEntry) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{6} -} - -func (x *KeyValueMatchEntry) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *KeyValueMatchEntry) GetStringMatch() *v3.StringMatcher { - if x != nil { - return x.StringMatch - } - return nil -} - -// Custom matcher to match on the generic downstream request. This is used to match -// multiple fields of the downstream request and avoid complex combinations of -// HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput. -type RequestMatcher struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional host pattern to match on. If not specified, any host will match. - Host *v3.StringMatcher `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - // Optional path pattern to match on. If not specified, any path will match. - Path *v3.StringMatcher `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - // Optional method pattern to match on. If not specified, any method will match. - Method *v3.StringMatcher `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` - // Optional arbitrary properties to match on. If not specified, any properties - // will match. The key is the property name and the value is the property value - // to match on. - Properties []*KeyValueMatchEntry `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"` -} - -func (x *RequestMatcher) Reset() { - *x = RequestMatcher{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestMatcher) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestMatcher) ProtoMessage() {} - -func (x *RequestMatcher) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestMatcher.ProtoReflect.Descriptor instead. -func (*RequestMatcher) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP(), []int{7} -} - -func (x *RequestMatcher) GetHost() *v3.StringMatcher { - if x != nil { - return x.Host - } - return nil -} - -func (x *RequestMatcher) GetPath() *v3.StringMatcher { - if x != nil { - return x.Path - } - return nil -} - -func (x *RequestMatcher) GetMethod() *v3.StringMatcher { - if x != nil { - return x.Method - } - return nil -} - -func (x *RequestMatcher) GetProperties() []*KeyValueMatchEntry { - if x != nil { - return x.Properties - } - return nil -} - -var File_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDesc = []byte{ - 0x0a, 0x47, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x39, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x72, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x10, 0x0a, 0x0e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x10, 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x68, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x42, - 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x6e, 0x70, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4b, 0x65, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1b, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, - 0x01, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x22, 0xb1, - 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x72, 0x12, 0x38, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, - 0x33, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3c, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x6d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, - 0x2e, 0x76, 0x33, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, - 0x65, 0x73, 0x42, 0xd5, 0x01, 0x0a, 0x47, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0c, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x6a, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, - 0x3b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, - 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_goTypes = []interface{}{ - (*ServiceMatchInput)(nil), // 0: envoy.extensions.filters.network.generic_proxy.matcher.v3.ServiceMatchInput - (*HostMatchInput)(nil), // 1: envoy.extensions.filters.network.generic_proxy.matcher.v3.HostMatchInput - (*PathMatchInput)(nil), // 2: envoy.extensions.filters.network.generic_proxy.matcher.v3.PathMatchInput - (*MethodMatchInput)(nil), // 3: envoy.extensions.filters.network.generic_proxy.matcher.v3.MethodMatchInput - (*PropertyMatchInput)(nil), // 4: envoy.extensions.filters.network.generic_proxy.matcher.v3.PropertyMatchInput - (*RequestMatchInput)(nil), // 5: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatchInput - (*KeyValueMatchEntry)(nil), // 6: envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry - (*RequestMatcher)(nil), // 7: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher - (*v3.StringMatcher)(nil), // 8: envoy.type.matcher.v3.StringMatcher -} -var file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_depIdxs = []int32{ - 8, // 0: envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry.string_match:type_name -> envoy.type.matcher.v3.StringMatcher - 8, // 1: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.host:type_name -> envoy.type.matcher.v3.StringMatcher - 8, // 2: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.path:type_name -> envoy.type.matcher.v3.StringMatcher - 8, // 3: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.method:type_name -> envoy.type.matcher.v3.StringMatcher - 6, // 4: envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.properties:type_name -> envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PathMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MethodMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PropertyMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestMatchInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyValueMatchEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestMatcher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.validate.go deleted file mode 100644 index 747486cc4c..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.pb.validate.go +++ /dev/null @@ -1,1027 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.proto - -package matcherv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on ServiceMatchInput with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *ServiceMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ServiceMatchInput with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ServiceMatchInputMultiError, or nil if none found. -func (m *ServiceMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *ServiceMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return ServiceMatchInputMultiError(errors) - } - - return nil -} - -// ServiceMatchInputMultiError is an error wrapping multiple validation errors -// returned by ServiceMatchInput.ValidateAll() if the designated constraints -// aren't met. -type ServiceMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ServiceMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ServiceMatchInputMultiError) AllErrors() []error { return m } - -// ServiceMatchInputValidationError is the validation error returned by -// ServiceMatchInput.Validate if the designated constraints aren't met. -type ServiceMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ServiceMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ServiceMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ServiceMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ServiceMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ServiceMatchInputValidationError) ErrorName() string { - return "ServiceMatchInputValidationError" -} - -// Error satisfies the builtin error interface -func (e ServiceMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sServiceMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ServiceMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ServiceMatchInputValidationError{} - -// Validate checks the field values on HostMatchInput with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *HostMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on HostMatchInput with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in HostMatchInputMultiError, -// or nil if none found. -func (m *HostMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *HostMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return HostMatchInputMultiError(errors) - } - - return nil -} - -// HostMatchInputMultiError is an error wrapping multiple validation errors -// returned by HostMatchInput.ValidateAll() if the designated constraints -// aren't met. -type HostMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m HostMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m HostMatchInputMultiError) AllErrors() []error { return m } - -// HostMatchInputValidationError is the validation error returned by -// HostMatchInput.Validate if the designated constraints aren't met. -type HostMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HostMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HostMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HostMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HostMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HostMatchInputValidationError) ErrorName() string { return "HostMatchInputValidationError" } - -// Error satisfies the builtin error interface -func (e HostMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHostMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HostMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HostMatchInputValidationError{} - -// Validate checks the field values on PathMatchInput with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *PathMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on PathMatchInput with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in PathMatchInputMultiError, -// or nil if none found. -func (m *PathMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *PathMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return PathMatchInputMultiError(errors) - } - - return nil -} - -// PathMatchInputMultiError is an error wrapping multiple validation errors -// returned by PathMatchInput.ValidateAll() if the designated constraints -// aren't met. -type PathMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m PathMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m PathMatchInputMultiError) AllErrors() []error { return m } - -// PathMatchInputValidationError is the validation error returned by -// PathMatchInput.Validate if the designated constraints aren't met. -type PathMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PathMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PathMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PathMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PathMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PathMatchInputValidationError) ErrorName() string { return "PathMatchInputValidationError" } - -// Error satisfies the builtin error interface -func (e PathMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPathMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PathMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PathMatchInputValidationError{} - -// Validate checks the field values on MethodMatchInput with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *MethodMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on MethodMatchInput with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// MethodMatchInputMultiError, or nil if none found. -func (m *MethodMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *MethodMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return MethodMatchInputMultiError(errors) - } - - return nil -} - -// MethodMatchInputMultiError is an error wrapping multiple validation errors -// returned by MethodMatchInput.ValidateAll() if the designated constraints -// aren't met. -type MethodMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m MethodMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m MethodMatchInputMultiError) AllErrors() []error { return m } - -// MethodMatchInputValidationError is the validation error returned by -// MethodMatchInput.Validate if the designated constraints aren't met. -type MethodMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MethodMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MethodMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MethodMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MethodMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MethodMatchInputValidationError) ErrorName() string { return "MethodMatchInputValidationError" } - -// Error satisfies the builtin error interface -func (e MethodMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMethodMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MethodMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MethodMatchInputValidationError{} - -// Validate checks the field values on PropertyMatchInput with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *PropertyMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on PropertyMatchInput with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// PropertyMatchInputMultiError, or nil if none found. -func (m *PropertyMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *PropertyMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetPropertyName()) < 1 { - err := PropertyMatchInputValidationError{ - field: "PropertyName", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return PropertyMatchInputMultiError(errors) - } - - return nil -} - -// PropertyMatchInputMultiError is an error wrapping multiple validation errors -// returned by PropertyMatchInput.ValidateAll() if the designated constraints -// aren't met. -type PropertyMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m PropertyMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m PropertyMatchInputMultiError) AllErrors() []error { return m } - -// PropertyMatchInputValidationError is the validation error returned by -// PropertyMatchInput.Validate if the designated constraints aren't met. -type PropertyMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PropertyMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PropertyMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PropertyMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PropertyMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PropertyMatchInputValidationError) ErrorName() string { - return "PropertyMatchInputValidationError" -} - -// Error satisfies the builtin error interface -func (e PropertyMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPropertyMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PropertyMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PropertyMatchInputValidationError{} - -// Validate checks the field values on RequestMatchInput with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *RequestMatchInput) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RequestMatchInput with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// RequestMatchInputMultiError, or nil if none found. -func (m *RequestMatchInput) ValidateAll() error { - return m.validate(true) -} - -func (m *RequestMatchInput) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return RequestMatchInputMultiError(errors) - } - - return nil -} - -// RequestMatchInputMultiError is an error wrapping multiple validation errors -// returned by RequestMatchInput.ValidateAll() if the designated constraints -// aren't met. -type RequestMatchInputMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RequestMatchInputMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RequestMatchInputMultiError) AllErrors() []error { return m } - -// RequestMatchInputValidationError is the validation error returned by -// RequestMatchInput.Validate if the designated constraints aren't met. -type RequestMatchInputValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RequestMatchInputValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RequestMatchInputValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RequestMatchInputValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RequestMatchInputValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RequestMatchInputValidationError) ErrorName() string { - return "RequestMatchInputValidationError" -} - -// Error satisfies the builtin error interface -func (e RequestMatchInputValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRequestMatchInput.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RequestMatchInputValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RequestMatchInputValidationError{} - -// Validate checks the field values on KeyValueMatchEntry with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *KeyValueMatchEntry) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on KeyValueMatchEntry with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// KeyValueMatchEntryMultiError, or nil if none found. -func (m *KeyValueMatchEntry) ValidateAll() error { - return m.validate(true) -} - -func (m *KeyValueMatchEntry) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetName()) < 1 { - err := KeyValueMatchEntryValidationError{ - field: "Name", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if m.GetStringMatch() == nil { - err := KeyValueMatchEntryValidationError{ - field: "StringMatch", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetStringMatch()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, KeyValueMatchEntryValidationError{ - field: "StringMatch", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, KeyValueMatchEntryValidationError{ - field: "StringMatch", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetStringMatch()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return KeyValueMatchEntryValidationError{ - field: "StringMatch", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return KeyValueMatchEntryMultiError(errors) - } - - return nil -} - -// KeyValueMatchEntryMultiError is an error wrapping multiple validation errors -// returned by KeyValueMatchEntry.ValidateAll() if the designated constraints -// aren't met. -type KeyValueMatchEntryMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m KeyValueMatchEntryMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m KeyValueMatchEntryMultiError) AllErrors() []error { return m } - -// KeyValueMatchEntryValidationError is the validation error returned by -// KeyValueMatchEntry.Validate if the designated constraints aren't met. -type KeyValueMatchEntryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e KeyValueMatchEntryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e KeyValueMatchEntryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e KeyValueMatchEntryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e KeyValueMatchEntryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e KeyValueMatchEntryValidationError) ErrorName() string { - return "KeyValueMatchEntryValidationError" -} - -// Error satisfies the builtin error interface -func (e KeyValueMatchEntryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sKeyValueMatchEntry.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = KeyValueMatchEntryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = KeyValueMatchEntryValidationError{} - -// Validate checks the field values on RequestMatcher with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *RequestMatcher) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RequestMatcher with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in RequestMatcherMultiError, -// or nil if none found. -func (m *RequestMatcher) ValidateAll() error { - return m.validate(true) -} - -func (m *RequestMatcher) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetHost()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Host", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Host", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetHost()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RequestMatcherValidationError{ - field: "Host", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetPath()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Path", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Path", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetPath()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RequestMatcherValidationError{ - field: "Path", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetMethod()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Method", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: "Method", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMethod()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RequestMatcherValidationError{ - field: "Method", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetProperties() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: fmt.Sprintf("Properties[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RequestMatcherValidationError{ - field: fmt.Sprintf("Properties[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RequestMatcherValidationError{ - field: fmt.Sprintf("Properties[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return RequestMatcherMultiError(errors) - } - - return nil -} - -// RequestMatcherMultiError is an error wrapping multiple validation errors -// returned by RequestMatcher.ValidateAll() if the designated constraints -// aren't met. -type RequestMatcherMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RequestMatcherMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RequestMatcherMultiError) AllErrors() []error { return m } - -// RequestMatcherValidationError is the validation error returned by -// RequestMatcher.Validate if the designated constraints aren't met. -type RequestMatcherValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RequestMatcherValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RequestMatcherValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RequestMatcherValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RequestMatcherValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RequestMatcherValidationError) ErrorName() string { return "RequestMatcherValidationError" } - -// Error satisfies the builtin error interface -func (e RequestMatcherValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRequestMatcher.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RequestMatcherValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RequestMatcherValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.go deleted file mode 100644 index d2e92e7616..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/router/v3/router.proto - -package routerv3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type Router struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Set to true if the upstream connection should be bound to the downstream connection, false - // otherwise. - // - // By default, one random upstream connection will be selected from the upstream connection pool - // and used for every request. And after the request is finished, the upstream connection will be - // released back to the upstream connection pool. - // - // If this option is true, the upstream connection will be bound to the downstream connection and - // have same lifetime as the downstream connection. The same upstream connection will be used for - // all requests from the same downstream connection. - // - // And if this options is true, one of the following requirements must be met: - // - // 1. The request must be handled one by one. That is, the next request can not be sent to the - // upstream until the previous request is finished. - // 2. Unique request id must be provided for each request and response. The request id must be - // unique for each request and response pair in same connection pair. And the request id must - // be the same for the corresponding request and response. - // - // This could be useful for some protocols that require the same upstream connection to be used - // for all requests from the same downstream connection. For example, the protocol using stateful - // connection. - BindUpstreamConnection bool `protobuf:"varint,1,opt,name=bind_upstream_connection,json=bindUpstreamConnection,proto3" json:"bind_upstream_connection,omitempty"` -} - -func (x *Router) Reset() { - *x = Router{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Router) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Router) ProtoMessage() {} - -func (x *Router) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Router.ProtoReflect.Descriptor instead. -func (*Router) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescGZIP(), []int{0} -} - -func (x *Router) GetBindUpstreamConnection() bool { - if x != nil { - return x.BindUpstreamConnection - } - return false -} - -var File_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDesc = []byte{ - 0x0a, 0x45, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x38, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x33, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x42, 0x0a, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x62, - 0x69, 0x6e, 0x64, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x62, - 0x69, 0x6e, 0x64, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd1, 0x01, 0x0a, 0x46, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x33, - 0x42, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x68, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x33, - 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, - 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_goTypes = []interface{}{ - (*Router)(nil), // 0: envoy.extensions.filters.network.generic_proxy.router.v3.Router -} -var file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Router); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.validate.go deleted file mode 100644 index d525c74fb3..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3/router.pb.validate.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/router/v3/router.proto - -package routerv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on Router with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Router) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Router with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in RouterMultiError, or nil if none found. -func (m *Router) ValidateAll() error { - return m.validate(true) -} - -func (m *Router) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for BindUpstreamConnection - - if len(errors) > 0 { - return RouterMultiError(errors) - } - - return nil -} - -// RouterMultiError is an error wrapping multiple validation errors returned by -// Router.ValidateAll() if the designated constraints aren't met. -type RouterMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RouterMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RouterMultiError) AllErrors() []error { return m } - -// RouterValidationError is the validation error returned by Router.Validate if -// the designated constraints aren't met. -type RouterValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RouterValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RouterValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RouterValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RouterValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RouterValidationError) ErrorName() string { return "RouterValidationError" } - -// Error satisfies the builtin error interface -func (e RouterValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRouter.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RouterValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RouterValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.go deleted file mode 100644 index f4763e6821..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.go +++ /dev/null @@ -1,415 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.proto - -package generic_proxyv3 - -import ( - v32 "github.com/cilium/proxy/go/envoy/config/accesslog/v3" - v3 "github.com/cilium/proxy/go/envoy/config/core/v3" - v31 "github.com/cilium/proxy/go/envoy/extensions/filters/network/http_connection_manager/v3" - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// [#next-free-field: 8] -type GenericProxy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The human readable prefix to use when emitting statistics. - StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` - // The codec which encodes and decodes the application protocol. - // [#extension-category: envoy.generic_proxy.codecs] - CodecConfig *v3.TypedExtensionConfig `protobuf:"bytes,2,opt,name=codec_config,json=codecConfig,proto3" json:"codec_config,omitempty"` - // Types that are assignable to RouteSpecifier: - // - // *GenericProxy_GenericRds - // *GenericProxy_RouteConfig - RouteSpecifier isGenericProxy_RouteSpecifier `protobuf_oneof:"route_specifier"` - // A list of individual Layer-7 filters that make up the filter chain for requests made to the - // proxy. Order matters as the filters are processed sequentially as request events - // happen. - // [#extension-category: envoy.generic_proxy.filters] - Filters []*v3.TypedExtensionConfig `protobuf:"bytes,5,rep,name=filters,proto3" json:"filters,omitempty"` - // Tracing configuration for the generic proxy. - Tracing *v31.HttpConnectionManager_Tracing `protobuf:"bytes,6,opt,name=tracing,proto3" json:"tracing,omitempty"` - // Configuration for :ref:`access logs ` emitted by generic proxy. - AccessLog []*v32.AccessLog `protobuf:"bytes,7,rep,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` -} - -func (x *GenericProxy) Reset() { - *x = GenericProxy{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenericProxy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenericProxy) ProtoMessage() {} - -func (x *GenericProxy) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenericProxy.ProtoReflect.Descriptor instead. -func (*GenericProxy) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescGZIP(), []int{0} -} - -func (x *GenericProxy) GetStatPrefix() string { - if x != nil { - return x.StatPrefix - } - return "" -} - -func (x *GenericProxy) GetCodecConfig() *v3.TypedExtensionConfig { - if x != nil { - return x.CodecConfig - } - return nil -} - -func (m *GenericProxy) GetRouteSpecifier() isGenericProxy_RouteSpecifier { - if m != nil { - return m.RouteSpecifier - } - return nil -} - -func (x *GenericProxy) GetGenericRds() *GenericRds { - if x, ok := x.GetRouteSpecifier().(*GenericProxy_GenericRds); ok { - return x.GenericRds - } - return nil -} - -func (x *GenericProxy) GetRouteConfig() *RouteConfiguration { - if x, ok := x.GetRouteSpecifier().(*GenericProxy_RouteConfig); ok { - return x.RouteConfig - } - return nil -} - -func (x *GenericProxy) GetFilters() []*v3.TypedExtensionConfig { - if x != nil { - return x.Filters - } - return nil -} - -func (x *GenericProxy) GetTracing() *v31.HttpConnectionManager_Tracing { - if x != nil { - return x.Tracing - } - return nil -} - -func (x *GenericProxy) GetAccessLog() []*v32.AccessLog { - if x != nil { - return x.AccessLog - } - return nil -} - -type isGenericProxy_RouteSpecifier interface { - isGenericProxy_RouteSpecifier() -} - -type GenericProxy_GenericRds struct { - // The generic proxies route table will be dynamically loaded via the meta RDS API. - GenericRds *GenericRds `protobuf:"bytes,3,opt,name=generic_rds,json=genericRds,proto3,oneof"` -} - -type GenericProxy_RouteConfig struct { - // The route table for the generic proxy is static and is specified in this property. - RouteConfig *RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"` -} - -func (*GenericProxy_GenericRds) isGenericProxy_RouteSpecifier() {} - -func (*GenericProxy_RouteConfig) isGenericProxy_RouteSpecifier() {} - -type GenericRds struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Configuration source specifier for RDS. - ConfigSource *v3.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"` - // The name of the route configuration. This name will be passed to the RDS API. This allows an - // Envoy configuration with multiple generic proxies to use different route configurations. - RouteConfigName string `protobuf:"bytes,2,opt,name=route_config_name,json=routeConfigName,proto3" json:"route_config_name,omitempty"` -} - -func (x *GenericRds) Reset() { - *x = GenericRds{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenericRds) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenericRds) ProtoMessage() {} - -func (x *GenericRds) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenericRds.ProtoReflect.Descriptor instead. -func (*GenericRds) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescGZIP(), []int{1} -} - -func (x *GenericRds) GetConfigSource() *v3.ConfigSource { - if x != nil { - return x.ConfigSource - } - return nil -} - -func (x *GenericRds) GetRouteConfigName() string { - if x != nil { - return x.RouteConfigName - } - return "" -} - -var File_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDesc = []byte{ - 0x0a, 0x45, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x76, 0x33, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x31, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x33, 0x1a, 0x29, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, - 0x6f, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x59, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, - 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf8, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x28, 0x0a, 0x0b, 0x73, 0x74, 0x61, - 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x50, 0x72, 0x65, - 0x66, 0x69, 0x78, 0x12, 0x57, 0x0a, 0x0c, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, - 0x0b, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x60, 0x0a, 0x0b, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x64, 0x73, - 0x48, 0x00, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x64, 0x73, 0x12, 0x6a, - 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x07, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x76, 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x74, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x5a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, - 0x48, 0x74, 0x74, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x74, - 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x43, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, - 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x42, 0x16, 0x0a, 0x0f, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, - 0xf8, 0x42, 0x01, 0x22, 0x94, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, - 0x64, 0x73, 0x12, 0x51, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, - 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x11, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0xd0, 0x01, 0x0a, 0x3f, 0x69, - 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x33, 0x42, 0x11, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x68, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x33, 0x3b, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x76, 0x33, 0xba, 0x80, 0xc8, - 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_goTypes = []interface{}{ - (*GenericProxy)(nil), // 0: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy - (*GenericRds)(nil), // 1: envoy.extensions.filters.network.generic_proxy.v3.GenericRds - (*v3.TypedExtensionConfig)(nil), // 2: envoy.config.core.v3.TypedExtensionConfig - (*RouteConfiguration)(nil), // 3: envoy.extensions.filters.network.generic_proxy.v3.RouteConfiguration - (*v31.HttpConnectionManager_Tracing)(nil), // 4: envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing - (*v32.AccessLog)(nil), // 5: envoy.config.accesslog.v3.AccessLog - (*v3.ConfigSource)(nil), // 6: envoy.config.core.v3.ConfigSource -} -var file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_depIdxs = []int32{ - 2, // 0: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.codec_config:type_name -> envoy.config.core.v3.TypedExtensionConfig - 1, // 1: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.generic_rds:type_name -> envoy.extensions.filters.network.generic_proxy.v3.GenericRds - 3, // 2: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.route_config:type_name -> envoy.extensions.filters.network.generic_proxy.v3.RouteConfiguration - 2, // 3: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.filters:type_name -> envoy.config.core.v3.TypedExtensionConfig - 4, // 4: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.tracing:type_name -> envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing - 5, // 5: envoy.extensions.filters.network.generic_proxy.v3.GenericProxy.access_log:type_name -> envoy.config.accesslog.v3.AccessLog - 6, // 6: envoy.extensions.filters.network.generic_proxy.v3.GenericRds.config_source:type_name -> envoy.config.core.v3.ConfigSource - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto != nil { - return - } - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_init() - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenericProxy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenericRds); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*GenericProxy_GenericRds)(nil), - (*GenericProxy_RouteConfig)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.validate.go deleted file mode 100644 index 37483bbacb..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.pb.validate.go +++ /dev/null @@ -1,533 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/v3/generic_proxy.proto - -package generic_proxyv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on GenericProxy with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *GenericProxy) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GenericProxy with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in GenericProxyMultiError, or -// nil if none found. -func (m *GenericProxy) ValidateAll() error { - return m.validate(true) -} - -func (m *GenericProxy) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetStatPrefix()) < 1 { - err := GenericProxyValidationError{ - field: "StatPrefix", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if m.GetCodecConfig() == nil { - err := GenericProxyValidationError{ - field: "CodecConfig", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetCodecConfig()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "CodecConfig", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "CodecConfig", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCodecConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: "CodecConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetFilters() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: fmt.Sprintf("Filters[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: fmt.Sprintf("Filters[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: fmt.Sprintf("Filters[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if all { - switch v := interface{}(m.GetTracing()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "Tracing", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "Tracing", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetTracing()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: "Tracing", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetAccessLog() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: fmt.Sprintf("AccessLog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: fmt.Sprintf("AccessLog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: fmt.Sprintf("AccessLog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - oneofRouteSpecifierPresent := false - switch v := m.RouteSpecifier.(type) { - case *GenericProxy_GenericRds: - if v == nil { - err := GenericProxyValidationError{ - field: "RouteSpecifier", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - oneofRouteSpecifierPresent = true - - if all { - switch v := interface{}(m.GetGenericRds()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "GenericRds", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "GenericRds", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetGenericRds()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: "GenericRds", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *GenericProxy_RouteConfig: - if v == nil { - err := GenericProxyValidationError{ - field: "RouteSpecifier", - reason: "oneof value cannot be a typed-nil", - } - if !all { - return err - } - errors = append(errors, err) - } - oneofRouteSpecifierPresent = true - - if all { - switch v := interface{}(m.GetRouteConfig()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "RouteConfig", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericProxyValidationError{ - field: "RouteConfig", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericProxyValidationError{ - field: "RouteConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - _ = v // ensures v is used - } - if !oneofRouteSpecifierPresent { - err := GenericProxyValidationError{ - field: "RouteSpecifier", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return GenericProxyMultiError(errors) - } - - return nil -} - -// GenericProxyMultiError is an error wrapping multiple validation errors -// returned by GenericProxy.ValidateAll() if the designated constraints aren't met. -type GenericProxyMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GenericProxyMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GenericProxyMultiError) AllErrors() []error { return m } - -// GenericProxyValidationError is the validation error returned by -// GenericProxy.Validate if the designated constraints aren't met. -type GenericProxyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GenericProxyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GenericProxyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GenericProxyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GenericProxyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GenericProxyValidationError) ErrorName() string { return "GenericProxyValidationError" } - -// Error satisfies the builtin error interface -func (e GenericProxyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGenericProxy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GenericProxyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GenericProxyValidationError{} - -// Validate checks the field values on GenericRds with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *GenericRds) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GenericRds with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in GenericRdsMultiError, or -// nil if none found. -func (m *GenericRds) ValidateAll() error { - return m.validate(true) -} - -func (m *GenericRds) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetConfigSource() == nil { - err := GenericRdsValidationError{ - field: "ConfigSource", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetConfigSource()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GenericRdsValidationError{ - field: "ConfigSource", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GenericRdsValidationError{ - field: "ConfigSource", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetConfigSource()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenericRdsValidationError{ - field: "ConfigSource", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if utf8.RuneCountInString(m.GetRouteConfigName()) < 1 { - err := GenericRdsValidationError{ - field: "RouteConfigName", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return GenericRdsMultiError(errors) - } - - return nil -} - -// GenericRdsMultiError is an error wrapping multiple validation errors -// returned by GenericRds.ValidateAll() if the designated constraints aren't met. -type GenericRdsMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GenericRdsMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GenericRdsMultiError) AllErrors() []error { return m } - -// GenericRdsValidationError is the validation error returned by -// GenericRds.Validate if the designated constraints aren't met. -type GenericRdsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GenericRdsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GenericRdsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GenericRdsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GenericRdsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GenericRdsValidationError) ErrorName() string { return "GenericRdsValidationError" } - -// Error satisfies the builtin error interface -func (e GenericRdsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGenericRds.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GenericRdsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GenericRdsValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.go deleted file mode 100644 index d82cfcb2bf..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.go +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/network/generic_proxy/v3/route.proto - -package generic_proxyv3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - v3 "github.com/cncf/xds/go/xds/type/matcher/v3" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type VirtualHost struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the virtual host. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in - // the suffix or prefix form. - // - // Host search order: - // 1. Exact names: “www.foo.com“. - // 2. Suffix wildcards: “*.foo.com“ or “*-bar.foo.com“. - // 3. Prefix wildcards: “foo.*“ or “foo-*“. - // 4. Special wildcard “*“ matching any host and will be the default virtual host. - // - // .. note:: - // - // The wildcard will not match the empty string. - // e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. - // The longest wildcards match first. - // Only a single virtual host in the entire route configuration can match on ``*``. A domain - // must be unique across all virtual hosts or the config will fail to load. - Hosts []string `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"` - // The match tree to use when resolving route actions for incoming requests. - Routes *v3.Matcher `protobuf:"bytes,3,opt,name=routes,proto3" json:"routes,omitempty"` -} - -func (x *VirtualHost) Reset() { - *x = VirtualHost{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VirtualHost) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VirtualHost) ProtoMessage() {} - -func (x *VirtualHost) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VirtualHost.ProtoReflect.Descriptor instead. -func (*VirtualHost) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescGZIP(), []int{0} -} - -func (x *VirtualHost) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *VirtualHost) GetHosts() []string { - if x != nil { - return x.Hosts - } - return nil -} - -func (x *VirtualHost) GetRoutes() *v3.Matcher { - if x != nil { - return x.Routes - } - return nil -} - -// The generic proxy makes use of the xDS matching API for routing configurations. -// -// In the below example, we combine a top level tree matcher with a linear matcher to match -// the incoming requests, and send the matching requests to v1 of the upstream service. -// -// .. code-block:: yaml -// -// name: example -// routes: -// matcher_tree: -// input: -// name: request-service -// typed_config: -// "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.ServiceMatchInput -// exact_match_map: -// map: -// service_name_0: -// matcher: -// matcher_list: -// matchers: -// - predicate: -// and_matcher: -// predicate: -// - single_predicate: -// input: -// name: request-properties -// typed_config: -// "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.PropertyMatchInput -// property_name: version -// value_match: -// exact: v1 -// - single_predicate: -// input: -// name: request-properties -// typed_config: -// "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.PropertyMatchInput -// property_name: user -// value_match: -// exact: john -// on_match: -// action: -// name: route -// typed_config: -// "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.action.v3.routeAction -// cluster: cluster_0 -type RouteConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the route configuration. For example, it might match route_config_name in - // envoy.extensions.filters.network.generic_proxy.v3.Rds. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The match tree to use when resolving route actions for incoming requests. - // If no any virtual host is configured in the “virtual_hosts“ field or no special wildcard - // virtual host is configured, the “routes“ field will be used as the default route table. - // If both the wildcard virtual host and “routes“ are configured, the configuration will fail - // to load. - Routes *v3.Matcher `protobuf:"bytes,2,opt,name=routes,proto3" json:"routes,omitempty"` - // An array of virtual hosts that make up the route table. - VirtualHosts []*VirtualHost `protobuf:"bytes,3,rep,name=virtual_hosts,json=virtualHosts,proto3" json:"virtual_hosts,omitempty"` -} - -func (x *RouteConfiguration) Reset() { - *x = RouteConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RouteConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RouteConfiguration) ProtoMessage() {} - -func (x *RouteConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RouteConfiguration.ProtoReflect.Descriptor instead. -func (*RouteConfiguration) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescGZIP(), []int{1} -} - -func (x *RouteConfiguration) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *RouteConfiguration) GetRoutes() *v3.Matcher { - if x != nil { - return x.Routes - } - return nil -} - -func (x *RouteConfiguration) GetVirtualHosts() []*VirtualHost { - if x != nil { - return x.VirtualHosts - } - return nil -} - -var File_envoy_extensions_filters_network_generic_proxy_v3_route_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDesc = []byte{ - 0x0a, 0x3d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x31, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, - 0x76, 0x33, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, - 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, - 0x01, 0x0a, 0x0b, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x68, - 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, - 0x01, 0x02, 0x08, 0x01, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x64, - 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, - 0x33, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, - 0x02, 0x10, 0x01, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x12, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x34, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x06, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x63, 0x0a, 0x0d, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, - 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x65, - 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x33, - 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x0c, 0x76, 0x69, - 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x42, 0xc9, 0x01, 0x0a, 0x3f, 0x69, - 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x33, 0x42, 0x0a, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x68, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, - 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x33, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0xd2, 0xc6, - 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescData = file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDesc -) - -func file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescData) - }) - return file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDescData -} - -var file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_goTypes = []interface{}{ - (*VirtualHost)(nil), // 0: envoy.extensions.filters.network.generic_proxy.v3.VirtualHost - (*RouteConfiguration)(nil), // 1: envoy.extensions.filters.network.generic_proxy.v3.RouteConfiguration - (*v3.Matcher)(nil), // 2: xds.type.matcher.v3.Matcher -} -var file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_depIdxs = []int32{ - 2, // 0: envoy.extensions.filters.network.generic_proxy.v3.VirtualHost.routes:type_name -> xds.type.matcher.v3.Matcher - 2, // 1: envoy.extensions.filters.network.generic_proxy.v3.RouteConfiguration.routes:type_name -> xds.type.matcher.v3.Matcher - 0, // 2: envoy.extensions.filters.network.generic_proxy.v3.RouteConfiguration.virtual_hosts:type_name -> envoy.extensions.filters.network.generic_proxy.v3.VirtualHost - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_init() } -func file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_init() { - if File_envoy_extensions_filters_network_generic_proxy_v3_route_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VirtualHost); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RouteConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_depIdxs, - MessageInfos: file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_network_generic_proxy_v3_route_proto = out.File - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_rawDesc = nil - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_goTypes = nil - file_envoy_extensions_filters_network_generic_proxy_v3_route_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.validate.go deleted file mode 100644 index 1dbcc023db..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3/route.pb.validate.go +++ /dev/null @@ -1,373 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/network/generic_proxy/v3/route.proto - -package generic_proxyv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on VirtualHost with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *VirtualHost) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on VirtualHost with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in VirtualHostMultiError, or -// nil if none found. -func (m *VirtualHost) ValidateAll() error { - return m.validate(true) -} - -func (m *VirtualHost) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetName()) < 1 { - err := VirtualHostValidationError{ - field: "Name", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(m.GetHosts()) < 1 { - err := VirtualHostValidationError{ - field: "Hosts", - reason: "value must contain at least 1 item(s)", - } - if !all { - return err - } - errors = append(errors, err) - } - - if m.GetRoutes() == nil { - err := VirtualHostValidationError{ - field: "Routes", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetRoutes()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, VirtualHostValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, VirtualHostValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetRoutes()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return VirtualHostValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return VirtualHostMultiError(errors) - } - - return nil -} - -// VirtualHostMultiError is an error wrapping multiple validation errors -// returned by VirtualHost.ValidateAll() if the designated constraints aren't met. -type VirtualHostMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m VirtualHostMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m VirtualHostMultiError) AllErrors() []error { return m } - -// VirtualHostValidationError is the validation error returned by -// VirtualHost.Validate if the designated constraints aren't met. -type VirtualHostValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VirtualHostValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VirtualHostValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VirtualHostValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VirtualHostValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VirtualHostValidationError) ErrorName() string { return "VirtualHostValidationError" } - -// Error satisfies the builtin error interface -func (e VirtualHostValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVirtualHost.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VirtualHostValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VirtualHostValidationError{} - -// Validate checks the field values on RouteConfiguration with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *RouteConfiguration) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RouteConfiguration with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// RouteConfigurationMultiError, or nil if none found. -func (m *RouteConfiguration) ValidateAll() error { - return m.validate(true) -} - -func (m *RouteConfiguration) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetName()) < 1 { - err := RouteConfigurationValidationError{ - field: "Name", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetRoutes()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteConfigurationValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteConfigurationValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetRoutes()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteConfigurationValidationError{ - field: "Routes", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetVirtualHosts() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RouteConfigurationValidationError{ - field: fmt.Sprintf("VirtualHosts[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RouteConfigurationValidationError{ - field: fmt.Sprintf("VirtualHosts[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RouteConfigurationValidationError{ - field: fmt.Sprintf("VirtualHosts[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return RouteConfigurationMultiError(errors) - } - - return nil -} - -// RouteConfigurationMultiError is an error wrapping multiple validation errors -// returned by RouteConfiguration.ValidateAll() if the designated constraints -// aren't met. -type RouteConfigurationMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RouteConfigurationMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RouteConfigurationMultiError) AllErrors() []error { return m } - -// RouteConfigurationValidationError is the validation error returned by -// RouteConfiguration.Validate if the designated constraints aren't met. -type RouteConfigurationValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RouteConfigurationValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RouteConfigurationValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RouteConfigurationValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RouteConfigurationValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RouteConfigurationValidationError) ErrorName() string { - return "RouteConfigurationValidationError" -} - -// Error satisfies the builtin error interface -func (e RouteConfigurationValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRouteConfiguration.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RouteConfigurationValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RouteConfigurationValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.go deleted file mode 100644 index e85588aa50..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/matching/input_matchers/metadata/v3/metadata.proto - -package metadatav3 - -import ( - v3 "github.com/cilium/proxy/go/envoy/type/matcher/v3" - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Metadata matcher for metadata from http matching input data. -type Metadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The Metadata is matched if the value retrieved by metadata matching input is matched to this value. - Value *v3.ValueMatcher `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // If true, the match result will be inverted. - Invert bool `protobuf:"varint,4,opt,name=invert,proto3" json:"invert,omitempty"` -} - -func (x *Metadata) Reset() { - *x = Metadata{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Metadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Metadata) ProtoMessage() {} - -func (x *Metadata) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. -func (*Metadata) Descriptor() ([]byte, []int) { - return file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescGZIP(), []int{0} -} - -func (x *Metadata) GetValue() *v3.ValueMatcher { - if x != nil { - return x.Value - } - return nil -} - -func (x *Metadata) GetInvert() bool { - if x != nil { - return x.Invert - } - return false -} - -var File_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto protoreflect.FileDescriptor - -var file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDesc = []byte{ - 0x0a, 0x43, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2f, 0x76, 0x33, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x34, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, - 0x2e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x33, 0x1a, 0x21, 0x65, 0x6e, 0x76, - 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, - 0x76, 0x33, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x76, 0x65, 0x72, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x42, - 0xc5, 0x01, 0x0a, 0x42, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x76, 0x33, 0x42, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x66, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, - 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, - 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x33, 0x3b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x76, 0x33, 0xba, - 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescOnce sync.Once - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescData = file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDesc -) - -func file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescGZIP() []byte { - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescOnce.Do(func() { - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescData) - }) - return file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDescData -} - -var file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_goTypes = []interface{}{ - (*Metadata)(nil), // 0: envoy.extensions.matching.input_matchers.metadata.v3.Metadata - (*v3.ValueMatcher)(nil), // 1: envoy.type.matcher.v3.ValueMatcher -} -var file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_depIdxs = []int32{ - 1, // 0: envoy.extensions.matching.input_matchers.metadata.v3.Metadata.value:type_name -> envoy.type.matcher.v3.ValueMatcher - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_init() } -func file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_init() { - if File_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Metadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_goTypes, - DependencyIndexes: file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_depIdxs, - MessageInfos: file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_msgTypes, - }.Build() - File_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto = out.File - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_rawDesc = nil - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_goTypes = nil - file_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.validate.go deleted file mode 100644 index 340e11121c..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.validate.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/matching/input_matchers/metadata/v3/metadata.proto - -package metadatav3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on Metadata with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Metadata) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Metadata with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in MetadataMultiError, or nil -// if none found. -func (m *Metadata) ValidateAll() error { - return m.validate(true) -} - -func (m *Metadata) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetValue() == nil { - err := MetadataValidationError{ - field: "Value", - reason: "value is required", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetValue()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, MetadataValidationError{ - field: "Value", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, MetadataValidationError{ - field: "Value", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MetadataValidationError{ - field: "Value", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Invert - - if len(errors) > 0 { - return MetadataMultiError(errors) - } - - return nil -} - -// MetadataMultiError is an error wrapping multiple validation errors returned -// by Metadata.ValidateAll() if the designated constraints aren't met. -type MetadataMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m MetadataMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m MetadataMultiError) AllErrors() []error { return m } - -// MetadataValidationError is the validation error returned by -// Metadata.Validate if the designated constraints aren't met. -type MetadataValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MetadataValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MetadataValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MetadataValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MetadataValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MetadataValidationError) ErrorName() string { return "MetadataValidationError" } - -// Error satisfies the builtin error interface -func (e MetadataValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMetadata.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MetadataValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MetadataValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.go deleted file mode 100644 index 551da8df97..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.proto - -package cpu_utilizationv3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The CPU utilization resource monitor reports the Envoy process the CPU Utilization of the entire host. -// Today, this only works on Linux and is calculated using the stats in the /proc/stat file. -type CpuUtilizationConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CpuUtilizationConfig) Reset() { - *x = CpuUtilizationConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CpuUtilizationConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CpuUtilizationConfig) ProtoMessage() {} - -func (x *CpuUtilizationConfig) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CpuUtilizationConfig.ProtoReflect.Descriptor instead. -func (*CpuUtilizationConfig) Descriptor() ([]byte, []int) { - return file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescGZIP(), []int{0} -} - -var File_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto protoreflect.FileDescriptor - -var file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDesc = []byte{ - 0x0a, 0x4b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x35, 0x65, - 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x73, 0x2e, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x70, 0x75, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0xd4, 0x01, 0x0a, 0x43, - 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, - 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x73, - 0x2e, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x33, 0x42, 0x13, 0x43, 0x70, 0x75, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x6e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, - 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x3b, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, - 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, - 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescOnce sync.Once - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescData = file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDesc -) - -func file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescGZIP() []byte { - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescOnce.Do(func() { - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescData) - }) - return file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDescData -} - -var file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_goTypes = []interface{}{ - (*CpuUtilizationConfig)(nil), // 0: envoy.extensions.resource_monitors.cpu_utilization.v3.CpuUtilizationConfig -} -var file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_init() } -func file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_init() { - if File_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CpuUtilizationConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_goTypes, - DependencyIndexes: file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_depIdxs, - MessageInfos: file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_msgTypes, - }.Build() - File_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto = out.File - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_rawDesc = nil - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_goTypes = nil - file_envoy_extensions_resource_monitors_cpu_utilization_v3_cpu_utilization_proto_depIdxs = nil -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.validate.go deleted file mode 100644 index 0878117008..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.pb.validate.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/resource_monitors/cpu_utilization/v3/cpu_utilization.proto - -package cpu_utilizationv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on CpuUtilizationConfig with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CpuUtilizationConfig) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CpuUtilizationConfig with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CpuUtilizationConfigMultiError, or nil if none found. -func (m *CpuUtilizationConfig) ValidateAll() error { - return m.validate(true) -} - -func (m *CpuUtilizationConfig) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return CpuUtilizationConfigMultiError(errors) - } - - return nil -} - -// CpuUtilizationConfigMultiError is an error wrapping multiple validation -// errors returned by CpuUtilizationConfig.ValidateAll() if the designated -// constraints aren't met. -type CpuUtilizationConfigMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CpuUtilizationConfigMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CpuUtilizationConfigMultiError) AllErrors() []error { return m } - -// CpuUtilizationConfigValidationError is the validation error returned by -// CpuUtilizationConfig.Validate if the designated constraints aren't met. -type CpuUtilizationConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CpuUtilizationConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CpuUtilizationConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CpuUtilizationConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CpuUtilizationConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CpuUtilizationConfigValidationError) ErrorName() string { - return "CpuUtilizationConfigValidationError" -} - -// Error satisfies the builtin error interface -func (e CpuUtilizationConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCpuUtilizationConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CpuUtilizationConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CpuUtilizationConfigValidationError{} diff --git a/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.go b/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.go deleted file mode 100644 index 6f777549c3..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.go +++ /dev/null @@ -1,377 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v5.26.1 -// source: envoy/service/redis_auth/v3/redis_external_auth.proto - -package redis_authv3 - -import ( - context "context" - _ "github.com/cncf/xds/go/udpa/annotations" - proto "github.com/golang/protobuf/proto" - status "google.golang.org/genproto/googleapis/rpc/status" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status1 "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type RedisProxyExternalAuthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Username, if applicable. Otherwise, empty. - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - // Password sent with the AUTH command. - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *RedisProxyExternalAuthRequest) Reset() { - *x = RedisProxyExternalAuthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RedisProxyExternalAuthRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RedisProxyExternalAuthRequest) ProtoMessage() {} - -func (x *RedisProxyExternalAuthRequest) ProtoReflect() protoreflect.Message { - mi := &file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RedisProxyExternalAuthRequest.ProtoReflect.Descriptor instead. -func (*RedisProxyExternalAuthRequest) Descriptor() ([]byte, []int) { - return file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescGZIP(), []int{0} -} - -func (x *RedisProxyExternalAuthRequest) GetUsername() string { - if x != nil { - return x.Username - } - return "" -} - -func (x *RedisProxyExternalAuthRequest) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -type RedisProxyExternalAuthResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Status of the authentication check. - Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // Optional expiration time for the authentication. - // If set, the authentication will be valid until this time. - // If not set, the authentication will be valid indefinitely. - Expiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"` - // Optional message to be sent back to the client. - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *RedisProxyExternalAuthResponse) Reset() { - *x = RedisProxyExternalAuthResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RedisProxyExternalAuthResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RedisProxyExternalAuthResponse) ProtoMessage() {} - -func (x *RedisProxyExternalAuthResponse) ProtoReflect() protoreflect.Message { - mi := &file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RedisProxyExternalAuthResponse.ProtoReflect.Descriptor instead. -func (*RedisProxyExternalAuthResponse) Descriptor() ([]byte, []int) { - return file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescGZIP(), []int{1} -} - -func (x *RedisProxyExternalAuthResponse) GetStatus() *status.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RedisProxyExternalAuthResponse) GetExpiration() *timestamppb.Timestamp { - if x != nil { - return x.Expiration - } - return nil -} - -func (x *RedisProxyExternalAuthResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -var File_envoy_service_redis_auth_v3_redis_external_auth_proto protoreflect.FileDescriptor - -var file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDesc = []byte{ - 0x0a, 0x35, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, - 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, - 0x64, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x75, 0x74, - 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, - 0x68, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, - 0x1d, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x64, 0x69, 0x73, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3a, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xa4, 0x01, 0x0a, 0x16, - 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x12, 0x89, 0x01, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, - 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, - 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, - 0x33, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x42, 0x9e, 0x01, 0x0a, 0x29, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, - 0x42, 0x16, 0x52, 0x65, 0x64, 0x69, 0x73, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, - 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, - 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x3b, 0x72, - 0x65, 0x64, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, - 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescOnce sync.Once - file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescData = file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDesc -) - -func file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescGZIP() []byte { - file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescOnce.Do(func() { - file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescData) - }) - return file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDescData -} - -var file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_envoy_service_redis_auth_v3_redis_external_auth_proto_goTypes = []interface{}{ - (*RedisProxyExternalAuthRequest)(nil), // 0: envoy.service.redis_auth.v3.RedisProxyExternalAuthRequest - (*RedisProxyExternalAuthResponse)(nil), // 1: envoy.service.redis_auth.v3.RedisProxyExternalAuthResponse - (*status.Status)(nil), // 2: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp -} -var file_envoy_service_redis_auth_v3_redis_external_auth_proto_depIdxs = []int32{ - 2, // 0: envoy.service.redis_auth.v3.RedisProxyExternalAuthResponse.status:type_name -> google.rpc.Status - 3, // 1: envoy.service.redis_auth.v3.RedisProxyExternalAuthResponse.expiration:type_name -> google.protobuf.Timestamp - 0, // 2: envoy.service.redis_auth.v3.RedisProxyExternalAuth.Authenticate:input_type -> envoy.service.redis_auth.v3.RedisProxyExternalAuthRequest - 1, // 3: envoy.service.redis_auth.v3.RedisProxyExternalAuth.Authenticate:output_type -> envoy.service.redis_auth.v3.RedisProxyExternalAuthResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_envoy_service_redis_auth_v3_redis_external_auth_proto_init() } -func file_envoy_service_redis_auth_v3_redis_external_auth_proto_init() { - if File_envoy_service_redis_auth_v3_redis_external_auth_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RedisProxyExternalAuthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RedisProxyExternalAuthResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_envoy_service_redis_auth_v3_redis_external_auth_proto_goTypes, - DependencyIndexes: file_envoy_service_redis_auth_v3_redis_external_auth_proto_depIdxs, - MessageInfos: file_envoy_service_redis_auth_v3_redis_external_auth_proto_msgTypes, - }.Build() - File_envoy_service_redis_auth_v3_redis_external_auth_proto = out.File - file_envoy_service_redis_auth_v3_redis_external_auth_proto_rawDesc = nil - file_envoy_service_redis_auth_v3_redis_external_auth_proto_goTypes = nil - file_envoy_service_redis_auth_v3_redis_external_auth_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RedisProxyExternalAuthClient is the client API for RedisProxyExternalAuth service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RedisProxyExternalAuthClient interface { - // Performs authentication check based on the data sent with the AUTH request. - // Returns either an OK status or an error status. - Authenticate(ctx context.Context, in *RedisProxyExternalAuthRequest, opts ...grpc.CallOption) (*RedisProxyExternalAuthResponse, error) -} - -type redisProxyExternalAuthClient struct { - cc grpc.ClientConnInterface -} - -func NewRedisProxyExternalAuthClient(cc grpc.ClientConnInterface) RedisProxyExternalAuthClient { - return &redisProxyExternalAuthClient{cc} -} - -func (c *redisProxyExternalAuthClient) Authenticate(ctx context.Context, in *RedisProxyExternalAuthRequest, opts ...grpc.CallOption) (*RedisProxyExternalAuthResponse, error) { - out := new(RedisProxyExternalAuthResponse) - err := c.cc.Invoke(ctx, "/envoy.service.redis_auth.v3.RedisProxyExternalAuth/Authenticate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RedisProxyExternalAuthServer is the server API for RedisProxyExternalAuth service. -type RedisProxyExternalAuthServer interface { - // Performs authentication check based on the data sent with the AUTH request. - // Returns either an OK status or an error status. - Authenticate(context.Context, *RedisProxyExternalAuthRequest) (*RedisProxyExternalAuthResponse, error) -} - -// UnimplementedRedisProxyExternalAuthServer can be embedded to have forward compatible implementations. -type UnimplementedRedisProxyExternalAuthServer struct { -} - -func (*UnimplementedRedisProxyExternalAuthServer) Authenticate(context.Context, *RedisProxyExternalAuthRequest) (*RedisProxyExternalAuthResponse, error) { - return nil, status1.Errorf(codes.Unimplemented, "method Authenticate not implemented") -} - -func RegisterRedisProxyExternalAuthServer(s *grpc.Server, srv RedisProxyExternalAuthServer) { - s.RegisterService(&_RedisProxyExternalAuth_serviceDesc, srv) -} - -func _RedisProxyExternalAuth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RedisProxyExternalAuthRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RedisProxyExternalAuthServer).Authenticate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/envoy.service.redis_auth.v3.RedisProxyExternalAuth/Authenticate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RedisProxyExternalAuthServer).Authenticate(ctx, req.(*RedisProxyExternalAuthRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RedisProxyExternalAuth_serviceDesc = grpc.ServiceDesc{ - ServiceName: "envoy.service.redis_auth.v3.RedisProxyExternalAuth", - HandlerType: (*RedisProxyExternalAuthServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Authenticate", - Handler: _RedisProxyExternalAuth_Authenticate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "envoy/service/redis_auth/v3/redis_external_auth.proto", -} diff --git a/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.validate.go b/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.validate.go deleted file mode 100644 index 35ce849423..0000000000 --- a/vendor/github.com/cilium/proxy/go/envoy/service/redis_auth/v3/redis_external_auth.pb.validate.go +++ /dev/null @@ -1,306 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/service/redis_auth/v3/redis_external_auth.proto - -package redis_authv3 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on RedisProxyExternalAuthRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *RedisProxyExternalAuthRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RedisProxyExternalAuthRequest with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// RedisProxyExternalAuthRequestMultiError, or nil if none found. -func (m *RedisProxyExternalAuthRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *RedisProxyExternalAuthRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Username - - // no validation rules for Password - - if len(errors) > 0 { - return RedisProxyExternalAuthRequestMultiError(errors) - } - - return nil -} - -// RedisProxyExternalAuthRequestMultiError is an error wrapping multiple -// validation errors returned by RedisProxyExternalAuthRequest.ValidateAll() -// if the designated constraints aren't met. -type RedisProxyExternalAuthRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RedisProxyExternalAuthRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RedisProxyExternalAuthRequestMultiError) AllErrors() []error { return m } - -// RedisProxyExternalAuthRequestValidationError is the validation error -// returned by RedisProxyExternalAuthRequest.Validate if the designated -// constraints aren't met. -type RedisProxyExternalAuthRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RedisProxyExternalAuthRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RedisProxyExternalAuthRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RedisProxyExternalAuthRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RedisProxyExternalAuthRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RedisProxyExternalAuthRequestValidationError) ErrorName() string { - return "RedisProxyExternalAuthRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e RedisProxyExternalAuthRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRedisProxyExternalAuthRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RedisProxyExternalAuthRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RedisProxyExternalAuthRequestValidationError{} - -// Validate checks the field values on RedisProxyExternalAuthResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *RedisProxyExternalAuthResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on RedisProxyExternalAuthResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// RedisProxyExternalAuthResponseMultiError, or nil if none found. -func (m *RedisProxyExternalAuthResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *RedisProxyExternalAuthResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetStatus()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RedisProxyExternalAuthResponseValidationError{ - field: "Status", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RedisProxyExternalAuthResponseValidationError{ - field: "Status", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetStatus()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RedisProxyExternalAuthResponseValidationError{ - field: "Status", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetExpiration()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, RedisProxyExternalAuthResponseValidationError{ - field: "Expiration", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, RedisProxyExternalAuthResponseValidationError{ - field: "Expiration", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetExpiration()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return RedisProxyExternalAuthResponseValidationError{ - field: "Expiration", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Message - - if len(errors) > 0 { - return RedisProxyExternalAuthResponseMultiError(errors) - } - - return nil -} - -// RedisProxyExternalAuthResponseMultiError is an error wrapping multiple -// validation errors returned by RedisProxyExternalAuthResponse.ValidateAll() -// if the designated constraints aren't met. -type RedisProxyExternalAuthResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m RedisProxyExternalAuthResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m RedisProxyExternalAuthResponseMultiError) AllErrors() []error { return m } - -// RedisProxyExternalAuthResponseValidationError is the validation error -// returned by RedisProxyExternalAuthResponse.Validate if the designated -// constraints aren't met. -type RedisProxyExternalAuthResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RedisProxyExternalAuthResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RedisProxyExternalAuthResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RedisProxyExternalAuthResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RedisProxyExternalAuthResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RedisProxyExternalAuthResponseValidationError) ErrorName() string { - return "RedisProxyExternalAuthResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e RedisProxyExternalAuthResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRedisProxyExternalAuthResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RedisProxyExternalAuthResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RedisProxyExternalAuthResponseValidationError{} diff --git a/vendor/modules.txt b/vendor/modules.txt index 196dcaf4be..07c88b245a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -55,7 +55,7 @@ github.com/chai2010/gettext-go/po # github.com/cilium/charts v0.0.0-20241218153829-9518b30a2027 ## explicit; go 1.17 github.com/cilium/charts -# github.com/cilium/cilium v1.17.0-pre.3.0.20250108154004-47bb433883b2 +# github.com/cilium/cilium v1.17.0-rc.0 ## explicit; go 1.23.0 github.com/cilium/cilium/api/v1/client github.com/cilium/cilium/api/v1/client/bgp @@ -374,7 +374,6 @@ github.com/cilium/proxy/go/envoy/extensions/filters/http/lua/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/oauth2/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/on_demand/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/original_src/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_extraction/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/proto_message_logging/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/rate_limit_quota/v3 github.com/cilium/proxy/go/envoy/extensions/filters/http/ratelimit/v3 @@ -399,12 +398,6 @@ github.com/cilium/proxy/go/envoy/extensions/filters/network/dubbo_proxy/router/v github.com/cilium/proxy/go/envoy/extensions/filters/network/dubbo_proxy/v3 github.com/cilium/proxy/go/envoy/extensions/filters/network/echo/v3 github.com/cilium/proxy/go/envoy/extensions/filters/network/ext_authz/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/action/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/dubbo/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/codecs/http1/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/matcher/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/router/v3 -github.com/cilium/proxy/go/envoy/extensions/filters/network/generic_proxy/v3 github.com/cilium/proxy/go/envoy/extensions/filters/network/http_connection_manager/v3 github.com/cilium/proxy/go/envoy/extensions/filters/network/local_ratelimit/v3 github.com/cilium/proxy/go/envoy/extensions/filters/network/mongo_proxy/v3 @@ -467,7 +460,6 @@ github.com/cilium/proxy/go/envoy/extensions/matching/common_inputs/network/v3 github.com/cilium/proxy/go/envoy/extensions/matching/common_inputs/ssl/v3 github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/consistent_hashing/v3 github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/ip/v3 -github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/metadata/v3 github.com/cilium/proxy/go/envoy/extensions/matching/input_matchers/runtime_fraction/v3 github.com/cilium/proxy/go/envoy/extensions/network/dns_resolver/apple/v3 github.com/cilium/proxy/go/envoy/extensions/network/dns_resolver/cares/v3 @@ -487,7 +479,6 @@ github.com/cilium/proxy/go/envoy/extensions/rbac/audit_loggers/stream/v3 github.com/cilium/proxy/go/envoy/extensions/rbac/matchers/upstream_ip_port/v3 github.com/cilium/proxy/go/envoy/extensions/regex_engines/v3 github.com/cilium/proxy/go/envoy/extensions/request_id/uuid/v3 -github.com/cilium/proxy/go/envoy/extensions/resource_monitors/cpu_utilization/v3 github.com/cilium/proxy/go/envoy/extensions/resource_monitors/downstream_connections/v3 github.com/cilium/proxy/go/envoy/extensions/resource_monitors/fixed_heap/v3 github.com/cilium/proxy/go/envoy/extensions/resource_monitors/injected_resource/v3 @@ -537,7 +528,6 @@ github.com/cilium/proxy/go/envoy/service/load_stats/v3 github.com/cilium/proxy/go/envoy/service/metrics/v3 github.com/cilium/proxy/go/envoy/service/rate_limit_quota/v3 github.com/cilium/proxy/go/envoy/service/ratelimit/v3 -github.com/cilium/proxy/go/envoy/service/redis_auth/v3 github.com/cilium/proxy/go/envoy/service/route/v3 github.com/cilium/proxy/go/envoy/service/runtime/v3 github.com/cilium/proxy/go/envoy/service/secret/v3