diff --git a/.changelog/10131.txt b/.changelog/10131.txt new file mode 100644 index 000000000..d86a1b4de --- /dev/null +++ b/.changelog/10131.txt @@ -0,0 +1,3 @@ +```release-note:improvement +xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary +``` diff --git a/GNUmakefile b/GNUmakefile index 5bfb47ee1..2b9b9a020 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -382,6 +382,9 @@ proto: $(PROTOGOFILES) $(PROTOGOBINFILES) module-versions: @go list -m -u -f '{{if .Update}} {{printf "%-50v %-40s" .Path .Version}} {{with .Time}} {{ .Format "2006-01-02" -}} {{else}} {{printf "%9s" ""}} {{end}} {{ .Update.Version}} {{end}}' all +.PHONY: envoy-library +envoy-library: + @$(SHELL) $(CURDIR)/build-support/scripts/envoy-library-references.sh .PHONY: all ci bin dev dist cov test test-flake test-internal cover lint ui static-assets tools .PHONY: docker-images go-build-image ui-build-image static-assets-docker consul-docker ui-docker diff --git a/agent/xds/z_xds_packages.go b/agent/xds/z_xds_packages.go new file mode 100644 index 000000000..2c781214a --- /dev/null +++ b/agent/xds/z_xds_packages.go @@ -0,0 +1,233 @@ +// Code generated by envoy-library-references.sh. DO NOT EDIT. + +package xds + +import ( + _ "github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/admin/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/cluster" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/listener" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit" + _ "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _ "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis" + _ "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/accesslog/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rbac/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/tls_inspector/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rbac/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/sni_cluster/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/tcp_proxy/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/listener/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/overload/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities" + _ "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/data/core/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/data/dns/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/data/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/rbac/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/tls_inspector/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/rbac/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/sni_cluster/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/tcp_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/auth/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/service/auth/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/health/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/listener/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/route/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/secret/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/status/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/status/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha" + _ "github.com/envoyproxy/go-control-plane/envoy/service/tap/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/service/trace/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/service/trace/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/type/metadata/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/type/metadata/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/type/tracing/v2" + _ "github.com/envoyproxy/go-control-plane/envoy/type/tracing/v3" + _ "github.com/envoyproxy/go-control-plane/envoy/type/v3" +) diff --git a/agent/xds/z_xds_packages_test.go b/agent/xds/z_xds_packages_test.go new file mode 100644 index 000000000..b102dcb3a --- /dev/null +++ b/agent/xds/z_xds_packages_test.go @@ -0,0 +1,53 @@ +package xds + +import ( + "testing" + + "github.com/golang/protobuf/jsonpb" + "github.com/golang/protobuf/ptypes/any" + "github.com/stretchr/testify/require" +) + +func TestUnusedExtensions(t *testing.T) { + // This test asserts that some key protobuf structs are usable by escape + // hatches despite not being directly used by Consul itself. + + type testcase struct { + name string + input string + } + + cases := []testcase{ + { + "type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz", + ` { + "@type": "type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz", + "http_service": { + "server_uri": { + "uri": "localhost:8090", + "cluster": "ext-authz", + "timeout": "0.250s" + } + } + } `, + }, + { + "type.googleapis.com/envoy.config.trace.v3.ZipkinConfig", + ` { + "@type": "type.googleapis.com/envoy.config.trace.v3.ZipkinConfig", + "collector_cluster": "zipkin", + "collector_endpoint_version": "HTTP_JSON", + "collector_endpoint": "/api/v1/spans", + "shared_span_context": false + } `, + }, + } + + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + var any any.Any + require.NoError(t, jsonpb.UnmarshalString(tc.input, &any)) + require.Equal(t, tc.name, any.TypeUrl) + }) + } +} diff --git a/build-support/scripts/envoy-library-references.sh b/build-support/scripts/envoy-library-references.sh new file mode 100644 index 000000000..b91285fa5 --- /dev/null +++ b/build-support/scripts/envoy-library-references.sh @@ -0,0 +1,70 @@ +#!/bin/bash + +#### +# envoy-library-references.sh +# +# This script ensures that all of the protobuf packages present in the +# github.com/envoyproxy/go-control-plane library are referenced in the consul +# codebase somewhere so that the ultimate binary doesn't eliminate those +# packages. When the packages are linked in they use proto.RegisterFile() to +# globally register the types in the protobuf machinery so that they are +# available for decoding. +# +# We primarily need this for the Escape Hatch feature where users can provide +# arbitrary xDS JSON for Consul to decode. If extension points use *any.Any and +# use an extention package that Consul itself doesn't use then it won't decode +# unless the package is linked into the binary. +# +#### + +set -euo pipefail +unset CDPATH + +cd "$(dirname "$0")" # build-support/scripts +cd ../.. # + +if [[ ! -f GNUmakefile ]] || [[ ! -f go.mod ]]; then + echo "not in root consul checkout: ${PWD}" >&2 + exit 1 +fi + +readonly LIBRARY_VERSION="$(grep github.com/envoyproxy/go-control-plane go.mod | awk '{print $2}')" +readonly OUTFILE=z_xds_packages.go + +echo "Fetching envoyproxy/go-control-plane @ ${LIBRARY_VERSION}..." + +rm -rf _envoy_tmp +mkdir _envoy_tmp +trap "rm -rf _envoy_tmp" EXIT +( +cd _envoy_tmp + +git clone git@github.com:envoyproxy/go-control-plane +cd go-control-plane +git co -b consul-temp "${LIBRARY_VERSION}" + +IFS=$'\n' candidates=($(find . -name *.pb.go -a -type f | sed 's@/[^/]*\.pb\.go$@@' | sort -u)) + +echo "Generating a fresh ${OUTFILE} file..." +cat <<-EOF > "${OUTFILE}" +// Code generated by envoy-library-references.sh. DO NOT EDIT. + +package xds + +import ( +EOF + +for cand in "${candidates[@]}"; do + import_name="${cand#./}" + echo " _ \"github.com/envoyproxy/go-control-plane/${import_name}\"" >> "${OUTFILE}" +done + +echo ")" >> "${OUTFILE}" + +goimports -w "${OUTFILE}" + +mv -f "${OUTFILE}" ../../agent/xds +) + +echo "updating vendored code..." +make update-vendor diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.go new file mode 100644 index 000000000..9a19a113f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.go @@ -0,0 +1,326 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/certs.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Certificates struct { + Certificates []*Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificates) Reset() { *m = Certificates{} } +func (m *Certificates) String() string { return proto.CompactTextString(m) } +func (*Certificates) ProtoMessage() {} +func (*Certificates) Descriptor() ([]byte, []int) { + return fileDescriptor_c7cd1796e05ff7fa, []int{0} +} + +func (m *Certificates) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificates.Unmarshal(m, b) +} +func (m *Certificates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificates.Marshal(b, m, deterministic) +} +func (m *Certificates) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificates.Merge(m, src) +} +func (m *Certificates) XXX_Size() int { + return xxx_messageInfo_Certificates.Size(m) +} +func (m *Certificates) XXX_DiscardUnknown() { + xxx_messageInfo_Certificates.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificates proto.InternalMessageInfo + +func (m *Certificates) GetCertificates() []*Certificate { + if m != nil { + return m.Certificates + } + return nil +} + +type Certificate struct { + CaCert []*CertificateDetails `protobuf:"bytes,1,rep,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"` + CertChain []*CertificateDetails `protobuf:"bytes,2,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_c7cd1796e05ff7fa, []int{1} +} + +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) +} +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) +} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) +} +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificate proto.InternalMessageInfo + +func (m *Certificate) GetCaCert() []*CertificateDetails { + if m != nil { + return m.CaCert + } + return nil +} + +func (m *Certificate) GetCertChain() []*CertificateDetails { + if m != nil { + return m.CertChain + } + return nil +} + +type CertificateDetails struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + SubjectAltNames []*SubjectAlternateName `protobuf:"bytes,3,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"` + DaysUntilExpiration uint64 `protobuf:"varint,4,opt,name=days_until_expiration,json=daysUntilExpiration,proto3" json:"days_until_expiration,omitempty"` + ValidFrom *timestamp.Timestamp `protobuf:"bytes,5,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CertificateDetails) Reset() { *m = CertificateDetails{} } +func (m *CertificateDetails) String() string { return proto.CompactTextString(m) } +func (*CertificateDetails) ProtoMessage() {} +func (*CertificateDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_c7cd1796e05ff7fa, []int{2} +} + +func (m *CertificateDetails) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateDetails.Unmarshal(m, b) +} +func (m *CertificateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateDetails.Marshal(b, m, deterministic) +} +func (m *CertificateDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateDetails.Merge(m, src) +} +func (m *CertificateDetails) XXX_Size() int { + return xxx_messageInfo_CertificateDetails.Size(m) +} +func (m *CertificateDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateDetails proto.InternalMessageInfo + +func (m *CertificateDetails) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *CertificateDetails) GetSerialNumber() string { + if m != nil { + return m.SerialNumber + } + return "" +} + +func (m *CertificateDetails) GetSubjectAltNames() []*SubjectAlternateName { + if m != nil { + return m.SubjectAltNames + } + return nil +} + +func (m *CertificateDetails) GetDaysUntilExpiration() uint64 { + if m != nil { + return m.DaysUntilExpiration + } + return 0 +} + +func (m *CertificateDetails) GetValidFrom() *timestamp.Timestamp { + if m != nil { + return m.ValidFrom + } + return nil +} + +func (m *CertificateDetails) GetExpirationTime() *timestamp.Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +type SubjectAlternateName struct { + // Types that are valid to be assigned to Name: + // *SubjectAlternateName_Dns + // *SubjectAlternateName_Uri + // *SubjectAlternateName_IpAddress + Name isSubjectAlternateName_Name `protobuf_oneof:"name"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubjectAlternateName) Reset() { *m = SubjectAlternateName{} } +func (m *SubjectAlternateName) String() string { return proto.CompactTextString(m) } +func (*SubjectAlternateName) ProtoMessage() {} +func (*SubjectAlternateName) Descriptor() ([]byte, []int) { + return fileDescriptor_c7cd1796e05ff7fa, []int{3} +} + +func (m *SubjectAlternateName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubjectAlternateName.Unmarshal(m, b) +} +func (m *SubjectAlternateName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubjectAlternateName.Marshal(b, m, deterministic) +} +func (m *SubjectAlternateName) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubjectAlternateName.Merge(m, src) +} +func (m *SubjectAlternateName) XXX_Size() int { + return xxx_messageInfo_SubjectAlternateName.Size(m) +} +func (m *SubjectAlternateName) XXX_DiscardUnknown() { + xxx_messageInfo_SubjectAlternateName.DiscardUnknown(m) +} + +var xxx_messageInfo_SubjectAlternateName proto.InternalMessageInfo + +type isSubjectAlternateName_Name interface { + isSubjectAlternateName_Name() +} + +type SubjectAlternateName_Dns struct { + Dns string `protobuf:"bytes,1,opt,name=dns,proto3,oneof"` +} + +type SubjectAlternateName_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +type SubjectAlternateName_IpAddress struct { + IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3,oneof"` +} + +func (*SubjectAlternateName_Dns) isSubjectAlternateName_Name() {} + +func (*SubjectAlternateName_Uri) isSubjectAlternateName_Name() {} + +func (*SubjectAlternateName_IpAddress) isSubjectAlternateName_Name() {} + +func (m *SubjectAlternateName) GetName() isSubjectAlternateName_Name { + if m != nil { + return m.Name + } + return nil +} + +func (m *SubjectAlternateName) GetDns() string { + if x, ok := m.GetName().(*SubjectAlternateName_Dns); ok { + return x.Dns + } + return "" +} + +func (m *SubjectAlternateName) GetUri() string { + if x, ok := m.GetName().(*SubjectAlternateName_Uri); ok { + return x.Uri + } + return "" +} + +func (m *SubjectAlternateName) GetIpAddress() string { + if x, ok := m.GetName().(*SubjectAlternateName_IpAddress); ok { + return x.IpAddress + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SubjectAlternateName) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SubjectAlternateName_Dns)(nil), + (*SubjectAlternateName_Uri)(nil), + (*SubjectAlternateName_IpAddress)(nil), + } +} + +func init() { + proto.RegisterType((*Certificates)(nil), "envoy.admin.v2alpha.Certificates") + proto.RegisterType((*Certificate)(nil), "envoy.admin.v2alpha.Certificate") + proto.RegisterType((*CertificateDetails)(nil), "envoy.admin.v2alpha.CertificateDetails") + proto.RegisterType((*SubjectAlternateName)(nil), "envoy.admin.v2alpha.SubjectAlternateName") +} + +func init() { proto.RegisterFile("envoy/admin/v2alpha/certs.proto", fileDescriptor_c7cd1796e05ff7fa) } + +var fileDescriptor_c7cd1796e05ff7fa = []byte{ + // 473 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x6e, 0x13, 0x31, + 0x10, 0x66, 0x93, 0x10, 0x94, 0x49, 0xa0, 0xe0, 0x82, 0xb4, 0x8a, 0x84, 0xb2, 0x84, 0x03, 0xe1, + 0xb2, 0x2b, 0x85, 0x53, 0x6f, 0x34, 0x29, 0x15, 0xa7, 0xaa, 0x5a, 0xda, 0xb3, 0x35, 0xd9, 0x75, + 0x12, 0xa3, 0x5d, 0xdb, 0xb2, 0xbd, 0x51, 0x73, 0xe3, 0x2d, 0x78, 0x17, 0x9e, 0x80, 0x2b, 0x37, + 0x1e, 0x07, 0xd9, 0x4e, 0xdb, 0x20, 0x22, 0x55, 0xdc, 0x3c, 0xdf, 0xcf, 0x78, 0xfc, 0x79, 0x60, + 0xc4, 0xc4, 0x46, 0x6e, 0x33, 0x2c, 0x6b, 0x2e, 0xb2, 0xcd, 0x14, 0x2b, 0xb5, 0xc6, 0xac, 0x60, + 0xda, 0x9a, 0x54, 0x69, 0x69, 0x25, 0x39, 0xf6, 0x82, 0xd4, 0x0b, 0xd2, 0x9d, 0x60, 0x38, 0x5a, + 0x49, 0xb9, 0xaa, 0x58, 0xe6, 0x25, 0x8b, 0x66, 0x99, 0x59, 0x5e, 0x33, 0x63, 0xb1, 0x56, 0xc1, + 0x35, 0x7c, 0xdd, 0x94, 0x0a, 0x33, 0x14, 0x42, 0x5a, 0xb4, 0x5c, 0x0a, 0x93, 0x19, 0x8b, 0xb6, + 0xd9, 0x35, 0x1d, 0x5f, 0xc1, 0x60, 0xce, 0xb4, 0xe5, 0x4b, 0x5e, 0xa0, 0x65, 0x86, 0x9c, 0xc1, + 0xa0, 0xd8, 0xab, 0xe3, 0x28, 0x69, 0x4f, 0xfa, 0xd3, 0x24, 0x3d, 0x70, 0x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7e, 0xe4, 0x3d, 0xaf, 0x3e, 0xd7, 0xb2, 0x26, 0x73, 0x38, 0xba, 0xbf, 0x83, + 0xba, 0x15, 0x8a, 0xbb, 0x0f, 0xfa, 0x9f, 0xdd, 0x5b, 0x1c, 0x38, 0x5e, 0xc1, 0xcb, 0x43, 0x8f, + 0x23, 0x04, 0xda, 0xa5, 0x30, 0x21, 0xda, 0xcf, 0x8f, 0x72, 0x57, 0x38, 0xac, 0xd1, 0x3c, 0x24, + 0xea, 0xb0, 0x46, 0x73, 0x32, 0x02, 0xe0, 0x8a, 0x62, 0x59, 0x6a, 0x66, 0x5c, 0x86, 0x81, 0xea, + 0x71, 0x75, 0x1a, 0xa0, 0x59, 0x17, 0x3a, 0x2e, 0xdf, 0xd9, 0xc9, 0x8f, 0x6f, 0x3f, 0x7f, 0x75, + 0x5b, 0xcf, 0x23, 0x78, 0xc3, 0x65, 0x08, 0x59, 0x69, 0x79, 0xb3, 0x3d, 0x94, 0xf7, 0x0c, 0xdc, + 0x6f, 0x9b, 0x4b, 0x37, 0xfe, 0x65, 0xb4, 0xe8, 0xfa, 0x77, 0x7c, 0xf8, 0x13, 0x00, 0x00, 0xff, + 0xff, 0x70, 0xd0, 0x3a, 0xc0, 0x6d, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.validate.go new file mode 100644 index 000000000..ab35d49bb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/certs.pb.validate.go @@ -0,0 +1,400 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/certs.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _certs_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Certificates with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Certificates) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetCertificates() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificatesValidationError{ + field: fmt.Sprintf("Certificates[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CertificatesValidationError is the validation error returned by +// Certificates.Validate if the designated constraints aren't met. +type CertificatesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificatesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificatesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificatesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificatesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificatesValidationError) ErrorName() string { return "CertificatesValidationError" } + +// Error satisfies the builtin error interface +func (e CertificatesValidationError) 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 %sCertificates.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificatesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificatesValidationError{} + +// Validate checks the field values on Certificate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Certificate) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetCaCert() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateValidationError{ + field: fmt.Sprintf("CaCert[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetCertChain() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateValidationError{ + field: fmt.Sprintf("CertChain[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CertificateValidationError is the validation error returned by +// Certificate.Validate if the designated constraints aren't met. +type CertificateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificateValidationError) ErrorName() string { return "CertificateValidationError" } + +// Error satisfies the builtin error interface +func (e CertificateValidationError) 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 %sCertificate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificateValidationError{} + +// Validate checks the field values on CertificateDetails with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CertificateDetails) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Path + + // no validation rules for SerialNumber + + for idx, item := range m.GetSubjectAltNames() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: fmt.Sprintf("SubjectAltNames[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for DaysUntilExpiration + + if v, ok := interface{}(m.GetValidFrom()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: "ValidFrom", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetExpirationTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: "ExpirationTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CertificateDetailsValidationError is the validation error returned by +// CertificateDetails.Validate if the designated constraints aren't met. +type CertificateDetailsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificateDetailsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificateDetailsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificateDetailsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificateDetailsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificateDetailsValidationError) ErrorName() string { + return "CertificateDetailsValidationError" +} + +// Error satisfies the builtin error interface +func (e CertificateDetailsValidationError) 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 %sCertificateDetails.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificateDetailsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificateDetailsValidationError{} + +// Validate checks the field values on SubjectAlternateName with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SubjectAlternateName) Validate() error { + if m == nil { + return nil + } + + switch m.Name.(type) { + + case *SubjectAlternateName_Dns: + // no validation rules for Dns + + case *SubjectAlternateName_Uri: + // no validation rules for Uri + + case *SubjectAlternateName_IpAddress: + // no validation rules for IpAddress + + } + + return nil +} + +// SubjectAlternateNameValidationError is the validation error returned by +// SubjectAlternateName.Validate if the designated constraints aren't met. +type SubjectAlternateNameValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SubjectAlternateNameValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SubjectAlternateNameValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SubjectAlternateNameValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SubjectAlternateNameValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SubjectAlternateNameValidationError) ErrorName() string { + return "SubjectAlternateNameValidationError" +} + +// Error satisfies the builtin error interface +func (e SubjectAlternateNameValidationError) 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 %sSubjectAlternateName.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SubjectAlternateNameValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SubjectAlternateNameValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.go new file mode 100644 index 000000000..89c0c1eb9 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/clusters.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Clusters struct { + ClusterStatuses []*ClusterStatus `protobuf:"bytes,1,rep,name=cluster_statuses,json=clusterStatuses,proto3" json:"cluster_statuses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Clusters) Reset() { *m = Clusters{} } +func (m *Clusters) String() string { return proto.CompactTextString(m) } +func (*Clusters) ProtoMessage() {} +func (*Clusters) Descriptor() ([]byte, []int) { + return fileDescriptor_c6251a3a957f478b, []int{0} +} + +func (m *Clusters) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Clusters.Unmarshal(m, b) +} +func (m *Clusters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Clusters.Marshal(b, m, deterministic) +} +func (m *Clusters) XXX_Merge(src proto.Message) { + xxx_messageInfo_Clusters.Merge(m, src) +} +func (m *Clusters) XXX_Size() int { + return xxx_messageInfo_Clusters.Size(m) +} +func (m *Clusters) XXX_DiscardUnknown() { + xxx_messageInfo_Clusters.DiscardUnknown(m) +} + +var xxx_messageInfo_Clusters proto.InternalMessageInfo + +func (m *Clusters) GetClusterStatuses() []*ClusterStatus { + if m != nil { + return m.ClusterStatuses + } + return nil +} + +type ClusterStatus struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + AddedViaApi bool `protobuf:"varint,2,opt,name=added_via_api,json=addedViaApi,proto3" json:"added_via_api,omitempty"` + SuccessRateEjectionThreshold *_type.Percent `protobuf:"bytes,3,opt,name=success_rate_ejection_threshold,json=successRateEjectionThreshold,proto3" json:"success_rate_ejection_threshold,omitempty"` + HostStatuses []*HostStatus `protobuf:"bytes,4,rep,name=host_statuses,json=hostStatuses,proto3" json:"host_statuses,omitempty"` + LocalOriginSuccessRateEjectionThreshold *_type.Percent `protobuf:"bytes,5,opt,name=local_origin_success_rate_ejection_threshold,json=localOriginSuccessRateEjectionThreshold,proto3" json:"local_origin_success_rate_ejection_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } +func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } +func (*ClusterStatus) ProtoMessage() {} +func (*ClusterStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_c6251a3a957f478b, []int{1} +} + +func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterStatus.Unmarshal(m, b) +} +func (m *ClusterStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterStatus.Marshal(b, m, deterministic) +} +func (m *ClusterStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterStatus.Merge(m, src) +} +func (m *ClusterStatus) XXX_Size() int { + return xxx_messageInfo_ClusterStatus.Size(m) +} +func (m *ClusterStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterStatus proto.InternalMessageInfo + +func (m *ClusterStatus) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ClusterStatus) GetAddedViaApi() bool { + if m != nil { + return m.AddedViaApi + } + return false +} + +func (m *ClusterStatus) GetSuccessRateEjectionThreshold() *_type.Percent { + if m != nil { + return m.SuccessRateEjectionThreshold + } + return nil +} + +func (m *ClusterStatus) GetHostStatuses() []*HostStatus { + if m != nil { + return m.HostStatuses + } + return nil +} + +func (m *ClusterStatus) GetLocalOriginSuccessRateEjectionThreshold() *_type.Percent { + if m != nil { + return m.LocalOriginSuccessRateEjectionThreshold + } + return nil +} + +type HostStatus struct { + Address *core.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Stats []*SimpleMetric `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` + HealthStatus *HostHealthStatus `protobuf:"bytes,3,opt,name=health_status,json=healthStatus,proto3" json:"health_status,omitempty"` + SuccessRate *_type.Percent `protobuf:"bytes,4,opt,name=success_rate,json=successRate,proto3" json:"success_rate,omitempty"` + Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` + Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` + Priority uint32 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"` + LocalOriginSuccessRate *_type.Percent `protobuf:"bytes,8,opt,name=local_origin_success_rate,json=localOriginSuccessRate,proto3" json:"local_origin_success_rate,omitempty"` + Locality *core.Locality `protobuf:"bytes,9,opt,name=locality,proto3" json:"locality,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HostStatus) Reset() { *m = HostStatus{} } +func (m *HostStatus) String() string { return proto.CompactTextString(m) } +func (*HostStatus) ProtoMessage() {} +func (*HostStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_c6251a3a957f478b, []int{2} +} + +func (m *HostStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HostStatus.Unmarshal(m, b) +} +func (m *HostStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HostStatus.Marshal(b, m, deterministic) +} +func (m *HostStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostStatus.Merge(m, src) +} +func (m *HostStatus) XXX_Size() int { + return xxx_messageInfo_HostStatus.Size(m) +} +func (m *HostStatus) XXX_DiscardUnknown() { + xxx_messageInfo_HostStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_HostStatus proto.InternalMessageInfo + +func (m *HostStatus) GetAddress() *core.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *HostStatus) GetStats() []*SimpleMetric { + if m != nil { + return m.Stats + } + return nil +} + +func (m *HostStatus) GetHealthStatus() *HostHealthStatus { + if m != nil { + return m.HealthStatus + } + return nil +} + +func (m *HostStatus) GetSuccessRate() *_type.Percent { + if m != nil { + return m.SuccessRate + } + return nil +} + +func (m *HostStatus) GetWeight() uint32 { + if m != nil { + return m.Weight + } + return 0 +} + +func (m *HostStatus) GetHostname() string { + if m != nil { + return m.Hostname + } + return "" +} + +func (m *HostStatus) GetPriority() uint32 { + if m != nil { + return m.Priority + } + return 0 +} + +func (m *HostStatus) GetLocalOriginSuccessRate() *_type.Percent { + if m != nil { + return m.LocalOriginSuccessRate + } + return nil +} + +func (m *HostStatus) GetLocality() *core.Locality { + if m != nil { + return m.Locality + } + return nil +} + +type HostHealthStatus struct { + FailedActiveHealthCheck bool `protobuf:"varint,1,opt,name=failed_active_health_check,json=failedActiveHealthCheck,proto3" json:"failed_active_health_check,omitempty"` + FailedOutlierCheck bool `protobuf:"varint,2,opt,name=failed_outlier_check,json=failedOutlierCheck,proto3" json:"failed_outlier_check,omitempty"` + FailedActiveDegradedCheck bool `protobuf:"varint,4,opt,name=failed_active_degraded_check,json=failedActiveDegradedCheck,proto3" json:"failed_active_degraded_check,omitempty"` + PendingDynamicRemoval bool `protobuf:"varint,5,opt,name=pending_dynamic_removal,json=pendingDynamicRemoval,proto3" json:"pending_dynamic_removal,omitempty"` + PendingActiveHc bool `protobuf:"varint,6,opt,name=pending_active_hc,json=pendingActiveHc,proto3" json:"pending_active_hc,omitempty"` + EdsHealthStatus core.HealthStatus `protobuf:"varint,3,opt,name=eds_health_status,json=edsHealthStatus,proto3,enum=envoy.api.v2.core.HealthStatus" json:"eds_health_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HostHealthStatus) Reset() { *m = HostHealthStatus{} } +func (m *HostHealthStatus) String() string { return proto.CompactTextString(m) } +func (*HostHealthStatus) ProtoMessage() {} +func (*HostHealthStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_c6251a3a957f478b, []int{3} +} + +func (m *HostHealthStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HostHealthStatus.Unmarshal(m, b) +} +func (m *HostHealthStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HostHealthStatus.Marshal(b, m, deterministic) +} +func (m *HostHealthStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostHealthStatus.Merge(m, src) +} +func (m *HostHealthStatus) XXX_Size() int { + return xxx_messageInfo_HostHealthStatus.Size(m) +} +func (m *HostHealthStatus) XXX_DiscardUnknown() { + xxx_messageInfo_HostHealthStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_HostHealthStatus proto.InternalMessageInfo + +func (m *HostHealthStatus) GetFailedActiveHealthCheck() bool { + if m != nil { + return m.FailedActiveHealthCheck + } + return false +} + +func (m *HostHealthStatus) GetFailedOutlierCheck() bool { + if m != nil { + return m.FailedOutlierCheck + } + return false +} + +func (m *HostHealthStatus) GetFailedActiveDegradedCheck() bool { + if m != nil { + return m.FailedActiveDegradedCheck + } + return false +} + +func (m *HostHealthStatus) GetPendingDynamicRemoval() bool { + if m != nil { + return m.PendingDynamicRemoval + } + return false +} + +func (m *HostHealthStatus) GetPendingActiveHc() bool { + if m != nil { + return m.PendingActiveHc + } + return false +} + +func (m *HostHealthStatus) GetEdsHealthStatus() core.HealthStatus { + if m != nil { + return m.EdsHealthStatus + } + return core.HealthStatus_UNKNOWN +} + +func init() { + proto.RegisterType((*Clusters)(nil), "envoy.admin.v2alpha.Clusters") + proto.RegisterType((*ClusterStatus)(nil), "envoy.admin.v2alpha.ClusterStatus") + proto.RegisterType((*HostStatus)(nil), "envoy.admin.v2alpha.HostStatus") + proto.RegisterType((*HostHealthStatus)(nil), "envoy.admin.v2alpha.HostHealthStatus") +} + +func init() { proto.RegisterFile("envoy/admin/v2alpha/clusters.proto", fileDescriptor_c6251a3a957f478b) } + +var fileDescriptor_c6251a3a957f478b = []byte{ + // 721 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdf, 0x6e, 0xd3, 0x3e, + 0x18, 0x55, 0xbb, 0xae, 0xcb, 0xdc, 0xf5, 0xb7, 0xcd, 0xfb, 0xb1, 0x65, 0x65, 0x68, 0x5d, 0x05, + 0xa2, 0x42, 0x28, 0x41, 0x05, 0x6d, 0x17, 0x20, 0xa1, 0xfd, 0x41, 0x9a, 0x80, 0xb1, 0x29, 0x43, + 0x48, 0x70, 0x13, 0x79, 0xce, 0x47, 0x63, 0x48, 0xe3, 0xc8, 0x76, 0x0b, 0xbd, 0xe3, 0xb9, 0x78, + 0x02, 0x6e, 0xb9, 0xe3, 0x86, 0xa7, 0xe0, 0x05, 0x50, 0x6c, 0xb7, 0xcb, 0x58, 0x0a, 0x77, 0x71, + 0xce, 0x39, 0xf6, 0x77, 0xce, 0xf7, 0xd9, 0xa8, 0x03, 0xe9, 0x88, 0x8f, 0x7d, 0x12, 0x0d, 0x58, + 0xea, 0x8f, 0x7a, 0x24, 0xc9, 0x62, 0xe2, 0xd3, 0x64, 0x28, 0x15, 0x08, 0xe9, 0x65, 0x82, 0x2b, + 0x8e, 0xd7, 0x34, 0xc7, 0xd3, 0x1c, 0xcf, 0x72, 0x5a, 0x3b, 0x65, 0xc2, 0x01, 0x28, 0xc1, 0xa8, + 0xd5, 0xb5, 0xb6, 0x2d, 0x25, 0x63, 0xfe, 0xa8, 0xe7, 0x53, 0x2e, 0xc0, 0x27, 0x51, 0x24, 0x40, + 0x4e, 0x08, 0x5b, 0xd7, 0x09, 0x17, 0x44, 0x82, 0x45, 0x6f, 0x5f, 0x47, 0x63, 0x20, 0x89, 0x8a, + 0x43, 0x1a, 0x03, 0xfd, 0x68, 0x59, 0xae, 0x61, 0xa9, 0x71, 0x06, 0x7e, 0x06, 0x82, 0x42, 0xa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, 0xb1, + 0x11, 0x84, 0xc5, 0x77, 0x40, 0xf7, 0xdc, 0x09, 0x36, 0x0c, 0x63, 0x5f, 0x13, 0x8c, 0xfa, 0x30, + 0x87, 0xf1, 0x03, 0xf4, 0xbf, 0x15, 0xf3, 0xa1, 0x4a, 0x18, 0x08, 0x2b, 0x33, 0xb7, 0x0d, 0x1b, + 0xec, 0xd4, 0x40, 0x46, 0xf1, 0x14, 0x6d, 0x5d, 0x3d, 0x2e, 0x82, 0xbe, 0x20, 0xf9, 0x4d, 0x35, + 0xca, 0x9a, 0x56, 0x6e, 0x16, 0x0f, 0x3c, 0xb2, 0x0c, 0xb3, 0xc1, 0x2e, 0xda, 0xc8, 0x20, 0x8d, + 0x58, 0xda, 0x0f, 0xa3, 0x71, 0x4a, 0x06, 0x8c, 0x86, 0x02, 0x06, 0x7c, 0x44, 0x12, 0xdd, 0x2e, + 0x27, 0xb8, 0x61, 0xe1, 0x23, 0x83, 0x06, 0x06, 0xc4, 0xf7, 0xd0, 0xea, 0x44, 0x37, 0x31, 0x4a, + 0x75, 0x1b, 0x9d, 0x60, 0xd9, 0x02, 0xd6, 0x1f, 0xc5, 0x2f, 0xd0, 0x2a, 0x44, 0x32, 0xbc, 0x3e, + 0x89, 0xff, 0x5d, 0xde, 0xe0, 0x42, 0xd4, 0x57, 0x66, 0x70, 0x19, 0x22, 0x59, 0xfc, 0x71, 0xf0, + 0xe4, 0xeb, 0x97, 0x6f, 0xdf, 0xeb, 0xd5, 0x95, 0x0a, 0xda, 0x61, 0xdc, 0xa8, 0x33, 0xc1, 0x3f, + 0x8f, 0xcb, 0x46, 0xfa, 0x60, 0xf2, 0xb4, 0xc9, 0xb3, 0xfc, 0x1d, 0x3d, 0xab, 0x5c, 0xd4, 0xf5, + 0x83, 0xfa, 0xf0, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xed, 0x06, 0x8d, 0x4c, 0x06, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.validate.go new file mode 100644 index 000000000..b0f6b4a09 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/clusters.pb.validate.go @@ -0,0 +1,436 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/clusters.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = core.HealthStatus(0) +) + +// define the regex for a UUID once up-front +var _clusters_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Clusters with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Clusters) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetClusterStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersValidationError{ + field: fmt.Sprintf("ClusterStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClustersValidationError is the validation error returned by +// Clusters.Validate if the designated constraints aren't met. +type ClustersValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersValidationError) ErrorName() string { return "ClustersValidationError" } + +// Error satisfies the builtin error interface +func (e ClustersValidationError) 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 %sClusters.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersValidationError{} + +// Validate checks the field values on ClusterStatus with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for AddedViaApi + + if v, ok := interface{}(m.GetSuccessRateEjectionThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: "SuccessRateEjectionThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHostStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: fmt.Sprintf("HostStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLocalOriginSuccessRateEjectionThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: "LocalOriginSuccessRateEjectionThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterStatusValidationError is the validation error returned by +// ClusterStatus.Validate if the designated constraints aren't met. +type ClusterStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterStatusValidationError) ErrorName() string { return "ClusterStatusValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterStatusValidationError) 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 %sClusterStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterStatusValidationError{} + +// Validate checks the field values on HostStatus with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HostStatus) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetStats() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: fmt.Sprintf("Stats[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetHealthStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "HealthStatus", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSuccessRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "SuccessRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Weight + + // no validation rules for Hostname + + // no validation rules for Priority + + if v, ok := interface{}(m.GetLocalOriginSuccessRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "LocalOriginSuccessRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLocality()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "Locality", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HostStatusValidationError is the validation error returned by +// HostStatus.Validate if the designated constraints aren't met. +type HostStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HostStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HostStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HostStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HostStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HostStatusValidationError) ErrorName() string { return "HostStatusValidationError" } + +// Error satisfies the builtin error interface +func (e HostStatusValidationError) 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 %sHostStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HostStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HostStatusValidationError{} + +// Validate checks the field values on HostHealthStatus with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HostHealthStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedActiveHealthCheck + + // no validation rules for FailedOutlierCheck + + // no validation rules for FailedActiveDegradedCheck + + // no validation rules for PendingDynamicRemoval + + // no validation rules for PendingActiveHc + + // no validation rules for EdsHealthStatus + + return nil +} + +// HostHealthStatusValidationError is the validation error returned by +// HostHealthStatus.Validate if the designated constraints aren't met. +type HostHealthStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HostHealthStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HostHealthStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HostHealthStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HostHealthStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HostHealthStatusValidationError) ErrorName() string { return "HostHealthStatusValidationError" } + +// Error satisfies the builtin error interface +func (e HostHealthStatusValidationError) 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 %sHostHealthStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HostHealthStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HostHealthStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.go new file mode 100644 index 000000000..a51172e2d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.go @@ -0,0 +1,1153 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/config_dump.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ConfigDump struct { + Configs []*any.Any `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfigDump) Reset() { *m = ConfigDump{} } +func (m *ConfigDump) String() string { return proto.CompactTextString(m) } +func (*ConfigDump) ProtoMessage() {} +func (*ConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{0} +} + +func (m *ConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConfigDump.Unmarshal(m, b) +} +func (m *ConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConfigDump.Marshal(b, m, deterministic) +} +func (m *ConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigDump.Merge(m, src) +} +func (m *ConfigDump) XXX_Size() int { + return xxx_messageInfo_ConfigDump.Size(m) +} +func (m *ConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ConfigDump proto.InternalMessageInfo + +func (m *ConfigDump) GetConfigs() []*any.Any { + if m != nil { + return m.Configs + } + return nil +} + +type UpdateFailureState struct { + FailedConfiguration *any.Any `protobuf:"bytes,1,opt,name=failed_configuration,json=failedConfiguration,proto3" json:"failed_configuration,omitempty"` + LastUpdateAttempt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_update_attempt,json=lastUpdateAttempt,proto3" json:"last_update_attempt,omitempty"` + Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateFailureState) Reset() { *m = UpdateFailureState{} } +func (m *UpdateFailureState) String() string { return proto.CompactTextString(m) } +func (*UpdateFailureState) ProtoMessage() {} +func (*UpdateFailureState) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{1} +} + +func (m *UpdateFailureState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateFailureState.Unmarshal(m, b) +} +func (m *UpdateFailureState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateFailureState.Marshal(b, m, deterministic) +} +func (m *UpdateFailureState) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateFailureState.Merge(m, src) +} +func (m *UpdateFailureState) XXX_Size() int { + return xxx_messageInfo_UpdateFailureState.Size(m) +} +func (m *UpdateFailureState) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateFailureState.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateFailureState proto.InternalMessageInfo + +func (m *UpdateFailureState) GetFailedConfiguration() *any.Any { + if m != nil { + return m.FailedConfiguration + } + return nil +} + +func (m *UpdateFailureState) GetLastUpdateAttempt() *timestamp.Timestamp { + if m != nil { + return m.LastUpdateAttempt + } + return nil +} + +func (m *UpdateFailureState) GetDetails() string { + if m != nil { + return m.Details + } + return "" +} + +type BootstrapConfigDump struct { + Bootstrap *v2.Bootstrap `protobuf:"bytes,1,opt,name=bootstrap,proto3" json:"bootstrap,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BootstrapConfigDump) Reset() { *m = BootstrapConfigDump{} } +func (m *BootstrapConfigDump) String() string { return proto.CompactTextString(m) } +func (*BootstrapConfigDump) ProtoMessage() {} +func (*BootstrapConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{2} +} + +func (m *BootstrapConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BootstrapConfigDump.Unmarshal(m, b) +} +func (m *BootstrapConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BootstrapConfigDump.Marshal(b, m, deterministic) +} +func (m *BootstrapConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapConfigDump.Merge(m, src) +} +func (m *BootstrapConfigDump) XXX_Size() int { + return xxx_messageInfo_BootstrapConfigDump.Size(m) +} +func (m *BootstrapConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_BootstrapConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_BootstrapConfigDump proto.InternalMessageInfo + +func (m *BootstrapConfigDump) GetBootstrap() *v2.Bootstrap { + if m != nil { + return m.Bootstrap + } + return nil +} + +func (m *BootstrapConfigDump) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + StaticListeners []*ListenersConfigDump_StaticListener `protobuf:"bytes,2,rep,name=static_listeners,json=staticListeners,proto3" json:"static_listeners,omitempty"` + DynamicListeners []*ListenersConfigDump_DynamicListener `protobuf:"bytes,3,rep,name=dynamic_listeners,json=dynamicListeners,proto3" json:"dynamic_listeners,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump) Reset() { *m = ListenersConfigDump{} } +func (m *ListenersConfigDump) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump) ProtoMessage() {} +func (*ListenersConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{3} +} + +func (m *ListenersConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump.Unmarshal(m, b) +} +func (m *ListenersConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump.Merge(m, src) +} +func (m *ListenersConfigDump) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump.Size(m) +} +func (m *ListenersConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump proto.InternalMessageInfo + +func (m *ListenersConfigDump) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ListenersConfigDump) GetStaticListeners() []*ListenersConfigDump_StaticListener { + if m != nil { + return m.StaticListeners + } + return nil +} + +func (m *ListenersConfigDump) GetDynamicListeners() []*ListenersConfigDump_DynamicListener { + if m != nil { + return m.DynamicListeners + } + return nil +} + +type ListenersConfigDump_StaticListener struct { + Listener *any.Any `protobuf:"bytes,1,opt,name=listener,proto3" json:"listener,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_StaticListener) Reset() { *m = ListenersConfigDump_StaticListener{} } +func (m *ListenersConfigDump_StaticListener) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_StaticListener) ProtoMessage() {} +func (*ListenersConfigDump_StaticListener) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{3, 0} +} + +func (m *ListenersConfigDump_StaticListener) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Unmarshal(m, b) +} +func (m *ListenersConfigDump_StaticListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_StaticListener) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_StaticListener.Merge(m, src) +} +func (m *ListenersConfigDump_StaticListener) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Size(m) +} +func (m *ListenersConfigDump_StaticListener) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_StaticListener.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_StaticListener proto.InternalMessageInfo + +func (m *ListenersConfigDump_StaticListener) GetListener() *any.Any { + if m != nil { + return m.Listener + } + return nil +} + +func (m *ListenersConfigDump_StaticListener) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump_DynamicListenerState struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + Listener *any.Any `protobuf:"bytes,2,opt,name=listener,proto3" json:"listener,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_DynamicListenerState) Reset() { + *m = ListenersConfigDump_DynamicListenerState{} +} +func (m *ListenersConfigDump_DynamicListenerState) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_DynamicListenerState) ProtoMessage() {} +func (*ListenersConfigDump_DynamicListenerState) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{3, 1} +} + +func (m *ListenersConfigDump_DynamicListenerState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Unmarshal(m, b) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Merge(m, src) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Size(m) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_DynamicListenerState.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_DynamicListenerState proto.InternalMessageInfo + +func (m *ListenersConfigDump_DynamicListenerState) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ListenersConfigDump_DynamicListenerState) GetListener() *any.Any { + if m != nil { + return m.Listener + } + return nil +} + +func (m *ListenersConfigDump_DynamicListenerState) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump_DynamicListener struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ActiveState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,2,opt,name=active_state,json=activeState,proto3" json:"active_state,omitempty"` + WarmingState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,3,opt,name=warming_state,json=warmingState,proto3" json:"warming_state,omitempty"` + DrainingState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,4,opt,name=draining_state,json=drainingState,proto3" json:"draining_state,omitempty"` + ErrorState *UpdateFailureState `protobuf:"bytes,5,opt,name=error_state,json=errorState,proto3" json:"error_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_DynamicListener) Reset() { *m = ListenersConfigDump_DynamicListener{} } +func (m *ListenersConfigDump_DynamicListener) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_DynamicListener) ProtoMessage() {} +func (*ListenersConfigDump_DynamicListener) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{3, 2} +} + +func (m *ListenersConfigDump_DynamicListener) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Unmarshal(m, b) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_DynamicListener.Merge(m, src) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Size(m) +} +func (m *ListenersConfigDump_DynamicListener) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_DynamicListener.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_DynamicListener proto.InternalMessageInfo + +func (m *ListenersConfigDump_DynamicListener) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ListenersConfigDump_DynamicListener) GetActiveState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.ActiveState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetWarmingState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.WarmingState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetDrainingState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.DrainingState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetErrorState() *UpdateFailureState { + if m != nil { + return m.ErrorState + } + return nil +} + +type ClustersConfigDump struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + StaticClusters []*ClustersConfigDump_StaticCluster `protobuf:"bytes,2,rep,name=static_clusters,json=staticClusters,proto3" json:"static_clusters,omitempty"` + DynamicActiveClusters []*ClustersConfigDump_DynamicCluster `protobuf:"bytes,3,rep,name=dynamic_active_clusters,json=dynamicActiveClusters,proto3" json:"dynamic_active_clusters,omitempty"` + DynamicWarmingClusters []*ClustersConfigDump_DynamicCluster `protobuf:"bytes,4,rep,name=dynamic_warming_clusters,json=dynamicWarmingClusters,proto3" json:"dynamic_warming_clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump) Reset() { *m = ClustersConfigDump{} } +func (m *ClustersConfigDump) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump) ProtoMessage() {} +func (*ClustersConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{4} +} + +func (m *ClustersConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump.Unmarshal(m, b) +} +func (m *ClustersConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump.Merge(m, src) +} +func (m *ClustersConfigDump) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump.Size(m) +} +func (m *ClustersConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump proto.InternalMessageInfo + +func (m *ClustersConfigDump) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ClustersConfigDump) GetStaticClusters() []*ClustersConfigDump_StaticCluster { + if m != nil { + return m.StaticClusters + } + return nil +} + +func (m *ClustersConfigDump) GetDynamicActiveClusters() []*ClustersConfigDump_DynamicCluster { + if m != nil { + return m.DynamicActiveClusters + } + return nil +} + +func (m *ClustersConfigDump) GetDynamicWarmingClusters() []*ClustersConfigDump_DynamicCluster { + if m != nil { + return m.DynamicWarmingClusters + } + return nil +} + +type ClustersConfigDump_StaticCluster struct { + Cluster *any.Any `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump_StaticCluster) Reset() { *m = ClustersConfigDump_StaticCluster{} } +func (m *ClustersConfigDump_StaticCluster) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump_StaticCluster) ProtoMessage() {} +func (*ClustersConfigDump_StaticCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{4, 0} +} + +func (m *ClustersConfigDump_StaticCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Unmarshal(m, b) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump_StaticCluster.Merge(m, src) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Size(m) +} +func (m *ClustersConfigDump_StaticCluster) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump_StaticCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump_StaticCluster proto.InternalMessageInfo + +func (m *ClustersConfigDump_StaticCluster) GetCluster() *any.Any { + if m != nil { + return m.Cluster + } + return nil +} + +func (m *ClustersConfigDump_StaticCluster) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ClustersConfigDump_DynamicCluster struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + Cluster *any.Any `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump_DynamicCluster) Reset() { *m = ClustersConfigDump_DynamicCluster{} } +func (m *ClustersConfigDump_DynamicCluster) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump_DynamicCluster) ProtoMessage() {} +func (*ClustersConfigDump_DynamicCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{4, 1} +} + +func (m *ClustersConfigDump_DynamicCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Unmarshal(m, b) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump_DynamicCluster.Merge(m, src) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Size(m) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump_DynamicCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump_DynamicCluster proto.InternalMessageInfo + +func (m *ClustersConfigDump_DynamicCluster) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ClustersConfigDump_DynamicCluster) GetCluster() *any.Any { + if m != nil { + return m.Cluster + } + return nil +} + +func (m *ClustersConfigDump_DynamicCluster) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type RoutesConfigDump struct { + StaticRouteConfigs []*RoutesConfigDump_StaticRouteConfig `protobuf:"bytes,2,rep,name=static_route_configs,json=staticRouteConfigs,proto3" json:"static_route_configs,omitempty"` + DynamicRouteConfigs []*RoutesConfigDump_DynamicRouteConfig `protobuf:"bytes,3,rep,name=dynamic_route_configs,json=dynamicRouteConfigs,proto3" json:"dynamic_route_configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump) Reset() { *m = RoutesConfigDump{} } +func (m *RoutesConfigDump) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump) ProtoMessage() {} +func (*RoutesConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{5} +} + +func (m *RoutesConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump.Unmarshal(m, b) +} +func (m *RoutesConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump.Merge(m, src) +} +func (m *RoutesConfigDump) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump.Size(m) +} +func (m *RoutesConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump proto.InternalMessageInfo + +func (m *RoutesConfigDump) GetStaticRouteConfigs() []*RoutesConfigDump_StaticRouteConfig { + if m != nil { + return m.StaticRouteConfigs + } + return nil +} + +func (m *RoutesConfigDump) GetDynamicRouteConfigs() []*RoutesConfigDump_DynamicRouteConfig { + if m != nil { + return m.DynamicRouteConfigs + } + return nil +} + +type RoutesConfigDump_StaticRouteConfig struct { + RouteConfig *any.Any `protobuf:"bytes,1,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump_StaticRouteConfig) Reset() { *m = RoutesConfigDump_StaticRouteConfig{} } +func (m *RoutesConfigDump_StaticRouteConfig) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump_StaticRouteConfig) ProtoMessage() {} +func (*RoutesConfigDump_StaticRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{5, 0} +} + +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Unmarshal(m, b) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Merge(m, src) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Size(m) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump_StaticRouteConfig proto.InternalMessageInfo + +func (m *RoutesConfigDump_StaticRouteConfig) GetRouteConfig() *any.Any { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *RoutesConfigDump_StaticRouteConfig) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type RoutesConfigDump_DynamicRouteConfig struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + RouteConfig *any.Any `protobuf:"bytes,2,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump_DynamicRouteConfig) Reset() { *m = RoutesConfigDump_DynamicRouteConfig{} } +func (m *RoutesConfigDump_DynamicRouteConfig) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump_DynamicRouteConfig) ProtoMessage() {} +func (*RoutesConfigDump_DynamicRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{5, 1} +} + +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Unmarshal(m, b) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Merge(m, src) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Size(m) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig proto.InternalMessageInfo + +func (m *RoutesConfigDump_DynamicRouteConfig) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *RoutesConfigDump_DynamicRouteConfig) GetRouteConfig() *any.Any { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *RoutesConfigDump_DynamicRouteConfig) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ScopedRoutesConfigDump struct { + InlineScopedRouteConfigs []*ScopedRoutesConfigDump_InlineScopedRouteConfigs `protobuf:"bytes,1,rep,name=inline_scoped_route_configs,json=inlineScopedRouteConfigs,proto3" json:"inline_scoped_route_configs,omitempty"` + DynamicScopedRouteConfigs []*ScopedRoutesConfigDump_DynamicScopedRouteConfigs `protobuf:"bytes,2,rep,name=dynamic_scoped_route_configs,json=dynamicScopedRouteConfigs,proto3" json:"dynamic_scoped_route_configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump) Reset() { *m = ScopedRoutesConfigDump{} } +func (m *ScopedRoutesConfigDump) String() string { return proto.CompactTextString(m) } +func (*ScopedRoutesConfigDump) ProtoMessage() {} +func (*ScopedRoutesConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{6} +} + +func (m *ScopedRoutesConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump.Merge(m, src) +} +func (m *ScopedRoutesConfigDump) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump.Size(m) +} +func (m *ScopedRoutesConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump) GetInlineScopedRouteConfigs() []*ScopedRoutesConfigDump_InlineScopedRouteConfigs { + if m != nil { + return m.InlineScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump) GetDynamicScopedRouteConfigs() []*ScopedRoutesConfigDump_DynamicScopedRouteConfigs { + if m != nil { + return m.DynamicScopedRouteConfigs + } + return nil +} + +type ScopedRoutesConfigDump_InlineScopedRouteConfigs struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ScopedRouteConfigs []*any.Any `protobuf:"bytes,2,rep,name=scoped_route_configs,json=scopedRouteConfigs,proto3" json:"scoped_route_configs,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) Reset() { + *m = ScopedRoutesConfigDump_InlineScopedRouteConfigs{} +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) String() string { + return proto.CompactTextString(m) +} +func (*ScopedRoutesConfigDump_InlineScopedRouteConfigs) ProtoMessage() {} +func (*ScopedRoutesConfigDump_InlineScopedRouteConfigs) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{6, 0} +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Merge(m, src) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Size(m) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetScopedRouteConfigs() []*any.Any { + if m != nil { + return m.ScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ScopedRoutesConfigDump_DynamicScopedRouteConfigs struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VersionInfo string `protobuf:"bytes,2,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + ScopedRouteConfigs []*any.Any `protobuf:"bytes,3,rep,name=scoped_route_configs,json=scopedRouteConfigs,proto3" json:"scoped_route_configs,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Reset() { + *m = ScopedRoutesConfigDump_DynamicScopedRouteConfigs{} +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) String() string { + return proto.CompactTextString(m) +} +func (*ScopedRoutesConfigDump_DynamicScopedRouteConfigs) ProtoMessage() {} +func (*ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{6, 1} +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Merge(m, src) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Size(m) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetScopedRouteConfigs() []*any.Any { + if m != nil { + return m.ScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type SecretsConfigDump struct { + StaticSecrets []*SecretsConfigDump_StaticSecret `protobuf:"bytes,1,rep,name=static_secrets,json=staticSecrets,proto3" json:"static_secrets,omitempty"` + DynamicActiveSecrets []*SecretsConfigDump_DynamicSecret `protobuf:"bytes,2,rep,name=dynamic_active_secrets,json=dynamicActiveSecrets,proto3" json:"dynamic_active_secrets,omitempty"` + DynamicWarmingSecrets []*SecretsConfigDump_DynamicSecret `protobuf:"bytes,3,rep,name=dynamic_warming_secrets,json=dynamicWarmingSecrets,proto3" json:"dynamic_warming_secrets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump) Reset() { *m = SecretsConfigDump{} } +func (m *SecretsConfigDump) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump) ProtoMessage() {} +func (*SecretsConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{7} +} + +func (m *SecretsConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump.Unmarshal(m, b) +} +func (m *SecretsConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump.Merge(m, src) +} +func (m *SecretsConfigDump) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump.Size(m) +} +func (m *SecretsConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump proto.InternalMessageInfo + +func (m *SecretsConfigDump) GetStaticSecrets() []*SecretsConfigDump_StaticSecret { + if m != nil { + return m.StaticSecrets + } + return nil +} + +func (m *SecretsConfigDump) GetDynamicActiveSecrets() []*SecretsConfigDump_DynamicSecret { + if m != nil { + return m.DynamicActiveSecrets + } + return nil +} + +func (m *SecretsConfigDump) GetDynamicWarmingSecrets() []*SecretsConfigDump_DynamicSecret { + if m != nil { + return m.DynamicWarmingSecrets + } + return nil +} + +type SecretsConfigDump_DynamicSecret struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VersionInfo string `protobuf:"bytes,2,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + Secret *any.Any `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump_DynamicSecret) Reset() { *m = SecretsConfigDump_DynamicSecret{} } +func (m *SecretsConfigDump_DynamicSecret) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump_DynamicSecret) ProtoMessage() {} +func (*SecretsConfigDump_DynamicSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{7, 0} +} + +func (m *SecretsConfigDump_DynamicSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Unmarshal(m, b) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump_DynamicSecret.Merge(m, src) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Size(m) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump_DynamicSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump_DynamicSecret proto.InternalMessageInfo + +func (m *SecretsConfigDump_DynamicSecret) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SecretsConfigDump_DynamicSecret) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *SecretsConfigDump_DynamicSecret) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +func (m *SecretsConfigDump_DynamicSecret) GetSecret() *any.Any { + if m != nil { + return m.Secret + } + return nil +} + +type SecretsConfigDump_StaticSecret struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + Secret *any.Any `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump_StaticSecret) Reset() { *m = SecretsConfigDump_StaticSecret{} } +func (m *SecretsConfigDump_StaticSecret) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump_StaticSecret) ProtoMessage() {} +func (*SecretsConfigDump_StaticSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_bd4e190b1a64d2aa, []int{7, 1} +} + +func (m *SecretsConfigDump_StaticSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Unmarshal(m, b) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump_StaticSecret.Merge(m, src) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Size(m) +} +func (m *SecretsConfigDump_StaticSecret) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump_StaticSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump_StaticSecret proto.InternalMessageInfo + +func (m *SecretsConfigDump_StaticSecret) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SecretsConfigDump_StaticSecret) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +func (m *SecretsConfigDump_StaticSecret) GetSecret() *any.Any { + if m != nil { + return m.Secret + } + return nil +} + +func init() { + proto.RegisterType((*ConfigDump)(nil), "envoy.admin.v2alpha.ConfigDump") + proto.RegisterType((*UpdateFailureState)(nil), "envoy.admin.v2alpha.UpdateFailureState") + proto.RegisterType((*BootstrapConfigDump)(nil), "envoy.admin.v2alpha.BootstrapConfigDump") + proto.RegisterType((*ListenersConfigDump)(nil), "envoy.admin.v2alpha.ListenersConfigDump") + proto.RegisterType((*ListenersConfigDump_StaticListener)(nil), "envoy.admin.v2alpha.ListenersConfigDump.StaticListener") + proto.RegisterType((*ListenersConfigDump_DynamicListenerState)(nil), "envoy.admin.v2alpha.ListenersConfigDump.DynamicListenerState") + proto.RegisterType((*ListenersConfigDump_DynamicListener)(nil), "envoy.admin.v2alpha.ListenersConfigDump.DynamicListener") + proto.RegisterType((*ClustersConfigDump)(nil), "envoy.admin.v2alpha.ClustersConfigDump") + proto.RegisterType((*ClustersConfigDump_StaticCluster)(nil), "envoy.admin.v2alpha.ClustersConfigDump.StaticCluster") + proto.RegisterType((*ClustersConfigDump_DynamicCluster)(nil), "envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster") + proto.RegisterType((*RoutesConfigDump)(nil), "envoy.admin.v2alpha.RoutesConfigDump") + proto.RegisterType((*RoutesConfigDump_StaticRouteConfig)(nil), "envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig") + proto.RegisterType((*RoutesConfigDump_DynamicRouteConfig)(nil), "envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig") + proto.RegisterType((*ScopedRoutesConfigDump)(nil), "envoy.admin.v2alpha.ScopedRoutesConfigDump") + proto.RegisterType((*ScopedRoutesConfigDump_InlineScopedRouteConfigs)(nil), "envoy.admin.v2alpha.ScopedRoutesConfigDump.InlineScopedRouteConfigs") + proto.RegisterType((*ScopedRoutesConfigDump_DynamicScopedRouteConfigs)(nil), "envoy.admin.v2alpha.ScopedRoutesConfigDump.DynamicScopedRouteConfigs") + proto.RegisterType((*SecretsConfigDump)(nil), "envoy.admin.v2alpha.SecretsConfigDump") + proto.RegisterType((*SecretsConfigDump_DynamicSecret)(nil), "envoy.admin.v2alpha.SecretsConfigDump.DynamicSecret") + proto.RegisterType((*SecretsConfigDump_StaticSecret)(nil), "envoy.admin.v2alpha.SecretsConfigDump.StaticSecret") +} + +func init() { + proto.RegisterFile("envoy/admin/v2alpha/config_dump.proto", fileDescriptor_bd4e190b1a64d2aa) +} + +var fileDescriptor_bd4e190b1a64d2aa = []byte{ + // 1058 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xbd, 0x8f, 0xe3, 0x44, + 0x14, 0x97, 0x93, 0xec, 0x2e, 0xfb, 0x92, 0xec, 0xc7, 0x24, 0xb7, 0x64, 0x0d, 0x88, 0xbd, 0x08, + 0xc4, 0x21, 0x21, 0x07, 0xed, 0x01, 0x47, 0xc1, 0x21, 0xed, 0x07, 0x07, 0x87, 0x28, 0x4e, 0x5e, + 0x10, 0x12, 0x05, 0x66, 0x12, 0x4f, 0x96, 0x41, 0xce, 0xd8, 0xf2, 0x8c, 0x03, 0x69, 0x10, 0x08, + 0x89, 0x86, 0x02, 0xd1, 0x21, 0x21, 0x51, 0x50, 0x42, 0x41, 0x81, 0x68, 0xa0, 0xa4, 0xa1, 0x85, + 0x8e, 0xff, 0x06, 0x65, 0x3e, 0x12, 0xc7, 0x76, 0x72, 0xf9, 0xb8, 0xce, 0x33, 0xef, 0xbd, 0xdf, + 0xef, 0x37, 0xf3, 0x7e, 0x33, 0x63, 0x78, 0x96, 0xb0, 0x61, 0x38, 0xea, 0x60, 0x7f, 0x40, 0x59, + 0x67, 0x78, 0x8a, 0x83, 0xe8, 0x63, 0xdc, 0xe9, 0x85, 0xac, 0x4f, 0xaf, 0x3d, 0x3f, 0x19, 0x44, + 0x4e, 0x14, 0x87, 0x22, 0x44, 0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 0x56, + 0x77, 0x5b, 0xa2, 0xde, 0xfe, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x4a, 0x7b, 0xeb, 0x9f, 0x10, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.validate.go new file mode 100644 index 000000000..62a90a205 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/config_dump.pb.validate.go @@ -0,0 +1,1837 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/config_dump.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_dump_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ConfigDump with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigDumpValidationError{ + field: fmt.Sprintf("Configs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ConfigDumpValidationError is the validation error returned by +// ConfigDump.Validate if the designated constraints aren't met. +type ConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigDumpValidationError) ErrorName() string { return "ConfigDumpValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigDumpValidationError) 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 %sConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigDumpValidationError{} + +// Validate checks the field values on UpdateFailureState with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateFailureState) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetFailedConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateFailureStateValidationError{ + field: "FailedConfiguration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdateAttempt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateFailureStateValidationError{ + field: "LastUpdateAttempt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Details + + return nil +} + +// UpdateFailureStateValidationError is the validation error returned by +// UpdateFailureState.Validate if the designated constraints aren't met. +type UpdateFailureStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateFailureStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateFailureStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateFailureStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateFailureStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateFailureStateValidationError) ErrorName() string { + return "UpdateFailureStateValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateFailureStateValidationError) 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 %sUpdateFailureState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateFailureStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateFailureStateValidationError{} + +// Validate checks the field values on BootstrapConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *BootstrapConfigDump) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetBootstrap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapConfigDumpValidationError{ + field: "Bootstrap", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapConfigDumpValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BootstrapConfigDumpValidationError is the validation error returned by +// BootstrapConfigDump.Validate if the designated constraints aren't met. +type BootstrapConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BootstrapConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BootstrapConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BootstrapConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BootstrapConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BootstrapConfigDumpValidationError) ErrorName() string { + return "BootstrapConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e BootstrapConfigDumpValidationError) 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 %sBootstrapConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BootstrapConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BootstrapConfigDumpValidationError{} + +// Validate checks the field values on ListenersConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListenersConfigDump) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + for idx, item := range m.GetStaticListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDumpValidationError{ + field: fmt.Sprintf("StaticListeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicListeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ListenersConfigDumpValidationError is the validation error returned by +// ListenersConfigDump.Validate if the designated constraints aren't met. +type ListenersConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDumpValidationError) ErrorName() string { + return "ListenersConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDumpValidationError) 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 %sListenersConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDumpValidationError{} + +// Validate checks the field values on ClustersConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClustersConfigDump) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + for idx, item := range m.GetStaticClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("StaticClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicActiveClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicActiveClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicWarmingClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicWarmingClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClustersConfigDumpValidationError is the validation error returned by +// ClustersConfigDump.Validate if the designated constraints aren't met. +type ClustersConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDumpValidationError) ErrorName() string { + return "ClustersConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDumpValidationError) 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 %sClustersConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDumpValidationError{} + +// Validate checks the field values on RoutesConfigDump with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RoutesConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetStaticRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDumpValidationError{ + field: fmt.Sprintf("StaticRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDumpValidationError{ + field: fmt.Sprintf("DynamicRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RoutesConfigDumpValidationError is the validation error returned by +// RoutesConfigDump.Validate if the designated constraints aren't met. +type RoutesConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDumpValidationError) ErrorName() string { return "RoutesConfigDumpValidationError" } + +// Error satisfies the builtin error interface +func (e RoutesConfigDumpValidationError) 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 %sRoutesConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDumpValidationError{} + +// Validate checks the field values on ScopedRoutesConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ScopedRoutesConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetInlineScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDumpValidationError{ + field: fmt.Sprintf("InlineScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDumpValidationError{ + field: fmt.Sprintf("DynamicScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScopedRoutesConfigDumpValidationError is the validation error returned by +// ScopedRoutesConfigDump.Validate if the designated constraints aren't met. +type ScopedRoutesConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScopedRoutesConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScopedRoutesConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDumpValidationError) ErrorName() string { + return "ScopedRoutesConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDumpValidationError) 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 %sScopedRoutesConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDumpValidationError{} + +// Validate checks the field values on SecretsConfigDump with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SecretsConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetStaticSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("StaticSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicActiveSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("DynamicActiveSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicWarmingSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("DynamicWarmingSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SecretsConfigDumpValidationError is the validation error returned by +// SecretsConfigDump.Validate if the designated constraints aren't met. +type SecretsConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDumpValidationError) ErrorName() string { + return "SecretsConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDumpValidationError) 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 %sSecretsConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDumpValidationError{} + +// Validate checks the field values on ListenersConfigDump_StaticListener with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ListenersConfigDump_StaticListener) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetListener()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_StaticListenerValidationError{ + field: "Listener", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_StaticListenerValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_StaticListenerValidationError is the validation error +// returned by ListenersConfigDump_StaticListener.Validate if the designated +// constraints aren't met. +type ListenersConfigDump_StaticListenerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_StaticListenerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_StaticListenerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_StaticListenerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_StaticListenerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_StaticListenerValidationError) ErrorName() string { + return "ListenersConfigDump_StaticListenerValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_StaticListenerValidationError) 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 %sListenersConfigDump_StaticListener.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_StaticListenerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_StaticListenerValidationError{} + +// Validate checks the field values on ListenersConfigDump_DynamicListenerState +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ListenersConfigDump_DynamicListenerState) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetListener()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerStateValidationError{ + field: "Listener", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerStateValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_DynamicListenerStateValidationError is the validation +// error returned by ListenersConfigDump_DynamicListenerState.Validate if the +// designated constraints aren't met. +type ListenersConfigDump_DynamicListenerStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_DynamicListenerStateValidationError) ErrorName() string { + return "ListenersConfigDump_DynamicListenerStateValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_DynamicListenerStateValidationError) 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 %sListenersConfigDump_DynamicListenerState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_DynamicListenerStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_DynamicListenerStateValidationError{} + +// Validate checks the field values on ListenersConfigDump_DynamicListener with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ListenersConfigDump_DynamicListener) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetActiveState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "ActiveState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetWarmingState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "WarmingState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDrainingState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "DrainingState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetErrorState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "ErrorState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_DynamicListenerValidationError is the validation error +// returned by ListenersConfigDump_DynamicListener.Validate if the designated +// constraints aren't met. +type ListenersConfigDump_DynamicListenerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_DynamicListenerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_DynamicListenerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_DynamicListenerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_DynamicListenerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_DynamicListenerValidationError) ErrorName() string { + return "ListenersConfigDump_DynamicListenerValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_DynamicListenerValidationError) 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 %sListenersConfigDump_DynamicListener.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_DynamicListenerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_DynamicListenerValidationError{} + +// Validate checks the field values on ClustersConfigDump_StaticCluster with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ClustersConfigDump_StaticCluster) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_StaticClusterValidationError{ + field: "Cluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_StaticClusterValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClustersConfigDump_StaticClusterValidationError is the validation error +// returned by ClustersConfigDump_StaticCluster.Validate if the designated +// constraints aren't met. +type ClustersConfigDump_StaticClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDump_StaticClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDump_StaticClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDump_StaticClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDump_StaticClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDump_StaticClusterValidationError) ErrorName() string { + return "ClustersConfigDump_StaticClusterValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDump_StaticClusterValidationError) 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 %sClustersConfigDump_StaticCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDump_StaticClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDump_StaticClusterValidationError{} + +// Validate checks the field values on ClustersConfigDump_DynamicCluster with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ClustersConfigDump_DynamicCluster) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_DynamicClusterValidationError{ + field: "Cluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_DynamicClusterValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClustersConfigDump_DynamicClusterValidationError is the validation error +// returned by ClustersConfigDump_DynamicCluster.Validate if the designated +// constraints aren't met. +type ClustersConfigDump_DynamicClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDump_DynamicClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDump_DynamicClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDump_DynamicClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDump_DynamicClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDump_DynamicClusterValidationError) ErrorName() string { + return "ClustersConfigDump_DynamicClusterValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDump_DynamicClusterValidationError) 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 %sClustersConfigDump_DynamicCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDump_DynamicClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDump_DynamicClusterValidationError{} + +// Validate checks the field values on RoutesConfigDump_StaticRouteConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RoutesConfigDump_StaticRouteConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_StaticRouteConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_StaticRouteConfigValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RoutesConfigDump_StaticRouteConfigValidationError is the validation error +// returned by RoutesConfigDump_StaticRouteConfig.Validate if the designated +// constraints aren't met. +type RoutesConfigDump_StaticRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDump_StaticRouteConfigValidationError) ErrorName() string { + return "RoutesConfigDump_StaticRouteConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RoutesConfigDump_StaticRouteConfigValidationError) 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 %sRoutesConfigDump_StaticRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDump_StaticRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDump_StaticRouteConfigValidationError{} + +// Validate checks the field values on RoutesConfigDump_DynamicRouteConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RoutesConfigDump_DynamicRouteConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_DynamicRouteConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_DynamicRouteConfigValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RoutesConfigDump_DynamicRouteConfigValidationError is the validation error +// returned by RoutesConfigDump_DynamicRouteConfig.Validate if the designated +// constraints aren't met. +type RoutesConfigDump_DynamicRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) ErrorName() string { + return "RoutesConfigDump_DynamicRouteConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RoutesConfigDump_DynamicRouteConfigValidationError) 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 %sRoutesConfigDump_DynamicRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDump_DynamicRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDump_DynamicRouteConfigValidationError{} + +// Validate checks the field values on +// ScopedRoutesConfigDump_InlineScopedRouteConfigs with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + for idx, item := range m.GetScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{ + field: fmt.Sprintf("ScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError is the +// validation error returned by +// ScopedRoutesConfigDump_InlineScopedRouteConfigs.Validate if the designated +// constraints aren't met. +type ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) ErrorName() string { + return "ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) 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 %sScopedRoutesConfigDump_InlineScopedRouteConfigs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{} + +// Validate checks the field values on +// ScopedRoutesConfigDump_DynamicScopedRouteConfigs with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for VersionInfo + + for idx, item := range m.GetScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{ + field: fmt.Sprintf("ScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError is the +// validation error returned by +// ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Validate if the designated +// constraints aren't met. +type ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) ErrorName() string { + return "ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) 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 %sScopedRoutesConfigDump_DynamicScopedRouteConfigs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{} + +// Validate checks the field values on SecretsConfigDump_DynamicSecret with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SecretsConfigDump_DynamicSecret) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_DynamicSecretValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecret()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_DynamicSecretValidationError{ + field: "Secret", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SecretsConfigDump_DynamicSecretValidationError is the validation error +// returned by SecretsConfigDump_DynamicSecret.Validate if the designated +// constraints aren't met. +type SecretsConfigDump_DynamicSecretValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDump_DynamicSecretValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDump_DynamicSecretValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDump_DynamicSecretValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDump_DynamicSecretValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDump_DynamicSecretValidationError) ErrorName() string { + return "SecretsConfigDump_DynamicSecretValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDump_DynamicSecretValidationError) 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 %sSecretsConfigDump_DynamicSecret.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDump_DynamicSecretValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDump_DynamicSecretValidationError{} + +// Validate checks the field values on SecretsConfigDump_StaticSecret with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SecretsConfigDump_StaticSecret) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_StaticSecretValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecret()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_StaticSecretValidationError{ + field: "Secret", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SecretsConfigDump_StaticSecretValidationError is the validation error +// returned by SecretsConfigDump_StaticSecret.Validate if the designated +// constraints aren't met. +type SecretsConfigDump_StaticSecretValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDump_StaticSecretValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDump_StaticSecretValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDump_StaticSecretValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDump_StaticSecretValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDump_StaticSecretValidationError) ErrorName() string { + return "SecretsConfigDump_StaticSecretValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDump_StaticSecretValidationError) 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 %sSecretsConfigDump_StaticSecret.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDump_StaticSecretValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDump_StaticSecretValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.go new file mode 100644 index 000000000..49dad429c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.go @@ -0,0 +1,139 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/listeners.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Listeners struct { + ListenerStatuses []*ListenerStatus `protobuf:"bytes,1,rep,name=listener_statuses,json=listenerStatuses,proto3" json:"listener_statuses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Listeners) Reset() { *m = Listeners{} } +func (m *Listeners) String() string { return proto.CompactTextString(m) } +func (*Listeners) ProtoMessage() {} +func (*Listeners) Descriptor() ([]byte, []int) { + return fileDescriptor_cd3cc5a2daffd3f5, []int{0} +} + +func (m *Listeners) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Listeners.Unmarshal(m, b) +} +func (m *Listeners) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Listeners.Marshal(b, m, deterministic) +} +func (m *Listeners) XXX_Merge(src proto.Message) { + xxx_messageInfo_Listeners.Merge(m, src) +} +func (m *Listeners) XXX_Size() int { + return xxx_messageInfo_Listeners.Size(m) +} +func (m *Listeners) XXX_DiscardUnknown() { + xxx_messageInfo_Listeners.DiscardUnknown(m) +} + +var xxx_messageInfo_Listeners proto.InternalMessageInfo + +func (m *Listeners) GetListenerStatuses() []*ListenerStatus { + if m != nil { + return m.ListenerStatuses + } + return nil +} + +type ListenerStatus struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + LocalAddress *core.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenerStatus) Reset() { *m = ListenerStatus{} } +func (m *ListenerStatus) String() string { return proto.CompactTextString(m) } +func (*ListenerStatus) ProtoMessage() {} +func (*ListenerStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_cd3cc5a2daffd3f5, []int{1} +} + +func (m *ListenerStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenerStatus.Unmarshal(m, b) +} +func (m *ListenerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenerStatus.Marshal(b, m, deterministic) +} +func (m *ListenerStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerStatus.Merge(m, src) +} +func (m *ListenerStatus) XXX_Size() int { + return xxx_messageInfo_ListenerStatus.Size(m) +} +func (m *ListenerStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerStatus proto.InternalMessageInfo + +func (m *ListenerStatus) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ListenerStatus) GetLocalAddress() *core.Address { + if m != nil { + return m.LocalAddress + } + return nil +} + +func init() { + proto.RegisterType((*Listeners)(nil), "envoy.admin.v2alpha.Listeners") + proto.RegisterType((*ListenerStatus)(nil), "envoy.admin.v2alpha.ListenerStatus") +} + +func init() { + proto.RegisterFile("envoy/admin/v2alpha/listeners.proto", fileDescriptor_cd3cc5a2daffd3f5) +} + +var fileDescriptor_cd3cc5a2daffd3f5 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0x03, 0x31, + 0x10, 0x86, 0x49, 0x95, 0x42, 0x53, 0x95, 0x1a, 0x2f, 0x65, 0x41, 0x5c, 0xdb, 0xcb, 0x9e, 0x12, + 0x88, 0x67, 0x11, 0x7b, 0xf6, 0xb0, 0xac, 0x67, 0x29, 0x63, 0x37, 0x60, 0x20, 0xcd, 0x84, 0x24, + 0x5d, 0xec, 0xcd, 0xe7, 0xf2, 0x09, 0xbc, 0xfa, 0x46, 0xd2, 0x6c, 0x56, 0x28, 0xf4, 0x96, 0x21, + 0xdf, 0xc7, 0xff, 0xcf, 0xd0, 0xa5, 0xb2, 0x1d, 0xee, 0x05, 0xb4, 0x5b, 0x6d, 0x45, 0x27, 0xc1, + 0xb8, 0x0f, 0x10, 0x46, 0x87, 0xa8, 0xac, 0xf2, 0x81, 0x3b, 0x8f, 0x11, 0xd9, 0x4d, 0x82, 0x78, + 0x82, 0x78, 0x86, 0x8a, 0xbb, 0x6c, 0x3a, 0x2d, 0x3a, 0x29, 0x36, 0xe8, 0x95, 0x80, 0xb6, 0xf5, + 0x2a, 0x64, 0xab, 0xb8, 0xdd, 0xb5, 0x0e, 0x04, 0x58, 0x8b, 0x11, 0xa2, 0x46, 0x1b, 0x44, 0x88, + 0x10, 0x77, 0xf9, 0x7b, 0xf1, 0x46, 0x27, 0x2f, 0x43, 0x0e, 0xab, 0xe9, 0xf5, 0x10, 0xba, 0xee, + 0x29, 0x15, 0xe6, 0xa4, 0x3c, 0xab, 0xa6, 0x72, 0xc9, 0x4f, 0xa4, 0xf3, 0x41, 0x7d, 0x4d, 0x70, + 0x33, 0x33, 0x47, 0xb3, 0x0a, 0x0b, 0x45, 0xaf, 0x8e, 0x19, 0xc6, 0xe8, 0xb9, 0x85, 0xad, 0x9a, + 0x93, 0x92, 0x54, 0x93, 0x26, 0xbd, 0xd9, 0x13, 0xbd, 0x34, 0xb8, 0x01, 0xb3, 0xce, 0xd5, 0xe7, + 0xa3, 0x92, 0x54, 0x53, 0x59, 0x0c, 0x99, 0x4e, 0xf3, 0x4e, 0xf2, 0xc3, 0x72, 0xfc, 0xb9, 0x27, + 0x9a, 0x8b, 0x24, 0xe4, 0x69, 0xf5, 0xf8, 0xfd, 0xf5, 0xf3, 0x3b, 0x1e, 0xcd, 0x08, 0xbd, 0xd7, + 0xd8, 0x5b, 0xce, 0xe3, 0xe7, 0xfe, 0x54, 0xe9, 0xd5, 0x7f, 0xa3, 0x50, 0x1f, 0x4e, 0x50, 0x93, + 0xf7, 0x71, 0xba, 0xc5, 0xc3, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x8e, 0xf4, 0x35, 0x87, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.validate.go new file mode 100644 index 000000000..a349328ff --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/listeners.pb.validate.go @@ -0,0 +1,193 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/listeners.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _listeners_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Listeners with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Listeners) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetListenerStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersValidationError{ + field: fmt.Sprintf("ListenerStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ListenersValidationError is the validation error returned by +// Listeners.Validate if the designated constraints aren't met. +type ListenersValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersValidationError) ErrorName() string { return "ListenersValidationError" } + +// Error satisfies the builtin error interface +func (e ListenersValidationError) 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 %sListeners.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersValidationError{} + +// Validate checks the field values on ListenerStatus with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ListenerStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenerStatusValidationError{ + field: "LocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenerStatusValidationError is the validation error returned by +// ListenerStatus.Validate if the designated constraints aren't met. +type ListenerStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenerStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenerStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenerStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenerStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenerStatusValidationError) ErrorName() string { return "ListenerStatusValidationError" } + +// Error satisfies the builtin error interface +func (e ListenerStatusValidationError) 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 %sListenerStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenerStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenerStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.go new file mode 100644 index 000000000..99a08986d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/memory.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Memory struct { + Allocated uint64 `protobuf:"varint,1,opt,name=allocated,proto3" json:"allocated,omitempty"` + HeapSize uint64 `protobuf:"varint,2,opt,name=heap_size,json=heapSize,proto3" json:"heap_size,omitempty"` + PageheapUnmapped uint64 `protobuf:"varint,3,opt,name=pageheap_unmapped,json=pageheapUnmapped,proto3" json:"pageheap_unmapped,omitempty"` + PageheapFree uint64 `protobuf:"varint,4,opt,name=pageheap_free,json=pageheapFree,proto3" json:"pageheap_free,omitempty"` + TotalThreadCache uint64 `protobuf:"varint,5,opt,name=total_thread_cache,json=totalThreadCache,proto3" json:"total_thread_cache,omitempty"` + TotalPhysicalBytes uint64 `protobuf:"varint,6,opt,name=total_physical_bytes,json=totalPhysicalBytes,proto3" json:"total_physical_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Memory) Reset() { *m = Memory{} } +func (m *Memory) String() string { return proto.CompactTextString(m) } +func (*Memory) ProtoMessage() {} +func (*Memory) Descriptor() ([]byte, []int) { + return fileDescriptor_51b7ba9ad7a02b7f, []int{0} +} + +func (m *Memory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Memory.Unmarshal(m, b) +} +func (m *Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Memory.Marshal(b, m, deterministic) +} +func (m *Memory) XXX_Merge(src proto.Message) { + xxx_messageInfo_Memory.Merge(m, src) +} +func (m *Memory) XXX_Size() int { + return xxx_messageInfo_Memory.Size(m) +} +func (m *Memory) XXX_DiscardUnknown() { + xxx_messageInfo_Memory.DiscardUnknown(m) +} + +var xxx_messageInfo_Memory proto.InternalMessageInfo + +func (m *Memory) GetAllocated() uint64 { + if m != nil { + return m.Allocated + } + return 0 +} + +func (m *Memory) GetHeapSize() uint64 { + if m != nil { + return m.HeapSize + } + return 0 +} + +func (m *Memory) GetPageheapUnmapped() uint64 { + if m != nil { + return m.PageheapUnmapped + } + return 0 +} + +func (m *Memory) GetPageheapFree() uint64 { + if m != nil { + return m.PageheapFree + } + return 0 +} + +func (m *Memory) GetTotalThreadCache() uint64 { + if m != nil { + return m.TotalThreadCache + } + return 0 +} + +func (m *Memory) GetTotalPhysicalBytes() uint64 { + if m != nil { + return m.TotalPhysicalBytes + } + return 0 +} + +func init() { + proto.RegisterType((*Memory)(nil), "envoy.admin.v2alpha.Memory") +} + +func init() { proto.RegisterFile("envoy/admin/v2alpha/memory.proto", fileDescriptor_51b7ba9ad7a02b7f) } + +var fileDescriptor_51b7ba9ad7a02b7f = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xbd, 0x4a, 0xc4, 0x40, + 0x14, 0x46, 0xc9, 0xba, 0x06, 0x77, 0x54, 0x58, 0x47, 0x8b, 0xc1, 0x1f, 0x58, 0xb5, 0x11, 0x94, + 0x44, 0xb4, 0xb3, 0x8c, 0x60, 0x27, 0x04, 0x7f, 0xea, 0x70, 0x37, 0xb9, 0x9a, 0x81, 0x64, 0x66, + 0x98, 0x99, 0x2c, 0x66, 0x2b, 0x9f, 0xcb, 0x27, 0xb0, 0xf5, 0x61, 0xec, 0x25, 0x37, 0x59, 0x6d, + 0x6c, 0xbf, 0x73, 0xee, 0x2d, 0x0e, 0x9b, 0xa1, 0x5a, 0xe8, 0x36, 0x86, 0xa2, 0x96, 0x2a, 0x5e, + 0x5c, 0x41, 0x65, 0x4a, 0x88, 0x6b, 0xac, 0xb5, 0x6d, 0x23, 0x63, 0xb5, 0xd7, 0x7c, 0x97, 0x8c, + 0x88, 0x8c, 0x68, 0x30, 0xf6, 0x8f, 0x9a, 0xc2, 0x40, 0x0c, 0x4a, 0x69, 0x0f, 0x5e, 0x6a, 0xe5, + 0x62, 0xe7, 0xc1, 0x37, 0xae, 0xbf, 0x39, 0xf9, 0x0e, 0x58, 0x78, 0x4f, 0x4f, 0xf8, 0x21, 0x9b, + 0x40, 0x55, 0xe9, 0x1c, 0x3c, 0x16, 0x22, 0x98, 0x05, 0x67, 0xe3, 0x87, 0xbf, 0x81, 0x1f, 0xb0, + 0x49, 0x89, 0x60, 0x32, 0x27, 0x97, 0x28, 0x46, 0x44, 0x37, 0xba, 0xe1, 0x51, 0x2e, 0x91, 0x9f, + 0xb3, 0x1d, 0x03, 0xaf, 0x48, 0x42, 0xa3, 0x6a, 0x30, 0x06, 0x0b, 0xb1, 0x46, 0xd2, 0x74, 0x05, + 0x9e, 0x87, 0x9d, 0x9f, 0xb2, 0xed, 0x5f, 0xf9, 0xc5, 0x22, 0x8a, 0x31, 0x89, 0x5b, 0xab, 0xf1, + 0xce, 0x22, 0xf2, 0x0b, 0xc6, 0xbd, 0xf6, 0x50, 0x65, 0xbe, 0xb4, 0x08, 0x45, 0x96, 0x43, 0x5e, + 0xa2, 0x58, 0xef, 0x5f, 0x12, 0x79, 0x22, 0x70, 0xdb, 0xed, 0xfc, 0x92, 0xed, 0xf5, 0xb6, 0x29, + 0x5b, 0x27, 0x73, 0xa8, 0xb2, 0x79, 0xeb, 0xd1, 0x89, 0x90, 0xfc, 0xfe, 0x53, 0x3a, 0xa0, 0xa4, + 0x23, 0xc9, 0xcd, 0xc7, 0xfb, 0xe7, 0x57, 0x38, 0x9a, 0x06, 0xec, 0x58, 0xea, 0x88, 0xc2, 0x19, + 0xab, 0xdf, 0xda, 0xe8, 0x9f, 0x86, 0xc9, 0x66, 0x5f, 0x28, 0xed, 0x8a, 0xa5, 0xc1, 0x3c, 0xa4, + 0x74, 0xd7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa6, 0x3d, 0xef, 0xb5, 0x92, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.validate.go new file mode 100644 index 000000000..6456c4638 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/memory.pb.validate.go @@ -0,0 +1,113 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/memory.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _memory_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Memory with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Memory) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Allocated + + // no validation rules for HeapSize + + // no validation rules for PageheapUnmapped + + // no validation rules for PageheapFree + + // no validation rules for TotalThreadCache + + // no validation rules for TotalPhysicalBytes + + return nil +} + +// MemoryValidationError is the validation error returned by Memory.Validate if +// the designated constraints aren't met. +type MemoryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MemoryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MemoryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MemoryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MemoryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MemoryValidationError) ErrorName() string { return "MemoryValidationError" } + +// Error satisfies the builtin error interface +func (e MemoryValidationError) 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 %sMemory.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MemoryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MemoryValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.go new file mode 100644 index 000000000..9bd83fa4b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/metrics.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SimpleMetric_Type int32 + +const ( + SimpleMetric_COUNTER SimpleMetric_Type = 0 + SimpleMetric_GAUGE SimpleMetric_Type = 1 +) + +var SimpleMetric_Type_name = map[int32]string{ + 0: "COUNTER", + 1: "GAUGE", +} + +var SimpleMetric_Type_value = map[string]int32{ + "COUNTER": 0, + "GAUGE": 1, +} + +func (x SimpleMetric_Type) String() string { + return proto.EnumName(SimpleMetric_Type_name, int32(x)) +} + +func (SimpleMetric_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_680a736ec6584458, []int{0, 0} +} + +type SimpleMetric struct { + Type SimpleMetric_Type `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.admin.v2alpha.SimpleMetric_Type" json:"type,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SimpleMetric) Reset() { *m = SimpleMetric{} } +func (m *SimpleMetric) String() string { return proto.CompactTextString(m) } +func (*SimpleMetric) ProtoMessage() {} +func (*SimpleMetric) Descriptor() ([]byte, []int) { + return fileDescriptor_680a736ec6584458, []int{0} +} + +func (m *SimpleMetric) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SimpleMetric.Unmarshal(m, b) +} +func (m *SimpleMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SimpleMetric.Marshal(b, m, deterministic) +} +func (m *SimpleMetric) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimpleMetric.Merge(m, src) +} +func (m *SimpleMetric) XXX_Size() int { + return xxx_messageInfo_SimpleMetric.Size(m) +} +func (m *SimpleMetric) XXX_DiscardUnknown() { + xxx_messageInfo_SimpleMetric.DiscardUnknown(m) +} + +var xxx_messageInfo_SimpleMetric proto.InternalMessageInfo + +func (m *SimpleMetric) GetType() SimpleMetric_Type { + if m != nil { + return m.Type + } + return SimpleMetric_COUNTER +} + +func (m *SimpleMetric) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +func (m *SimpleMetric) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func init() { + proto.RegisterEnum("envoy.admin.v2alpha.SimpleMetric_Type", SimpleMetric_Type_name, SimpleMetric_Type_value) + proto.RegisterType((*SimpleMetric)(nil), "envoy.admin.v2alpha.SimpleMetric") +} + +func init() { proto.RegisterFile("envoy/admin/v2alpha/metrics.proto", fileDescriptor_680a736ec6584458) } + +var fileDescriptor_680a736ec6584458 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 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, 0xc3, 0x89, 0x8b, 0x6c, 0x4c, 0x02, 0x8c, 0x5c, 0x8a, 0x99, 0xf9, 0x10, 0x37, 0x14, + 0x14, 0xe5, 0x57, 0x54, 0x62, 0x73, 0x8e, 0x13, 0x0f, 0xc4, 0x25, 0xc5, 0x01, 0x20, 0x1f, 0x05, + 0x30, 0x26, 0xb1, 0x81, 0xbd, 0x66, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x76, 0xd8, 0xc7, + 0x33, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.validate.go new file mode 100644 index 000000000..8055b7541 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/metrics.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/metrics.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _metrics_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on SimpleMetric with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SimpleMetric) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for Value + + // no validation rules for Name + + return nil +} + +// SimpleMetricValidationError is the validation error returned by +// SimpleMetric.Validate if the designated constraints aren't met. +type SimpleMetricValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SimpleMetricValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SimpleMetricValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SimpleMetricValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SimpleMetricValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SimpleMetricValidationError) ErrorName() string { return "SimpleMetricValidationError" } + +// Error satisfies the builtin error interface +func (e SimpleMetricValidationError) 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 %sSimpleMetric.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SimpleMetricValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SimpleMetricValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.go new file mode 100644 index 000000000..13aae7854 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/mutex_stats.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MutexStats struct { + NumContentions uint64 `protobuf:"varint,1,opt,name=num_contentions,json=numContentions,proto3" json:"num_contentions,omitempty"` + CurrentWaitCycles uint64 `protobuf:"varint,2,opt,name=current_wait_cycles,json=currentWaitCycles,proto3" json:"current_wait_cycles,omitempty"` + LifetimeWaitCycles uint64 `protobuf:"varint,3,opt,name=lifetime_wait_cycles,json=lifetimeWaitCycles,proto3" json:"lifetime_wait_cycles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MutexStats) Reset() { *m = MutexStats{} } +func (m *MutexStats) String() string { return proto.CompactTextString(m) } +func (*MutexStats) ProtoMessage() {} +func (*MutexStats) Descriptor() ([]byte, []int) { + return fileDescriptor_2c1145f4b9ed4752, []int{0} +} + +func (m *MutexStats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MutexStats.Unmarshal(m, b) +} +func (m *MutexStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MutexStats.Marshal(b, m, deterministic) +} +func (m *MutexStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutexStats.Merge(m, src) +} +func (m *MutexStats) XXX_Size() int { + return xxx_messageInfo_MutexStats.Size(m) +} +func (m *MutexStats) XXX_DiscardUnknown() { + xxx_messageInfo_MutexStats.DiscardUnknown(m) +} + +var xxx_messageInfo_MutexStats proto.InternalMessageInfo + +func (m *MutexStats) GetNumContentions() uint64 { + if m != nil { + return m.NumContentions + } + return 0 +} + +func (m *MutexStats) GetCurrentWaitCycles() uint64 { + if m != nil { + return m.CurrentWaitCycles + } + return 0 +} + +func (m *MutexStats) GetLifetimeWaitCycles() uint64 { + if m != nil { + return m.LifetimeWaitCycles + } + return 0 +} + +func init() { + proto.RegisterType((*MutexStats)(nil), "envoy.admin.v2alpha.MutexStats") +} + +func init() { + proto.RegisterFile("envoy/admin/v2alpha/mutex_stats.proto", fileDescriptor_2c1145f4b9ed4752) +} + +var fileDescriptor_2c1145f4b9ed4752 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xb1, 0x4a, 0x03, 0x41, + 0x10, 0x86, 0xd9, 0x28, 0x29, 0xb6, 0x30, 0xba, 0xb1, 0x08, 0x82, 0xa0, 0x82, 0x68, 0xb5, 0x2b, + 0xda, 0x5b, 0x24, 0xb5, 0x10, 0xb4, 0xb0, 0x3c, 0xc6, 0xcb, 0x8a, 0x0b, 0xb7, 0x33, 0xc7, 0xdd, + 0x6c, 0xbc, 0xeb, 0x7c, 0x0b, 0xdf, 0xc5, 0x27, 0xb0, 0xf5, 0x8d, 0x64, 0x87, 0x93, 0x43, 0x48, + 0x3b, 0xff, 0xf7, 0x0d, 0x7c, 0xfa, 0xd2, 0xe3, 0x96, 0x7a, 0x07, 0x9b, 0x18, 0xd0, 0x6d, 0x6f, + 0xa1, 0xaa, 0xdf, 0xc0, 0xc5, 0xc4, 0xbe, 0x2b, 0x5a, 0x06, 0x6e, 0x6d, 0xdd, 0x10, 0x93, 0x99, + 0x0b, 0x66, 0x05, 0xb3, 0x03, 0x76, 0x72, 0x9a, 0x36, 0x35, 0x38, 0x40, 0x24, 0x06, 0x0e, 0x84, + 0xad, 0xcb, 0x4a, 0x1a, 0x9c, 0x8b, 0x4f, 0xa5, 0xf5, 0x43, 0xfe, 0xf4, 0x94, 0x1f, 0x99, 0x2b, + 0x3d, 0xc3, 0x14, 0x8b, 0x92, 0x90, 0x3d, 0x0a, 0xbe, 0x50, 0x67, 0xea, 0x7a, 0xff, 0xf1, 0x00, + 0x53, 0x5c, 0x8d, 0x57, 0x63, 0xf5, 0xbc, 0x4c, 0x4d, 0xe3, 0x91, 0x8b, 0x77, 0x08, 0x5c, 0x94, + 0x7d, 0x59, 0xf9, 0x76, 0x31, 0x11, 0xf8, 0x68, 0x98, 0x9e, 0x21, 0xf0, 0x4a, 0x06, 0x73, 0xa3, + 0x8f, 0xab, 0xf0, 0xea, 0x39, 0x44, 0xff, 0x4f, 0xd8, 0x13, 0xc1, 0xfc, 0x6d, 0xa3, 0xb1, 0xbc, + 0xff, 0xfa, 0xf8, 0xfe, 0x99, 0x4e, 0x0e, 0x95, 0x3e, 0x0f, 0x64, 0x25, 0xad, 0x6e, 0xa8, 0xeb, + 0xed, 0x8e, 0xca, 0xe5, 0x6c, 0x6c, 0x58, 0xe7, 0xae, 0xb5, 0x7a, 0x99, 0x4a, 0xe0, 0xdd, 0x6f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x63, 0x31, 0x12, 0x3d, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.validate.go new file mode 100644 index 000000000..aca0dbce8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.validate.go @@ -0,0 +1,107 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/mutex_stats.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mutex_stats_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MutexStats with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MutexStats) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NumContentions + + // no validation rules for CurrentWaitCycles + + // no validation rules for LifetimeWaitCycles + + return nil +} + +// MutexStatsValidationError is the validation error returned by +// MutexStats.Validate if the designated constraints aren't met. +type MutexStatsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MutexStatsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MutexStatsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MutexStatsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MutexStatsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MutexStatsValidationError) ErrorName() string { return "MutexStatsValidationError" } + +// Error satisfies the builtin error interface +func (e MutexStatsValidationError) 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 %sMutexStats.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MutexStatsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MutexStatsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.go new file mode 100644 index 000000000..bbfce7eb8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.go @@ -0,0 +1,518 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/server_info.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ServerInfo_State int32 + +const ( + ServerInfo_LIVE ServerInfo_State = 0 + ServerInfo_DRAINING ServerInfo_State = 1 + ServerInfo_PRE_INITIALIZING ServerInfo_State = 2 + ServerInfo_INITIALIZING ServerInfo_State = 3 +) + +var ServerInfo_State_name = map[int32]string{ + 0: "LIVE", + 1: "DRAINING", + 2: "PRE_INITIALIZING", + 3: "INITIALIZING", +} + +var ServerInfo_State_value = map[string]int32{ + "LIVE": 0, + "DRAINING": 1, + "PRE_INITIALIZING": 2, + "INITIALIZING": 3, +} + +func (x ServerInfo_State) String() string { + return proto.EnumName(ServerInfo_State_name, int32(x)) +} + +func (ServerInfo_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ed0f406f9d75bf97, []int{0, 0} +} + +type CommandLineOptions_IpVersion int32 + +const ( + CommandLineOptions_v4 CommandLineOptions_IpVersion = 0 + CommandLineOptions_v6 CommandLineOptions_IpVersion = 1 +) + +var CommandLineOptions_IpVersion_name = map[int32]string{ + 0: "v4", + 1: "v6", +} + +var CommandLineOptions_IpVersion_value = map[string]int32{ + "v4": 0, + "v6": 1, +} + +func (x CommandLineOptions_IpVersion) String() string { + return proto.EnumName(CommandLineOptions_IpVersion_name, int32(x)) +} + +func (CommandLineOptions_IpVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ed0f406f9d75bf97, []int{1, 0} +} + +type CommandLineOptions_Mode int32 + +const ( + CommandLineOptions_Serve CommandLineOptions_Mode = 0 + CommandLineOptions_Validate CommandLineOptions_Mode = 1 + CommandLineOptions_InitOnly CommandLineOptions_Mode = 2 +) + +var CommandLineOptions_Mode_name = map[int32]string{ + 0: "Serve", + 1: "Validate", + 2: "InitOnly", +} + +var CommandLineOptions_Mode_value = map[string]int32{ + "Serve": 0, + "Validate": 1, + "InitOnly": 2, +} + +func (x CommandLineOptions_Mode) String() string { + return proto.EnumName(CommandLineOptions_Mode_name, int32(x)) +} + +func (CommandLineOptions_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ed0f406f9d75bf97, []int{1, 1} +} + +type ServerInfo struct { + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + State ServerInfo_State `protobuf:"varint,2,opt,name=state,proto3,enum=envoy.admin.v2alpha.ServerInfo_State" json:"state,omitempty"` + UptimeCurrentEpoch *duration.Duration `protobuf:"bytes,3,opt,name=uptime_current_epoch,json=uptimeCurrentEpoch,proto3" json:"uptime_current_epoch,omitempty"` + UptimeAllEpochs *duration.Duration `protobuf:"bytes,4,opt,name=uptime_all_epochs,json=uptimeAllEpochs,proto3" json:"uptime_all_epochs,omitempty"` + HotRestartVersion string `protobuf:"bytes,5,opt,name=hot_restart_version,json=hotRestartVersion,proto3" json:"hot_restart_version,omitempty"` + CommandLineOptions *CommandLineOptions `protobuf:"bytes,6,opt,name=command_line_options,json=commandLineOptions,proto3" json:"command_line_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfo) Reset() { *m = ServerInfo{} } +func (m *ServerInfo) String() string { return proto.CompactTextString(m) } +func (*ServerInfo) ProtoMessage() {} +func (*ServerInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0f406f9d75bf97, []int{0} +} + +func (m *ServerInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServerInfo.Unmarshal(m, b) +} +func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServerInfo.Marshal(b, m, deterministic) +} +func (m *ServerInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfo.Merge(m, src) +} +func (m *ServerInfo) XXX_Size() int { + return xxx_messageInfo_ServerInfo.Size(m) +} +func (m *ServerInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ServerInfo proto.InternalMessageInfo + +func (m *ServerInfo) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ServerInfo) GetState() ServerInfo_State { + if m != nil { + return m.State + } + return ServerInfo_LIVE +} + +func (m *ServerInfo) GetUptimeCurrentEpoch() *duration.Duration { + if m != nil { + return m.UptimeCurrentEpoch + } + return nil +} + +func (m *ServerInfo) GetUptimeAllEpochs() *duration.Duration { + if m != nil { + return m.UptimeAllEpochs + } + return nil +} + +func (m *ServerInfo) GetHotRestartVersion() string { + if m != nil { + return m.HotRestartVersion + } + return "" +} + +func (m *ServerInfo) GetCommandLineOptions() *CommandLineOptions { + if m != nil { + return m.CommandLineOptions + } + return nil +} + +type CommandLineOptions struct { + BaseId uint64 `protobuf:"varint,1,opt,name=base_id,json=baseId,proto3" json:"base_id,omitempty"` + Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + ConfigPath string `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + ConfigYaml string `protobuf:"bytes,4,opt,name=config_yaml,json=configYaml,proto3" json:"config_yaml,omitempty"` + AllowUnknownStaticFields bool `protobuf:"varint,5,opt,name=allow_unknown_static_fields,json=allowUnknownStaticFields,proto3" json:"allow_unknown_static_fields,omitempty"` + RejectUnknownDynamicFields bool `protobuf:"varint,26,opt,name=reject_unknown_dynamic_fields,json=rejectUnknownDynamicFields,proto3" json:"reject_unknown_dynamic_fields,omitempty"` + AdminAddressPath string `protobuf:"bytes,6,opt,name=admin_address_path,json=adminAddressPath,proto3" json:"admin_address_path,omitempty"` + LocalAddressIpVersion CommandLineOptions_IpVersion `protobuf:"varint,7,opt,name=local_address_ip_version,json=localAddressIpVersion,proto3,enum=envoy.admin.v2alpha.CommandLineOptions_IpVersion" json:"local_address_ip_version,omitempty"` + LogLevel string `protobuf:"bytes,8,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` + ComponentLogLevel string `protobuf:"bytes,9,opt,name=component_log_level,json=componentLogLevel,proto3" json:"component_log_level,omitempty"` + LogFormat string `protobuf:"bytes,10,opt,name=log_format,json=logFormat,proto3" json:"log_format,omitempty"` + LogFormatEscaped bool `protobuf:"varint,27,opt,name=log_format_escaped,json=logFormatEscaped,proto3" json:"log_format_escaped,omitempty"` + LogPath string `protobuf:"bytes,11,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"` + ServiceCluster string `protobuf:"bytes,13,opt,name=service_cluster,json=serviceCluster,proto3" json:"service_cluster,omitempty"` + ServiceNode string `protobuf:"bytes,14,opt,name=service_node,json=serviceNode,proto3" json:"service_node,omitempty"` + ServiceZone string `protobuf:"bytes,15,opt,name=service_zone,json=serviceZone,proto3" json:"service_zone,omitempty"` + FileFlushInterval *duration.Duration `protobuf:"bytes,16,opt,name=file_flush_interval,json=fileFlushInterval,proto3" json:"file_flush_interval,omitempty"` + DrainTime *duration.Duration `protobuf:"bytes,17,opt,name=drain_time,json=drainTime,proto3" json:"drain_time,omitempty"` + ParentShutdownTime *duration.Duration `protobuf:"bytes,18,opt,name=parent_shutdown_time,json=parentShutdownTime,proto3" json:"parent_shutdown_time,omitempty"` + Mode CommandLineOptions_Mode `protobuf:"varint,19,opt,name=mode,proto3,enum=envoy.admin.v2alpha.CommandLineOptions_Mode" json:"mode,omitempty"` + MaxStats uint64 `protobuf:"varint,20,opt,name=max_stats,json=maxStats,proto3" json:"max_stats,omitempty"` // Deprecated: Do not use. + MaxObjNameLen uint64 `protobuf:"varint,21,opt,name=max_obj_name_len,json=maxObjNameLen,proto3" json:"max_obj_name_len,omitempty"` // Deprecated: Do not use. + DisableHotRestart bool `protobuf:"varint,22,opt,name=disable_hot_restart,json=disableHotRestart,proto3" json:"disable_hot_restart,omitempty"` + EnableMutexTracing bool `protobuf:"varint,23,opt,name=enable_mutex_tracing,json=enableMutexTracing,proto3" json:"enable_mutex_tracing,omitempty"` + RestartEpoch uint32 `protobuf:"varint,24,opt,name=restart_epoch,json=restartEpoch,proto3" json:"restart_epoch,omitempty"` + CpusetThreads bool `protobuf:"varint,25,opt,name=cpuset_threads,json=cpusetThreads,proto3" json:"cpuset_threads,omitempty"` + DisabledExtensions []string `protobuf:"bytes,28,rep,name=disabled_extensions,json=disabledExtensions,proto3" json:"disabled_extensions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandLineOptions) Reset() { *m = CommandLineOptions{} } +func (m *CommandLineOptions) String() string { return proto.CompactTextString(m) } +func (*CommandLineOptions) ProtoMessage() {} +func (*CommandLineOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_ed0f406f9d75bf97, []int{1} +} + +func (m *CommandLineOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommandLineOptions.Unmarshal(m, b) +} +func (m *CommandLineOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommandLineOptions.Marshal(b, m, deterministic) +} +func (m *CommandLineOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandLineOptions.Merge(m, src) +} +func (m *CommandLineOptions) XXX_Size() int { + return xxx_messageInfo_CommandLineOptions.Size(m) +} +func (m *CommandLineOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CommandLineOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CommandLineOptions proto.InternalMessageInfo + +func (m *CommandLineOptions) GetBaseId() uint64 { + if m != nil { + return m.BaseId + } + return 0 +} + +func (m *CommandLineOptions) GetConcurrency() uint32 { + if m != nil { + return m.Concurrency + } + return 0 +} + +func (m *CommandLineOptions) GetConfigPath() string { + if m != nil { + return m.ConfigPath + } + return "" +} + +func (m *CommandLineOptions) GetConfigYaml() string { + if m != nil { + return m.ConfigYaml + } + return "" +} + +func (m *CommandLineOptions) GetAllowUnknownStaticFields() bool { + if m != nil { + return m.AllowUnknownStaticFields + } + return false +} + +func (m *CommandLineOptions) GetRejectUnknownDynamicFields() bool { + if m != nil { + return m.RejectUnknownDynamicFields + } + return false +} + +func (m *CommandLineOptions) GetAdminAddressPath() string { + if m != nil { + return m.AdminAddressPath + } + return "" +} + +func (m *CommandLineOptions) GetLocalAddressIpVersion() CommandLineOptions_IpVersion { + if m != nil { + return m.LocalAddressIpVersion + } + return CommandLineOptions_v4 +} + +func (m *CommandLineOptions) GetLogLevel() string { + if m != nil { + return m.LogLevel + } + return "" +} + +func (m *CommandLineOptions) GetComponentLogLevel() string { + if m != nil { + return m.ComponentLogLevel + } + return "" +} + +func (m *CommandLineOptions) GetLogFormat() string { + if m != nil { + return m.LogFormat + } + return "" +} + +func (m *CommandLineOptions) GetLogFormatEscaped() bool { + if m != nil { + return m.LogFormatEscaped + } + return false +} + +func (m *CommandLineOptions) GetLogPath() string { + if m != nil { + return m.LogPath + } + return "" +} + +func (m *CommandLineOptions) GetServiceCluster() string { + if m != nil { + return m.ServiceCluster + } + return "" +} + +func (m *CommandLineOptions) GetServiceNode() string { + if m != nil { + return m.ServiceNode + } + return "" +} + +func (m *CommandLineOptions) GetServiceZone() string { + if m != nil { + return m.ServiceZone + } + return "" +} + +func (m *CommandLineOptions) GetFileFlushInterval() *duration.Duration { + if m != nil { + return m.FileFlushInterval + } + return nil +} + +func (m *CommandLineOptions) GetDrainTime() *duration.Duration { + if m != nil { + return m.DrainTime + } + return nil +} + +func (m *CommandLineOptions) GetParentShutdownTime() *duration.Duration { + if m != nil { + return m.ParentShutdownTime + } + return nil +} + +func (m *CommandLineOptions) GetMode() CommandLineOptions_Mode { + if m != nil { + return m.Mode + } + return CommandLineOptions_Serve +} + +// Deprecated: Do not use. +func (m *CommandLineOptions) GetMaxStats() uint64 { + if m != nil { + return m.MaxStats + } + return 0 +} + +// Deprecated: Do not use. +func (m *CommandLineOptions) GetMaxObjNameLen() uint64 { + if m != nil { + return m.MaxObjNameLen + } + return 0 +} + +func (m *CommandLineOptions) GetDisableHotRestart() bool { + if m != nil { + return m.DisableHotRestart + } + return false +} + +func (m *CommandLineOptions) GetEnableMutexTracing() bool { + if m != nil { + return m.EnableMutexTracing + } + return false +} + +func (m *CommandLineOptions) GetRestartEpoch() uint32 { + if m != nil { + return m.RestartEpoch + } + return 0 +} + +func (m *CommandLineOptions) GetCpusetThreads() bool { + if m != nil { + return m.CpusetThreads + } + return false +} + +func (m *CommandLineOptions) GetDisabledExtensions() []string { + if m != nil { + return m.DisabledExtensions + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.admin.v2alpha.ServerInfo_State", ServerInfo_State_name, ServerInfo_State_value) + proto.RegisterEnum("envoy.admin.v2alpha.CommandLineOptions_IpVersion", CommandLineOptions_IpVersion_name, CommandLineOptions_IpVersion_value) + proto.RegisterEnum("envoy.admin.v2alpha.CommandLineOptions_Mode", CommandLineOptions_Mode_name, CommandLineOptions_Mode_value) + proto.RegisterType((*ServerInfo)(nil), "envoy.admin.v2alpha.ServerInfo") + proto.RegisterType((*CommandLineOptions)(nil), "envoy.admin.v2alpha.CommandLineOptions") +} + +func init() { + proto.RegisterFile("envoy/admin/v2alpha/server_info.proto", fileDescriptor_ed0f406f9d75bf97) +} + +var fileDescriptor_ed0f406f9d75bf97 = []byte{ + // 1052 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xc7, 0xeb, 0xc4, 0x71, 0xed, 0x49, 0x9c, 0x6c, 0x26, 0x29, 0x9d, 0x26, 0x14, 0xd2, 0x54, + 0x51, 0x73, 0x51, 0xd6, 0x34, 0x20, 0x84, 0x84, 0x40, 0xe4, 0xc3, 0x29, 0x0b, 0x6e, 0x12, 0x6d, + 0x42, 0xa4, 0xf6, 0x66, 0x34, 0xde, 0x1d, 0xdb, 0x1b, 0x66, 0x67, 0x56, 0x3b, 0xb3, 0xae, 0xcd, + 0x15, 0x8f, 0x85, 0x78, 0x02, 0x24, 0xae, 0xe0, 0x41, 0x10, 0xe2, 0x09, 0xd0, 0x9c, 0x59, 0xdb, + 0x09, 0x8d, 0x94, 0x5e, 0x59, 0x73, 0xce, 0xef, 0xfc, 0x3d, 0xe7, 0x63, 0xce, 0xa2, 0x1d, 0x2e, + 0x87, 0x6a, 0xdc, 0x62, 0x71, 0x9a, 0xc8, 0xd6, 0x70, 0x8f, 0x89, 0x6c, 0xc0, 0x5a, 0x9a, 0xe7, + 0x43, 0x9e, 0xd3, 0x44, 0xf6, 0x94, 0x9f, 0xe5, 0xca, 0x28, 0xbc, 0x06, 0x98, 0x0f, 0x98, 0x5f, + 0x62, 0x1b, 0x1f, 0xf5, 0x95, 0xea, 0x0b, 0xde, 0x02, 0xa4, 0x5b, 0xf4, 0x5a, 0x71, 0x91, 0x33, + 0x93, 0x28, 0xe9, 0x82, 0x36, 0x9e, 0x96, 0xda, 0x52, 0x2a, 0x03, 0x76, 0xdd, 0x8a, 0x79, 0x96, + 0xf3, 0xe8, 0x3a, 0xf4, 0xb8, 0x88, 0x33, 0x76, 0x83, 0xd1, 0x86, 0x99, 0x42, 0x3b, 0xf7, 0xf6, + 0x1f, 0xf3, 0x08, 0x9d, 0xc3, 0x75, 0x02, 0xd9, 0x53, 0x98, 0xa0, 0xfb, 0x43, 0x9e, 0xeb, 0x44, + 0x49, 0x52, 0xd9, 0xaa, 0xec, 0x36, 0xc2, 0xc9, 0x11, 0x7f, 0x85, 0x16, 0x6c, 0x20, 0x27, 0x73, + 0x5b, 0x95, 0xdd, 0xe5, 0xbd, 0x1d, 0xff, 0x96, 0x1b, 0xfb, 0x33, 0x25, 0xff, 0xdc, 0xc2, 0xa1, + 0x8b, 0xc1, 0x3f, 0xa0, 0xf5, 0x22, 0x33, 0x49, 0xca, 0x69, 0x54, 0xe4, 0x39, 0x97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 0xc5, 0x48, 0x49, 0xd7, 0x93, 0x68, 0x0c, 0xad, 0x6d, 0x86, 0xd7, 0x4d, + 0xf8, 0x63, 0x20, 0x7a, 0x49, 0x9f, 0x66, 0xcc, 0xb8, 0x86, 0x35, 0x42, 0xe4, 0x4c, 0x67, 0xcc, + 0x0c, 0xae, 0x01, 0x63, 0x96, 0x0a, 0xe8, 0xc3, 0x14, 0x78, 0xcd, 0x52, 0x81, 0xbf, 0x46, 0x9b, + 0x4c, 0x08, 0xf5, 0x96, 0x16, 0xf2, 0x27, 0xa9, 0xde, 0x4a, 0x6a, 0x47, 0x22, 0x89, 0x68, 0x2f, + 0xe1, 0x22, 0xd6, 0x50, 0xef, 0x7a, 0x48, 0x00, 0xf9, 0xd1, 0x11, 0xe7, 0x00, 0x1c, 0x83, 0x1f, + 0xef, 0xa3, 0xc7, 0x39, 0xbf, 0xe2, 0x91, 0x99, 0xc6, 0xc7, 0x63, 0xc9, 0xd2, 0x99, 0xc0, 0x06, + 0x08, 0x6c, 0x38, 0xa8, 0x54, 0x38, 0x72, 0x48, 0x29, 0xf1, 0x1c, 0x61, 0x68, 0x0b, 0x65, 0x71, + 0x9c, 0x73, 0xad, 0x5d, 0x2a, 0x35, 0xb8, 0xa9, 0x07, 0x9e, 0x7d, 0xe7, 0x80, 0x84, 0xae, 0x10, + 0x11, 0x2a, 0x62, 0x62, 0x4a, 0x27, 0xd9, 0x74, 0x38, 0xee, 0xc3, 0xec, 0xbf, 0x78, 0xcf, 0x5e, + 0xfb, 0x41, 0x56, 0x0e, 0x4f, 0xf8, 0x00, 0x24, 0xcb, 0xbf, 0x99, 0x9a, 0xf1, 0x26, 0x6a, 0x08, + 0xd5, 0xa7, 0x82, 0x0f, 0xb9, 0x20, 0x75, 0xb8, 0x50, 0x5d, 0xa8, 0x7e, 0xc7, 0x9e, 0xed, 0x80, + 0x46, 0x2a, 0xcd, 0x94, 0xb4, 0xef, 0x65, 0x86, 0x35, 0xdc, 0x80, 0x4e, 0x5d, 0x9d, 0x09, 0xff, + 0x18, 0x21, 0x4b, 0xf5, 0x54, 0x9e, 0x32, 0x43, 0x10, 0x60, 0x56, 0xfe, 0x18, 0x0c, 0xb6, 0x0a, + 0x33, 0x37, 0xe5, 0x3a, 0x62, 0x19, 0x8f, 0xc9, 0x26, 0x54, 0xcf, 0x9b, 0x62, 0x6d, 0x67, 0xc7, + 0x8f, 0x90, 0xbd, 0x88, 0xab, 0xd4, 0xa2, 0xdb, 0x04, 0x42, 0xb9, 0x8e, 0x3f, 0x43, 0x2b, 0x76, + 0x81, 0x25, 0x11, 0xa7, 0x91, 0x28, 0xb4, 0xe1, 0x39, 0x69, 0x02, 0xb1, 0x5c, 0x9a, 0x0f, 0x9d, + 0x15, 0x3f, 0x41, 0x4b, 0x13, 0x50, 0xaa, 0x98, 0x93, 0x65, 0xa0, 0x16, 0x4b, 0xdb, 0x89, 0x8a, + 0xf9, 0x75, 0xe4, 0x67, 0x25, 0x39, 0x59, 0xb9, 0x81, 0xbc, 0x51, 0x92, 0xe3, 0x00, 0xad, 0xf5, + 0x12, 0xc1, 0x69, 0x4f, 0x14, 0x7a, 0x40, 0x13, 0x69, 0x78, 0x3e, 0x64, 0x82, 0x78, 0x77, 0x3d, + 0xf8, 0x55, 0x1b, 0x75, 0x6c, 0x83, 0x82, 0x32, 0x06, 0x7f, 0x89, 0x50, 0x9c, 0xb3, 0x44, 0x52, + 0xbb, 0x09, 0xc8, 0xea, 0x5d, 0x0a, 0x0d, 0x80, 0x2f, 0x92, 0x14, 0x16, 0x58, 0xc6, 0x60, 0x71, + 0xe9, 0x41, 0x61, 0x62, 0x3b, 0x86, 0xa0, 0x81, 0xef, 0x5c, 0x60, 0x2e, 0xec, 0xbc, 0x8c, 0x02, + 0xb1, 0x6f, 0x51, 0x35, 0xb5, 0xf5, 0x58, 0x83, 0x69, 0x7a, 0xfe, 0xbe, 0xd3, 0xf4, 0x4a, 0xc5, + 0x3c, 0x84, 0x48, 0xbc, 0x83, 0x1a,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6, 0xb8, 0x81, 0x16, 0xe0, 0x43, + 0xe6, 0xd6, 0xf0, 0x25, 0x13, 0x49, 0xcc, 0x0c, 0xf7, 0x2a, 0xf6, 0x14, 0xc8, 0xc4, 0x9c, 0x4a, + 0x31, 0xf6, 0xe6, 0xbe, 0xaf, 0xd6, 0x97, 0xbc, 0xe6, 0xc1, 0x37, 0xbf, 0xfd, 0xf2, 0xfb, 0x9f, + 0xb5, 0x39, 0xaf, 0x82, 0x9e, 0x24, 0xca, 0xb5, 0x32, 0xcb, 0xd5, 0x68, 0x7c, 0x5b, 0x57, 0x0f, + 0x56, 0x66, 0x1f, 0xc8, 0x33, 0x3b, 0x2a, 0x67, 0x95, 0x6e, 0x0d, 0x66, 0xe6, 0xb3, 0xff, 0x02, + 0x00, 0x00, 0xff, 0xff, 0xd0, 0x09, 0xf7, 0x5d, 0x29, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.validate.go new file mode 100644 index 000000000..391e4ed77 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/server_info.pb.validate.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/server_info.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _server_info_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ServerInfo with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ServerInfo) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Version + + // no validation rules for State + + if v, ok := interface{}(m.GetUptimeCurrentEpoch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "UptimeCurrentEpoch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUptimeAllEpochs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "UptimeAllEpochs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for HotRestartVersion + + if v, ok := interface{}(m.GetCommandLineOptions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "CommandLineOptions", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ServerInfoValidationError is the validation error returned by +// ServerInfo.Validate if the designated constraints aren't met. +type ServerInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ServerInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ServerInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ServerInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ServerInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ServerInfoValidationError) ErrorName() string { return "ServerInfoValidationError" } + +// Error satisfies the builtin error interface +func (e ServerInfoValidationError) 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 %sServerInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ServerInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ServerInfoValidationError{} + +// Validate checks the field values on CommandLineOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommandLineOptions) Validate() error { + if m == nil { + return nil + } + + // no validation rules for BaseId + + // no validation rules for Concurrency + + // no validation rules for ConfigPath + + // no validation rules for ConfigYaml + + // no validation rules for AllowUnknownStaticFields + + // no validation rules for RejectUnknownDynamicFields + + // no validation rules for AdminAddressPath + + // no validation rules for LocalAddressIpVersion + + // no validation rules for LogLevel + + // no validation rules for ComponentLogLevel + + // no validation rules for LogFormat + + // no validation rules for LogFormatEscaped + + // no validation rules for LogPath + + // no validation rules for ServiceCluster + + // no validation rules for ServiceNode + + // no validation rules for ServiceZone + + if v, ok := interface{}(m.GetFileFlushInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "FileFlushInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDrainTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "DrainTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentShutdownTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "ParentShutdownTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Mode + + // no validation rules for MaxStats + + // no validation rules for MaxObjNameLen + + // no validation rules for DisableHotRestart + + // no validation rules for EnableMutexTracing + + // no validation rules for RestartEpoch + + // no validation rules for CpusetThreads + + return nil +} + +// CommandLineOptionsValidationError is the validation error returned by +// CommandLineOptions.Validate if the designated constraints aren't met. +type CommandLineOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommandLineOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommandLineOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommandLineOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommandLineOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommandLineOptionsValidationError) ErrorName() string { + return "CommandLineOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e CommandLineOptionsValidationError) 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 %sCommandLineOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommandLineOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommandLineOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.go new file mode 100644 index 000000000..d2ae1d1ed --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.go @@ -0,0 +1,98 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v2alpha/tap.proto + +package envoy_admin_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TapRequest struct { + ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` + TapConfig *v2alpha.TapConfig `protobuf:"bytes,2,opt,name=tap_config,json=tapConfig,proto3" json:"tap_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapRequest) Reset() { *m = TapRequest{} } +func (m *TapRequest) String() string { return proto.CompactTextString(m) } +func (*TapRequest) ProtoMessage() {} +func (*TapRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_69ef50f493e7b8aa, []int{0} +} + +func (m *TapRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapRequest.Unmarshal(m, b) +} +func (m *TapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapRequest.Marshal(b, m, deterministic) +} +func (m *TapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapRequest.Merge(m, src) +} +func (m *TapRequest) XXX_Size() int { + return xxx_messageInfo_TapRequest.Size(m) +} +func (m *TapRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TapRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TapRequest proto.InternalMessageInfo + +func (m *TapRequest) GetConfigId() string { + if m != nil { + return m.ConfigId + } + return "" +} + +func (m *TapRequest) GetTapConfig() *v2alpha.TapConfig { + if m != nil { + return m.TapConfig + } + return nil +} + +func init() { + proto.RegisterType((*TapRequest)(nil), "envoy.admin.v2alpha.TapRequest") +} + +func init() { proto.RegisterFile("envoy/admin/v2alpha/tap.proto", fileDescriptor_69ef50f493e7b8aa) } + +var fileDescriptor_69ef50f493e7b8aa = []byte{ + // 265 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x31, 0x4f, 0xf3, 0x30, + 0x10, 0x86, 0xe5, 0xe8, 0xfb, 0x4a, 0x62, 0x96, 0x2a, 0x0c, 0x54, 0x95, 0x2a, 0x05, 0x54, 0xa1, + 0x4e, 0xb6, 0x54, 0x06, 0xf6, 0x30, 0x31, 0x20, 0x55, 0x51, 0xf6, 0xea, 0x88, 0x0d, 0x58, 0x6a, + 0x7c, 0x26, 0xbe, 0x44, 0x74, 0x83, 0x95, 0x9f, 0xc4, 0x2f, 0x60, 0xe5, 0xef, 0x74, 0x42, 0x89, + 0x43, 0x27, 0x36, 0xdb, 0xcf, 0xbd, 0xd6, 0xf3, 0x1e, 0x5f, 0x68, 0xdb, 0xe1, 0x5e, 0x82, 0xaa, + 0x8d, 0x95, 0xdd, 0x1a, 0x76, 0xee, 0x19, 0x24, 0x81, 0x13, 0xae, 0x41, 0xc2, 0xf4, 0x6c, 0xc0, + 0x62, 0xc0, 0x62, 0xc4, 0xf3, 0xab, 0x90, 0xf1, 0xba, 0xe9, 0x4c, 0xa5, 0xfb, 0xe9, 0x63, 0xb2, + 0xc2, 0xba, 0x46, 0x1b, 0xc2, 0xf3, 0x45, 0xab, 0x1c, 0x48, 0xb0, 0x16, 0x09, 0xc8, 0xa0, 0xf5, + 0xd2, 0x13, 0x50, 0xeb, 0x47, 0x7c, 0xde, 0xc1, 0xce, 0x28, 0x20, 0x2d, 0x7f, 0x0f, 0x01, 0x5c, + 0xbe, 0x33, 0xce, 0x4b, 0x70, 0x85, 0x7e, 0x69, 0xb5, 0xa7, 0x74, 0xc9, 0x93, 0x0a, 0xed, 0xa3, + 0x79, 0xda, 0x1a, 0x35, 0x63, 0x19, 0x5b, 0x25, 0xf9, 0xc9, 0x21, 0xff, 0xd7, 0x44, 0x19, 0x2b, + 0xe2, 0x40, 0xee, 0x54, 0x7a, 0xcf, 0x39, 0x81, 0xdb, 0x86, 0xfb, 0x2c, 0xca, 0xd8, 0xea, 0x74, + 0xbd, 0x14, 0x41, 0x7f, 0x34, 0x15, 0x7d, 0xaf, 0xd1, 0x54, 0x94, 0xe0, 0x6e, 0x87, 0xd9, 0x3c, + 0x3e, 0xe4, 0xff, 0x3f, 0x58, 0x34, 0x65, 0x45, 0x42, 0xc7, 0xc7, 0x9b, 0xcf, 0xb7, 0xaf, 0xef, + 0x49, 0x34, 0x65, 0xfc, 0xc2, 0x60, 0xf8, 0xc6, 0x35, 0xf8, 0xba, 0x17, 0x7f, 0x2c, 0x24, 0x8f, + 0x4b, 0x70, 0x9b, 0x5e, 0x7d, 0xc3, 0x1e, 0x26, 0x43, 0x87, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x0f, 0x93, 0xc7, 0xd5, 0x59, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.validate.go new file mode 100644 index 000000000..b9fb58d52 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha/tap.pb.validate.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v2alpha/tap.proto + +package envoy_admin_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapRequest with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TapRequest) Validate() error { + if m == nil { + return nil + } + + if len(m.GetConfigId()) < 1 { + return TapRequestValidationError{ + field: "ConfigId", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetTapConfig() == nil { + return TapRequestValidationError{ + field: "TapConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTapConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapRequestValidationError{ + field: "TapConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapRequestValidationError is the validation error returned by +// TapRequest.Validate if the designated constraints aren't met. +type TapRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapRequestValidationError) ErrorName() string { return "TapRequestValidationError" } + +// Error satisfies the builtin error interface +func (e TapRequestValidationError) 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 %sTapRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapRequestValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.go new file mode 100644 index 000000000..b1ede809e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.go @@ -0,0 +1,330 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/certs.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Certificates struct { + Certificates []*Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificates) Reset() { *m = Certificates{} } +func (m *Certificates) String() string { return proto.CompactTextString(m) } +func (*Certificates) ProtoMessage() {} +func (*Certificates) Descriptor() ([]byte, []int) { + return fileDescriptor_51228a64c985b2dc, []int{0} +} + +func (m *Certificates) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificates.Unmarshal(m, b) +} +func (m *Certificates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificates.Marshal(b, m, deterministic) +} +func (m *Certificates) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificates.Merge(m, src) +} +func (m *Certificates) XXX_Size() int { + return xxx_messageInfo_Certificates.Size(m) +} +func (m *Certificates) XXX_DiscardUnknown() { + xxx_messageInfo_Certificates.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificates proto.InternalMessageInfo + +func (m *Certificates) GetCertificates() []*Certificate { + if m != nil { + return m.Certificates + } + return nil +} + +type Certificate struct { + CaCert []*CertificateDetails `protobuf:"bytes,1,rep,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"` + CertChain []*CertificateDetails `protobuf:"bytes,2,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_51228a64c985b2dc, []int{1} +} + +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) +} +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) +} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) +} +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificate proto.InternalMessageInfo + +func (m *Certificate) GetCaCert() []*CertificateDetails { + if m != nil { + return m.CaCert + } + return nil +} + +func (m *Certificate) GetCertChain() []*CertificateDetails { + if m != nil { + return m.CertChain + } + return nil +} + +type CertificateDetails struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + SubjectAltNames []*SubjectAlternateName `protobuf:"bytes,3,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"` + DaysUntilExpiration uint64 `protobuf:"varint,4,opt,name=days_until_expiration,json=daysUntilExpiration,proto3" json:"days_until_expiration,omitempty"` + ValidFrom *timestamp.Timestamp `protobuf:"bytes,5,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"` + ExpirationTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CertificateDetails) Reset() { *m = CertificateDetails{} } +func (m *CertificateDetails) String() string { return proto.CompactTextString(m) } +func (*CertificateDetails) ProtoMessage() {} +func (*CertificateDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_51228a64c985b2dc, []int{2} +} + +func (m *CertificateDetails) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateDetails.Unmarshal(m, b) +} +func (m *CertificateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateDetails.Marshal(b, m, deterministic) +} +func (m *CertificateDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateDetails.Merge(m, src) +} +func (m *CertificateDetails) XXX_Size() int { + return xxx_messageInfo_CertificateDetails.Size(m) +} +func (m *CertificateDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateDetails proto.InternalMessageInfo + +func (m *CertificateDetails) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *CertificateDetails) GetSerialNumber() string { + if m != nil { + return m.SerialNumber + } + return "" +} + +func (m *CertificateDetails) GetSubjectAltNames() []*SubjectAlternateName { + if m != nil { + return m.SubjectAltNames + } + return nil +} + +func (m *CertificateDetails) GetDaysUntilExpiration() uint64 { + if m != nil { + return m.DaysUntilExpiration + } + return 0 +} + +func (m *CertificateDetails) GetValidFrom() *timestamp.Timestamp { + if m != nil { + return m.ValidFrom + } + return nil +} + +func (m *CertificateDetails) GetExpirationTime() *timestamp.Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +type SubjectAlternateName struct { + // Types that are valid to be assigned to Name: + // *SubjectAlternateName_Dns + // *SubjectAlternateName_Uri + // *SubjectAlternateName_IpAddress + Name isSubjectAlternateName_Name `protobuf_oneof:"name"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubjectAlternateName) Reset() { *m = SubjectAlternateName{} } +func (m *SubjectAlternateName) String() string { return proto.CompactTextString(m) } +func (*SubjectAlternateName) ProtoMessage() {} +func (*SubjectAlternateName) Descriptor() ([]byte, []int) { + return fileDescriptor_51228a64c985b2dc, []int{3} +} + +func (m *SubjectAlternateName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubjectAlternateName.Unmarshal(m, b) +} +func (m *SubjectAlternateName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubjectAlternateName.Marshal(b, m, deterministic) +} +func (m *SubjectAlternateName) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubjectAlternateName.Merge(m, src) +} +func (m *SubjectAlternateName) XXX_Size() int { + return xxx_messageInfo_SubjectAlternateName.Size(m) +} +func (m *SubjectAlternateName) XXX_DiscardUnknown() { + xxx_messageInfo_SubjectAlternateName.DiscardUnknown(m) +} + +var xxx_messageInfo_SubjectAlternateName proto.InternalMessageInfo + +type isSubjectAlternateName_Name interface { + isSubjectAlternateName_Name() +} + +type SubjectAlternateName_Dns struct { + Dns string `protobuf:"bytes,1,opt,name=dns,proto3,oneof"` +} + +type SubjectAlternateName_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +type SubjectAlternateName_IpAddress struct { + IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3,oneof"` +} + +func (*SubjectAlternateName_Dns) isSubjectAlternateName_Name() {} + +func (*SubjectAlternateName_Uri) isSubjectAlternateName_Name() {} + +func (*SubjectAlternateName_IpAddress) isSubjectAlternateName_Name() {} + +func (m *SubjectAlternateName) GetName() isSubjectAlternateName_Name { + if m != nil { + return m.Name + } + return nil +} + +func (m *SubjectAlternateName) GetDns() string { + if x, ok := m.GetName().(*SubjectAlternateName_Dns); ok { + return x.Dns + } + return "" +} + +func (m *SubjectAlternateName) GetUri() string { + if x, ok := m.GetName().(*SubjectAlternateName_Uri); ok { + return x.Uri + } + return "" +} + +func (m *SubjectAlternateName) GetIpAddress() string { + if x, ok := m.GetName().(*SubjectAlternateName_IpAddress); ok { + return x.IpAddress + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SubjectAlternateName) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SubjectAlternateName_Dns)(nil), + (*SubjectAlternateName_Uri)(nil), + (*SubjectAlternateName_IpAddress)(nil), + } +} + +func init() { + proto.RegisterType((*Certificates)(nil), "envoy.admin.v3.Certificates") + proto.RegisterType((*Certificate)(nil), "envoy.admin.v3.Certificate") + proto.RegisterType((*CertificateDetails)(nil), "envoy.admin.v3.CertificateDetails") + proto.RegisterType((*SubjectAlternateName)(nil), "envoy.admin.v3.SubjectAlternateName") +} + +func init() { proto.RegisterFile("envoy/admin/v3/certs.proto", fileDescriptor_51228a64c985b2dc) } + +var fileDescriptor_51228a64c985b2dc = []byte{ + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x8e, 0x12, 0x4d, + 0x14, 0xfd, 0x1a, 0xf8, 0x30, 0xdc, 0xc1, 0x19, 0x2d, 0x35, 0xe9, 0xe0, 0x0f, 0x4c, 0x6b, 0xc6, + 0x8e, 0x89, 0xdd, 0x09, 0xb8, 0x11, 0x17, 0x06, 0x50, 0xe3, 0x6a, 0x42, 0x5a, 0x5d, 0x77, 0x2e, + 0xdd, 0x05, 0x94, 0xe9, 0xae, 0xea, 0x54, 0x55, 0x13, 0xd8, 0x19, 0x57, 0x3e, 0x82, 0xf1, 0x3d, + 0xdc, 0xb8, 0x37, 0x71, 0xeb, 0x1b, 0x99, 0xea, 0x66, 0x66, 0x60, 0x86, 0x88, 0xbb, 0xaa, 0x73, + 0xee, 0xb9, 0x3f, 0xe7, 0x5e, 0x68, 0x51, 0xbe, 0x10, 0x2b, 0x1f, 0xe3, 0x94, 0x71, 0x7f, 0xd1, + 0xf3, 0x23, 0x2a, 0xb5, 0xf2, 0x32, 0x29, 0xb4, 0x20, 0x87, 0x05, 0xe7, 0x15, 0x9c, 0xb7, 0xe8, + 0xb5, 0xda, 0x33, 0x21, 0x66, 0x09, 0xf5, 0x0b, 0x76, 0x92, 0x4f, 0x7d, 0xcd, 0x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0xd9, 0xdd, 0xf0, 0xd9, 0x8f, 0x4f, + 0xbf, 0x7e, 0xd7, 0x2b, 0x37, 0x2a, 0x70, 0x8f, 0x89, 0x72, 0x81, 0x99, 0x14, 0xcb, 0xd5, 0xa5, + 0x5d, 0x0e, 0xc1, 0x8c, 0xa5, 0xc6, 0xc6, 0x9a, 0xb1, 0x35, 0xa9, 0x17, 0x1e, 0xf5, 0xfe, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xbc, 0x84, 0x4f, 0xb0, 0x1f, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.validate.go new file mode 100644 index 000000000..5f07e3095 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/certs.pb.validate.go @@ -0,0 +1,400 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/certs.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _certs_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Certificates with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Certificates) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetCertificates() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificatesValidationError{ + field: fmt.Sprintf("Certificates[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CertificatesValidationError is the validation error returned by +// Certificates.Validate if the designated constraints aren't met. +type CertificatesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificatesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificatesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificatesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificatesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificatesValidationError) ErrorName() string { return "CertificatesValidationError" } + +// Error satisfies the builtin error interface +func (e CertificatesValidationError) 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 %sCertificates.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificatesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificatesValidationError{} + +// Validate checks the field values on Certificate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Certificate) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetCaCert() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateValidationError{ + field: fmt.Sprintf("CaCert[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetCertChain() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateValidationError{ + field: fmt.Sprintf("CertChain[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CertificateValidationError is the validation error returned by +// Certificate.Validate if the designated constraints aren't met. +type CertificateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificateValidationError) ErrorName() string { return "CertificateValidationError" } + +// Error satisfies the builtin error interface +func (e CertificateValidationError) 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 %sCertificate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificateValidationError{} + +// Validate checks the field values on CertificateDetails with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CertificateDetails) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Path + + // no validation rules for SerialNumber + + for idx, item := range m.GetSubjectAltNames() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: fmt.Sprintf("SubjectAltNames[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for DaysUntilExpiration + + if v, ok := interface{}(m.GetValidFrom()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: "ValidFrom", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetExpirationTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CertificateDetailsValidationError{ + field: "ExpirationTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CertificateDetailsValidationError is the validation error returned by +// CertificateDetails.Validate if the designated constraints aren't met. +type CertificateDetailsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CertificateDetailsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CertificateDetailsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CertificateDetailsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CertificateDetailsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CertificateDetailsValidationError) ErrorName() string { + return "CertificateDetailsValidationError" +} + +// Error satisfies the builtin error interface +func (e CertificateDetailsValidationError) 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 %sCertificateDetails.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CertificateDetailsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CertificateDetailsValidationError{} + +// Validate checks the field values on SubjectAlternateName with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SubjectAlternateName) Validate() error { + if m == nil { + return nil + } + + switch m.Name.(type) { + + case *SubjectAlternateName_Dns: + // no validation rules for Dns + + case *SubjectAlternateName_Uri: + // no validation rules for Uri + + case *SubjectAlternateName_IpAddress: + // no validation rules for IpAddress + + } + + return nil +} + +// SubjectAlternateNameValidationError is the validation error returned by +// SubjectAlternateName.Validate if the designated constraints aren't met. +type SubjectAlternateNameValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SubjectAlternateNameValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SubjectAlternateNameValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SubjectAlternateNameValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SubjectAlternateNameValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SubjectAlternateNameValidationError) ErrorName() string { + return "SubjectAlternateNameValidationError" +} + +// Error satisfies the builtin error interface +func (e SubjectAlternateNameValidationError) 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 %sSubjectAlternateName.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SubjectAlternateNameValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SubjectAlternateNameValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.go new file mode 100644 index 000000000..d571ccea0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.go @@ -0,0 +1,379 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/clusters.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Clusters struct { + ClusterStatuses []*ClusterStatus `protobuf:"bytes,1,rep,name=cluster_statuses,json=clusterStatuses,proto3" json:"cluster_statuses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Clusters) Reset() { *m = Clusters{} } +func (m *Clusters) String() string { return proto.CompactTextString(m) } +func (*Clusters) ProtoMessage() {} +func (*Clusters) Descriptor() ([]byte, []int) { + return fileDescriptor_703c0abdc0a96402, []int{0} +} + +func (m *Clusters) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Clusters.Unmarshal(m, b) +} +func (m *Clusters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Clusters.Marshal(b, m, deterministic) +} +func (m *Clusters) XXX_Merge(src proto.Message) { + xxx_messageInfo_Clusters.Merge(m, src) +} +func (m *Clusters) XXX_Size() int { + return xxx_messageInfo_Clusters.Size(m) +} +func (m *Clusters) XXX_DiscardUnknown() { + xxx_messageInfo_Clusters.DiscardUnknown(m) +} + +var xxx_messageInfo_Clusters proto.InternalMessageInfo + +func (m *Clusters) GetClusterStatuses() []*ClusterStatus { + if m != nil { + return m.ClusterStatuses + } + return nil +} + +type ClusterStatus struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + AddedViaApi bool `protobuf:"varint,2,opt,name=added_via_api,json=addedViaApi,proto3" json:"added_via_api,omitempty"` + SuccessRateEjectionThreshold *v3.Percent `protobuf:"bytes,3,opt,name=success_rate_ejection_threshold,json=successRateEjectionThreshold,proto3" json:"success_rate_ejection_threshold,omitempty"` + HostStatuses []*HostStatus `protobuf:"bytes,4,rep,name=host_statuses,json=hostStatuses,proto3" json:"host_statuses,omitempty"` + LocalOriginSuccessRateEjectionThreshold *v3.Percent `protobuf:"bytes,5,opt,name=local_origin_success_rate_ejection_threshold,json=localOriginSuccessRateEjectionThreshold,proto3" json:"local_origin_success_rate_ejection_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } +func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } +func (*ClusterStatus) ProtoMessage() {} +func (*ClusterStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_703c0abdc0a96402, []int{1} +} + +func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterStatus.Unmarshal(m, b) +} +func (m *ClusterStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterStatus.Marshal(b, m, deterministic) +} +func (m *ClusterStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterStatus.Merge(m, src) +} +func (m *ClusterStatus) XXX_Size() int { + return xxx_messageInfo_ClusterStatus.Size(m) +} +func (m *ClusterStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterStatus proto.InternalMessageInfo + +func (m *ClusterStatus) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ClusterStatus) GetAddedViaApi() bool { + if m != nil { + return m.AddedViaApi + } + return false +} + +func (m *ClusterStatus) GetSuccessRateEjectionThreshold() *v3.Percent { + if m != nil { + return m.SuccessRateEjectionThreshold + } + return nil +} + +func (m *ClusterStatus) GetHostStatuses() []*HostStatus { + if m != nil { + return m.HostStatuses + } + return nil +} + +func (m *ClusterStatus) GetLocalOriginSuccessRateEjectionThreshold() *v3.Percent { + if m != nil { + return m.LocalOriginSuccessRateEjectionThreshold + } + return nil +} + +type HostStatus struct { + Address *v31.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Stats []*SimpleMetric `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` + HealthStatus *HostHealthStatus `protobuf:"bytes,3,opt,name=health_status,json=healthStatus,proto3" json:"health_status,omitempty"` + SuccessRate *v3.Percent `protobuf:"bytes,4,opt,name=success_rate,json=successRate,proto3" json:"success_rate,omitempty"` + Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` + Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` + Priority uint32 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"` + LocalOriginSuccessRate *v3.Percent `protobuf:"bytes,8,opt,name=local_origin_success_rate,json=localOriginSuccessRate,proto3" json:"local_origin_success_rate,omitempty"` + Locality *v31.Locality `protobuf:"bytes,9,opt,name=locality,proto3" json:"locality,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HostStatus) Reset() { *m = HostStatus{} } +func (m *HostStatus) String() string { return proto.CompactTextString(m) } +func (*HostStatus) ProtoMessage() {} +func (*HostStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_703c0abdc0a96402, []int{2} +} + +func (m *HostStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HostStatus.Unmarshal(m, b) +} +func (m *HostStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HostStatus.Marshal(b, m, deterministic) +} +func (m *HostStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostStatus.Merge(m, src) +} +func (m *HostStatus) XXX_Size() int { + return xxx_messageInfo_HostStatus.Size(m) +} +func (m *HostStatus) XXX_DiscardUnknown() { + xxx_messageInfo_HostStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_HostStatus proto.InternalMessageInfo + +func (m *HostStatus) GetAddress() *v31.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *HostStatus) GetStats() []*SimpleMetric { + if m != nil { + return m.Stats + } + return nil +} + +func (m *HostStatus) GetHealthStatus() *HostHealthStatus { + if m != nil { + return m.HealthStatus + } + return nil +} + +func (m *HostStatus) GetSuccessRate() *v3.Percent { + if m != nil { + return m.SuccessRate + } + return nil +} + +func (m *HostStatus) GetWeight() uint32 { + if m != nil { + return m.Weight + } + return 0 +} + +func (m *HostStatus) GetHostname() string { + if m != nil { + return m.Hostname + } + return "" +} + +func (m *HostStatus) GetPriority() uint32 { + if m != nil { + return m.Priority + } + return 0 +} + +func (m *HostStatus) GetLocalOriginSuccessRate() *v3.Percent { + if m != nil { + return m.LocalOriginSuccessRate + } + return nil +} + +func (m *HostStatus) GetLocality() *v31.Locality { + if m != nil { + return m.Locality + } + return nil +} + +type HostHealthStatus struct { + FailedActiveHealthCheck bool `protobuf:"varint,1,opt,name=failed_active_health_check,json=failedActiveHealthCheck,proto3" json:"failed_active_health_check,omitempty"` + FailedOutlierCheck bool `protobuf:"varint,2,opt,name=failed_outlier_check,json=failedOutlierCheck,proto3" json:"failed_outlier_check,omitempty"` + FailedActiveDegradedCheck bool `protobuf:"varint,4,opt,name=failed_active_degraded_check,json=failedActiveDegradedCheck,proto3" json:"failed_active_degraded_check,omitempty"` + PendingDynamicRemoval bool `protobuf:"varint,5,opt,name=pending_dynamic_removal,json=pendingDynamicRemoval,proto3" json:"pending_dynamic_removal,omitempty"` + PendingActiveHc bool `protobuf:"varint,6,opt,name=pending_active_hc,json=pendingActiveHc,proto3" json:"pending_active_hc,omitempty"` + EdsHealthStatus v31.HealthStatus `protobuf:"varint,3,opt,name=eds_health_status,json=edsHealthStatus,proto3,enum=envoy.config.core.v3.HealthStatus" json:"eds_health_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HostHealthStatus) Reset() { *m = HostHealthStatus{} } +func (m *HostHealthStatus) String() string { return proto.CompactTextString(m) } +func (*HostHealthStatus) ProtoMessage() {} +func (*HostHealthStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_703c0abdc0a96402, []int{3} +} + +func (m *HostHealthStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HostHealthStatus.Unmarshal(m, b) +} +func (m *HostHealthStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HostHealthStatus.Marshal(b, m, deterministic) +} +func (m *HostHealthStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostHealthStatus.Merge(m, src) +} +func (m *HostHealthStatus) XXX_Size() int { + return xxx_messageInfo_HostHealthStatus.Size(m) +} +func (m *HostHealthStatus) XXX_DiscardUnknown() { + xxx_messageInfo_HostHealthStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_HostHealthStatus proto.InternalMessageInfo + +func (m *HostHealthStatus) GetFailedActiveHealthCheck() bool { + if m != nil { + return m.FailedActiveHealthCheck + } + return false +} + +func (m *HostHealthStatus) GetFailedOutlierCheck() bool { + if m != nil { + return m.FailedOutlierCheck + } + return false +} + +func (m *HostHealthStatus) GetFailedActiveDegradedCheck() bool { + if m != nil { + return m.FailedActiveDegradedCheck + } + return false +} + +func (m *HostHealthStatus) GetPendingDynamicRemoval() bool { + if m != nil { + return m.PendingDynamicRemoval + } + return false +} + +func (m *HostHealthStatus) GetPendingActiveHc() bool { + if m != nil { + return m.PendingActiveHc + } + return false +} + +func (m *HostHealthStatus) GetEdsHealthStatus() v31.HealthStatus { + if m != nil { + return m.EdsHealthStatus + } + return v31.HealthStatus_UNKNOWN +} + +func init() { + proto.RegisterType((*Clusters)(nil), "envoy.admin.v3.Clusters") + proto.RegisterType((*ClusterStatus)(nil), "envoy.admin.v3.ClusterStatus") + proto.RegisterType((*HostStatus)(nil), "envoy.admin.v3.HostStatus") + proto.RegisterType((*HostHealthStatus)(nil), "envoy.admin.v3.HostHealthStatus") +} + +func init() { proto.RegisterFile("envoy/admin/v3/clusters.proto", fileDescriptor_703c0abdc0a96402) } + +var fileDescriptor_703c0abdc0a96402 = []byte{ + // 785 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4d, 0x6f, 0x23, 0x35, + 0x18, 0x56, 0x3e, 0x36, 0x3b, 0xeb, 0x6c, 0xb6, 0x5d, 0x0b, 0xba, 0xb3, 0x21, 0xcd, 0x66, 0xb3, + 0x40, 0x23, 0x40, 0x09, 0x4a, 0x25, 0x2a, 0xc2, 0xa1, 0xea, 0x97, 0xd4, 0x03, 0xd0, 0x32, 0x45, + 0xdc, 0xd0, 0xc8, 0xf5, 0xbc, 0xcd, 0x18, 0x26, 0xe3, 0x91, 0xed, 0x04, 0x72, 0x83, 0x5b, 0x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1, 0xaa, 0xcf, 0x34, 0x8c, 0x3f, 0x47, 0xef, 0x39, 0x31, 0x9f, 0xaa, 0x84, 0x81, 0x70, + 0x32, 0x7b, 0x83, 0xb1, 0xc5, 0xae, 0x2c, 0x64, 0x15, 0xc7, 0xa8, 0xb5, 0xba, 0x5d, 0x04, 0x63, + 0x41, 0xf4, 0xed, 0xb7, 0xca, 0xaa, 0x51, 0xbe, 0x2e, 0x6e, 0x78, 0xee, 0x18, 0xb6, 0xc0, 0x17, + 0xe8, 0x55, 0x06, 0x69, 0xc4, 0xd2, 0x71, 0x18, 0xcd, 0x53, 0x32, 0x61, 0x34, 0x14, 0x30, 0xe1, + 0x33, 0x92, 0x98, 0x6c, 0xbd, 0xe0, 0x7d, 0x07, 0x9f, 0x5b, 0x34, 0xb0, 0x20, 0xfe, 0x04, 0xbd, + 0xcc, 0x75, 0xf9, 0x41, 0xa9, 0xc9, 0xdc, 0x0b, 0x76, 0x1c, 0xe0, 0xce, 0x47, 0xf1, 0xb7, 0xe8, + 0x25, 0x44, 0x32, 0x7c, 0x38, 0xb4, 0x2f, 0x86, 0xdd, 0xcd, 0xa1, 0xac, 0x8c, 0xed, 0x0e, 0x44, + 0xb2, 0xf8, 0x63, 0xf4, 0xa9, 0xce, 0xe7, 0x63, 0xf4, 0xe1, 0x63, 0xf9, 0x14, 0xc9, 0xa7, 0x47, + 0x7f, 0xfd, 0xf6, 0xcf, 0xbf, 0xb5, 0xf2, 0x6e, 0x19, 0xb5, 0x18, 0xb7, 0xbb, 0x65, 0x82, 0xff, + 0x3a, 0x5f, 0xbb, 0x2d, 0xa7, 0xf9, 0xcb, 0x2a, 0xaf, 0xf5, 0x33, 0x7f, 0x5d, 0xba, 0xad, 0x99, + 0xf7, 0xfe, 0xf0, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x78, 0x11, 0xa5, 0x0c, 0x0b, 0x07, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.validate.go new file mode 100644 index 000000000..9b8900f00 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/clusters.pb.validate.go @@ -0,0 +1,436 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/clusters.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = v3.HealthStatus(0) +) + +// define the regex for a UUID once up-front +var _clusters_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Clusters with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Clusters) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetClusterStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersValidationError{ + field: fmt.Sprintf("ClusterStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClustersValidationError is the validation error returned by +// Clusters.Validate if the designated constraints aren't met. +type ClustersValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersValidationError) ErrorName() string { return "ClustersValidationError" } + +// Error satisfies the builtin error interface +func (e ClustersValidationError) 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 %sClusters.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersValidationError{} + +// Validate checks the field values on ClusterStatus with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for AddedViaApi + + if v, ok := interface{}(m.GetSuccessRateEjectionThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: "SuccessRateEjectionThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHostStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: fmt.Sprintf("HostStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLocalOriginSuccessRateEjectionThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterStatusValidationError{ + field: "LocalOriginSuccessRateEjectionThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterStatusValidationError is the validation error returned by +// ClusterStatus.Validate if the designated constraints aren't met. +type ClusterStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterStatusValidationError) ErrorName() string { return "ClusterStatusValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterStatusValidationError) 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 %sClusterStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterStatusValidationError{} + +// Validate checks the field values on HostStatus with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HostStatus) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetStats() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: fmt.Sprintf("Stats[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetHealthStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "HealthStatus", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSuccessRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "SuccessRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Weight + + // no validation rules for Hostname + + // no validation rules for Priority + + if v, ok := interface{}(m.GetLocalOriginSuccessRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "LocalOriginSuccessRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLocality()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HostStatusValidationError{ + field: "Locality", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HostStatusValidationError is the validation error returned by +// HostStatus.Validate if the designated constraints aren't met. +type HostStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HostStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HostStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HostStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HostStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HostStatusValidationError) ErrorName() string { return "HostStatusValidationError" } + +// Error satisfies the builtin error interface +func (e HostStatusValidationError) 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 %sHostStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HostStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HostStatusValidationError{} + +// Validate checks the field values on HostHealthStatus with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HostHealthStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedActiveHealthCheck + + // no validation rules for FailedOutlierCheck + + // no validation rules for FailedActiveDegradedCheck + + // no validation rules for PendingDynamicRemoval + + // no validation rules for PendingActiveHc + + // no validation rules for EdsHealthStatus + + return nil +} + +// HostHealthStatusValidationError is the validation error returned by +// HostHealthStatus.Validate if the designated constraints aren't met. +type HostHealthStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HostHealthStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HostHealthStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HostHealthStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HostHealthStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HostHealthStatusValidationError) ErrorName() string { return "HostHealthStatusValidationError" } + +// Error satisfies the builtin error interface +func (e HostHealthStatusValidationError) 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 %sHostHealthStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HostHealthStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HostHealthStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.go new file mode 100644 index 000000000..375f8a620 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.go @@ -0,0 +1,1163 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/config_dump.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ConfigDump struct { + Configs []*any.Any `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfigDump) Reset() { *m = ConfigDump{} } +func (m *ConfigDump) String() string { return proto.CompactTextString(m) } +func (*ConfigDump) ProtoMessage() {} +func (*ConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{0} +} + +func (m *ConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConfigDump.Unmarshal(m, b) +} +func (m *ConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConfigDump.Marshal(b, m, deterministic) +} +func (m *ConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigDump.Merge(m, src) +} +func (m *ConfigDump) XXX_Size() int { + return xxx_messageInfo_ConfigDump.Size(m) +} +func (m *ConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ConfigDump proto.InternalMessageInfo + +func (m *ConfigDump) GetConfigs() []*any.Any { + if m != nil { + return m.Configs + } + return nil +} + +type UpdateFailureState struct { + FailedConfiguration *any.Any `protobuf:"bytes,1,opt,name=failed_configuration,json=failedConfiguration,proto3" json:"failed_configuration,omitempty"` + LastUpdateAttempt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_update_attempt,json=lastUpdateAttempt,proto3" json:"last_update_attempt,omitempty"` + Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateFailureState) Reset() { *m = UpdateFailureState{} } +func (m *UpdateFailureState) String() string { return proto.CompactTextString(m) } +func (*UpdateFailureState) ProtoMessage() {} +func (*UpdateFailureState) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{1} +} + +func (m *UpdateFailureState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateFailureState.Unmarshal(m, b) +} +func (m *UpdateFailureState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateFailureState.Marshal(b, m, deterministic) +} +func (m *UpdateFailureState) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateFailureState.Merge(m, src) +} +func (m *UpdateFailureState) XXX_Size() int { + return xxx_messageInfo_UpdateFailureState.Size(m) +} +func (m *UpdateFailureState) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateFailureState.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateFailureState proto.InternalMessageInfo + +func (m *UpdateFailureState) GetFailedConfiguration() *any.Any { + if m != nil { + return m.FailedConfiguration + } + return nil +} + +func (m *UpdateFailureState) GetLastUpdateAttempt() *timestamp.Timestamp { + if m != nil { + return m.LastUpdateAttempt + } + return nil +} + +func (m *UpdateFailureState) GetDetails() string { + if m != nil { + return m.Details + } + return "" +} + +type BootstrapConfigDump struct { + Bootstrap *v3.Bootstrap `protobuf:"bytes,1,opt,name=bootstrap,proto3" json:"bootstrap,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BootstrapConfigDump) Reset() { *m = BootstrapConfigDump{} } +func (m *BootstrapConfigDump) String() string { return proto.CompactTextString(m) } +func (*BootstrapConfigDump) ProtoMessage() {} +func (*BootstrapConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{2} +} + +func (m *BootstrapConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BootstrapConfigDump.Unmarshal(m, b) +} +func (m *BootstrapConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BootstrapConfigDump.Marshal(b, m, deterministic) +} +func (m *BootstrapConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapConfigDump.Merge(m, src) +} +func (m *BootstrapConfigDump) XXX_Size() int { + return xxx_messageInfo_BootstrapConfigDump.Size(m) +} +func (m *BootstrapConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_BootstrapConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_BootstrapConfigDump proto.InternalMessageInfo + +func (m *BootstrapConfigDump) GetBootstrap() *v3.Bootstrap { + if m != nil { + return m.Bootstrap + } + return nil +} + +func (m *BootstrapConfigDump) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + StaticListeners []*ListenersConfigDump_StaticListener `protobuf:"bytes,2,rep,name=static_listeners,json=staticListeners,proto3" json:"static_listeners,omitempty"` + DynamicListeners []*ListenersConfigDump_DynamicListener `protobuf:"bytes,3,rep,name=dynamic_listeners,json=dynamicListeners,proto3" json:"dynamic_listeners,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump) Reset() { *m = ListenersConfigDump{} } +func (m *ListenersConfigDump) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump) ProtoMessage() {} +func (*ListenersConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{3} +} + +func (m *ListenersConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump.Unmarshal(m, b) +} +func (m *ListenersConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump.Merge(m, src) +} +func (m *ListenersConfigDump) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump.Size(m) +} +func (m *ListenersConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump proto.InternalMessageInfo + +func (m *ListenersConfigDump) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ListenersConfigDump) GetStaticListeners() []*ListenersConfigDump_StaticListener { + if m != nil { + return m.StaticListeners + } + return nil +} + +func (m *ListenersConfigDump) GetDynamicListeners() []*ListenersConfigDump_DynamicListener { + if m != nil { + return m.DynamicListeners + } + return nil +} + +type ListenersConfigDump_StaticListener struct { + Listener *any.Any `protobuf:"bytes,1,opt,name=listener,proto3" json:"listener,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_StaticListener) Reset() { *m = ListenersConfigDump_StaticListener{} } +func (m *ListenersConfigDump_StaticListener) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_StaticListener) ProtoMessage() {} +func (*ListenersConfigDump_StaticListener) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{3, 0} +} + +func (m *ListenersConfigDump_StaticListener) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Unmarshal(m, b) +} +func (m *ListenersConfigDump_StaticListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_StaticListener) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_StaticListener.Merge(m, src) +} +func (m *ListenersConfigDump_StaticListener) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_StaticListener.Size(m) +} +func (m *ListenersConfigDump_StaticListener) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_StaticListener.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_StaticListener proto.InternalMessageInfo + +func (m *ListenersConfigDump_StaticListener) GetListener() *any.Any { + if m != nil { + return m.Listener + } + return nil +} + +func (m *ListenersConfigDump_StaticListener) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump_DynamicListenerState struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + Listener *any.Any `protobuf:"bytes,2,opt,name=listener,proto3" json:"listener,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_DynamicListenerState) Reset() { + *m = ListenersConfigDump_DynamicListenerState{} +} +func (m *ListenersConfigDump_DynamicListenerState) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_DynamicListenerState) ProtoMessage() {} +func (*ListenersConfigDump_DynamicListenerState) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{3, 1} +} + +func (m *ListenersConfigDump_DynamicListenerState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Unmarshal(m, b) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Merge(m, src) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_DynamicListenerState.Size(m) +} +func (m *ListenersConfigDump_DynamicListenerState) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_DynamicListenerState.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_DynamicListenerState proto.InternalMessageInfo + +func (m *ListenersConfigDump_DynamicListenerState) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ListenersConfigDump_DynamicListenerState) GetListener() *any.Any { + if m != nil { + return m.Listener + } + return nil +} + +func (m *ListenersConfigDump_DynamicListenerState) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ListenersConfigDump_DynamicListener struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ActiveState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,2,opt,name=active_state,json=activeState,proto3" json:"active_state,omitempty"` + WarmingState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,3,opt,name=warming_state,json=warmingState,proto3" json:"warming_state,omitempty"` + DrainingState *ListenersConfigDump_DynamicListenerState `protobuf:"bytes,4,opt,name=draining_state,json=drainingState,proto3" json:"draining_state,omitempty"` + ErrorState *UpdateFailureState `protobuf:"bytes,5,opt,name=error_state,json=errorState,proto3" json:"error_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenersConfigDump_DynamicListener) Reset() { *m = ListenersConfigDump_DynamicListener{} } +func (m *ListenersConfigDump_DynamicListener) String() string { return proto.CompactTextString(m) } +func (*ListenersConfigDump_DynamicListener) ProtoMessage() {} +func (*ListenersConfigDump_DynamicListener) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{3, 2} +} + +func (m *ListenersConfigDump_DynamicListener) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Unmarshal(m, b) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Marshal(b, m, deterministic) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenersConfigDump_DynamicListener.Merge(m, src) +} +func (m *ListenersConfigDump_DynamicListener) XXX_Size() int { + return xxx_messageInfo_ListenersConfigDump_DynamicListener.Size(m) +} +func (m *ListenersConfigDump_DynamicListener) XXX_DiscardUnknown() { + xxx_messageInfo_ListenersConfigDump_DynamicListener.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenersConfigDump_DynamicListener proto.InternalMessageInfo + +func (m *ListenersConfigDump_DynamicListener) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ListenersConfigDump_DynamicListener) GetActiveState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.ActiveState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetWarmingState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.WarmingState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetDrainingState() *ListenersConfigDump_DynamicListenerState { + if m != nil { + return m.DrainingState + } + return nil +} + +func (m *ListenersConfigDump_DynamicListener) GetErrorState() *UpdateFailureState { + if m != nil { + return m.ErrorState + } + return nil +} + +type ClustersConfigDump struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + StaticClusters []*ClustersConfigDump_StaticCluster `protobuf:"bytes,2,rep,name=static_clusters,json=staticClusters,proto3" json:"static_clusters,omitempty"` + DynamicActiveClusters []*ClustersConfigDump_DynamicCluster `protobuf:"bytes,3,rep,name=dynamic_active_clusters,json=dynamicActiveClusters,proto3" json:"dynamic_active_clusters,omitempty"` + DynamicWarmingClusters []*ClustersConfigDump_DynamicCluster `protobuf:"bytes,4,rep,name=dynamic_warming_clusters,json=dynamicWarmingClusters,proto3" json:"dynamic_warming_clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump) Reset() { *m = ClustersConfigDump{} } +func (m *ClustersConfigDump) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump) ProtoMessage() {} +func (*ClustersConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{4} +} + +func (m *ClustersConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump.Unmarshal(m, b) +} +func (m *ClustersConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump.Merge(m, src) +} +func (m *ClustersConfigDump) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump.Size(m) +} +func (m *ClustersConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump proto.InternalMessageInfo + +func (m *ClustersConfigDump) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ClustersConfigDump) GetStaticClusters() []*ClustersConfigDump_StaticCluster { + if m != nil { + return m.StaticClusters + } + return nil +} + +func (m *ClustersConfigDump) GetDynamicActiveClusters() []*ClustersConfigDump_DynamicCluster { + if m != nil { + return m.DynamicActiveClusters + } + return nil +} + +func (m *ClustersConfigDump) GetDynamicWarmingClusters() []*ClustersConfigDump_DynamicCluster { + if m != nil { + return m.DynamicWarmingClusters + } + return nil +} + +type ClustersConfigDump_StaticCluster struct { + Cluster *any.Any `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump_StaticCluster) Reset() { *m = ClustersConfigDump_StaticCluster{} } +func (m *ClustersConfigDump_StaticCluster) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump_StaticCluster) ProtoMessage() {} +func (*ClustersConfigDump_StaticCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{4, 0} +} + +func (m *ClustersConfigDump_StaticCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Unmarshal(m, b) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump_StaticCluster.Merge(m, src) +} +func (m *ClustersConfigDump_StaticCluster) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump_StaticCluster.Size(m) +} +func (m *ClustersConfigDump_StaticCluster) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump_StaticCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump_StaticCluster proto.InternalMessageInfo + +func (m *ClustersConfigDump_StaticCluster) GetCluster() *any.Any { + if m != nil { + return m.Cluster + } + return nil +} + +func (m *ClustersConfigDump_StaticCluster) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ClustersConfigDump_DynamicCluster struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + Cluster *any.Any `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClustersConfigDump_DynamicCluster) Reset() { *m = ClustersConfigDump_DynamicCluster{} } +func (m *ClustersConfigDump_DynamicCluster) String() string { return proto.CompactTextString(m) } +func (*ClustersConfigDump_DynamicCluster) ProtoMessage() {} +func (*ClustersConfigDump_DynamicCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{4, 1} +} + +func (m *ClustersConfigDump_DynamicCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Unmarshal(m, b) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Marshal(b, m, deterministic) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClustersConfigDump_DynamicCluster.Merge(m, src) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_Size() int { + return xxx_messageInfo_ClustersConfigDump_DynamicCluster.Size(m) +} +func (m *ClustersConfigDump_DynamicCluster) XXX_DiscardUnknown() { + xxx_messageInfo_ClustersConfigDump_DynamicCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_ClustersConfigDump_DynamicCluster proto.InternalMessageInfo + +func (m *ClustersConfigDump_DynamicCluster) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ClustersConfigDump_DynamicCluster) GetCluster() *any.Any { + if m != nil { + return m.Cluster + } + return nil +} + +func (m *ClustersConfigDump_DynamicCluster) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type RoutesConfigDump struct { + StaticRouteConfigs []*RoutesConfigDump_StaticRouteConfig `protobuf:"bytes,2,rep,name=static_route_configs,json=staticRouteConfigs,proto3" json:"static_route_configs,omitempty"` + DynamicRouteConfigs []*RoutesConfigDump_DynamicRouteConfig `protobuf:"bytes,3,rep,name=dynamic_route_configs,json=dynamicRouteConfigs,proto3" json:"dynamic_route_configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump) Reset() { *m = RoutesConfigDump{} } +func (m *RoutesConfigDump) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump) ProtoMessage() {} +func (*RoutesConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{5} +} + +func (m *RoutesConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump.Unmarshal(m, b) +} +func (m *RoutesConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump.Merge(m, src) +} +func (m *RoutesConfigDump) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump.Size(m) +} +func (m *RoutesConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump proto.InternalMessageInfo + +func (m *RoutesConfigDump) GetStaticRouteConfigs() []*RoutesConfigDump_StaticRouteConfig { + if m != nil { + return m.StaticRouteConfigs + } + return nil +} + +func (m *RoutesConfigDump) GetDynamicRouteConfigs() []*RoutesConfigDump_DynamicRouteConfig { + if m != nil { + return m.DynamicRouteConfigs + } + return nil +} + +type RoutesConfigDump_StaticRouteConfig struct { + RouteConfig *any.Any `protobuf:"bytes,1,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump_StaticRouteConfig) Reset() { *m = RoutesConfigDump_StaticRouteConfig{} } +func (m *RoutesConfigDump_StaticRouteConfig) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump_StaticRouteConfig) ProtoMessage() {} +func (*RoutesConfigDump_StaticRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{5, 0} +} + +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Unmarshal(m, b) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Merge(m, src) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.Size(m) +} +func (m *RoutesConfigDump_StaticRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump_StaticRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump_StaticRouteConfig proto.InternalMessageInfo + +func (m *RoutesConfigDump_StaticRouteConfig) GetRouteConfig() *any.Any { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *RoutesConfigDump_StaticRouteConfig) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type RoutesConfigDump_DynamicRouteConfig struct { + VersionInfo string `protobuf:"bytes,1,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + RouteConfig *any.Any `protobuf:"bytes,2,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RoutesConfigDump_DynamicRouteConfig) Reset() { *m = RoutesConfigDump_DynamicRouteConfig{} } +func (m *RoutesConfigDump_DynamicRouteConfig) String() string { return proto.CompactTextString(m) } +func (*RoutesConfigDump_DynamicRouteConfig) ProtoMessage() {} +func (*RoutesConfigDump_DynamicRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{5, 1} +} + +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Unmarshal(m, b) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Marshal(b, m, deterministic) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Merge(m, src) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_Size() int { + return xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.Size(m) +} +func (m *RoutesConfigDump_DynamicRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RoutesConfigDump_DynamicRouteConfig proto.InternalMessageInfo + +func (m *RoutesConfigDump_DynamicRouteConfig) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *RoutesConfigDump_DynamicRouteConfig) GetRouteConfig() *any.Any { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *RoutesConfigDump_DynamicRouteConfig) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ScopedRoutesConfigDump struct { + InlineScopedRouteConfigs []*ScopedRoutesConfigDump_InlineScopedRouteConfigs `protobuf:"bytes,1,rep,name=inline_scoped_route_configs,json=inlineScopedRouteConfigs,proto3" json:"inline_scoped_route_configs,omitempty"` + DynamicScopedRouteConfigs []*ScopedRoutesConfigDump_DynamicScopedRouteConfigs `protobuf:"bytes,2,rep,name=dynamic_scoped_route_configs,json=dynamicScopedRouteConfigs,proto3" json:"dynamic_scoped_route_configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump) Reset() { *m = ScopedRoutesConfigDump{} } +func (m *ScopedRoutesConfigDump) String() string { return proto.CompactTextString(m) } +func (*ScopedRoutesConfigDump) ProtoMessage() {} +func (*ScopedRoutesConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{6} +} + +func (m *ScopedRoutesConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump.Merge(m, src) +} +func (m *ScopedRoutesConfigDump) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump.Size(m) +} +func (m *ScopedRoutesConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump) GetInlineScopedRouteConfigs() []*ScopedRoutesConfigDump_InlineScopedRouteConfigs { + if m != nil { + return m.InlineScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump) GetDynamicScopedRouteConfigs() []*ScopedRoutesConfigDump_DynamicScopedRouteConfigs { + if m != nil { + return m.DynamicScopedRouteConfigs + } + return nil +} + +type ScopedRoutesConfigDump_InlineScopedRouteConfigs struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ScopedRouteConfigs []*any.Any `protobuf:"bytes,2,rep,name=scoped_route_configs,json=scopedRouteConfigs,proto3" json:"scoped_route_configs,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) Reset() { + *m = ScopedRoutesConfigDump_InlineScopedRouteConfigs{} +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) String() string { + return proto.CompactTextString(m) +} +func (*ScopedRoutesConfigDump_InlineScopedRouteConfigs) ProtoMessage() {} +func (*ScopedRoutesConfigDump_InlineScopedRouteConfigs) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{6, 0} +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Merge(m, src) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.Size(m) +} +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump_InlineScopedRouteConfigs proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetScopedRouteConfigs() []*any.Any { + if m != nil { + return m.ScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type ScopedRoutesConfigDump_DynamicScopedRouteConfigs struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VersionInfo string `protobuf:"bytes,2,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + ScopedRouteConfigs []*any.Any `protobuf:"bytes,3,rep,name=scoped_route_configs,json=scopedRouteConfigs,proto3" json:"scoped_route_configs,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Reset() { + *m = ScopedRoutesConfigDump_DynamicScopedRouteConfigs{} +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) String() string { + return proto.CompactTextString(m) +} +func (*ScopedRoutesConfigDump_DynamicScopedRouteConfigs) ProtoMessage() {} +func (*ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{6, 1} +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Unmarshal(m, b) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Marshal(b, m, deterministic) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Merge(m, src) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_Size() int { + return xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Size(m) +} +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) XXX_DiscardUnknown() { + xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs.DiscardUnknown(m) +} + +var xxx_messageInfo_ScopedRoutesConfigDump_DynamicScopedRouteConfigs proto.InternalMessageInfo + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetScopedRouteConfigs() []*any.Any { + if m != nil { + return m.ScopedRouteConfigs + } + return nil +} + +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +type SecretsConfigDump struct { + StaticSecrets []*SecretsConfigDump_StaticSecret `protobuf:"bytes,1,rep,name=static_secrets,json=staticSecrets,proto3" json:"static_secrets,omitempty"` + DynamicActiveSecrets []*SecretsConfigDump_DynamicSecret `protobuf:"bytes,2,rep,name=dynamic_active_secrets,json=dynamicActiveSecrets,proto3" json:"dynamic_active_secrets,omitempty"` + DynamicWarmingSecrets []*SecretsConfigDump_DynamicSecret `protobuf:"bytes,3,rep,name=dynamic_warming_secrets,json=dynamicWarmingSecrets,proto3" json:"dynamic_warming_secrets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump) Reset() { *m = SecretsConfigDump{} } +func (m *SecretsConfigDump) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump) ProtoMessage() {} +func (*SecretsConfigDump) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{7} +} + +func (m *SecretsConfigDump) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump.Unmarshal(m, b) +} +func (m *SecretsConfigDump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump.Merge(m, src) +} +func (m *SecretsConfigDump) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump.Size(m) +} +func (m *SecretsConfigDump) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump proto.InternalMessageInfo + +func (m *SecretsConfigDump) GetStaticSecrets() []*SecretsConfigDump_StaticSecret { + if m != nil { + return m.StaticSecrets + } + return nil +} + +func (m *SecretsConfigDump) GetDynamicActiveSecrets() []*SecretsConfigDump_DynamicSecret { + if m != nil { + return m.DynamicActiveSecrets + } + return nil +} + +func (m *SecretsConfigDump) GetDynamicWarmingSecrets() []*SecretsConfigDump_DynamicSecret { + if m != nil { + return m.DynamicWarmingSecrets + } + return nil +} + +type SecretsConfigDump_DynamicSecret struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VersionInfo string `protobuf:"bytes,2,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + Secret *any.Any `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump_DynamicSecret) Reset() { *m = SecretsConfigDump_DynamicSecret{} } +func (m *SecretsConfigDump_DynamicSecret) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump_DynamicSecret) ProtoMessage() {} +func (*SecretsConfigDump_DynamicSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{7, 0} +} + +func (m *SecretsConfigDump_DynamicSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Unmarshal(m, b) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump_DynamicSecret.Merge(m, src) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump_DynamicSecret.Size(m) +} +func (m *SecretsConfigDump_DynamicSecret) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump_DynamicSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump_DynamicSecret proto.InternalMessageInfo + +func (m *SecretsConfigDump_DynamicSecret) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SecretsConfigDump_DynamicSecret) GetVersionInfo() string { + if m != nil { + return m.VersionInfo + } + return "" +} + +func (m *SecretsConfigDump_DynamicSecret) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +func (m *SecretsConfigDump_DynamicSecret) GetSecret() *any.Any { + if m != nil { + return m.Secret + } + return nil +} + +type SecretsConfigDump_StaticSecret struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + LastUpdated *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + Secret *any.Any `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecretsConfigDump_StaticSecret) Reset() { *m = SecretsConfigDump_StaticSecret{} } +func (m *SecretsConfigDump_StaticSecret) String() string { return proto.CompactTextString(m) } +func (*SecretsConfigDump_StaticSecret) ProtoMessage() {} +func (*SecretsConfigDump_StaticSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_08bc530b8eca93ef, []int{7, 1} +} + +func (m *SecretsConfigDump_StaticSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Unmarshal(m, b) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Marshal(b, m, deterministic) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretsConfigDump_StaticSecret.Merge(m, src) +} +func (m *SecretsConfigDump_StaticSecret) XXX_Size() int { + return xxx_messageInfo_SecretsConfigDump_StaticSecret.Size(m) +} +func (m *SecretsConfigDump_StaticSecret) XXX_DiscardUnknown() { + xxx_messageInfo_SecretsConfigDump_StaticSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretsConfigDump_StaticSecret proto.InternalMessageInfo + +func (m *SecretsConfigDump_StaticSecret) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SecretsConfigDump_StaticSecret) GetLastUpdated() *timestamp.Timestamp { + if m != nil { + return m.LastUpdated + } + return nil +} + +func (m *SecretsConfigDump_StaticSecret) GetSecret() *any.Any { + if m != nil { + return m.Secret + } + return nil +} + +func init() { + proto.RegisterType((*ConfigDump)(nil), "envoy.admin.v3.ConfigDump") + proto.RegisterType((*UpdateFailureState)(nil), "envoy.admin.v3.UpdateFailureState") + proto.RegisterType((*BootstrapConfigDump)(nil), "envoy.admin.v3.BootstrapConfigDump") + proto.RegisterType((*ListenersConfigDump)(nil), "envoy.admin.v3.ListenersConfigDump") + proto.RegisterType((*ListenersConfigDump_StaticListener)(nil), "envoy.admin.v3.ListenersConfigDump.StaticListener") + proto.RegisterType((*ListenersConfigDump_DynamicListenerState)(nil), "envoy.admin.v3.ListenersConfigDump.DynamicListenerState") + proto.RegisterType((*ListenersConfigDump_DynamicListener)(nil), "envoy.admin.v3.ListenersConfigDump.DynamicListener") + proto.RegisterType((*ClustersConfigDump)(nil), "envoy.admin.v3.ClustersConfigDump") + proto.RegisterType((*ClustersConfigDump_StaticCluster)(nil), "envoy.admin.v3.ClustersConfigDump.StaticCluster") + proto.RegisterType((*ClustersConfigDump_DynamicCluster)(nil), "envoy.admin.v3.ClustersConfigDump.DynamicCluster") + proto.RegisterType((*RoutesConfigDump)(nil), "envoy.admin.v3.RoutesConfigDump") + proto.RegisterType((*RoutesConfigDump_StaticRouteConfig)(nil), "envoy.admin.v3.RoutesConfigDump.StaticRouteConfig") + proto.RegisterType((*RoutesConfigDump_DynamicRouteConfig)(nil), "envoy.admin.v3.RoutesConfigDump.DynamicRouteConfig") + proto.RegisterType((*ScopedRoutesConfigDump)(nil), "envoy.admin.v3.ScopedRoutesConfigDump") + proto.RegisterType((*ScopedRoutesConfigDump_InlineScopedRouteConfigs)(nil), "envoy.admin.v3.ScopedRoutesConfigDump.InlineScopedRouteConfigs") + proto.RegisterType((*ScopedRoutesConfigDump_DynamicScopedRouteConfigs)(nil), "envoy.admin.v3.ScopedRoutesConfigDump.DynamicScopedRouteConfigs") + proto.RegisterType((*SecretsConfigDump)(nil), "envoy.admin.v3.SecretsConfigDump") + proto.RegisterType((*SecretsConfigDump_DynamicSecret)(nil), "envoy.admin.v3.SecretsConfigDump.DynamicSecret") + proto.RegisterType((*SecretsConfigDump_StaticSecret)(nil), "envoy.admin.v3.SecretsConfigDump.StaticSecret") +} + +func init() { proto.RegisterFile("envoy/admin/v3/config_dump.proto", fileDescriptor_08bc530b8eca93ef) } + +var fileDescriptor_08bc530b8eca93ef = []byte{ + // 1256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xd6, 0xda, 0xa9, 0x4b, 0x8e, 0x9d, 0x34, 0x99, 0xb8, 0xc5, 0x5d, 0x4a, 0x49, 0xad, 0xfe, + 0x42, 0x58, 0xb7, 0x71, 0xdb, 0x34, 0xa6, 0x2d, 0x24, 0x0e, 0x41, 0x2d, 0x5c, 0x54, 0x1b, 0x2a, + 0x84, 0x50, 0xb5, 0x6c, 0xbc, 0x13, 0xb3, 0xc2, 0xde, 0xb5, 0x76, 0xc6, 0x86, 0xdc, 0x20, 0x7a, + 0xc7, 0x33, 0xf0, 0x00, 0xc0, 0x33, 0x94, 0x1b, 0x6e, 0x10, 0x15, 0x12, 0x17, 0xbc, 0x01, 0x6f, + 0x80, 0xc4, 0x35, 0x17, 0x68, 0xfe, 0xec, 0xfd, 0xb3, 0xb3, 0xb6, 0xc5, 0x9d, 0x77, 0x66, 0xbe, + 0xef, 0x9c, 0xef, 0xcc, 0x37, 0x67, 0xc6, 0xb0, 0x8e, 0xbd, 0x81, 0x7f, 0x5c, 0xb3, 0x9d, 0xae, + 0xeb, 0xd5, 0x06, 0xf5, 0x5a, 0xcb, 0xf7, 0x8e, 0xdc, 0xb6, 0xe5, 0xf4, 0xbb, 0x3d, 0xa3, 0x17, + 0xf8, 0xd4, 0x47, 0xcb, 0x7c, 0x85, 0xc1, 0x57, 0x18, 0x83, 0xba, 0x7e, 0x43, 0x20, 0xc4, 0xc2, + 0xda, 0xa1, 0xef, 0x53, 0x42, 0x03, 0xbb, 0xc7, 0xc0, 0xc3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0x8a, + 0xe6, 0x2a, 0x83, 0x89, 0xcc, 0x76, 0x04, 0x08, 0x55, 0xe0, 0xb4, 0x83, 0xa9, 0xed, 0x76, 0x48, + 0x25, 0xbf, 0xae, 0x5d, 0x5f, 0x34, 0xd5, 0x67, 0xe3, 0x6d, 0x26, 0xf6, 0x3a, 0x5c, 0x4d, 0x13, + 0x9b, 0x54, 0x57, 0x7d, 0xa9, 0xc1, 0xda, 0xae, 0xda, 0xeb, 0x50, 0x8d, 0x77, 0x61, 0x71, 0x68, + 0x01, 0x29, 0xf5, 0xb2, 0x21, 0x38, 0x45, 0x19, 0x8c, 0x91, 0x43, 0x06, 0x75, 0x63, 0x48, 0x61, + 0x8e, 0x60, 0xe8, 0x01, 0x94, 0x42, 0x82, 0x9d, 0x0c, 0x4a, 0x8b, 0x23, 0xa5, 0x4e, 0xc3, 0x60, + 0x4a, 0x6e, 0xc0, 0xb5, 0x34, 0x25, 0x29, 0x29, 0x57, 0x7f, 0x5a, 0x84, 0xb5, 0x8f, 0x5c, 0x42, + 0xb1, 0x87, 0x03, 0x12, 0x92, 0x72, 0x09, 0x4a, 0xd2, 0x50, 0x96, 0xeb, 0x1d, 0xf9, 0x5c, 0xcd, + 0xa2, 0x59, 0x94, 0x63, 0x8f, 0xbc, 0x23, 0x1f, 0x3d, 0x83, 0x15, 0x66, 0x49, 0xb7, 0x65, 0x75, + 0x14, 0x41, 0x25, 0xc7, 0xad, 0xb5, 0x69, 0x44, 0xcf, 0x8c, 0x91, 0x12, 0xc1, 0x38, 0xe0, 0x58, + 0x35, 0x63, 0x9e, 0x21, 0x91, 0x6f, 0x82, 0x3e, 0x87, 0x55, 0xe7, 0xd8, 0xb3, 0xbb, 0x11, 0xfe, + 0x3c, 0xe7, 0xaf, 0x67, 0xe1, 0xdf, 0x13, 0xe0, 0x61, 0x80, 0x15, 0x27, 0x3a, 0x40, 0xf4, 0x5f, + 0x34, 0x58, 0x8e, 0x66, 0x81, 0x6e, 0xc2, 0x2b, 0x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0xbf, 0x3c, 0x71, 0x72, + 0xc2, 0x5c, 0x26, 0xe1, 0x4f, 0x82, 0x5c, 0x78, 0x55, 0x75, 0x29, 0x69, 0xb7, 0x61, 0x08, 0xd1, + 0xab, 0x6e, 0x65, 0x08, 0x21, 0x2b, 0xa3, 0x62, 0x9c, 0x95, 0x8c, 0x3b, 0x9c, 0x70, 0x18, 0xea, + 0x4b, 0xa8, 0xa8, 0x50, 0xca, 0x7c, 0xc3, 0x58, 0x0b, 0xb3, 0xc6, 0x3a, 0x27, 0x29, 0x3f, 0x11, + 0x8c, 0x0a, 0xa0, 0xff, 0xac, 0xc1, 0x52, 0x44, 0x39, 0x7f, 0x40, 0x88, 0x9f, 0x13, 0x3b, 0xa3, + 0x5a, 0x34, 0x6f, 0x63, 0x7c, 0x87, 0xb9, 0xe3, 0x2e, 0xdc, 0x4e, 0x7d, 0x7f, 0x9c, 0xb0, 0x4b, + 0xfa, 0x5f, 0x1a, 0x2c, 0x47, 0x85, 0x66, 0xb1, 0x49, 0x48, 0x61, 0x6e, 0x16, 0x85, 0x53, 0xb6, + 0xc3, 0xfb, 0x4c, 0xe1, 0x16, 0xdc, 0xc9, 0xa8, 0x30, 0xaa, 0x67, 0xe2, 0x93, 0x25, 0x89, 0xae, + 0xfe, 0x71, 0x0a, 0x56, 0x4c, 0xbf, 0x4f, 0x71, 0xf8, 0xe8, 0x38, 0x50, 0x96, 0xe7, 0x22, 0x60, + 0x53, 0x96, 0x7a, 0x20, 0x8e, 0xb9, 0xc5, 0xe3, 0x78, 0x59, 0x74, 0x3e, 0x2c, 0x46, 0x4d, 0x44, + 0xe2, 0x43, 0x04, 0xb5, 0x41, 0x19, 0x3a, 0x16, 0x66, 0xcc, 0x65, 0x9e, 0x08, 0x23, 0x95, 0x87, + 0xe3, 0xac, 0x39, 0x89, 0x31, 0xa2, 0xff, 0xae, 0xc1, 0x6a, 0x22, 0x25, 0xb4, 0x05, 0xa5, 0x70, + 0xd8, 0x89, 0xe6, 0x2d,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, 0xff, + 0xe5, 0xe2, 0xf5, 0x1f, 0xa4, 0x14, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.validate.go new file mode 100644 index 000000000..d725b1c5a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/config_dump.pb.validate.go @@ -0,0 +1,1837 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/config_dump.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_dump_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ConfigDump with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigDumpValidationError{ + field: fmt.Sprintf("Configs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ConfigDumpValidationError is the validation error returned by +// ConfigDump.Validate if the designated constraints aren't met. +type ConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigDumpValidationError) ErrorName() string { return "ConfigDumpValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigDumpValidationError) 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 %sConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigDumpValidationError{} + +// Validate checks the field values on UpdateFailureState with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateFailureState) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetFailedConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateFailureStateValidationError{ + field: "FailedConfiguration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdateAttempt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateFailureStateValidationError{ + field: "LastUpdateAttempt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Details + + return nil +} + +// UpdateFailureStateValidationError is the validation error returned by +// UpdateFailureState.Validate if the designated constraints aren't met. +type UpdateFailureStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateFailureStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateFailureStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateFailureStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateFailureStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateFailureStateValidationError) ErrorName() string { + return "UpdateFailureStateValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateFailureStateValidationError) 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 %sUpdateFailureState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateFailureStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateFailureStateValidationError{} + +// Validate checks the field values on BootstrapConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *BootstrapConfigDump) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetBootstrap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapConfigDumpValidationError{ + field: "Bootstrap", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapConfigDumpValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BootstrapConfigDumpValidationError is the validation error returned by +// BootstrapConfigDump.Validate if the designated constraints aren't met. +type BootstrapConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BootstrapConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BootstrapConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BootstrapConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BootstrapConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BootstrapConfigDumpValidationError) ErrorName() string { + return "BootstrapConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e BootstrapConfigDumpValidationError) 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 %sBootstrapConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BootstrapConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BootstrapConfigDumpValidationError{} + +// Validate checks the field values on ListenersConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListenersConfigDump) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + for idx, item := range m.GetStaticListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDumpValidationError{ + field: fmt.Sprintf("StaticListeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicListeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ListenersConfigDumpValidationError is the validation error returned by +// ListenersConfigDump.Validate if the designated constraints aren't met. +type ListenersConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDumpValidationError) ErrorName() string { + return "ListenersConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDumpValidationError) 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 %sListenersConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDumpValidationError{} + +// Validate checks the field values on ClustersConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClustersConfigDump) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + for idx, item := range m.GetStaticClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("StaticClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicActiveClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicActiveClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicWarmingClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDumpValidationError{ + field: fmt.Sprintf("DynamicWarmingClusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClustersConfigDumpValidationError is the validation error returned by +// ClustersConfigDump.Validate if the designated constraints aren't met. +type ClustersConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDumpValidationError) ErrorName() string { + return "ClustersConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDumpValidationError) 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 %sClustersConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDumpValidationError{} + +// Validate checks the field values on RoutesConfigDump with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RoutesConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetStaticRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDumpValidationError{ + field: fmt.Sprintf("StaticRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDumpValidationError{ + field: fmt.Sprintf("DynamicRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RoutesConfigDumpValidationError is the validation error returned by +// RoutesConfigDump.Validate if the designated constraints aren't met. +type RoutesConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDumpValidationError) ErrorName() string { return "RoutesConfigDumpValidationError" } + +// Error satisfies the builtin error interface +func (e RoutesConfigDumpValidationError) 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 %sRoutesConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDumpValidationError{} + +// Validate checks the field values on ScopedRoutesConfigDump with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ScopedRoutesConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetInlineScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDumpValidationError{ + field: fmt.Sprintf("InlineScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDumpValidationError{ + field: fmt.Sprintf("DynamicScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScopedRoutesConfigDumpValidationError is the validation error returned by +// ScopedRoutesConfigDump.Validate if the designated constraints aren't met. +type ScopedRoutesConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScopedRoutesConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScopedRoutesConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDumpValidationError) ErrorName() string { + return "ScopedRoutesConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDumpValidationError) 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 %sScopedRoutesConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDumpValidationError{} + +// Validate checks the field values on SecretsConfigDump with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SecretsConfigDump) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetStaticSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("StaticSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicActiveSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("DynamicActiveSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDynamicWarmingSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDumpValidationError{ + field: fmt.Sprintf("DynamicWarmingSecrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SecretsConfigDumpValidationError is the validation error returned by +// SecretsConfigDump.Validate if the designated constraints aren't met. +type SecretsConfigDumpValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDumpValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDumpValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDumpValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDumpValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDumpValidationError) ErrorName() string { + return "SecretsConfigDumpValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDumpValidationError) 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 %sSecretsConfigDump.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDumpValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDumpValidationError{} + +// Validate checks the field values on ListenersConfigDump_StaticListener with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ListenersConfigDump_StaticListener) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetListener()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_StaticListenerValidationError{ + field: "Listener", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_StaticListenerValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_StaticListenerValidationError is the validation error +// returned by ListenersConfigDump_StaticListener.Validate if the designated +// constraints aren't met. +type ListenersConfigDump_StaticListenerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_StaticListenerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_StaticListenerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_StaticListenerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_StaticListenerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_StaticListenerValidationError) ErrorName() string { + return "ListenersConfigDump_StaticListenerValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_StaticListenerValidationError) 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 %sListenersConfigDump_StaticListener.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_StaticListenerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_StaticListenerValidationError{} + +// Validate checks the field values on ListenersConfigDump_DynamicListenerState +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ListenersConfigDump_DynamicListenerState) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetListener()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerStateValidationError{ + field: "Listener", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerStateValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_DynamicListenerStateValidationError is the validation +// error returned by ListenersConfigDump_DynamicListenerState.Validate if the +// designated constraints aren't met. +type ListenersConfigDump_DynamicListenerStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_DynamicListenerStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_DynamicListenerStateValidationError) ErrorName() string { + return "ListenersConfigDump_DynamicListenerStateValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_DynamicListenerStateValidationError) 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 %sListenersConfigDump_DynamicListenerState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_DynamicListenerStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_DynamicListenerStateValidationError{} + +// Validate checks the field values on ListenersConfigDump_DynamicListener with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ListenersConfigDump_DynamicListener) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetActiveState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "ActiveState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetWarmingState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "WarmingState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDrainingState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "DrainingState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetErrorState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersConfigDump_DynamicListenerValidationError{ + field: "ErrorState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenersConfigDump_DynamicListenerValidationError is the validation error +// returned by ListenersConfigDump_DynamicListener.Validate if the designated +// constraints aren't met. +type ListenersConfigDump_DynamicListenerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersConfigDump_DynamicListenerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersConfigDump_DynamicListenerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersConfigDump_DynamicListenerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersConfigDump_DynamicListenerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersConfigDump_DynamicListenerValidationError) ErrorName() string { + return "ListenersConfigDump_DynamicListenerValidationError" +} + +// Error satisfies the builtin error interface +func (e ListenersConfigDump_DynamicListenerValidationError) 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 %sListenersConfigDump_DynamicListener.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersConfigDump_DynamicListenerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersConfigDump_DynamicListenerValidationError{} + +// Validate checks the field values on ClustersConfigDump_StaticCluster with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ClustersConfigDump_StaticCluster) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_StaticClusterValidationError{ + field: "Cluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_StaticClusterValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClustersConfigDump_StaticClusterValidationError is the validation error +// returned by ClustersConfigDump_StaticCluster.Validate if the designated +// constraints aren't met. +type ClustersConfigDump_StaticClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDump_StaticClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDump_StaticClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDump_StaticClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDump_StaticClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDump_StaticClusterValidationError) ErrorName() string { + return "ClustersConfigDump_StaticClusterValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDump_StaticClusterValidationError) 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 %sClustersConfigDump_StaticCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDump_StaticClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDump_StaticClusterValidationError{} + +// Validate checks the field values on ClustersConfigDump_DynamicCluster with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ClustersConfigDump_DynamicCluster) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_DynamicClusterValidationError{ + field: "Cluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClustersConfigDump_DynamicClusterValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClustersConfigDump_DynamicClusterValidationError is the validation error +// returned by ClustersConfigDump_DynamicCluster.Validate if the designated +// constraints aren't met. +type ClustersConfigDump_DynamicClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClustersConfigDump_DynamicClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClustersConfigDump_DynamicClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClustersConfigDump_DynamicClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClustersConfigDump_DynamicClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClustersConfigDump_DynamicClusterValidationError) ErrorName() string { + return "ClustersConfigDump_DynamicClusterValidationError" +} + +// Error satisfies the builtin error interface +func (e ClustersConfigDump_DynamicClusterValidationError) 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 %sClustersConfigDump_DynamicCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClustersConfigDump_DynamicClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClustersConfigDump_DynamicClusterValidationError{} + +// Validate checks the field values on RoutesConfigDump_StaticRouteConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RoutesConfigDump_StaticRouteConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_StaticRouteConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_StaticRouteConfigValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RoutesConfigDump_StaticRouteConfigValidationError is the validation error +// returned by RoutesConfigDump_StaticRouteConfig.Validate if the designated +// constraints aren't met. +type RoutesConfigDump_StaticRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDump_StaticRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDump_StaticRouteConfigValidationError) ErrorName() string { + return "RoutesConfigDump_StaticRouteConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RoutesConfigDump_StaticRouteConfigValidationError) 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 %sRoutesConfigDump_StaticRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDump_StaticRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDump_StaticRouteConfigValidationError{} + +// Validate checks the field values on RoutesConfigDump_DynamicRouteConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RoutesConfigDump_DynamicRouteConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_DynamicRouteConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RoutesConfigDump_DynamicRouteConfigValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RoutesConfigDump_DynamicRouteConfigValidationError is the validation error +// returned by RoutesConfigDump_DynamicRouteConfig.Validate if the designated +// constraints aren't met. +type RoutesConfigDump_DynamicRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RoutesConfigDump_DynamicRouteConfigValidationError) ErrorName() string { + return "RoutesConfigDump_DynamicRouteConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RoutesConfigDump_DynamicRouteConfigValidationError) 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 %sRoutesConfigDump_DynamicRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RoutesConfigDump_DynamicRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RoutesConfigDump_DynamicRouteConfigValidationError{} + +// Validate checks the field values on +// ScopedRoutesConfigDump_InlineScopedRouteConfigs with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ScopedRoutesConfigDump_InlineScopedRouteConfigs) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + for idx, item := range m.GetScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{ + field: fmt.Sprintf("ScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError is the +// validation error returned by +// ScopedRoutesConfigDump_InlineScopedRouteConfigs.Validate if the designated +// constraints aren't met. +type ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) ErrorName() string { + return "ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError) 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 %sScopedRoutesConfigDump_InlineScopedRouteConfigs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDump_InlineScopedRouteConfigsValidationError{} + +// Validate checks the field values on +// ScopedRoutesConfigDump_DynamicScopedRouteConfigs with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ScopedRoutesConfigDump_DynamicScopedRouteConfigs) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for VersionInfo + + for idx, item := range m.GetScopedRouteConfigs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{ + field: fmt.Sprintf("ScopedRouteConfigs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError is the +// validation error returned by +// ScopedRoutesConfigDump_DynamicScopedRouteConfigs.Validate if the designated +// constraints aren't met. +type ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) ErrorName() string { + return "ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError" +} + +// Error satisfies the builtin error interface +func (e ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError) 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 %sScopedRoutesConfigDump_DynamicScopedRouteConfigs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScopedRoutesConfigDump_DynamicScopedRouteConfigsValidationError{} + +// Validate checks the field values on SecretsConfigDump_DynamicSecret with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SecretsConfigDump_DynamicSecret) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for VersionInfo + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_DynamicSecretValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecret()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_DynamicSecretValidationError{ + field: "Secret", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SecretsConfigDump_DynamicSecretValidationError is the validation error +// returned by SecretsConfigDump_DynamicSecret.Validate if the designated +// constraints aren't met. +type SecretsConfigDump_DynamicSecretValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDump_DynamicSecretValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDump_DynamicSecretValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDump_DynamicSecretValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDump_DynamicSecretValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDump_DynamicSecretValidationError) ErrorName() string { + return "SecretsConfigDump_DynamicSecretValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDump_DynamicSecretValidationError) 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 %sSecretsConfigDump_DynamicSecret.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDump_DynamicSecretValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDump_DynamicSecretValidationError{} + +// Validate checks the field values on SecretsConfigDump_StaticSecret with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SecretsConfigDump_StaticSecret) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetLastUpdated()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_StaticSecretValidationError{ + field: "LastUpdated", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecret()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecretsConfigDump_StaticSecretValidationError{ + field: "Secret", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SecretsConfigDump_StaticSecretValidationError is the validation error +// returned by SecretsConfigDump_StaticSecret.Validate if the designated +// constraints aren't met. +type SecretsConfigDump_StaticSecretValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretsConfigDump_StaticSecretValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretsConfigDump_StaticSecretValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretsConfigDump_StaticSecretValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretsConfigDump_StaticSecretValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretsConfigDump_StaticSecretValidationError) ErrorName() string { + return "SecretsConfigDump_StaticSecretValidationError" +} + +// Error satisfies the builtin error interface +func (e SecretsConfigDump_StaticSecretValidationError) 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 %sSecretsConfigDump_StaticSecret.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretsConfigDump_StaticSecretValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretsConfigDump_StaticSecretValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.go new file mode 100644 index 000000000..665ecf5b4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/listeners.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Listeners struct { + ListenerStatuses []*ListenerStatus `protobuf:"bytes,1,rep,name=listener_statuses,json=listenerStatuses,proto3" json:"listener_statuses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Listeners) Reset() { *m = Listeners{} } +func (m *Listeners) String() string { return proto.CompactTextString(m) } +func (*Listeners) ProtoMessage() {} +func (*Listeners) Descriptor() ([]byte, []int) { + return fileDescriptor_d32da9886d1d0ff3, []int{0} +} + +func (m *Listeners) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Listeners.Unmarshal(m, b) +} +func (m *Listeners) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Listeners.Marshal(b, m, deterministic) +} +func (m *Listeners) XXX_Merge(src proto.Message) { + xxx_messageInfo_Listeners.Merge(m, src) +} +func (m *Listeners) XXX_Size() int { + return xxx_messageInfo_Listeners.Size(m) +} +func (m *Listeners) XXX_DiscardUnknown() { + xxx_messageInfo_Listeners.DiscardUnknown(m) +} + +var xxx_messageInfo_Listeners proto.InternalMessageInfo + +func (m *Listeners) GetListenerStatuses() []*ListenerStatus { + if m != nil { + return m.ListenerStatuses + } + return nil +} + +type ListenerStatus struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + LocalAddress *v3.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenerStatus) Reset() { *m = ListenerStatus{} } +func (m *ListenerStatus) String() string { return proto.CompactTextString(m) } +func (*ListenerStatus) ProtoMessage() {} +func (*ListenerStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_d32da9886d1d0ff3, []int{1} +} + +func (m *ListenerStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenerStatus.Unmarshal(m, b) +} +func (m *ListenerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenerStatus.Marshal(b, m, deterministic) +} +func (m *ListenerStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerStatus.Merge(m, src) +} +func (m *ListenerStatus) XXX_Size() int { + return xxx_messageInfo_ListenerStatus.Size(m) +} +func (m *ListenerStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerStatus proto.InternalMessageInfo + +func (m *ListenerStatus) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ListenerStatus) GetLocalAddress() *v3.Address { + if m != nil { + return m.LocalAddress + } + return nil +} + +func init() { + proto.RegisterType((*Listeners)(nil), "envoy.admin.v3.Listeners") + proto.RegisterType((*ListenerStatus)(nil), "envoy.admin.v3.ListenerStatus") +} + +func init() { proto.RegisterFile("envoy/admin/v3/listeners.proto", fileDescriptor_d32da9886d1d0ff3) } + +var fileDescriptor_d32da9886d1d0ff3 = []byte{ + // 307 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08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, 0x5a, 0x2e, 0xde, 0x3e, 0x5e, 0x82, 0x33, + 0xe8, 0x0f, 0x72, 0x09, 0xa9, 0xea, 0x07, 0x72, 0x08, 0xab, 0xe8, 0x15, 0xc0, 0xe9, 0x70, 0x95, + 0xeb, 0xc2, 0xff, 0x9c, 0x6c, 0xa9, 0x07, 0x42, 0x10, 0x8f, 0x73, 0xf3, 0x76, 0x33, 0x78, 0x5c, + 0x89, 0x82, 0x54, 0xeb, 0xee, 0x7e, 0xcf, 0x09, 0x41, 0x3c, 0x49, 0xfc, 0x8e, 0xca, 0x96, 0x84, + 0xda, 0x92, 0x5a, 0xb6, 0x2b, 0x6b, 0xca, 0x8f, 0x4c, 0xa6, 0x9b, 0x96, 0x17, 0x2d, 0xd0, 0x02, + 0x46, 0x7f, 0x01, 0x59, 0x84, 0xec, 0xf2, 0xfd, 0xf9, 0xf3, 0x6b, 0xe4, 0xcc, 0x1c, 0x78, 0xca, + 0x84, 0xfd, 0xa3, 0x96, 0xe2, 0x71, 0xff, 0xa3, 0x84, 0xec, 0x80, 0xae, 0x56, 0x6d, 0x9b, 0x2b, + 0x70, 0x37, 0x32, 0xb5, 0xa6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x59, 0x41, 0xd9, 0xee, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.validate.go new file mode 100644 index 000000000..780ce83c1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/listeners.pb.validate.go @@ -0,0 +1,193 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/listeners.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _listeners_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Listeners with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Listeners) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetListenerStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenersValidationError{ + field: fmt.Sprintf("ListenerStatuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ListenersValidationError is the validation error returned by +// Listeners.Validate if the designated constraints aren't met. +type ListenersValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenersValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenersValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenersValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenersValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenersValidationError) ErrorName() string { return "ListenersValidationError" } + +// Error satisfies the builtin error interface +func (e ListenersValidationError) 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 %sListeners.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenersValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenersValidationError{} + +// Validate checks the field values on ListenerStatus with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ListenerStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListenerStatusValidationError{ + field: "LocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListenerStatusValidationError is the validation error returned by +// ListenerStatus.Validate if the designated constraints aren't met. +type ListenerStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListenerStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListenerStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListenerStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListenerStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListenerStatusValidationError) ErrorName() string { return "ListenerStatusValidationError" } + +// Error satisfies the builtin error interface +func (e ListenerStatusValidationError) 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 %sListenerStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListenerStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListenerStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.go new file mode 100644 index 000000000..4d5e1945d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.go @@ -0,0 +1,131 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/memory.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Memory struct { + Allocated uint64 `protobuf:"varint,1,opt,name=allocated,proto3" json:"allocated,omitempty"` + HeapSize uint64 `protobuf:"varint,2,opt,name=heap_size,json=heapSize,proto3" json:"heap_size,omitempty"` + PageheapUnmapped uint64 `protobuf:"varint,3,opt,name=pageheap_unmapped,json=pageheapUnmapped,proto3" json:"pageheap_unmapped,omitempty"` + PageheapFree uint64 `protobuf:"varint,4,opt,name=pageheap_free,json=pageheapFree,proto3" json:"pageheap_free,omitempty"` + TotalThreadCache uint64 `protobuf:"varint,5,opt,name=total_thread_cache,json=totalThreadCache,proto3" json:"total_thread_cache,omitempty"` + TotalPhysicalBytes uint64 `protobuf:"varint,6,opt,name=total_physical_bytes,json=totalPhysicalBytes,proto3" json:"total_physical_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Memory) Reset() { *m = Memory{} } +func (m *Memory) String() string { return proto.CompactTextString(m) } +func (*Memory) ProtoMessage() {} +func (*Memory) Descriptor() ([]byte, []int) { + return fileDescriptor_1ea6f9dbe7a0a918, []int{0} +} + +func (m *Memory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Memory.Unmarshal(m, b) +} +func (m *Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Memory.Marshal(b, m, deterministic) +} +func (m *Memory) XXX_Merge(src proto.Message) { + xxx_messageInfo_Memory.Merge(m, src) +} +func (m *Memory) XXX_Size() int { + return xxx_messageInfo_Memory.Size(m) +} +func (m *Memory) XXX_DiscardUnknown() { + xxx_messageInfo_Memory.DiscardUnknown(m) +} + +var xxx_messageInfo_Memory proto.InternalMessageInfo + +func (m *Memory) GetAllocated() uint64 { + if m != nil { + return m.Allocated + } + return 0 +} + +func (m *Memory) GetHeapSize() uint64 { + if m != nil { + return m.HeapSize + } + return 0 +} + +func (m *Memory) GetPageheapUnmapped() uint64 { + if m != nil { + return m.PageheapUnmapped + } + return 0 +} + +func (m *Memory) GetPageheapFree() uint64 { + if m != nil { + return m.PageheapFree + } + return 0 +} + +func (m *Memory) GetTotalThreadCache() uint64 { + if m != nil { + return m.TotalThreadCache + } + return 0 +} + +func (m *Memory) GetTotalPhysicalBytes() uint64 { + if m != nil { + return m.TotalPhysicalBytes + } + return 0 +} + +func init() { + proto.RegisterType((*Memory)(nil), "envoy.admin.v3.Memory") +} + +func init() { proto.RegisterFile("envoy/admin/v3/memory.proto", fileDescriptor_1ea6f9dbe7a0a918) } + +var fileDescriptor_1ea6f9dbe7a0a918 = []byte{ + // 318 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0x4b, 0xc3, 0x30, + 0x18, 0x87, 0x59, 0x9d, 0xc5, 0xc5, 0x3f, 0xcc, 0xe0, 0xa1, 0x6c, 0x53, 0x9c, 0x5e, 0x04, 0xa5, + 0x15, 0x87, 0x17, 0x8f, 0x13, 0xbc, 0x09, 0xc3, 0x3f, 0xe7, 0xf2, 0xae, 0x7d, 0x5d, 0x03, 0x6d, + 0x12, 0x92, 0xb4, 0xd8, 0x9d, 0x3c, 0xfa, 0x11, 0xc4, 0x8f, 0xe2, 0x5d, 0xf0, 0xea, 0x37, 0x92, + 0x26, 0x9b, 0x32, 0xbc, 0x3e, 0xcf, 0xc3, 0x1b, 0xf8, 0x85, 0xf4, 0x91, 0x57, 0xa2, 0x8e, 0x20, + 0x2d, 0x18, 0x8f, 0xaa, 0x51, 0x54, 0x60, 0x21, 0x54, 0x1d, 0x4a, 0x25, 0x8c, 0xa0, 0x3b, 0x56, + 0x86, 0x56, 0x86, 0x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32, 0x60, 0x22, 0xb4, 0xa1, 0x54, 0xe2, 0xb9, + 0x0e, 0x57, 0x3f, 0x61, 0xbc, 0xe9, 0xfa, 0x49, 0xb3, 0xe7, 0xa4, 0x35, 0xf5, 0xed, 0xb0, 0xa3, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc1, 0xa0, 0xda, 0xc9, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.validate.go new file mode 100644 index 000000000..e3f36aa47 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/memory.pb.validate.go @@ -0,0 +1,113 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/memory.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _memory_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Memory with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Memory) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Allocated + + // no validation rules for HeapSize + + // no validation rules for PageheapUnmapped + + // no validation rules for PageheapFree + + // no validation rules for TotalThreadCache + + // no validation rules for TotalPhysicalBytes + + return nil +} + +// MemoryValidationError is the validation error returned by Memory.Validate if +// the designated constraints aren't met. +type MemoryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MemoryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MemoryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MemoryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MemoryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MemoryValidationError) ErrorName() string { return "MemoryValidationError" } + +// Error satisfies the builtin error interface +func (e MemoryValidationError) 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 %sMemory.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MemoryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MemoryValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.go new file mode 100644 index 000000000..e0db54015 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.go @@ -0,0 +1,131 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/metrics.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SimpleMetric_Type int32 + +const ( + SimpleMetric_COUNTER SimpleMetric_Type = 0 + SimpleMetric_GAUGE SimpleMetric_Type = 1 +) + +var SimpleMetric_Type_name = map[int32]string{ + 0: "COUNTER", + 1: "GAUGE", +} + +var SimpleMetric_Type_value = map[string]int32{ + "COUNTER": 0, + "GAUGE": 1, +} + +func (x SimpleMetric_Type) String() string { + return proto.EnumName(SimpleMetric_Type_name, int32(x)) +} + +func (SimpleMetric_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f43fd25d8f6d2cfd, []int{0, 0} +} + +type SimpleMetric struct { + Type SimpleMetric_Type `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.admin.v3.SimpleMetric_Type" json:"type,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SimpleMetric) Reset() { *m = SimpleMetric{} } +func (m *SimpleMetric) String() string { return proto.CompactTextString(m) } +func (*SimpleMetric) ProtoMessage() {} +func (*SimpleMetric) Descriptor() ([]byte, []int) { + return fileDescriptor_f43fd25d8f6d2cfd, []int{0} +} + +func (m *SimpleMetric) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SimpleMetric.Unmarshal(m, b) +} +func (m *SimpleMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SimpleMetric.Marshal(b, m, deterministic) +} +func (m *SimpleMetric) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimpleMetric.Merge(m, src) +} +func (m *SimpleMetric) XXX_Size() int { + return xxx_messageInfo_SimpleMetric.Size(m) +} +func (m *SimpleMetric) XXX_DiscardUnknown() { + xxx_messageInfo_SimpleMetric.DiscardUnknown(m) +} + +var xxx_messageInfo_SimpleMetric proto.InternalMessageInfo + +func (m *SimpleMetric) GetType() SimpleMetric_Type { + if m != nil { + return m.Type + } + return SimpleMetric_COUNTER +} + +func (m *SimpleMetric) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +func (m *SimpleMetric) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func init() { + proto.RegisterEnum("envoy.admin.v3.SimpleMetric_Type", SimpleMetric_Type_name, SimpleMetric_Type_value) + proto.RegisterType((*SimpleMetric)(nil), "envoy.admin.v3.SimpleMetric") +} + +func init() { proto.RegisterFile("envoy/admin/v3/metrics.proto", fileDescriptor_f43fd25d8f6d2cfd) } + +var fileDescriptor_f43fd25d8f6d2cfd = []byte{ + // 274 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x2f, 0x33, 0xd6, 0xcf, 0x4d, 0x2d, 0x29, 0xca, + 0x4c, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x03, 0xcb, 0xea, 0x81, 0x65, 0xf5, + 0xca, 0x8c, 0xa5, 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, + 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0xa1, 0xca, 0xa5, 0x14, 0x31, 0xa4, + 0xcb, 0x52, 0x8b, 0x8a, 0x33, 0xf3, 0xf3, 0x32, 0xf3, 0xd2, 0x21, 0x4a, 0x94, 0x76, 0x30, 0x72, + 0xf1, 0x04, 0x67, 0xe6, 0x16, 0xe4, 0xa4, 0xfa, 0x82, 0x6d, 0x12, 0x32, 0xe5, 0x62, 0x29, 0xa9, + 0x2c, 0x48, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x33, 0x52, 0xd4, 0x43, 0xb5, 0x51, 0x0f, 0x59, + 0xad, 0x5e, 0x48, 0x65, 0x41, 0x6a, 0x10, 0x58, 0xb9, 0x90, 0x08, 0x17, 0x6b, 0x59, 0x62, 0x4e, + 0x69, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x84, 0x23, 0x24, 0xc4, 0xc5, 0x92, 0x97, + 0x98, 0x9b, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x2b, 0xc9, 0x71, 0xb1, 0x80, + 0xf4, 0x09, 0x71, 0x73, 0xb1, 0x3b, 0xfb, 0x87, 0xfa, 0x85, 0xb8, 0x06, 0x09, 0x30, 0x08, 0x71, + 0x72, 0xb1, 0xba, 0x3b, 0x86, 0xba, 0xbb, 0x0a, 0x30, 0x5a, 0xa9, 0xcf, 0x3a, 0xda, 0x21, 0xa7, + 0xc4, 0xa5, 0x80, 0x62, 0xb1, 0x51, 0x62, 0x4e, 0x41, 0x46, 0x22, 0x8a, 0xed, 0x4e, 0x66, 0xbb, + 0x1a, 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe2, 0x92, 0xc9, 0xcc, 0x87, 0xb8, 0xb3, 0xa0, 0x28, + 0xbf, 0xa2, 0x12, 0xcd, 0xc9, 0x4e, 0x3c, 0x10, 0xf5, 0xc5, 0x01, 0x20, 0x0f, 0x07, 0x30, 0x26, + 0xb1, 0x81, 0x7d, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x18, 0xb3, 0x53, 0xc9, 0x6b, 0x01, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.validate.go new file mode 100644 index 000000000..69ac926b5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/metrics.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/metrics.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _metrics_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on SimpleMetric with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SimpleMetric) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for Value + + // no validation rules for Name + + return nil +} + +// SimpleMetricValidationError is the validation error returned by +// SimpleMetric.Validate if the designated constraints aren't met. +type SimpleMetricValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SimpleMetricValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SimpleMetricValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SimpleMetricValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SimpleMetricValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SimpleMetricValidationError) ErrorName() string { return "SimpleMetricValidationError" } + +// Error satisfies the builtin error interface +func (e SimpleMetricValidationError) 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 %sSimpleMetric.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SimpleMetricValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SimpleMetricValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.go new file mode 100644 index 000000000..51d94d2ef --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/mutex_stats.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MutexStats struct { + NumContentions uint64 `protobuf:"varint,1,opt,name=num_contentions,json=numContentions,proto3" json:"num_contentions,omitempty"` + CurrentWaitCycles uint64 `protobuf:"varint,2,opt,name=current_wait_cycles,json=currentWaitCycles,proto3" json:"current_wait_cycles,omitempty"` + LifetimeWaitCycles uint64 `protobuf:"varint,3,opt,name=lifetime_wait_cycles,json=lifetimeWaitCycles,proto3" json:"lifetime_wait_cycles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MutexStats) Reset() { *m = MutexStats{} } +func (m *MutexStats) String() string { return proto.CompactTextString(m) } +func (*MutexStats) ProtoMessage() {} +func (*MutexStats) Descriptor() ([]byte, []int) { + return fileDescriptor_9349e5fbf8e6615b, []int{0} +} + +func (m *MutexStats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MutexStats.Unmarshal(m, b) +} +func (m *MutexStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MutexStats.Marshal(b, m, deterministic) +} +func (m *MutexStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutexStats.Merge(m, src) +} +func (m *MutexStats) XXX_Size() int { + return xxx_messageInfo_MutexStats.Size(m) +} +func (m *MutexStats) XXX_DiscardUnknown() { + xxx_messageInfo_MutexStats.DiscardUnknown(m) +} + +var xxx_messageInfo_MutexStats proto.InternalMessageInfo + +func (m *MutexStats) GetNumContentions() uint64 { + if m != nil { + return m.NumContentions + } + return 0 +} + +func (m *MutexStats) GetCurrentWaitCycles() uint64 { + if m != nil { + return m.CurrentWaitCycles + } + return 0 +} + +func (m *MutexStats) GetLifetimeWaitCycles() uint64 { + if m != nil { + return m.LifetimeWaitCycles + } + return 0 +} + +func init() { + proto.RegisterType((*MutexStats)(nil), "envoy.admin.v3.MutexStats") +} + +func init() { proto.RegisterFile("envoy/admin/v3/mutex_stats.proto", fileDescriptor_9349e5fbf8e6615b) } + +var fileDescriptor_9349e5fbf8e6615b = []byte{ + // 266 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xb1, 0x4e, 0xc3, 0x30, + 0x10, 0x40, 0x95, 0x82, 0x3a, 0x78, 0x68, 0xc1, 0x30, 0x54, 0x15, 0x54, 0x01, 0x09, 0xc1, 0x64, + 0x23, 0x32, 0xc1, 0xd8, 0xce, 0x48, 0x15, 0x0c, 0x8c, 0x91, 0x49, 0x0d, 0x58, 0x8a, 0xef, 0x22, + 0xfb, 0x1c, 0x9a, 0x8d, 0x91, 0x6f, 0xe0, 0x53, 0x18, 0xd8, 0x90, 0x58, 0xf9, 0x23, 0x14, 0x53, + 0x14, 0x45, 0xac, 0x7e, 0xef, 0xe9, 0x7c, 0xc7, 0x52, 0x0d, 0x35, 0x36, 0x52, 0xad, 0xac, 0x01, + 0x59, 0x67, 0xd2, 0x06, 0xd2, 0xeb, 0xdc, 0x93, 0x22, 0x2f, 0x2a, 0x87, 0x84, 0x7c, 0x14, 0x0d, + 0x11, 0x0d, 0x51, 0x67, 0xd3, 0xc3, 0xb0, 0xaa, 0x94, 0x54, 0x00, 0x48, 0x8a, 0x0c, 0x82, 0x97, + 0xad, 0x1d, 0x36, 0xfa, 0xf4, 0xe8, 0x1f, 0xae, 0xb5, 0xf3, 0x06, 0xc1, 0xc0, 0xe3, 0xaf, 0x72, + 0xfc, 0x91, 0x30, 0x76, 0xdd, 0xce, 0xb9, 0x6d, 0xc7, 0xf0, 0x53, 0x36, 0x86, 0x60, 0xf3, 0x02, + 0x81, 0x34, 0xc4, 0x64, 0x92, 0xa4, 0xc9, 0xd9, 0xf6, 0xcd, 0x08, 0x82, 0x5d, 0x74, 0xaf, 0x5c, + 0xb0, 0xbd, 0x22, 0x38, 0xa7, 0x81, 0xf2, 0x67, 0x65, 0x28, 0x2f, 0x9a, 0xa2, 0xd4, 0x7e, 0x32, + 0x88, 0xf2, 0xee, 0x06, 0xdd, 0x29, 0x43, 0x8b, 0x08, 0xf8, 0x39, 0xdb, 0x2f, 0xcd, 0x83, 0x26, + 0x63, 0x75, 0x2f, 0xd8, 0x8a, 0x01, 0xff, 0x63, 0x5d, 0x71, 0x75, 0xf2, 0xf6, 0xf9, 0x3a, 0x4b, + 0xd9, 0xac, 0xb7, 0xf2, 0x85, 0x2a, 0xab, 0x27, 0x25, 0xba, 0x1f, 0xcf, 0x2f, 0xdf, 0x5f, 0xbe, + 0xbe, 0x87, 0x83, 0x9d, 0x01, 0x3b, 0x30, 0x28, 0xa2, 0x5c, 0x39, 0x5c, 0x37, 0xa2, 0x7f, 0xaa, + 0xf9, 0xb8, 0x6b, 0x96, 0xed, 0xe6, 0xcb, 0xe4, 0x7e, 0x18, 0x4f, 0x90, 0xfd, 0x04, 0x00, 0x00, + 0xff, 0xff, 0xfc, 0x2c, 0x15, 0x07, 0x78, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.validate.go new file mode 100644 index 000000000..5fed95a00 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/mutex_stats.pb.validate.go @@ -0,0 +1,107 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/mutex_stats.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mutex_stats_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MutexStats with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MutexStats) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NumContentions + + // no validation rules for CurrentWaitCycles + + // no validation rules for LifetimeWaitCycles + + return nil +} + +// MutexStatsValidationError is the validation error returned by +// MutexStats.Validate if the designated constraints aren't met. +type MutexStatsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MutexStatsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MutexStatsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MutexStatsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MutexStatsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MutexStatsValidationError) ErrorName() string { return "MutexStatsValidationError" } + +// Error satisfies the builtin error interface +func (e MutexStatsValidationError) 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 %sMutexStats.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MutexStatsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MutexStatsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.go new file mode 100644 index 000000000..e995366f0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.go @@ -0,0 +1,520 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/server_info.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ServerInfo_State int32 + +const ( + ServerInfo_LIVE ServerInfo_State = 0 + ServerInfo_DRAINING ServerInfo_State = 1 + ServerInfo_PRE_INITIALIZING ServerInfo_State = 2 + ServerInfo_INITIALIZING ServerInfo_State = 3 +) + +var ServerInfo_State_name = map[int32]string{ + 0: "LIVE", + 1: "DRAINING", + 2: "PRE_INITIALIZING", + 3: "INITIALIZING", +} + +var ServerInfo_State_value = map[string]int32{ + "LIVE": 0, + "DRAINING": 1, + "PRE_INITIALIZING": 2, + "INITIALIZING": 3, +} + +func (x ServerInfo_State) String() string { + return proto.EnumName(ServerInfo_State_name, int32(x)) +} + +func (ServerInfo_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8736ae14312a45ee, []int{0, 0} +} + +type CommandLineOptions_IpVersion int32 + +const ( + CommandLineOptions_v4 CommandLineOptions_IpVersion = 0 + CommandLineOptions_v6 CommandLineOptions_IpVersion = 1 +) + +var CommandLineOptions_IpVersion_name = map[int32]string{ + 0: "v4", + 1: "v6", +} + +var CommandLineOptions_IpVersion_value = map[string]int32{ + "v4": 0, + "v6": 1, +} + +func (x CommandLineOptions_IpVersion) String() string { + return proto.EnumName(CommandLineOptions_IpVersion_name, int32(x)) +} + +func (CommandLineOptions_IpVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8736ae14312a45ee, []int{1, 0} +} + +type CommandLineOptions_Mode int32 + +const ( + CommandLineOptions_Serve CommandLineOptions_Mode = 0 + CommandLineOptions_Validate CommandLineOptions_Mode = 1 + CommandLineOptions_InitOnly CommandLineOptions_Mode = 2 +) + +var CommandLineOptions_Mode_name = map[int32]string{ + 0: "Serve", + 1: "Validate", + 2: "InitOnly", +} + +var CommandLineOptions_Mode_value = map[string]int32{ + "Serve": 0, + "Validate": 1, + "InitOnly": 2, +} + +func (x CommandLineOptions_Mode) String() string { + return proto.EnumName(CommandLineOptions_Mode_name, int32(x)) +} + +func (CommandLineOptions_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8736ae14312a45ee, []int{1, 1} +} + +type ServerInfo struct { + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + State ServerInfo_State `protobuf:"varint,2,opt,name=state,proto3,enum=envoy.admin.v3.ServerInfo_State" json:"state,omitempty"` + UptimeCurrentEpoch *duration.Duration `protobuf:"bytes,3,opt,name=uptime_current_epoch,json=uptimeCurrentEpoch,proto3" json:"uptime_current_epoch,omitempty"` + UptimeAllEpochs *duration.Duration `protobuf:"bytes,4,opt,name=uptime_all_epochs,json=uptimeAllEpochs,proto3" json:"uptime_all_epochs,omitempty"` + HotRestartVersion string `protobuf:"bytes,5,opt,name=hot_restart_version,json=hotRestartVersion,proto3" json:"hot_restart_version,omitempty"` + CommandLineOptions *CommandLineOptions `protobuf:"bytes,6,opt,name=command_line_options,json=commandLineOptions,proto3" json:"command_line_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfo) Reset() { *m = ServerInfo{} } +func (m *ServerInfo) String() string { return proto.CompactTextString(m) } +func (*ServerInfo) ProtoMessage() {} +func (*ServerInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_8736ae14312a45ee, []int{0} +} + +func (m *ServerInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServerInfo.Unmarshal(m, b) +} +func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServerInfo.Marshal(b, m, deterministic) +} +func (m *ServerInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfo.Merge(m, src) +} +func (m *ServerInfo) XXX_Size() int { + return xxx_messageInfo_ServerInfo.Size(m) +} +func (m *ServerInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ServerInfo proto.InternalMessageInfo + +func (m *ServerInfo) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ServerInfo) GetState() ServerInfo_State { + if m != nil { + return m.State + } + return ServerInfo_LIVE +} + +func (m *ServerInfo) GetUptimeCurrentEpoch() *duration.Duration { + if m != nil { + return m.UptimeCurrentEpoch + } + return nil +} + +func (m *ServerInfo) GetUptimeAllEpochs() *duration.Duration { + if m != nil { + return m.UptimeAllEpochs + } + return nil +} + +func (m *ServerInfo) GetHotRestartVersion() string { + if m != nil { + return m.HotRestartVersion + } + return "" +} + +func (m *ServerInfo) GetCommandLineOptions() *CommandLineOptions { + if m != nil { + return m.CommandLineOptions + } + return nil +} + +type CommandLineOptions struct { + BaseId uint64 `protobuf:"varint,1,opt,name=base_id,json=baseId,proto3" json:"base_id,omitempty"` + Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + ConfigPath string `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + ConfigYaml string `protobuf:"bytes,4,opt,name=config_yaml,json=configYaml,proto3" json:"config_yaml,omitempty"` + AllowUnknownStaticFields bool `protobuf:"varint,5,opt,name=allow_unknown_static_fields,json=allowUnknownStaticFields,proto3" json:"allow_unknown_static_fields,omitempty"` + RejectUnknownDynamicFields bool `protobuf:"varint,26,opt,name=reject_unknown_dynamic_fields,json=rejectUnknownDynamicFields,proto3" json:"reject_unknown_dynamic_fields,omitempty"` + AdminAddressPath string `protobuf:"bytes,6,opt,name=admin_address_path,json=adminAddressPath,proto3" json:"admin_address_path,omitempty"` + LocalAddressIpVersion CommandLineOptions_IpVersion `protobuf:"varint,7,opt,name=local_address_ip_version,json=localAddressIpVersion,proto3,enum=envoy.admin.v3.CommandLineOptions_IpVersion" json:"local_address_ip_version,omitempty"` + LogLevel string `protobuf:"bytes,8,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` + ComponentLogLevel string `protobuf:"bytes,9,opt,name=component_log_level,json=componentLogLevel,proto3" json:"component_log_level,omitempty"` + LogFormat string `protobuf:"bytes,10,opt,name=log_format,json=logFormat,proto3" json:"log_format,omitempty"` + LogFormatEscaped bool `protobuf:"varint,27,opt,name=log_format_escaped,json=logFormatEscaped,proto3" json:"log_format_escaped,omitempty"` + LogPath string `protobuf:"bytes,11,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"` + ServiceCluster string `protobuf:"bytes,13,opt,name=service_cluster,json=serviceCluster,proto3" json:"service_cluster,omitempty"` + ServiceNode string `protobuf:"bytes,14,opt,name=service_node,json=serviceNode,proto3" json:"service_node,omitempty"` + ServiceZone string `protobuf:"bytes,15,opt,name=service_zone,json=serviceZone,proto3" json:"service_zone,omitempty"` + FileFlushInterval *duration.Duration `protobuf:"bytes,16,opt,name=file_flush_interval,json=fileFlushInterval,proto3" json:"file_flush_interval,omitempty"` + DrainTime *duration.Duration `protobuf:"bytes,17,opt,name=drain_time,json=drainTime,proto3" json:"drain_time,omitempty"` + ParentShutdownTime *duration.Duration `protobuf:"bytes,18,opt,name=parent_shutdown_time,json=parentShutdownTime,proto3" json:"parent_shutdown_time,omitempty"` + Mode CommandLineOptions_Mode `protobuf:"varint,19,opt,name=mode,proto3,enum=envoy.admin.v3.CommandLineOptions_Mode" json:"mode,omitempty"` + HiddenEnvoyDeprecatedMaxStats uint64 `protobuf:"varint,20,opt,name=hidden_envoy_deprecated_max_stats,json=hiddenEnvoyDeprecatedMaxStats,proto3" json:"hidden_envoy_deprecated_max_stats,omitempty"` // Deprecated: Do not use. + HiddenEnvoyDeprecatedMaxObjNameLen uint64 `protobuf:"varint,21,opt,name=hidden_envoy_deprecated_max_obj_name_len,json=hiddenEnvoyDeprecatedMaxObjNameLen,proto3" json:"hidden_envoy_deprecated_max_obj_name_len,omitempty"` // Deprecated: Do not use. + DisableHotRestart bool `protobuf:"varint,22,opt,name=disable_hot_restart,json=disableHotRestart,proto3" json:"disable_hot_restart,omitempty"` + EnableMutexTracing bool `protobuf:"varint,23,opt,name=enable_mutex_tracing,json=enableMutexTracing,proto3" json:"enable_mutex_tracing,omitempty"` + RestartEpoch uint32 `protobuf:"varint,24,opt,name=restart_epoch,json=restartEpoch,proto3" json:"restart_epoch,omitempty"` + CpusetThreads bool `protobuf:"varint,25,opt,name=cpuset_threads,json=cpusetThreads,proto3" json:"cpuset_threads,omitempty"` + DisabledExtensions []string `protobuf:"bytes,28,rep,name=disabled_extensions,json=disabledExtensions,proto3" json:"disabled_extensions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandLineOptions) Reset() { *m = CommandLineOptions{} } +func (m *CommandLineOptions) String() string { return proto.CompactTextString(m) } +func (*CommandLineOptions) ProtoMessage() {} +func (*CommandLineOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_8736ae14312a45ee, []int{1} +} + +func (m *CommandLineOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommandLineOptions.Unmarshal(m, b) +} +func (m *CommandLineOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommandLineOptions.Marshal(b, m, deterministic) +} +func (m *CommandLineOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandLineOptions.Merge(m, src) +} +func (m *CommandLineOptions) XXX_Size() int { + return xxx_messageInfo_CommandLineOptions.Size(m) +} +func (m *CommandLineOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CommandLineOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CommandLineOptions proto.InternalMessageInfo + +func (m *CommandLineOptions) GetBaseId() uint64 { + if m != nil { + return m.BaseId + } + return 0 +} + +func (m *CommandLineOptions) GetConcurrency() uint32 { + if m != nil { + return m.Concurrency + } + return 0 +} + +func (m *CommandLineOptions) GetConfigPath() string { + if m != nil { + return m.ConfigPath + } + return "" +} + +func (m *CommandLineOptions) GetConfigYaml() string { + if m != nil { + return m.ConfigYaml + } + return "" +} + +func (m *CommandLineOptions) GetAllowUnknownStaticFields() bool { + if m != nil { + return m.AllowUnknownStaticFields + } + return false +} + +func (m *CommandLineOptions) GetRejectUnknownDynamicFields() bool { + if m != nil { + return m.RejectUnknownDynamicFields + } + return false +} + +func (m *CommandLineOptions) GetAdminAddressPath() string { + if m != nil { + return m.AdminAddressPath + } + return "" +} + +func (m *CommandLineOptions) GetLocalAddressIpVersion() CommandLineOptions_IpVersion { + if m != nil { + return m.LocalAddressIpVersion + } + return CommandLineOptions_v4 +} + +func (m *CommandLineOptions) GetLogLevel() string { + if m != nil { + return m.LogLevel + } + return "" +} + +func (m *CommandLineOptions) GetComponentLogLevel() string { + if m != nil { + return m.ComponentLogLevel + } + return "" +} + +func (m *CommandLineOptions) GetLogFormat() string { + if m != nil { + return m.LogFormat + } + return "" +} + +func (m *CommandLineOptions) GetLogFormatEscaped() bool { + if m != nil { + return m.LogFormatEscaped + } + return false +} + +func (m *CommandLineOptions) GetLogPath() string { + if m != nil { + return m.LogPath + } + return "" +} + +func (m *CommandLineOptions) GetServiceCluster() string { + if m != nil { + return m.ServiceCluster + } + return "" +} + +func (m *CommandLineOptions) GetServiceNode() string { + if m != nil { + return m.ServiceNode + } + return "" +} + +func (m *CommandLineOptions) GetServiceZone() string { + if m != nil { + return m.ServiceZone + } + return "" +} + +func (m *CommandLineOptions) GetFileFlushInterval() *duration.Duration { + if m != nil { + return m.FileFlushInterval + } + return nil +} + +func (m *CommandLineOptions) GetDrainTime() *duration.Duration { + if m != nil { + return m.DrainTime + } + return nil +} + +func (m *CommandLineOptions) GetParentShutdownTime() *duration.Duration { + if m != nil { + return m.ParentShutdownTime + } + return nil +} + +func (m *CommandLineOptions) GetMode() CommandLineOptions_Mode { + if m != nil { + return m.Mode + } + return CommandLineOptions_Serve +} + +// Deprecated: Do not use. +func (m *CommandLineOptions) GetHiddenEnvoyDeprecatedMaxStats() uint64 { + if m != nil { + return m.HiddenEnvoyDeprecatedMaxStats + } + return 0 +} + +// Deprecated: Do not use. +func (m *CommandLineOptions) GetHiddenEnvoyDeprecatedMaxObjNameLen() uint64 { + if m != nil { + return m.HiddenEnvoyDeprecatedMaxObjNameLen + } + return 0 +} + +func (m *CommandLineOptions) GetDisableHotRestart() bool { + if m != nil { + return m.DisableHotRestart + } + return false +} + +func (m *CommandLineOptions) GetEnableMutexTracing() bool { + if m != nil { + return m.EnableMutexTracing + } + return false +} + +func (m *CommandLineOptions) GetRestartEpoch() uint32 { + if m != nil { + return m.RestartEpoch + } + return 0 +} + +func (m *CommandLineOptions) GetCpusetThreads() bool { + if m != nil { + return m.CpusetThreads + } + return false +} + +func (m *CommandLineOptions) GetDisabledExtensions() []string { + if m != nil { + return m.DisabledExtensions + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.admin.v3.ServerInfo_State", ServerInfo_State_name, ServerInfo_State_value) + proto.RegisterEnum("envoy.admin.v3.CommandLineOptions_IpVersion", CommandLineOptions_IpVersion_name, CommandLineOptions_IpVersion_value) + proto.RegisterEnum("envoy.admin.v3.CommandLineOptions_Mode", CommandLineOptions_Mode_name, CommandLineOptions_Mode_value) + proto.RegisterType((*ServerInfo)(nil), "envoy.admin.v3.ServerInfo") + proto.RegisterType((*CommandLineOptions)(nil), "envoy.admin.v3.CommandLineOptions") +} + +func init() { proto.RegisterFile("envoy/admin/v3/server_info.proto", fileDescriptor_8736ae14312a45ee) } + +var fileDescriptor_8736ae14312a45ee = []byte{ + // 1116 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdf, 0x72, 0x1b, 0xb5, + 0x17, 0xc7, 0x6b, 0xc7, 0x71, 0x6d, 0xe5, 0xdf, 0x46, 0x4d, 0x7f, 0xdd, 0x26, 0x4d, 0x7f, 0xae, + 0x3b, 0xa5, 0xbe, 0x68, 0x6d, 0xa6, 0x65, 0x3a, 0x50, 0x86, 0x8b, 0xb4, 0x71, 0xcb, 0x82, 0x9b, + 0x66, 0x36, 0xa1, 0x33, 0xf4, 0x02, 0x8d, 0xbc, 0x92, 0x6d, 0x05, 0xad, 0xb4, 0xb3, 0xab, 0x75, + 0x63, 0xae, 0xb8, 0xe4, 0x19, 0x78, 0x12, 0x86, 0x7b, 0x66, 0xb8, 0x85, 0xa7, 0xe0, 0x0a, 0x66, + 0x78, 0x02, 0x46, 0x47, 0xeb, 0x3f, 0x49, 0x80, 0x70, 0xe5, 0xd9, 0x73, 0x3e, 0xe7, 0x6b, 0xe9, + 0xe8, 0xab, 0x23, 0xd4, 0xe0, 0x6a, 0xac, 0x27, 0x1d, 0xca, 0x62, 0xa1, 0x3a, 0xe3, 0xc7, 0x9d,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x3d, 0x3d, 0x5c, + 0x47, 0xcb, 0x30, 0xa3, 0xdd, 0xf4, 0x7f, 0x43, 0xa5, 0x60, 0xd4, 0x70, 0xaf, 0x64, 0xbf, 0x02, + 0x25, 0xcc, 0x6b, 0x25, 0x27, 0x5e, 0xf9, 0xe9, 0x43, 0x3b, 0xe3, 0x5b, 0xe8, 0xbd, 0xbf, 0x9b, + 0xf1, 0x17, 0x8d, 0xf1, 0x59, 0xa5, 0xb6, 0xea, 0xad, 0x3d, 0xfb, 0xe8, 0xc7, 0x6f, 0x7f, 0xfe, + 0xa5, 0x5a, 0xf6, 0xca, 0xe8, 0x96, 0xd0, 0xce, 0x4e, 0x49, 0xaa, 0x4f, 0x27, 0xe7, 0x9c, 0xf5, + 0x6c, 0x63, 0xfe, 0x4a, 0x1c, 0x5a, 0xa7, 0x1e, 0x96, 0xfa, 0x55, 0xb0, 0xec, 0xe3, 0xbf, 0x02, + 0x00, 0x00, 0xff, 0xff, 0xea, 0xe6, 0x15, 0xa6, 0xd9, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.validate.go new file mode 100644 index 000000000..a25f4facb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/server_info.pb.validate.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/server_info.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _server_info_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ServerInfo with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ServerInfo) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Version + + // no validation rules for State + + if v, ok := interface{}(m.GetUptimeCurrentEpoch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "UptimeCurrentEpoch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUptimeAllEpochs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "UptimeAllEpochs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for HotRestartVersion + + if v, ok := interface{}(m.GetCommandLineOptions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ServerInfoValidationError{ + field: "CommandLineOptions", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ServerInfoValidationError is the validation error returned by +// ServerInfo.Validate if the designated constraints aren't met. +type ServerInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ServerInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ServerInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ServerInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ServerInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ServerInfoValidationError) ErrorName() string { return "ServerInfoValidationError" } + +// Error satisfies the builtin error interface +func (e ServerInfoValidationError) 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 %sServerInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ServerInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ServerInfoValidationError{} + +// Validate checks the field values on CommandLineOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommandLineOptions) Validate() error { + if m == nil { + return nil + } + + // no validation rules for BaseId + + // no validation rules for Concurrency + + // no validation rules for ConfigPath + + // no validation rules for ConfigYaml + + // no validation rules for AllowUnknownStaticFields + + // no validation rules for RejectUnknownDynamicFields + + // no validation rules for AdminAddressPath + + // no validation rules for LocalAddressIpVersion + + // no validation rules for LogLevel + + // no validation rules for ComponentLogLevel + + // no validation rules for LogFormat + + // no validation rules for LogFormatEscaped + + // no validation rules for LogPath + + // no validation rules for ServiceCluster + + // no validation rules for ServiceNode + + // no validation rules for ServiceZone + + if v, ok := interface{}(m.GetFileFlushInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "FileFlushInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDrainTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "DrainTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentShutdownTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommandLineOptionsValidationError{ + field: "ParentShutdownTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Mode + + // no validation rules for HiddenEnvoyDeprecatedMaxStats + + // no validation rules for HiddenEnvoyDeprecatedMaxObjNameLen + + // no validation rules for DisableHotRestart + + // no validation rules for EnableMutexTracing + + // no validation rules for RestartEpoch + + // no validation rules for CpusetThreads + + return nil +} + +// CommandLineOptionsValidationError is the validation error returned by +// CommandLineOptions.Validate if the designated constraints aren't met. +type CommandLineOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommandLineOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommandLineOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommandLineOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommandLineOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommandLineOptionsValidationError) ErrorName() string { + return "CommandLineOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e CommandLineOptionsValidationError) 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 %sCommandLineOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommandLineOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommandLineOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.go new file mode 100644 index 000000000..023965a82 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.go @@ -0,0 +1,100 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/admin/v3/tap.proto + +package envoy_admin_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/tap/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TapRequest struct { + ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` + TapConfig *v3.TapConfig `protobuf:"bytes,2,opt,name=tap_config,json=tapConfig,proto3" json:"tap_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapRequest) Reset() { *m = TapRequest{} } +func (m *TapRequest) String() string { return proto.CompactTextString(m) } +func (*TapRequest) ProtoMessage() {} +func (*TapRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5971adf35bcdc88e, []int{0} +} + +func (m *TapRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapRequest.Unmarshal(m, b) +} +func (m *TapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapRequest.Marshal(b, m, deterministic) +} +func (m *TapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapRequest.Merge(m, src) +} +func (m *TapRequest) XXX_Size() int { + return xxx_messageInfo_TapRequest.Size(m) +} +func (m *TapRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TapRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TapRequest proto.InternalMessageInfo + +func (m *TapRequest) GetConfigId() string { + if m != nil { + return m.ConfigId + } + return "" +} + +func (m *TapRequest) GetTapConfig() *v3.TapConfig { + if m != nil { + return m.TapConfig + } + return nil +} + +func init() { + proto.RegisterType((*TapRequest)(nil), "envoy.admin.v3.TapRequest") +} + +func init() { proto.RegisterFile("envoy/admin/v3/tap.proto", fileDescriptor_5971adf35bcdc88e) } + +var fileDescriptor_5971adf35bcdc88e = []byte{ + // 290 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x31, 0x4b, 0xf4, 0x30, + 0x18, 0xc7, 0x49, 0x79, 0xdf, 0xb3, 0x8d, 0x20, 0x47, 0x17, 0xcb, 0xa1, 0xa5, 0x8a, 0xc2, 0x4d, + 0x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x87, 0x40, 0xf8, 0x1b, 0xf1, 0xff, 0x95, 0x78, 0x63, 0x92, + 0x07, 0x66, 0x17, 0x5e, 0x5d, 0xbe, 0x7d, 0xbe, 0xc4, 0x09, 0x8d, 0xf7, 0x36, 0x92, 0xc2, 0x4a, + 0x3f, 0x00, 0xfb, 0x9d, 0x4a, 0xa4, 0x1f, 0xcf, 0x5f, 0xdf, 0x23, 0x6f, 0xec, 0xd1, 0x13, 0x89, + 0xee, 0x1f, 0xdd, 0xe0, 0xd3, 0x9a, 0xed, 0x6f, 0x52, 0xf8, 0x05, 0xe8, 0x59, 0xaf, 0x35, 0x23, + 0x77, 0xa3, 0xc1, 0x2f, 0xfb, 0x09, 0x00, 0x00, 0xff, 0xff, 0x81, 0x73, 0x63, 0x32, 0x88, 0x01, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.validate.go new file mode 100644 index 000000000..cd1289b2b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/admin/v3/tap.pb.validate.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/admin/v3/tap.proto + +package envoy_admin_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapRequest with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TapRequest) Validate() error { + if m == nil { + return nil + } + + if len(m.GetConfigId()) < 1 { + return TapRequestValidationError{ + field: "ConfigId", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetTapConfig() == nil { + return TapRequestValidationError{ + field: "TapConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTapConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapRequestValidationError{ + field: "TapConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapRequestValidationError is the validation error returned by +// TapRequest.Validate if the designated constraints aren't met. +type TapRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapRequestValidationError) ErrorName() string { return "TapRequestValidationError" } + +// Error satisfies the builtin error interface +func (e TapRequestValidationError) 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 %sTapRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapRequestValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.go new file mode 100644 index 000000000..b4ac6fc9a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/api/v2/ratelimit/ratelimit.proto + +package envoy_api_v2_ratelimit + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitDescriptor struct { + Entries []*RateLimitDescriptor_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitDescriptor) Reset() { *m = RateLimitDescriptor{} } +func (m *RateLimitDescriptor) String() string { return proto.CompactTextString(m) } +func (*RateLimitDescriptor) ProtoMessage() {} +func (*RateLimitDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_5684844e04543b8d, []int{0} +} + +func (m *RateLimitDescriptor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitDescriptor.Unmarshal(m, b) +} +func (m *RateLimitDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitDescriptor.Marshal(b, m, deterministic) +} +func (m *RateLimitDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitDescriptor.Merge(m, src) +} +func (m *RateLimitDescriptor) XXX_Size() int { + return xxx_messageInfo_RateLimitDescriptor.Size(m) +} +func (m *RateLimitDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitDescriptor proto.InternalMessageInfo + +func (m *RateLimitDescriptor) GetEntries() []*RateLimitDescriptor_Entry { + if m != nil { + return m.Entries + } + return nil +} + +type RateLimitDescriptor_Entry struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitDescriptor_Entry) Reset() { *m = RateLimitDescriptor_Entry{} } +func (m *RateLimitDescriptor_Entry) String() string { return proto.CompactTextString(m) } +func (*RateLimitDescriptor_Entry) ProtoMessage() {} +func (*RateLimitDescriptor_Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_5684844e04543b8d, []int{0, 0} +} + +func (m *RateLimitDescriptor_Entry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitDescriptor_Entry.Unmarshal(m, b) +} +func (m *RateLimitDescriptor_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitDescriptor_Entry.Marshal(b, m, deterministic) +} +func (m *RateLimitDescriptor_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitDescriptor_Entry.Merge(m, src) +} +func (m *RateLimitDescriptor_Entry) XXX_Size() int { + return xxx_messageInfo_RateLimitDescriptor_Entry.Size(m) +} +func (m *RateLimitDescriptor_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitDescriptor_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitDescriptor_Entry proto.InternalMessageInfo + +func (m *RateLimitDescriptor_Entry) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *RateLimitDescriptor_Entry) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func init() { + proto.RegisterType((*RateLimitDescriptor)(nil), "envoy.api.v2.ratelimit.RateLimitDescriptor") + proto.RegisterType((*RateLimitDescriptor_Entry)(nil), "envoy.api.v2.ratelimit.RateLimitDescriptor.Entry") +} + +func init() { + proto.RegisterFile("envoy/api/v2/ratelimit/ratelimit.proto", fileDescriptor_5684844e04543b8d) +} + +var fileDescriptor_5684844e04543b8d = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x4f, 0x4a, 0x03, 0x31, + 0x14, 0xc6, 0xc9, 0xd4, 0x69, 0x6b, 0x04, 0x91, 0x11, 0xb4, 0x16, 0x2a, 0x83, 0x94, 0xd2, 0x55, + 0x82, 0xd3, 0x13, 0x18, 0x74, 0xe7, 0xa2, 0x0c, 0x78, 0x80, 0xd8, 0x06, 0x09, 0xce, 0x24, 0x21, + 0x79, 0x13, 0x3a, 0x3b, 0x6f, 0x20, 0xb8, 0xf2, 0x16, 0xee, 0x3d, 0x81, 0x5b, 0xaf, 0xe2, 0xb2, + 0x0b, 0x91, 0x99, 0x71, 0xfc, 0x83, 0x75, 0xf7, 0xf1, 0x7e, 0x79, 0x79, 0xdf, 0xf7, 0xe1, 0x89, + 0x50, 0x5e, 0x97, 0x94, 0x1b, 0x49, 0x7d, 0x42, 0x2d, 0x07, 0x91, 0xc9, 0x5c, 0xc2, 0xb7, 0x22, + 0xc6, 0x6a, 0xd0, 0xd1, 0x41, 0xfd, 0x8e, 0x70, 0x23, 0x89, 0x4f, 0xc8, 0x17, 0x1d, 0x1e, 0x17, + 0x4b, 0xc3, 0x29, 0x57, 0x4a, 0x03, 0x07, 0xa9, 0x95, 0xa3, 0xb9, 0xbc, 0xa9, 0x70, 0xb3, 0x37, + 0x1c, 0xfd, 0xe1, 0x0e, 0x38, 0x14, 0xee, 0x13, 0x1f, 0x7a, 0x9e, 0xc9, 0x25, 0x07, 0x41, 0x5b, + 0xd1, 0x80, 0x93, 0x27, 0x84, 0xf7, 0x53, 0x0e, 0xe2, 0xb2, 0xba, 0x72, 0x2e, 0xdc, 0xc2, 0x4a, + 0x03, 0xda, 0x46, 0x57, 0xb8, 0x27, 0x14, 0x58, 0x29, 0xdc, 0x00, 0xc5, 0x9d, 0xe9, 0x4e, 0x72, + 0x4a, 0x36, 0x3b, 0x23, 0x1b, 0xb6, 0xc9, 0x85, 0x02, 0x5b, 0xb2, 0xfe, 0x9a, 0x85, 0x0f, 0x28, + 0xe8, 0xa3, 0xb4, 0xfd, 0x6b, 0x78, 0x86, 0xc3, 0x9a, 0x45, 0x47, 0xb8, 0x73, 0x2b, 0xca, 0x01, + 0x8a, 0xd1, 0x74, 0x9b, 0xf5, 0xd6, 0x6c, 0xcb, 0x06, 0x31, 0x4a, 0xab, 0x59, 0x34, 0xc2, 0xa1, + 0xe7, 0x59, 0x21, 0x06, 0xc1, 0x6f, 0xd8, 0x4c, 0x59, 0xf6, 0xf6, 0xf8, 0x7e, 0x1f, 0x4e, 0xa2, + 0x71, 0xe3, 0x47, 0xac, 0x40, 0x28, 0x57, 0x25, 0x26, 0x0b, 0x9d, 0xe7, 0x5a, 0xfd, 0xb0, 0xe6, + 0x67, 0xcf, 0x77, 0x2f, 0xaf, 0xdd, 0x60, 0x0f, 0xe1, 0xb1, 0xd4, 0x4d, 0x00, 0x63, 0xf5, 0xaa, + 0xfc, 0x27, 0x0b, 0xdb, 0x4d, 0x5b, 0x39, 0xaf, 0xda, 0x99, 0xa3, 0xeb, 0x6e, 0x5d, 0xd3, 0xec, + 0x23, 0x00, 0x00, 0xff, 0xff, 0x22, 0x3d, 0x2c, 0xa7, 0xc0, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.validate.go new file mode 100644 index 000000000..95f3964cf --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit/ratelimit.pb.validate.go @@ -0,0 +1,207 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/api/v2/ratelimit/ratelimit.proto + +package envoy_api_v2_ratelimit + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ratelimit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitDescriptor with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitDescriptor) Validate() error { + if m == nil { + return nil + } + + if len(m.GetEntries()) < 1 { + return RateLimitDescriptorValidationError{ + field: "Entries", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetEntries() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitDescriptorValidationError{ + field: fmt.Sprintf("Entries[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RateLimitDescriptorValidationError is the validation error returned by +// RateLimitDescriptor.Validate if the designated constraints aren't met. +type RateLimitDescriptorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitDescriptorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitDescriptorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitDescriptorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitDescriptorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitDescriptorValidationError) ErrorName() string { + return "RateLimitDescriptorValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitDescriptorValidationError) 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 %sRateLimitDescriptor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitDescriptorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitDescriptorValidationError{} + +// Validate checks the field values on RateLimitDescriptor_Entry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitDescriptor_Entry) Validate() error { + if m == nil { + return nil + } + + if len(m.GetKey()) < 1 { + return RateLimitDescriptor_EntryValidationError{ + field: "Key", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetValue()) < 1 { + return RateLimitDescriptor_EntryValidationError{ + field: "Value", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// RateLimitDescriptor_EntryValidationError is the validation error returned by +// RateLimitDescriptor_Entry.Validate if the designated constraints aren't met. +type RateLimitDescriptor_EntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitDescriptor_EntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitDescriptor_EntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitDescriptor_EntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitDescriptor_EntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitDescriptor_EntryValidationError) ErrorName() string { + return "RateLimitDescriptor_EntryValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitDescriptor_EntryValidationError) 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 %sRateLimitDescriptor_Entry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitDescriptor_EntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitDescriptor_EntryValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.go new file mode 100644 index 000000000..ba1442c71 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/accesslog/v2/als.proto + +package envoy_config_accesslog_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpGrpcAccessLogConfig struct { + CommonConfig *CommonGrpcAccessLogConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + AdditionalRequestHeadersToLog []string `protobuf:"bytes,2,rep,name=additional_request_headers_to_log,json=additionalRequestHeadersToLog,proto3" json:"additional_request_headers_to_log,omitempty"` + AdditionalResponseHeadersToLog []string `protobuf:"bytes,3,rep,name=additional_response_headers_to_log,json=additionalResponseHeadersToLog,proto3" json:"additional_response_headers_to_log,omitempty"` + AdditionalResponseTrailersToLog []string `protobuf:"bytes,4,rep,name=additional_response_trailers_to_log,json=additionalResponseTrailersToLog,proto3" json:"additional_response_trailers_to_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpGrpcAccessLogConfig) Reset() { *m = HttpGrpcAccessLogConfig{} } +func (m *HttpGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*HttpGrpcAccessLogConfig) ProtoMessage() {} +func (*HttpGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_e7b431652a309a2e, []int{0} +} + +func (m *HttpGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *HttpGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *HttpGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpGrpcAccessLogConfig.Merge(m, src) +} +func (m *HttpGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Size(m) +} +func (m *HttpGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HttpGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *HttpGrpcAccessLogConfig) GetCommonConfig() *CommonGrpcAccessLogConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalRequestHeadersToLog() []string { + if m != nil { + return m.AdditionalRequestHeadersToLog + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalResponseHeadersToLog() []string { + if m != nil { + return m.AdditionalResponseHeadersToLog + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalResponseTrailersToLog() []string { + if m != nil { + return m.AdditionalResponseTrailersToLog + } + return nil +} + +type TcpGrpcAccessLogConfig struct { + CommonConfig *CommonGrpcAccessLogConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TcpGrpcAccessLogConfig) Reset() { *m = TcpGrpcAccessLogConfig{} } +func (m *TcpGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*TcpGrpcAccessLogConfig) ProtoMessage() {} +func (*TcpGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_e7b431652a309a2e, []int{1} +} + +func (m *TcpGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *TcpGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *TcpGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpGrpcAccessLogConfig.Merge(m, src) +} +func (m *TcpGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Size(m) +} +func (m *TcpGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TcpGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *TcpGrpcAccessLogConfig) GetCommonConfig() *CommonGrpcAccessLogConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +type CommonGrpcAccessLogConfig struct { + LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` + GrpcService *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + BufferFlushInterval *duration.Duration `protobuf:"bytes,3,opt,name=buffer_flush_interval,json=bufferFlushInterval,proto3" json:"buffer_flush_interval,omitempty"` + BufferSizeBytes *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=buffer_size_bytes,json=bufferSizeBytes,proto3" json:"buffer_size_bytes,omitempty"` + FilterStateObjectsToLog []string `protobuf:"bytes,5,rep,name=filter_state_objects_to_log,json=filterStateObjectsToLog,proto3" json:"filter_state_objects_to_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonGrpcAccessLogConfig) Reset() { *m = CommonGrpcAccessLogConfig{} } +func (m *CommonGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*CommonGrpcAccessLogConfig) ProtoMessage() {} +func (*CommonGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_e7b431652a309a2e, []int{2} +} + +func (m *CommonGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *CommonGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *CommonGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonGrpcAccessLogConfig.Merge(m, src) +} +func (m *CommonGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Size(m) +} +func (m *CommonGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *CommonGrpcAccessLogConfig) GetLogName() string { + if m != nil { + return m.LogName + } + return "" +} + +func (m *CommonGrpcAccessLogConfig) GetGrpcService() *core.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetBufferFlushInterval() *duration.Duration { + if m != nil { + return m.BufferFlushInterval + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetBufferSizeBytes() *wrappers.UInt32Value { + if m != nil { + return m.BufferSizeBytes + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetFilterStateObjectsToLog() []string { + if m != nil { + return m.FilterStateObjectsToLog + } + return nil +} + +func init() { + proto.RegisterType((*HttpGrpcAccessLogConfig)(nil), "envoy.config.accesslog.v2.HttpGrpcAccessLogConfig") + proto.RegisterType((*TcpGrpcAccessLogConfig)(nil), "envoy.config.accesslog.v2.TcpGrpcAccessLogConfig") + proto.RegisterType((*CommonGrpcAccessLogConfig)(nil), "envoy.config.accesslog.v2.CommonGrpcAccessLogConfig") +} + +func init() { + proto.RegisterFile("envoy/config/accesslog/v2/als.proto", fileDescriptor_e7b431652a309a2e) +} + +var fileDescriptor_e7b431652a309a2e = []byte{ + // 606 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x93, 0x4f, 0x4f, 0xd4, 0x4e, + 0x18, 0xc7, 0x7f, 0x2d, 0xff, 0x07, 0x7e, 0x11, 0x6b, 0x94, 0x05, 0x05, 0x71, 0x31, 0x01, 0x3d, + 0xb4, 0xc9, 0xe2, 0xd1, 0x0b, 0xc5, 0xe8, 0xa2, 0x44, 0x49, 0x59, 0xf5, 0xd8, 0xcc, 0xb6, 0x4f, + 0x87, 0x31, 0xb3, 0x9d, 0x3a, 0x33, 0xad, 0x2c, 0x89, 0x89, 0x67, 0x2f, 0x5e, 0x7d, 0x0d, 0xbe, + 0x04, 0x5f, 0x81, 0x57, 0xdf, 0x82, 0x77, 0x2f, 0x1e, 0x39, 0x18, 0x33, 0x33, 0x5d, 0x58, 0x5c, + 0xf6, 0xec, 0x6d, 0xb7, 0xcf, 0xf7, 0xfb, 0x99, 0xe7, 0x2f, 0xda, 0x80, 0xbc, 0xe2, 0xfd, 0x20, + 0xe1, 0x79, 0x46, 0x49, 0x80, 0x93, 0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46, 0x57, 0x6b, 0xb0, 0xa4, 0x27, 0x10, 0x77, 0xfb, 0x0a, 0x64, 0x63, 0xd2, 0x40, 0x6f, + 0x8d, 0x40, 0x5f, 0xee, 0xe5, 0x6a, 0xbb, 0xf5, 0x0a, 0xb3, 0x12, 0xa2, 0x2b, 0xd6, 0x76, 0x48, + 0x4f, 0x20, 0xd4, 0x26, 0xef, 0x21, 0xba, 0x99, 0x51, 0xa6, 0x34, 0x49, 0x61, 0x05, 0x31, 0xef, + 0xbe, 0x81, 0x44, 0x9d, 0x8d, 0x7d, 0xca, 0x8c, 0x7d, 0xc9, 0x4a, 0x0e, 0xb5, 0xe2, 0x85, 0x15, + 0x98, 0x71, 0x87, 0xec, 0xd7, 0xe7, 0xdf, 0x9f, 0xa6, 0xee, 0x79, 0x9b, 0xb6, 0x3d, 0x70, 0xac, + 0x20, 0x97, 0xfa, 0x26, 0xeb, 0x41, 0x6a, 0x06, 0xd1, 0xa7, 0xad, 0xbb, 0xe2, 0x57, 0xdb, 0x5f, + 0x3f, 0x7c, 0xfb, 0x3e, 0xed, 0x2e, 0x3a, 0x68, 0x93, 0x72, 0xdb, 0xd2, 0x42, 0xf0, 0xe3, 0xfe, + 0xf8, 0x1d, 0x08, 0x67, 0x77, 0x98, 0x3c, 0xd0, 0x95, 0x1c, 0x38, 0xdd, 0x69, 0x53, 0xd2, 0xf6, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x55, 0x8b, 0x5a, 0xc8, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.validate.go new file mode 100644 index 000000000..cfbfed9e9 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/als.pb.validate.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/accesslog/v2/als.proto + +package envoy_config_accesslog_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _als_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return HttpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpGrpcAccessLogConfigValidationError is the validation error returned by +// HttpGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type HttpGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpGrpcAccessLogConfigValidationError) ErrorName() string { + return "HttpGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpGrpcAccessLogConfigValidationError) 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 %sHttpGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpGrpcAccessLogConfigValidationError{} + +// Validate checks the field values on TcpGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TcpGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TcpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TcpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TcpGrpcAccessLogConfigValidationError is the validation error returned by +// TcpGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type TcpGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TcpGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TcpGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TcpGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TcpGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TcpGrpcAccessLogConfigValidationError) ErrorName() string { + return "TcpGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e TcpGrpcAccessLogConfigValidationError) 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 %sTcpGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TcpGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TcpGrpcAccessLogConfigValidationError{} + +// Validate checks the field values on CommonGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommonGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogName()) < 1 { + return CommonGrpcAccessLogConfigValidationError{ + field: "LogName", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetGrpcService() == nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetBufferFlushInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferFlushInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferFlushInterval", + reason: "value must be greater than 0s", + } + } + + } + + if v, ok := interface{}(m.GetBufferSizeBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferSizeBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CommonGrpcAccessLogConfigValidationError is the validation error returned by +// CommonGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type CommonGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonGrpcAccessLogConfigValidationError) ErrorName() string { + return "CommonGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonGrpcAccessLogConfigValidationError) 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 %sCommonGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonGrpcAccessLogConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.go new file mode 100644 index 000000000..8de23b163 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/accesslog/v2/file.proto + +package envoy_config_accesslog_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FileAccessLog struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // Types that are valid to be assigned to AccessLogFormat: + // *FileAccessLog_Format + // *FileAccessLog_JsonFormat + // *FileAccessLog_TypedJsonFormat + AccessLogFormat isFileAccessLog_AccessLogFormat `protobuf_oneof:"access_log_format"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileAccessLog) Reset() { *m = FileAccessLog{} } +func (m *FileAccessLog) String() string { return proto.CompactTextString(m) } +func (*FileAccessLog) ProtoMessage() {} +func (*FileAccessLog) Descriptor() ([]byte, []int) { + return fileDescriptor_bb42a04cfa71ce3c, []int{0} +} + +func (m *FileAccessLog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileAccessLog.Unmarshal(m, b) +} +func (m *FileAccessLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileAccessLog.Marshal(b, m, deterministic) +} +func (m *FileAccessLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileAccessLog.Merge(m, src) +} +func (m *FileAccessLog) XXX_Size() int { + return xxx_messageInfo_FileAccessLog.Size(m) +} +func (m *FileAccessLog) XXX_DiscardUnknown() { + xxx_messageInfo_FileAccessLog.DiscardUnknown(m) +} + +var xxx_messageInfo_FileAccessLog proto.InternalMessageInfo + +func (m *FileAccessLog) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +type isFileAccessLog_AccessLogFormat interface { + isFileAccessLog_AccessLogFormat() +} + +type FileAccessLog_Format struct { + Format string `protobuf:"bytes,2,opt,name=format,proto3,oneof"` +} + +type FileAccessLog_JsonFormat struct { + JsonFormat *_struct.Struct `protobuf:"bytes,3,opt,name=json_format,json=jsonFormat,proto3,oneof"` +} + +type FileAccessLog_TypedJsonFormat struct { + TypedJsonFormat *_struct.Struct `protobuf:"bytes,4,opt,name=typed_json_format,json=typedJsonFormat,proto3,oneof"` +} + +func (*FileAccessLog_Format) isFileAccessLog_AccessLogFormat() {} + +func (*FileAccessLog_JsonFormat) isFileAccessLog_AccessLogFormat() {} + +func (*FileAccessLog_TypedJsonFormat) isFileAccessLog_AccessLogFormat() {} + +func (m *FileAccessLog) GetAccessLogFormat() isFileAccessLog_AccessLogFormat { + if m != nil { + return m.AccessLogFormat + } + return nil +} + +func (m *FileAccessLog) GetFormat() string { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_Format); ok { + return x.Format + } + return "" +} + +func (m *FileAccessLog) GetJsonFormat() *_struct.Struct { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_JsonFormat); ok { + return x.JsonFormat + } + return nil +} + +func (m *FileAccessLog) GetTypedJsonFormat() *_struct.Struct { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_TypedJsonFormat); ok { + return x.TypedJsonFormat + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FileAccessLog) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FileAccessLog_Format)(nil), + (*FileAccessLog_JsonFormat)(nil), + (*FileAccessLog_TypedJsonFormat)(nil), + } +} + +func init() { + proto.RegisterType((*FileAccessLog)(nil), "envoy.config.accesslog.v2.FileAccessLog") +} + +func init() { + proto.RegisterFile("envoy/config/accesslog/v2/file.proto", fileDescriptor_bb42a04cfa71ce3c) +} + +var fileDescriptor_bb42a04cfa71ce3c = []byte{ + // 349 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcf, 0x4e, 0x32, 0x31, + 0x14, 0xc5, 0x19, 0x3e, 0x3e, 0x0c, 0x25, 0x46, 0x19, 0x17, 0x20, 0xfe, 0x09, 0x31, 0x26, 0xe0, + 0xa6, 0x4d, 0x60, 0xe7, 0xce, 0x49, 0x24, 0xc4, 0xb8, 0x20, 0xf8, 0x00, 0xa4, 0x0c, 0x9d, 0x5a, + 0x33, 0xf4, 0x4e, 0xda, 0xce, 0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x2d, 0x85, 0xd7, 0x4b, 0xe1, + 0x1b, 0xbb, 0xd4, 0xa8, 0x34, 0x41, 0x39, 0x3d, 0x74, 0xde, 0x4b, 0xd4, 0x30, 0xab, 0x84, 0xcd, + 0xa7, 0xdf, 0x13, 0x2a, 0x7f, 0x25, 0xec, 0x58, 0xcf, 0xd5, 0x26, 0x26, 0xd8, 0x43, 0x0d, 0xd7, + 0xe8, 0x34, 0x06, 0x5e, 0xc4, 0x04, 0x8b, 0xb7, 0xc7, 0x8f, 0x87, 0xff, 0x67, 0x7e, 0xd7, 0x35, + 0xcf, 0x96, 0x86, 0x49, 0x9d, 0x17, 0x84, 0xbf, 0x58, 0xce, 0x94, 0xc6, 0xf6, 0x4a, 0xd9, 0xe0, + 0xe9, 0xfe, 0xf9, 0xa5, 0x5a, 0xde, 0xf5, 0x50, 0x57, 0x00, 0xb6, 0x9e, 0x44, 0xc1, 0x72, 0x85, + 0x7f, 0x3d, 0x5c, 0x50, 0xcb, 0xfb, 0x1b, 0xe7, 0xe3, 0x8d, 0xbd, 0x59, 0xd5, 0xce, 0x39, 0xf8, + 0x0c, 0x00, 0x00, 0xff, 0xff, 0x11, 0x00, 0x44, 0x6a, 0x0f, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.validate.go new file mode 100644 index 000000000..d4c199851 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2/file.pb.validate.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/accesslog/v2/file.proto + +package envoy_config_accesslog_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _file_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FileAccessLog with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FileAccessLog) Validate() error { + if m == nil { + return nil + } + + if len(m.GetPath()) < 1 { + return FileAccessLogValidationError{ + field: "Path", + reason: "value length must be at least 1 bytes", + } + } + + switch m.AccessLogFormat.(type) { + + case *FileAccessLog_Format: + // no validation rules for Format + + case *FileAccessLog_JsonFormat: + + if v, ok := interface{}(m.GetJsonFormat()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileAccessLogValidationError{ + field: "JsonFormat", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FileAccessLog_TypedJsonFormat: + + if v, ok := interface{}(m.GetTypedJsonFormat()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileAccessLogValidationError{ + field: "TypedJsonFormat", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FileAccessLogValidationError is the validation error returned by +// FileAccessLog.Validate if the designated constraints aren't met. +type FileAccessLogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FileAccessLogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FileAccessLogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FileAccessLogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FileAccessLogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FileAccessLogValidationError) ErrorName() string { return "FileAccessLogValidationError" } + +// Error satisfies the builtin error interface +func (e FileAccessLogValidationError) 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 %sFileAccessLog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FileAccessLogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FileAccessLogValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.go new file mode 100644 index 000000000..af2cd3144 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.go @@ -0,0 +1,1044 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/bootstrap/v2/bootstrap.proto + +package envoy_config_bootstrap_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v22 "github.com/envoyproxy/go-control-plane/envoy/api/v2" + auth "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v2" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha" + v21 "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Bootstrap struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + StaticResources *Bootstrap_StaticResources `protobuf:"bytes,2,opt,name=static_resources,json=staticResources,proto3" json:"static_resources,omitempty"` + DynamicResources *Bootstrap_DynamicResources `protobuf:"bytes,3,opt,name=dynamic_resources,json=dynamicResources,proto3" json:"dynamic_resources,omitempty"` + ClusterManager *ClusterManager `protobuf:"bytes,4,opt,name=cluster_manager,json=clusterManager,proto3" json:"cluster_manager,omitempty"` + HdsConfig *core.ApiConfigSource `protobuf:"bytes,14,opt,name=hds_config,json=hdsConfig,proto3" json:"hds_config,omitempty"` + FlagsPath string `protobuf:"bytes,5,opt,name=flags_path,json=flagsPath,proto3" json:"flags_path,omitempty"` + StatsSinks []*v2.StatsSink `protobuf:"bytes,6,rep,name=stats_sinks,json=statsSinks,proto3" json:"stats_sinks,omitempty"` + StatsConfig *v2.StatsConfig `protobuf:"bytes,13,opt,name=stats_config,json=statsConfig,proto3" json:"stats_config,omitempty"` + StatsFlushInterval *duration.Duration `protobuf:"bytes,7,opt,name=stats_flush_interval,json=statsFlushInterval,proto3" json:"stats_flush_interval,omitempty"` + Watchdog *Watchdog `protobuf:"bytes,8,opt,name=watchdog,proto3" json:"watchdog,omitempty"` + Tracing *v21.Tracing `protobuf:"bytes,9,opt,name=tracing,proto3" json:"tracing,omitempty"` + Runtime *Runtime `protobuf:"bytes,11,opt,name=runtime,proto3" json:"runtime,omitempty"` // Deprecated: Do not use. + LayeredRuntime *LayeredRuntime `protobuf:"bytes,17,opt,name=layered_runtime,json=layeredRuntime,proto3" json:"layered_runtime,omitempty"` + Admin *Admin `protobuf:"bytes,12,opt,name=admin,proto3" json:"admin,omitempty"` + OverloadManager *v2alpha.OverloadManager `protobuf:"bytes,15,opt,name=overload_manager,json=overloadManager,proto3" json:"overload_manager,omitempty"` + EnableDispatcherStats bool `protobuf:"varint,16,opt,name=enable_dispatcher_stats,json=enableDispatcherStats,proto3" json:"enable_dispatcher_stats,omitempty"` + HeaderPrefix string `protobuf:"bytes,18,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` + StatsServerVersionOverride *wrappers.UInt64Value `protobuf:"bytes,19,opt,name=stats_server_version_override,json=statsServerVersionOverride,proto3" json:"stats_server_version_override,omitempty"` + UseTcpForDnsLookups bool `protobuf:"varint,20,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap) Reset() { *m = Bootstrap{} } +func (m *Bootstrap) String() string { return proto.CompactTextString(m) } +func (*Bootstrap) ProtoMessage() {} +func (*Bootstrap) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{0} +} + +func (m *Bootstrap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap.Unmarshal(m, b) +} +func (m *Bootstrap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap.Marshal(b, m, deterministic) +} +func (m *Bootstrap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap.Merge(m, src) +} +func (m *Bootstrap) XXX_Size() int { + return xxx_messageInfo_Bootstrap.Size(m) +} +func (m *Bootstrap) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap proto.InternalMessageInfo + +func (m *Bootstrap) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *Bootstrap) GetStaticResources() *Bootstrap_StaticResources { + if m != nil { + return m.StaticResources + } + return nil +} + +func (m *Bootstrap) GetDynamicResources() *Bootstrap_DynamicResources { + if m != nil { + return m.DynamicResources + } + return nil +} + +func (m *Bootstrap) GetClusterManager() *ClusterManager { + if m != nil { + return m.ClusterManager + } + return nil +} + +func (m *Bootstrap) GetHdsConfig() *core.ApiConfigSource { + if m != nil { + return m.HdsConfig + } + return nil +} + +func (m *Bootstrap) GetFlagsPath() string { + if m != nil { + return m.FlagsPath + } + return "" +} + +func (m *Bootstrap) GetStatsSinks() []*v2.StatsSink { + if m != nil { + return m.StatsSinks + } + return nil +} + +func (m *Bootstrap) GetStatsConfig() *v2.StatsConfig { + if m != nil { + return m.StatsConfig + } + return nil +} + +func (m *Bootstrap) GetStatsFlushInterval() *duration.Duration { + if m != nil { + return m.StatsFlushInterval + } + return nil +} + +func (m *Bootstrap) GetWatchdog() *Watchdog { + if m != nil { + return m.Watchdog + } + return nil +} + +func (m *Bootstrap) GetTracing() *v21.Tracing { + if m != nil { + return m.Tracing + } + return nil +} + +// Deprecated: Do not use. +func (m *Bootstrap) GetRuntime() *Runtime { + if m != nil { + return m.Runtime + } + return nil +} + +func (m *Bootstrap) GetLayeredRuntime() *LayeredRuntime { + if m != nil { + return m.LayeredRuntime + } + return nil +} + +func (m *Bootstrap) GetAdmin() *Admin { + if m != nil { + return m.Admin + } + return nil +} + +func (m *Bootstrap) GetOverloadManager() *v2alpha.OverloadManager { + if m != nil { + return m.OverloadManager + } + return nil +} + +func (m *Bootstrap) GetEnableDispatcherStats() bool { + if m != nil { + return m.EnableDispatcherStats + } + return false +} + +func (m *Bootstrap) GetHeaderPrefix() string { + if m != nil { + return m.HeaderPrefix + } + return "" +} + +func (m *Bootstrap) GetStatsServerVersionOverride() *wrappers.UInt64Value { + if m != nil { + return m.StatsServerVersionOverride + } + return nil +} + +func (m *Bootstrap) GetUseTcpForDnsLookups() bool { + if m != nil { + return m.UseTcpForDnsLookups + } + return false +} + +type Bootstrap_StaticResources struct { + Listeners []*v22.Listener `protobuf:"bytes,1,rep,name=listeners,proto3" json:"listeners,omitempty"` + Clusters []*v22.Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` + Secrets []*auth.Secret `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap_StaticResources) Reset() { *m = Bootstrap_StaticResources{} } +func (m *Bootstrap_StaticResources) String() string { return proto.CompactTextString(m) } +func (*Bootstrap_StaticResources) ProtoMessage() {} +func (*Bootstrap_StaticResources) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{0, 0} +} + +func (m *Bootstrap_StaticResources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap_StaticResources.Unmarshal(m, b) +} +func (m *Bootstrap_StaticResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap_StaticResources.Marshal(b, m, deterministic) +} +func (m *Bootstrap_StaticResources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap_StaticResources.Merge(m, src) +} +func (m *Bootstrap_StaticResources) XXX_Size() int { + return xxx_messageInfo_Bootstrap_StaticResources.Size(m) +} +func (m *Bootstrap_StaticResources) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap_StaticResources.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap_StaticResources proto.InternalMessageInfo + +func (m *Bootstrap_StaticResources) GetListeners() []*v22.Listener { + if m != nil { + return m.Listeners + } + return nil +} + +func (m *Bootstrap_StaticResources) GetClusters() []*v22.Cluster { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *Bootstrap_StaticResources) GetSecrets() []*auth.Secret { + if m != nil { + return m.Secrets + } + return nil +} + +type Bootstrap_DynamicResources struct { + LdsConfig *core.ConfigSource `protobuf:"bytes,1,opt,name=lds_config,json=ldsConfig,proto3" json:"lds_config,omitempty"` + CdsConfig *core.ConfigSource `protobuf:"bytes,2,opt,name=cds_config,json=cdsConfig,proto3" json:"cds_config,omitempty"` + AdsConfig *core.ApiConfigSource `protobuf:"bytes,3,opt,name=ads_config,json=adsConfig,proto3" json:"ads_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap_DynamicResources) Reset() { *m = Bootstrap_DynamicResources{} } +func (m *Bootstrap_DynamicResources) String() string { return proto.CompactTextString(m) } +func (*Bootstrap_DynamicResources) ProtoMessage() {} +func (*Bootstrap_DynamicResources) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{0, 1} +} + +func (m *Bootstrap_DynamicResources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap_DynamicResources.Unmarshal(m, b) +} +func (m *Bootstrap_DynamicResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap_DynamicResources.Marshal(b, m, deterministic) +} +func (m *Bootstrap_DynamicResources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap_DynamicResources.Merge(m, src) +} +func (m *Bootstrap_DynamicResources) XXX_Size() int { + return xxx_messageInfo_Bootstrap_DynamicResources.Size(m) +} +func (m *Bootstrap_DynamicResources) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap_DynamicResources.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap_DynamicResources proto.InternalMessageInfo + +func (m *Bootstrap_DynamicResources) GetLdsConfig() *core.ConfigSource { + if m != nil { + return m.LdsConfig + } + return nil +} + +func (m *Bootstrap_DynamicResources) GetCdsConfig() *core.ConfigSource { + if m != nil { + return m.CdsConfig + } + return nil +} + +func (m *Bootstrap_DynamicResources) GetAdsConfig() *core.ApiConfigSource { + if m != nil { + return m.AdsConfig + } + return nil +} + +type Admin struct { + AccessLogPath string `protobuf:"bytes,1,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"` + ProfilePath string `protobuf:"bytes,2,opt,name=profile_path,json=profilePath,proto3" json:"profile_path,omitempty"` + Address *core.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + SocketOptions []*core.SocketOption `protobuf:"bytes,4,rep,name=socket_options,json=socketOptions,proto3" json:"socket_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Admin) Reset() { *m = Admin{} } +func (m *Admin) String() string { return proto.CompactTextString(m) } +func (*Admin) ProtoMessage() {} +func (*Admin) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{1} +} + +func (m *Admin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Admin.Unmarshal(m, b) +} +func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Admin.Marshal(b, m, deterministic) +} +func (m *Admin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Admin.Merge(m, src) +} +func (m *Admin) XXX_Size() int { + return xxx_messageInfo_Admin.Size(m) +} +func (m *Admin) XXX_DiscardUnknown() { + xxx_messageInfo_Admin.DiscardUnknown(m) +} + +var xxx_messageInfo_Admin proto.InternalMessageInfo + +func (m *Admin) GetAccessLogPath() string { + if m != nil { + return m.AccessLogPath + } + return "" +} + +func (m *Admin) GetProfilePath() string { + if m != nil { + return m.ProfilePath + } + return "" +} + +func (m *Admin) GetAddress() *core.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *Admin) GetSocketOptions() []*core.SocketOption { + if m != nil { + return m.SocketOptions + } + return nil +} + +type ClusterManager struct { + LocalClusterName string `protobuf:"bytes,1,opt,name=local_cluster_name,json=localClusterName,proto3" json:"local_cluster_name,omitempty"` + OutlierDetection *ClusterManager_OutlierDetection `protobuf:"bytes,2,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"` + UpstreamBindConfig *core.BindConfig `protobuf:"bytes,3,opt,name=upstream_bind_config,json=upstreamBindConfig,proto3" json:"upstream_bind_config,omitempty"` + LoadStatsConfig *core.ApiConfigSource `protobuf:"bytes,4,opt,name=load_stats_config,json=loadStatsConfig,proto3" json:"load_stats_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterManager) Reset() { *m = ClusterManager{} } +func (m *ClusterManager) String() string { return proto.CompactTextString(m) } +func (*ClusterManager) ProtoMessage() {} +func (*ClusterManager) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{2} +} + +func (m *ClusterManager) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterManager.Unmarshal(m, b) +} +func (m *ClusterManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterManager.Marshal(b, m, deterministic) +} +func (m *ClusterManager) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterManager.Merge(m, src) +} +func (m *ClusterManager) XXX_Size() int { + return xxx_messageInfo_ClusterManager.Size(m) +} +func (m *ClusterManager) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterManager.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterManager proto.InternalMessageInfo + +func (m *ClusterManager) GetLocalClusterName() string { + if m != nil { + return m.LocalClusterName + } + return "" +} + +func (m *ClusterManager) GetOutlierDetection() *ClusterManager_OutlierDetection { + if m != nil { + return m.OutlierDetection + } + return nil +} + +func (m *ClusterManager) GetUpstreamBindConfig() *core.BindConfig { + if m != nil { + return m.UpstreamBindConfig + } + return nil +} + +func (m *ClusterManager) GetLoadStatsConfig() *core.ApiConfigSource { + if m != nil { + return m.LoadStatsConfig + } + return nil +} + +type ClusterManager_OutlierDetection struct { + EventLogPath string `protobuf:"bytes,1,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"` + EventService *core.EventServiceConfig `protobuf:"bytes,2,opt,name=event_service,json=eventService,proto3" json:"event_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterManager_OutlierDetection) Reset() { *m = ClusterManager_OutlierDetection{} } +func (m *ClusterManager_OutlierDetection) String() string { return proto.CompactTextString(m) } +func (*ClusterManager_OutlierDetection) ProtoMessage() {} +func (*ClusterManager_OutlierDetection) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{2, 0} +} + +func (m *ClusterManager_OutlierDetection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterManager_OutlierDetection.Unmarshal(m, b) +} +func (m *ClusterManager_OutlierDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterManager_OutlierDetection.Marshal(b, m, deterministic) +} +func (m *ClusterManager_OutlierDetection) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterManager_OutlierDetection.Merge(m, src) +} +func (m *ClusterManager_OutlierDetection) XXX_Size() int { + return xxx_messageInfo_ClusterManager_OutlierDetection.Size(m) +} +func (m *ClusterManager_OutlierDetection) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterManager_OutlierDetection.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterManager_OutlierDetection proto.InternalMessageInfo + +func (m *ClusterManager_OutlierDetection) GetEventLogPath() string { + if m != nil { + return m.EventLogPath + } + return "" +} + +func (m *ClusterManager_OutlierDetection) GetEventService() *core.EventServiceConfig { + if m != nil { + return m.EventService + } + return nil +} + +type Watchdog struct { + MissTimeout *duration.Duration `protobuf:"bytes,1,opt,name=miss_timeout,json=missTimeout,proto3" json:"miss_timeout,omitempty"` + MegamissTimeout *duration.Duration `protobuf:"bytes,2,opt,name=megamiss_timeout,json=megamissTimeout,proto3" json:"megamiss_timeout,omitempty"` + KillTimeout *duration.Duration `protobuf:"bytes,3,opt,name=kill_timeout,json=killTimeout,proto3" json:"kill_timeout,omitempty"` + MultikillTimeout *duration.Duration `protobuf:"bytes,4,opt,name=multikill_timeout,json=multikillTimeout,proto3" json:"multikill_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Watchdog) Reset() { *m = Watchdog{} } +func (m *Watchdog) String() string { return proto.CompactTextString(m) } +func (*Watchdog) ProtoMessage() {} +func (*Watchdog) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{3} +} + +func (m *Watchdog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Watchdog.Unmarshal(m, b) +} +func (m *Watchdog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Watchdog.Marshal(b, m, deterministic) +} +func (m *Watchdog) XXX_Merge(src proto.Message) { + xxx_messageInfo_Watchdog.Merge(m, src) +} +func (m *Watchdog) XXX_Size() int { + return xxx_messageInfo_Watchdog.Size(m) +} +func (m *Watchdog) XXX_DiscardUnknown() { + xxx_messageInfo_Watchdog.DiscardUnknown(m) +} + +var xxx_messageInfo_Watchdog proto.InternalMessageInfo + +func (m *Watchdog) GetMissTimeout() *duration.Duration { + if m != nil { + return m.MissTimeout + } + return nil +} + +func (m *Watchdog) GetMegamissTimeout() *duration.Duration { + if m != nil { + return m.MegamissTimeout + } + return nil +} + +func (m *Watchdog) GetKillTimeout() *duration.Duration { + if m != nil { + return m.KillTimeout + } + return nil +} + +func (m *Watchdog) GetMultikillTimeout() *duration.Duration { + if m != nil { + return m.MultikillTimeout + } + return nil +} + +type Runtime struct { + SymlinkRoot string `protobuf:"bytes,1,opt,name=symlink_root,json=symlinkRoot,proto3" json:"symlink_root,omitempty"` + Subdirectory string `protobuf:"bytes,2,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"` + OverrideSubdirectory string `protobuf:"bytes,3,opt,name=override_subdirectory,json=overrideSubdirectory,proto3" json:"override_subdirectory,omitempty"` + Base *_struct.Struct `protobuf:"bytes,4,opt,name=base,proto3" json:"base,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Runtime) Reset() { *m = Runtime{} } +func (m *Runtime) String() string { return proto.CompactTextString(m) } +func (*Runtime) ProtoMessage() {} +func (*Runtime) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{4} +} + +func (m *Runtime) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Runtime.Unmarshal(m, b) +} +func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Runtime.Marshal(b, m, deterministic) +} +func (m *Runtime) XXX_Merge(src proto.Message) { + xxx_messageInfo_Runtime.Merge(m, src) +} +func (m *Runtime) XXX_Size() int { + return xxx_messageInfo_Runtime.Size(m) +} +func (m *Runtime) XXX_DiscardUnknown() { + xxx_messageInfo_Runtime.DiscardUnknown(m) +} + +var xxx_messageInfo_Runtime proto.InternalMessageInfo + +func (m *Runtime) GetSymlinkRoot() string { + if m != nil { + return m.SymlinkRoot + } + return "" +} + +func (m *Runtime) GetSubdirectory() string { + if m != nil { + return m.Subdirectory + } + return "" +} + +func (m *Runtime) GetOverrideSubdirectory() string { + if m != nil { + return m.OverrideSubdirectory + } + return "" +} + +func (m *Runtime) GetBase() *_struct.Struct { + if m != nil { + return m.Base + } + return nil +} + +type RuntimeLayer struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to LayerSpecifier: + // *RuntimeLayer_StaticLayer + // *RuntimeLayer_DiskLayer_ + // *RuntimeLayer_AdminLayer_ + // *RuntimeLayer_RtdsLayer_ + LayerSpecifier isRuntimeLayer_LayerSpecifier `protobuf_oneof:"layer_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer) Reset() { *m = RuntimeLayer{} } +func (m *RuntimeLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer) ProtoMessage() {} +func (*RuntimeLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{5} +} + +func (m *RuntimeLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer.Merge(m, src) +} +func (m *RuntimeLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer.Size(m) +} +func (m *RuntimeLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer proto.InternalMessageInfo + +func (m *RuntimeLayer) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isRuntimeLayer_LayerSpecifier interface { + isRuntimeLayer_LayerSpecifier() +} + +type RuntimeLayer_StaticLayer struct { + StaticLayer *_struct.Struct `protobuf:"bytes,2,opt,name=static_layer,json=staticLayer,proto3,oneof"` +} + +type RuntimeLayer_DiskLayer_ struct { + DiskLayer *RuntimeLayer_DiskLayer `protobuf:"bytes,3,opt,name=disk_layer,json=diskLayer,proto3,oneof"` +} + +type RuntimeLayer_AdminLayer_ struct { + AdminLayer *RuntimeLayer_AdminLayer `protobuf:"bytes,4,opt,name=admin_layer,json=adminLayer,proto3,oneof"` +} + +type RuntimeLayer_RtdsLayer_ struct { + RtdsLayer *RuntimeLayer_RtdsLayer `protobuf:"bytes,5,opt,name=rtds_layer,json=rtdsLayer,proto3,oneof"` +} + +func (*RuntimeLayer_StaticLayer) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_DiskLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_AdminLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_RtdsLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (m *RuntimeLayer) GetLayerSpecifier() isRuntimeLayer_LayerSpecifier { + if m != nil { + return m.LayerSpecifier + } + return nil +} + +func (m *RuntimeLayer) GetStaticLayer() *_struct.Struct { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_StaticLayer); ok { + return x.StaticLayer + } + return nil +} + +func (m *RuntimeLayer) GetDiskLayer() *RuntimeLayer_DiskLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_DiskLayer_); ok { + return x.DiskLayer + } + return nil +} + +func (m *RuntimeLayer) GetAdminLayer() *RuntimeLayer_AdminLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_AdminLayer_); ok { + return x.AdminLayer + } + return nil +} + +func (m *RuntimeLayer) GetRtdsLayer() *RuntimeLayer_RtdsLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_RtdsLayer_); ok { + return x.RtdsLayer + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RuntimeLayer) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RuntimeLayer_StaticLayer)(nil), + (*RuntimeLayer_DiskLayer_)(nil), + (*RuntimeLayer_AdminLayer_)(nil), + (*RuntimeLayer_RtdsLayer_)(nil), + } +} + +type RuntimeLayer_DiskLayer struct { + SymlinkRoot string `protobuf:"bytes,1,opt,name=symlink_root,json=symlinkRoot,proto3" json:"symlink_root,omitempty"` + Subdirectory string `protobuf:"bytes,3,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"` + AppendServiceCluster bool `protobuf:"varint,2,opt,name=append_service_cluster,json=appendServiceCluster,proto3" json:"append_service_cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_DiskLayer) Reset() { *m = RuntimeLayer_DiskLayer{} } +func (m *RuntimeLayer_DiskLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_DiskLayer) ProtoMessage() {} +func (*RuntimeLayer_DiskLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{5, 0} +} + +func (m *RuntimeLayer_DiskLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_DiskLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_DiskLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_DiskLayer.Merge(m, src) +} +func (m *RuntimeLayer_DiskLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Size(m) +} +func (m *RuntimeLayer_DiskLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_DiskLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_DiskLayer proto.InternalMessageInfo + +func (m *RuntimeLayer_DiskLayer) GetSymlinkRoot() string { + if m != nil { + return m.SymlinkRoot + } + return "" +} + +func (m *RuntimeLayer_DiskLayer) GetSubdirectory() string { + if m != nil { + return m.Subdirectory + } + return "" +} + +func (m *RuntimeLayer_DiskLayer) GetAppendServiceCluster() bool { + if m != nil { + return m.AppendServiceCluster + } + return false +} + +type RuntimeLayer_AdminLayer struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_AdminLayer) Reset() { *m = RuntimeLayer_AdminLayer{} } +func (m *RuntimeLayer_AdminLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_AdminLayer) ProtoMessage() {} +func (*RuntimeLayer_AdminLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{5, 1} +} + +func (m *RuntimeLayer_AdminLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_AdminLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_AdminLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_AdminLayer.Merge(m, src) +} +func (m *RuntimeLayer_AdminLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Size(m) +} +func (m *RuntimeLayer_AdminLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_AdminLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_AdminLayer proto.InternalMessageInfo + +type RuntimeLayer_RtdsLayer struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RtdsConfig *core.ConfigSource `protobuf:"bytes,2,opt,name=rtds_config,json=rtdsConfig,proto3" json:"rtds_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_RtdsLayer) Reset() { *m = RuntimeLayer_RtdsLayer{} } +func (m *RuntimeLayer_RtdsLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_RtdsLayer) ProtoMessage() {} +func (*RuntimeLayer_RtdsLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{5, 2} +} + +func (m *RuntimeLayer_RtdsLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_RtdsLayer.Merge(m, src) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Size(m) +} +func (m *RuntimeLayer_RtdsLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_RtdsLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_RtdsLayer proto.InternalMessageInfo + +func (m *RuntimeLayer_RtdsLayer) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RuntimeLayer_RtdsLayer) GetRtdsConfig() *core.ConfigSource { + if m != nil { + return m.RtdsConfig + } + return nil +} + +type LayeredRuntime struct { + Layers []*RuntimeLayer `protobuf:"bytes,1,rep,name=layers,proto3" json:"layers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LayeredRuntime) Reset() { *m = LayeredRuntime{} } +func (m *LayeredRuntime) String() string { return proto.CompactTextString(m) } +func (*LayeredRuntime) ProtoMessage() {} +func (*LayeredRuntime) Descriptor() ([]byte, []int) { + return fileDescriptor_f1197defdf9c5e6a, []int{6} +} + +func (m *LayeredRuntime) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LayeredRuntime.Unmarshal(m, b) +} +func (m *LayeredRuntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LayeredRuntime.Marshal(b, m, deterministic) +} +func (m *LayeredRuntime) XXX_Merge(src proto.Message) { + xxx_messageInfo_LayeredRuntime.Merge(m, src) +} +func (m *LayeredRuntime) XXX_Size() int { + return xxx_messageInfo_LayeredRuntime.Size(m) +} +func (m *LayeredRuntime) XXX_DiscardUnknown() { + xxx_messageInfo_LayeredRuntime.DiscardUnknown(m) +} + +var xxx_messageInfo_LayeredRuntime proto.InternalMessageInfo + +func (m *LayeredRuntime) GetLayers() []*RuntimeLayer { + if m != nil { + return m.Layers + } + return nil +} + +func init() { + proto.RegisterType((*Bootstrap)(nil), "envoy.config.bootstrap.v2.Bootstrap") + proto.RegisterType((*Bootstrap_StaticResources)(nil), "envoy.config.bootstrap.v2.Bootstrap.StaticResources") + proto.RegisterType((*Bootstrap_DynamicResources)(nil), "envoy.config.bootstrap.v2.Bootstrap.DynamicResources") + proto.RegisterType((*Admin)(nil), "envoy.config.bootstrap.v2.Admin") + proto.RegisterType((*ClusterManager)(nil), "envoy.config.bootstrap.v2.ClusterManager") + proto.RegisterType((*ClusterManager_OutlierDetection)(nil), "envoy.config.bootstrap.v2.ClusterManager.OutlierDetection") + proto.RegisterType((*Watchdog)(nil), "envoy.config.bootstrap.v2.Watchdog") + proto.RegisterType((*Runtime)(nil), "envoy.config.bootstrap.v2.Runtime") + proto.RegisterType((*RuntimeLayer)(nil), "envoy.config.bootstrap.v2.RuntimeLayer") + proto.RegisterType((*RuntimeLayer_DiskLayer)(nil), "envoy.config.bootstrap.v2.RuntimeLayer.DiskLayer") + proto.RegisterType((*RuntimeLayer_AdminLayer)(nil), "envoy.config.bootstrap.v2.RuntimeLayer.AdminLayer") + proto.RegisterType((*RuntimeLayer_RtdsLayer)(nil), "envoy.config.bootstrap.v2.RuntimeLayer.RtdsLayer") + proto.RegisterType((*LayeredRuntime)(nil), "envoy.config.bootstrap.v2.LayeredRuntime") +} + +func init() { + proto.RegisterFile("envoy/config/bootstrap/v2/bootstrap.proto", fileDescriptor_f1197defdf9c5e6a) +} + +var fileDescriptor_f1197defdf9c5e6a = []byte{ + // 1655 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f, 0x1b, 0xc7, + 0x15, 0xcf, 0x8a, 0x94, 0x45, 0x3e, 0x52, 0x14, 0x35, 0x91, 0xad, 0x0d, 0x63, 0x27, 0x32, 0x9d, + 0x34, 0x0e, 0x12, 0x2c, 0x11, 0x59, 0x35, 0x8a, 0x22, 0x4d, 0x6a, 0x5a, 0x55, 0x13, 0xc3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a0, 0xaa, 0x28, 0x8c, 0x35, 0x7d, 0xdb, + 0x2a, 0x8c, 0xe2, 0x4d, 0x10, 0x9c, 0x68, 0x04, 0x76, 0xc8, 0xde, 0x3f, 0x3d, 0xe8, 0x9e, 0x2f, + 0x8d, 0xe8, 0x13, 0x80, 0x64, 0x59, 0xb4, 0x4c, 0x03, 0x78, 0x7b, 0x45, 0xd1, 0xaa, 0x56, 0xac, + 0xa4, 0xac, 0x58, 0x9f, 0x00, 0x44, 0x4b, 0xfe, 0xda, 0x35, 0xf9, 0x51, 0xc9, 0x7f, 0x04, 0x40, + 0x96, 0xfc, 0xda, 0xf5, 0x8b, 0x26, 0x71, 0x12, 0x4f, 0xea, 0x8d, 0x7a, 0x77, 0xfd, 0x49, 0xbd, + 0x01, 0xdd, 0x56, 0xff, 0xaf, 0x1e, 0xac, 0xeb, 0xac, 0x47, 0xdf, 0x81, 0x2d, 0x12, 0x45, 0x54, + 0x16, 0x87, 0x39, 0x31, 0xf5, 0xd4, 0xd3, 0xd9, 0xb5, 0x69, 0xcc, 0x4f, 0xf9, 0x44, 0xd7, 0xd4, + 0xbb, 0xd0, 0xce, 0x04, 0x1f, 0xb3, 0x84, 0x1a, 0xd0, 0x9a, 0x06, 0xb5, 0xac, 0x4d, 0x43, 0x0e, + 0x60, 0xc3, 0xbe, 0x92, 0x6c, 0x80, 0xbd, 0x55, 0x01, 0x1a, 0x04, 0x76, 0x50, 0x74, 0x04, 0x9d, + 0xca, 0x3b, 0x46, 0xfa, 0x75, 0x7d, 0x54, 0xab, 0x76, 0xe7, 0x44, 0x03, 0x8f, 0x35, 0x0e, 0x6f, + 0xca, 0x33, 0x23, 0xd9, 0xff, 0x4b, 0x0d, 0x3a, 0xd5, 0xce, 0x83, 0x3e, 0x04, 0x94, 0xf0, 0x88, + 0x24, 0xa1, 0xeb, 0x61, 0x29, 0x99, 0x53, 0xbb, 0xbc, 0xae, 0xf6, 0x58, 0xc2, 0x33, 0x32, 0xa7, + 0x68, 0x02, 0xdb, 0x3c, 0x57, 0x09, 0xa3, 0x22, 0x8c, 0xa9, 0xa2, 0x51, 0x21, 0x6b, 0x4f, 0xea, + 0xfb, 0xd7, 0xee, 0x76, 0xc1, 0xb1, 0x91, 0x38, 0x74, 0x0a, 0xb8, 0xcb, 0xcf, 0x59, 0xd0, 0x31, + 0xec, 0xe4, 0x99, 0x54, 0x82, 0x92, 0x79, 0x38, 0x62, 0x69, 0x5c, 0x3d, 0xd5, 0x3b, 0x2b, 0xd6, + 0x3d, 0x64, 0x69, 0x6c, 0x5b, 0x0b, 0x72, 0xd4, 0xa5, 0x0d, 0x3d, 0x83, 0x6d, 0x5d, 0xae, 0x2a, + 0xfd, 0xaa, 0x7e, 0xed, 0x1c, 0xd9, 0x2a, 0xc8, 0x67, 0xda, 0x57, 0xef, 0x1b, 0x0f, 0xba, 0xe7, + 0xd7, 0x81, 0xde, 0x81, 0x8e, 0x79, 0x9d, 0x9e, 0xcb, 0x93, 0xb6, 0xb6, 0xba, 0x34, 0x79, 0x02, + 0x9b, 0x95, 0x37, 0xac, 0xdd, 0xc0, 0x77, 0x57, 0x84, 0xf1, 0xa3, 0x02, 0x77, 0x62, 0x60, 0x76, + 0x71, 0x46, 0xcb, 0xda, 0xfa, 0xbf, 0x5e, 0x83, 0x86, 0x6b, 0x57, 0xe8, 0x63, 0x68, 0xcf, 0x99, + 0x94, 0x61, 0x51, 0xdb, 0x79, 0xae, 0xec, 0x15, 0xbc, 0xbc, 0x7b, 0xe2, 0x56, 0x01, 0x7f, 0x61, + 0xd0, 0xe8, 0x10, 0xba, 0x73, 0x3a, 0x21, 0x15, 0x85, 0xb5, 0xab, 0x14, 0xb6, 0x1c, 0xc5, 0xa9, + 0x7c, 0x0c, 0xed, 0x19, 0x4b, 0x92, 0x52, 0xa1, 0x76, 0x65, 0x0c, 0x05, 0xdc, 0xb1, 0x8f, 0x60, + 0x7b, 0x9e, 0x27, 0x8a, 0x55, 0x24, 0xea, 0x57, 0x49, 0x74, 0x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, + 0xd0, 0xfb, 0x95, 0x07, 0xcd, 0x72, 0x15, 0xff, 0x4f, 0x86, 0xd4, 0x56, 0x64, 0xc8, 0x01, 0xdc, + 0x2a, 0xfe, 0xba, 0xd2, 0x78, 0xf9, 0x73, 0x6a, 0xea, 0x9e, 0x3e, 0x9b, 0x06, 0xde, 0x31, 0x5e, + 0x77, 0x9d, 0x8d, 0xaf, 0xd7, 0x06, 0x58, 0x2e, 0xbd, 0x47, 0xa0, 0x59, 0x86, 0x8c, 0xd0, 0xd9, + 0xf3, 0xb7, 0xc7, 0xfe, 0x43, 0x68, 0xe9, 0xdd, 0x78, 0xb5, 0x2e, 0xa9, 0x77, 0xd0, 0x58, 0x86, + 0xb7, 0xec, 0x43, 0x32, 0x94, 0x19, 0x8d, 0xd8, 0x98, 0x51, 0x81, 0x6a, 0xff, 0x19, 0x7a, 0xfd, + 0x9f, 0x42, 0xa7, 0xfa, 0x5c, 0x44, 0x9f, 0xc2, 0x0d, 0x8d, 0x74, 0x0f, 0x90, 0xf7, 0xae, 0xb9, + 0xeb, 0xd8, 0xd2, 0x86, 0x8f, 0xff, 0xf8, 0xcb, 0x3f, 0xff, 0xed, 0xc6, 0x5a, 0xd7, 0x83, 0xf7, + 0x18, 0x37, 0xe4, 0x4c, 0xf0, 0xaf, 0x4f, 0x2f, 0xd7, 0x19, 0x76, 0xca, 0x7f, 0xaf, 0xe7, 0x45, + 0x06, 0x3f, 0xf7, 0x46, 0x37, 0x74, 0x2a, 0x3f, 0xf8, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, + 0xb0, 0x62, 0xf4, 0xf1, 0x10, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.validate.go new file mode 100644 index 000000000..7ba7ebce1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2/bootstrap.pb.validate.go @@ -0,0 +1,1368 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/bootstrap/v2/bootstrap.proto + +package envoy_config_bootstrap_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _bootstrap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Bootstrap with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Bootstrap) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStaticResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StaticResources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDynamicResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "DynamicResources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClusterManager()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "ClusterManager", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetHdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "HdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FlagsPath + + for idx, item := range m.GetStatsSinks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: fmt.Sprintf("StatsSinks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetStatsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StatsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetStatsFlushInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return BootstrapValidationError{ + field: "StatsFlushInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + lt := time.Duration(300*time.Second + 0*time.Nanosecond) + gte := time.Duration(0*time.Second + 1000000*time.Nanosecond) + + if dur < gte || dur >= lt { + return BootstrapValidationError{ + field: "StatsFlushInterval", + reason: "value must be inside range [1ms, 5m0s)", + } + } + + } + + if v, ok := interface{}(m.GetWatchdog()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Watchdog", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTracing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Tracing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Runtime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLayeredRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "LayeredRuntime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAdmin()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Admin", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOverloadManager()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "OverloadManager", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableDispatcherStats + + // no validation rules for HeaderPrefix + + if v, ok := interface{}(m.GetStatsServerVersionOverride()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StatsServerVersionOverride", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UseTcpForDnsLookups + + return nil +} + +// BootstrapValidationError is the validation error returned by +// Bootstrap.Validate if the designated constraints aren't met. +type BootstrapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BootstrapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BootstrapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BootstrapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BootstrapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BootstrapValidationError) ErrorName() string { return "BootstrapValidationError" } + +// Error satisfies the builtin error interface +func (e BootstrapValidationError) 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 %sBootstrap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BootstrapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BootstrapValidationError{} + +// Validate checks the field values on Admin with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Admin) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AccessLogPath + + // no validation rules for ProfilePath + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdminValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSocketOptions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdminValidationError{ + field: fmt.Sprintf("SocketOptions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AdminValidationError is the validation error returned by Admin.Validate if +// the designated constraints aren't met. +type AdminValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdminValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdminValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdminValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdminValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdminValidationError) ErrorName() string { return "AdminValidationError" } + +// Error satisfies the builtin error interface +func (e AdminValidationError) 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 %sAdmin.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdminValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdminValidationError{} + +// Validate checks the field values on ClusterManager with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterManager) Validate() error { + if m == nil { + return nil + } + + // no validation rules for LocalClusterName + + if v, ok := interface{}(m.GetOutlierDetection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "OutlierDetection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamBindConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "UpstreamBindConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLoadStatsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "LoadStatsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterManagerValidationError is the validation error returned by +// ClusterManager.Validate if the designated constraints aren't met. +type ClusterManagerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterManagerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterManagerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterManagerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterManagerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterManagerValidationError) ErrorName() string { return "ClusterManagerValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterManagerValidationError) 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 %sClusterManager.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterManagerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterManagerValidationError{} + +// Validate checks the field values on Watchdog with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Watchdog) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMissTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MissTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMegamissTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MegamissTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetKillTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "KillTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMultikillTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MultikillTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WatchdogValidationError is the validation error returned by +// Watchdog.Validate if the designated constraints aren't met. +type WatchdogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WatchdogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WatchdogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WatchdogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WatchdogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WatchdogValidationError) ErrorName() string { return "WatchdogValidationError" } + +// Error satisfies the builtin error interface +func (e WatchdogValidationError) 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 %sWatchdog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WatchdogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WatchdogValidationError{} + +// Validate checks the field values on Runtime with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Runtime) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SymlinkRoot + + // no validation rules for Subdirectory + + // no validation rules for OverrideSubdirectory + + if v, ok := interface{}(m.GetBase()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeValidationError{ + field: "Base", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RuntimeValidationError is the validation error returned by Runtime.Validate +// if the designated constraints aren't met. +type RuntimeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeValidationError) ErrorName() string { return "RuntimeValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeValidationError) 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 %sRuntime.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeValidationError{} + +// Validate checks the field values on RuntimeLayer with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RuntimeLayer) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return RuntimeLayerValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.LayerSpecifier.(type) { + + case *RuntimeLayer_StaticLayer: + + if v, ok := interface{}(m.GetStaticLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "StaticLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_DiskLayer_: + + if v, ok := interface{}(m.GetDiskLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "DiskLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_AdminLayer_: + + if v, ok := interface{}(m.GetAdminLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "AdminLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_RtdsLayer_: + + if v, ok := interface{}(m.GetRtdsLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "RtdsLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return RuntimeLayerValidationError{ + field: "LayerSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// RuntimeLayerValidationError is the validation error returned by +// RuntimeLayer.Validate if the designated constraints aren't met. +type RuntimeLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayerValidationError) ErrorName() string { return "RuntimeLayerValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeLayerValidationError) 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 %sRuntimeLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayerValidationError{} + +// Validate checks the field values on LayeredRuntime with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LayeredRuntime) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLayers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LayeredRuntimeValidationError{ + field: fmt.Sprintf("Layers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LayeredRuntimeValidationError is the validation error returned by +// LayeredRuntime.Validate if the designated constraints aren't met. +type LayeredRuntimeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LayeredRuntimeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LayeredRuntimeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LayeredRuntimeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LayeredRuntimeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LayeredRuntimeValidationError) ErrorName() string { return "LayeredRuntimeValidationError" } + +// Error satisfies the builtin error interface +func (e LayeredRuntimeValidationError) 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 %sLayeredRuntime.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LayeredRuntimeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LayeredRuntimeValidationError{} + +// Validate checks the field values on Bootstrap_StaticResources with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Bootstrap_StaticResources) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Listeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Clusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Secrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// Bootstrap_StaticResourcesValidationError is the validation error returned by +// Bootstrap_StaticResources.Validate if the designated constraints aren't met. +type Bootstrap_StaticResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Bootstrap_StaticResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Bootstrap_StaticResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Bootstrap_StaticResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Bootstrap_StaticResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Bootstrap_StaticResourcesValidationError) ErrorName() string { + return "Bootstrap_StaticResourcesValidationError" +} + +// Error satisfies the builtin error interface +func (e Bootstrap_StaticResourcesValidationError) 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 %sBootstrap_StaticResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Bootstrap_StaticResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Bootstrap_StaticResourcesValidationError{} + +// Validate checks the field values on Bootstrap_DynamicResources with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Bootstrap_DynamicResources) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "LdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "CdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "AdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// Bootstrap_DynamicResourcesValidationError is the validation error returned +// by Bootstrap_DynamicResources.Validate if the designated constraints aren't met. +type Bootstrap_DynamicResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Bootstrap_DynamicResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Bootstrap_DynamicResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Bootstrap_DynamicResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Bootstrap_DynamicResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Bootstrap_DynamicResourcesValidationError) ErrorName() string { + return "Bootstrap_DynamicResourcesValidationError" +} + +// Error satisfies the builtin error interface +func (e Bootstrap_DynamicResourcesValidationError) 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 %sBootstrap_DynamicResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Bootstrap_DynamicResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Bootstrap_DynamicResourcesValidationError{} + +// Validate checks the field values on ClusterManager_OutlierDetection with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClusterManager_OutlierDetection) Validate() error { + if m == nil { + return nil + } + + // no validation rules for EventLogPath + + if v, ok := interface{}(m.GetEventService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManager_OutlierDetectionValidationError{ + field: "EventService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterManager_OutlierDetectionValidationError is the validation error +// returned by ClusterManager_OutlierDetection.Validate if the designated +// constraints aren't met. +type ClusterManager_OutlierDetectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterManager_OutlierDetectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterManager_OutlierDetectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterManager_OutlierDetectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterManager_OutlierDetectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterManager_OutlierDetectionValidationError) ErrorName() string { + return "ClusterManager_OutlierDetectionValidationError" +} + +// Error satisfies the builtin error interface +func (e ClusterManager_OutlierDetectionValidationError) 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 %sClusterManager_OutlierDetection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterManager_OutlierDetectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterManager_OutlierDetectionValidationError{} + +// Validate checks the field values on RuntimeLayer_DiskLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_DiskLayer) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SymlinkRoot + + // no validation rules for Subdirectory + + // no validation rules for AppendServiceCluster + + return nil +} + +// RuntimeLayer_DiskLayerValidationError is the validation error returned by +// RuntimeLayer_DiskLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_DiskLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_DiskLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_DiskLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_DiskLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_DiskLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_DiskLayerValidationError) ErrorName() string { + return "RuntimeLayer_DiskLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_DiskLayerValidationError) 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 %sRuntimeLayer_DiskLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_DiskLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_DiskLayerValidationError{} + +// Validate checks the field values on RuntimeLayer_AdminLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_AdminLayer) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RuntimeLayer_AdminLayerValidationError is the validation error returned by +// RuntimeLayer_AdminLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_AdminLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_AdminLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_AdminLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_AdminLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_AdminLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_AdminLayerValidationError) ErrorName() string { + return "RuntimeLayer_AdminLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_AdminLayerValidationError) 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 %sRuntimeLayer_AdminLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_AdminLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_AdminLayerValidationError{} + +// Validate checks the field values on RuntimeLayer_RtdsLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_RtdsLayer) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetRtdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayer_RtdsLayerValidationError{ + field: "RtdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RuntimeLayer_RtdsLayerValidationError is the validation error returned by +// RuntimeLayer_RtdsLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_RtdsLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_RtdsLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_RtdsLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_RtdsLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_RtdsLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_RtdsLayerValidationError) ErrorName() string { + return "RuntimeLayer_RtdsLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_RtdsLayerValidationError) 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 %sRuntimeLayer_RtdsLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_RtdsLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_RtdsLayerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.go new file mode 100644 index 000000000..3a9982214 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.go @@ -0,0 +1,1057 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/bootstrap/v3/bootstrap.proto + +package envoy_config_bootstrap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v35 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v34 "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v3" + v33 "github.com/envoyproxy/go-control-plane/envoy/config/overload/v3" + v32 "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3" + v36 "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Bootstrap struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + StaticResources *Bootstrap_StaticResources `protobuf:"bytes,2,opt,name=static_resources,json=staticResources,proto3" json:"static_resources,omitempty"` + DynamicResources *Bootstrap_DynamicResources `protobuf:"bytes,3,opt,name=dynamic_resources,json=dynamicResources,proto3" json:"dynamic_resources,omitempty"` + ClusterManager *ClusterManager `protobuf:"bytes,4,opt,name=cluster_manager,json=clusterManager,proto3" json:"cluster_manager,omitempty"` + HdsConfig *v3.ApiConfigSource `protobuf:"bytes,14,opt,name=hds_config,json=hdsConfig,proto3" json:"hds_config,omitempty"` + FlagsPath string `protobuf:"bytes,5,opt,name=flags_path,json=flagsPath,proto3" json:"flags_path,omitempty"` + StatsSinks []*v31.StatsSink `protobuf:"bytes,6,rep,name=stats_sinks,json=statsSinks,proto3" json:"stats_sinks,omitempty"` + StatsConfig *v31.StatsConfig `protobuf:"bytes,13,opt,name=stats_config,json=statsConfig,proto3" json:"stats_config,omitempty"` + StatsFlushInterval *duration.Duration `protobuf:"bytes,7,opt,name=stats_flush_interval,json=statsFlushInterval,proto3" json:"stats_flush_interval,omitempty"` + Watchdog *Watchdog `protobuf:"bytes,8,opt,name=watchdog,proto3" json:"watchdog,omitempty"` + Tracing *v32.Tracing `protobuf:"bytes,9,opt,name=tracing,proto3" json:"tracing,omitempty"` + HiddenEnvoyDeprecatedRuntime *Runtime `protobuf:"bytes,11,opt,name=hidden_envoy_deprecated_runtime,json=hiddenEnvoyDeprecatedRuntime,proto3" json:"hidden_envoy_deprecated_runtime,omitempty"` // Deprecated: Do not use. + LayeredRuntime *LayeredRuntime `protobuf:"bytes,17,opt,name=layered_runtime,json=layeredRuntime,proto3" json:"layered_runtime,omitempty"` + Admin *Admin `protobuf:"bytes,12,opt,name=admin,proto3" json:"admin,omitempty"` + OverloadManager *v33.OverloadManager `protobuf:"bytes,15,opt,name=overload_manager,json=overloadManager,proto3" json:"overload_manager,omitempty"` + EnableDispatcherStats bool `protobuf:"varint,16,opt,name=enable_dispatcher_stats,json=enableDispatcherStats,proto3" json:"enable_dispatcher_stats,omitempty"` + HeaderPrefix string `protobuf:"bytes,18,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` + StatsServerVersionOverride *wrappers.UInt64Value `protobuf:"bytes,19,opt,name=stats_server_version_override,json=statsServerVersionOverride,proto3" json:"stats_server_version_override,omitempty"` + UseTcpForDnsLookups bool `protobuf:"varint,20,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap) Reset() { *m = Bootstrap{} } +func (m *Bootstrap) String() string { return proto.CompactTextString(m) } +func (*Bootstrap) ProtoMessage() {} +func (*Bootstrap) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{0} +} + +func (m *Bootstrap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap.Unmarshal(m, b) +} +func (m *Bootstrap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap.Marshal(b, m, deterministic) +} +func (m *Bootstrap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap.Merge(m, src) +} +func (m *Bootstrap) XXX_Size() int { + return xxx_messageInfo_Bootstrap.Size(m) +} +func (m *Bootstrap) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap proto.InternalMessageInfo + +func (m *Bootstrap) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *Bootstrap) GetStaticResources() *Bootstrap_StaticResources { + if m != nil { + return m.StaticResources + } + return nil +} + +func (m *Bootstrap) GetDynamicResources() *Bootstrap_DynamicResources { + if m != nil { + return m.DynamicResources + } + return nil +} + +func (m *Bootstrap) GetClusterManager() *ClusterManager { + if m != nil { + return m.ClusterManager + } + return nil +} + +func (m *Bootstrap) GetHdsConfig() *v3.ApiConfigSource { + if m != nil { + return m.HdsConfig + } + return nil +} + +func (m *Bootstrap) GetFlagsPath() string { + if m != nil { + return m.FlagsPath + } + return "" +} + +func (m *Bootstrap) GetStatsSinks() []*v31.StatsSink { + if m != nil { + return m.StatsSinks + } + return nil +} + +func (m *Bootstrap) GetStatsConfig() *v31.StatsConfig { + if m != nil { + return m.StatsConfig + } + return nil +} + +func (m *Bootstrap) GetStatsFlushInterval() *duration.Duration { + if m != nil { + return m.StatsFlushInterval + } + return nil +} + +func (m *Bootstrap) GetWatchdog() *Watchdog { + if m != nil { + return m.Watchdog + } + return nil +} + +func (m *Bootstrap) GetTracing() *v32.Tracing { + if m != nil { + return m.Tracing + } + return nil +} + +// Deprecated: Do not use. +func (m *Bootstrap) GetHiddenEnvoyDeprecatedRuntime() *Runtime { + if m != nil { + return m.HiddenEnvoyDeprecatedRuntime + } + return nil +} + +func (m *Bootstrap) GetLayeredRuntime() *LayeredRuntime { + if m != nil { + return m.LayeredRuntime + } + return nil +} + +func (m *Bootstrap) GetAdmin() *Admin { + if m != nil { + return m.Admin + } + return nil +} + +func (m *Bootstrap) GetOverloadManager() *v33.OverloadManager { + if m != nil { + return m.OverloadManager + } + return nil +} + +func (m *Bootstrap) GetEnableDispatcherStats() bool { + if m != nil { + return m.EnableDispatcherStats + } + return false +} + +func (m *Bootstrap) GetHeaderPrefix() string { + if m != nil { + return m.HeaderPrefix + } + return "" +} + +func (m *Bootstrap) GetStatsServerVersionOverride() *wrappers.UInt64Value { + if m != nil { + return m.StatsServerVersionOverride + } + return nil +} + +func (m *Bootstrap) GetUseTcpForDnsLookups() bool { + if m != nil { + return m.UseTcpForDnsLookups + } + return false +} + +type Bootstrap_StaticResources struct { + Listeners []*v34.Listener `protobuf:"bytes,1,rep,name=listeners,proto3" json:"listeners,omitempty"` + Clusters []*v35.Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` + Secrets []*v36.Secret `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap_StaticResources) Reset() { *m = Bootstrap_StaticResources{} } +func (m *Bootstrap_StaticResources) String() string { return proto.CompactTextString(m) } +func (*Bootstrap_StaticResources) ProtoMessage() {} +func (*Bootstrap_StaticResources) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{0, 0} +} + +func (m *Bootstrap_StaticResources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap_StaticResources.Unmarshal(m, b) +} +func (m *Bootstrap_StaticResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap_StaticResources.Marshal(b, m, deterministic) +} +func (m *Bootstrap_StaticResources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap_StaticResources.Merge(m, src) +} +func (m *Bootstrap_StaticResources) XXX_Size() int { + return xxx_messageInfo_Bootstrap_StaticResources.Size(m) +} +func (m *Bootstrap_StaticResources) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap_StaticResources.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap_StaticResources proto.InternalMessageInfo + +func (m *Bootstrap_StaticResources) GetListeners() []*v34.Listener { + if m != nil { + return m.Listeners + } + return nil +} + +func (m *Bootstrap_StaticResources) GetClusters() []*v35.Cluster { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *Bootstrap_StaticResources) GetSecrets() []*v36.Secret { + if m != nil { + return m.Secrets + } + return nil +} + +type Bootstrap_DynamicResources struct { + LdsConfig *v3.ConfigSource `protobuf:"bytes,1,opt,name=lds_config,json=ldsConfig,proto3" json:"lds_config,omitempty"` + CdsConfig *v3.ConfigSource `protobuf:"bytes,2,opt,name=cds_config,json=cdsConfig,proto3" json:"cds_config,omitempty"` + AdsConfig *v3.ApiConfigSource `protobuf:"bytes,3,opt,name=ads_config,json=adsConfig,proto3" json:"ads_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bootstrap_DynamicResources) Reset() { *m = Bootstrap_DynamicResources{} } +func (m *Bootstrap_DynamicResources) String() string { return proto.CompactTextString(m) } +func (*Bootstrap_DynamicResources) ProtoMessage() {} +func (*Bootstrap_DynamicResources) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{0, 1} +} + +func (m *Bootstrap_DynamicResources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bootstrap_DynamicResources.Unmarshal(m, b) +} +func (m *Bootstrap_DynamicResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bootstrap_DynamicResources.Marshal(b, m, deterministic) +} +func (m *Bootstrap_DynamicResources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bootstrap_DynamicResources.Merge(m, src) +} +func (m *Bootstrap_DynamicResources) XXX_Size() int { + return xxx_messageInfo_Bootstrap_DynamicResources.Size(m) +} +func (m *Bootstrap_DynamicResources) XXX_DiscardUnknown() { + xxx_messageInfo_Bootstrap_DynamicResources.DiscardUnknown(m) +} + +var xxx_messageInfo_Bootstrap_DynamicResources proto.InternalMessageInfo + +func (m *Bootstrap_DynamicResources) GetLdsConfig() *v3.ConfigSource { + if m != nil { + return m.LdsConfig + } + return nil +} + +func (m *Bootstrap_DynamicResources) GetCdsConfig() *v3.ConfigSource { + if m != nil { + return m.CdsConfig + } + return nil +} + +func (m *Bootstrap_DynamicResources) GetAdsConfig() *v3.ApiConfigSource { + if m != nil { + return m.AdsConfig + } + return nil +} + +type Admin struct { + AccessLogPath string `protobuf:"bytes,1,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"` + ProfilePath string `protobuf:"bytes,2,opt,name=profile_path,json=profilePath,proto3" json:"profile_path,omitempty"` + Address *v3.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + SocketOptions []*v3.SocketOption `protobuf:"bytes,4,rep,name=socket_options,json=socketOptions,proto3" json:"socket_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Admin) Reset() { *m = Admin{} } +func (m *Admin) String() string { return proto.CompactTextString(m) } +func (*Admin) ProtoMessage() {} +func (*Admin) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{1} +} + +func (m *Admin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Admin.Unmarshal(m, b) +} +func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Admin.Marshal(b, m, deterministic) +} +func (m *Admin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Admin.Merge(m, src) +} +func (m *Admin) XXX_Size() int { + return xxx_messageInfo_Admin.Size(m) +} +func (m *Admin) XXX_DiscardUnknown() { + xxx_messageInfo_Admin.DiscardUnknown(m) +} + +var xxx_messageInfo_Admin proto.InternalMessageInfo + +func (m *Admin) GetAccessLogPath() string { + if m != nil { + return m.AccessLogPath + } + return "" +} + +func (m *Admin) GetProfilePath() string { + if m != nil { + return m.ProfilePath + } + return "" +} + +func (m *Admin) GetAddress() *v3.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *Admin) GetSocketOptions() []*v3.SocketOption { + if m != nil { + return m.SocketOptions + } + return nil +} + +type ClusterManager struct { + LocalClusterName string `protobuf:"bytes,1,opt,name=local_cluster_name,json=localClusterName,proto3" json:"local_cluster_name,omitempty"` + OutlierDetection *ClusterManager_OutlierDetection `protobuf:"bytes,2,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"` + UpstreamBindConfig *v3.BindConfig `protobuf:"bytes,3,opt,name=upstream_bind_config,json=upstreamBindConfig,proto3" json:"upstream_bind_config,omitempty"` + LoadStatsConfig *v3.ApiConfigSource `protobuf:"bytes,4,opt,name=load_stats_config,json=loadStatsConfig,proto3" json:"load_stats_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterManager) Reset() { *m = ClusterManager{} } +func (m *ClusterManager) String() string { return proto.CompactTextString(m) } +func (*ClusterManager) ProtoMessage() {} +func (*ClusterManager) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{2} +} + +func (m *ClusterManager) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterManager.Unmarshal(m, b) +} +func (m *ClusterManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterManager.Marshal(b, m, deterministic) +} +func (m *ClusterManager) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterManager.Merge(m, src) +} +func (m *ClusterManager) XXX_Size() int { + return xxx_messageInfo_ClusterManager.Size(m) +} +func (m *ClusterManager) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterManager.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterManager proto.InternalMessageInfo + +func (m *ClusterManager) GetLocalClusterName() string { + if m != nil { + return m.LocalClusterName + } + return "" +} + +func (m *ClusterManager) GetOutlierDetection() *ClusterManager_OutlierDetection { + if m != nil { + return m.OutlierDetection + } + return nil +} + +func (m *ClusterManager) GetUpstreamBindConfig() *v3.BindConfig { + if m != nil { + return m.UpstreamBindConfig + } + return nil +} + +func (m *ClusterManager) GetLoadStatsConfig() *v3.ApiConfigSource { + if m != nil { + return m.LoadStatsConfig + } + return nil +} + +type ClusterManager_OutlierDetection struct { + EventLogPath string `protobuf:"bytes,1,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"` + EventService *v3.EventServiceConfig `protobuf:"bytes,2,opt,name=event_service,json=eventService,proto3" json:"event_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterManager_OutlierDetection) Reset() { *m = ClusterManager_OutlierDetection{} } +func (m *ClusterManager_OutlierDetection) String() string { return proto.CompactTextString(m) } +func (*ClusterManager_OutlierDetection) ProtoMessage() {} +func (*ClusterManager_OutlierDetection) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{2, 0} +} + +func (m *ClusterManager_OutlierDetection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterManager_OutlierDetection.Unmarshal(m, b) +} +func (m *ClusterManager_OutlierDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterManager_OutlierDetection.Marshal(b, m, deterministic) +} +func (m *ClusterManager_OutlierDetection) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterManager_OutlierDetection.Merge(m, src) +} +func (m *ClusterManager_OutlierDetection) XXX_Size() int { + return xxx_messageInfo_ClusterManager_OutlierDetection.Size(m) +} +func (m *ClusterManager_OutlierDetection) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterManager_OutlierDetection.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterManager_OutlierDetection proto.InternalMessageInfo + +func (m *ClusterManager_OutlierDetection) GetEventLogPath() string { + if m != nil { + return m.EventLogPath + } + return "" +} + +func (m *ClusterManager_OutlierDetection) GetEventService() *v3.EventServiceConfig { + if m != nil { + return m.EventService + } + return nil +} + +type Watchdog struct { + MissTimeout *duration.Duration `protobuf:"bytes,1,opt,name=miss_timeout,json=missTimeout,proto3" json:"miss_timeout,omitempty"` + MegamissTimeout *duration.Duration `protobuf:"bytes,2,opt,name=megamiss_timeout,json=megamissTimeout,proto3" json:"megamiss_timeout,omitempty"` + KillTimeout *duration.Duration `protobuf:"bytes,3,opt,name=kill_timeout,json=killTimeout,proto3" json:"kill_timeout,omitempty"` + MultikillTimeout *duration.Duration `protobuf:"bytes,4,opt,name=multikill_timeout,json=multikillTimeout,proto3" json:"multikill_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Watchdog) Reset() { *m = Watchdog{} } +func (m *Watchdog) String() string { return proto.CompactTextString(m) } +func (*Watchdog) ProtoMessage() {} +func (*Watchdog) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{3} +} + +func (m *Watchdog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Watchdog.Unmarshal(m, b) +} +func (m *Watchdog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Watchdog.Marshal(b, m, deterministic) +} +func (m *Watchdog) XXX_Merge(src proto.Message) { + xxx_messageInfo_Watchdog.Merge(m, src) +} +func (m *Watchdog) XXX_Size() int { + return xxx_messageInfo_Watchdog.Size(m) +} +func (m *Watchdog) XXX_DiscardUnknown() { + xxx_messageInfo_Watchdog.DiscardUnknown(m) +} + +var xxx_messageInfo_Watchdog proto.InternalMessageInfo + +func (m *Watchdog) GetMissTimeout() *duration.Duration { + if m != nil { + return m.MissTimeout + } + return nil +} + +func (m *Watchdog) GetMegamissTimeout() *duration.Duration { + if m != nil { + return m.MegamissTimeout + } + return nil +} + +func (m *Watchdog) GetKillTimeout() *duration.Duration { + if m != nil { + return m.KillTimeout + } + return nil +} + +func (m *Watchdog) GetMultikillTimeout() *duration.Duration { + if m != nil { + return m.MultikillTimeout + } + return nil +} + +type Runtime struct { + SymlinkRoot string `protobuf:"bytes,1,opt,name=symlink_root,json=symlinkRoot,proto3" json:"symlink_root,omitempty"` + Subdirectory string `protobuf:"bytes,2,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"` + OverrideSubdirectory string `protobuf:"bytes,3,opt,name=override_subdirectory,json=overrideSubdirectory,proto3" json:"override_subdirectory,omitempty"` + Base *_struct.Struct `protobuf:"bytes,4,opt,name=base,proto3" json:"base,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Runtime) Reset() { *m = Runtime{} } +func (m *Runtime) String() string { return proto.CompactTextString(m) } +func (*Runtime) ProtoMessage() {} +func (*Runtime) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{4} +} + +func (m *Runtime) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Runtime.Unmarshal(m, b) +} +func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Runtime.Marshal(b, m, deterministic) +} +func (m *Runtime) XXX_Merge(src proto.Message) { + xxx_messageInfo_Runtime.Merge(m, src) +} +func (m *Runtime) XXX_Size() int { + return xxx_messageInfo_Runtime.Size(m) +} +func (m *Runtime) XXX_DiscardUnknown() { + xxx_messageInfo_Runtime.DiscardUnknown(m) +} + +var xxx_messageInfo_Runtime proto.InternalMessageInfo + +func (m *Runtime) GetSymlinkRoot() string { + if m != nil { + return m.SymlinkRoot + } + return "" +} + +func (m *Runtime) GetSubdirectory() string { + if m != nil { + return m.Subdirectory + } + return "" +} + +func (m *Runtime) GetOverrideSubdirectory() string { + if m != nil { + return m.OverrideSubdirectory + } + return "" +} + +func (m *Runtime) GetBase() *_struct.Struct { + if m != nil { + return m.Base + } + return nil +} + +type RuntimeLayer struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to LayerSpecifier: + // *RuntimeLayer_StaticLayer + // *RuntimeLayer_DiskLayer_ + // *RuntimeLayer_AdminLayer_ + // *RuntimeLayer_RtdsLayer_ + LayerSpecifier isRuntimeLayer_LayerSpecifier `protobuf_oneof:"layer_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer) Reset() { *m = RuntimeLayer{} } +func (m *RuntimeLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer) ProtoMessage() {} +func (*RuntimeLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{5} +} + +func (m *RuntimeLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer.Merge(m, src) +} +func (m *RuntimeLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer.Size(m) +} +func (m *RuntimeLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer proto.InternalMessageInfo + +func (m *RuntimeLayer) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isRuntimeLayer_LayerSpecifier interface { + isRuntimeLayer_LayerSpecifier() +} + +type RuntimeLayer_StaticLayer struct { + StaticLayer *_struct.Struct `protobuf:"bytes,2,opt,name=static_layer,json=staticLayer,proto3,oneof"` +} + +type RuntimeLayer_DiskLayer_ struct { + DiskLayer *RuntimeLayer_DiskLayer `protobuf:"bytes,3,opt,name=disk_layer,json=diskLayer,proto3,oneof"` +} + +type RuntimeLayer_AdminLayer_ struct { + AdminLayer *RuntimeLayer_AdminLayer `protobuf:"bytes,4,opt,name=admin_layer,json=adminLayer,proto3,oneof"` +} + +type RuntimeLayer_RtdsLayer_ struct { + RtdsLayer *RuntimeLayer_RtdsLayer `protobuf:"bytes,5,opt,name=rtds_layer,json=rtdsLayer,proto3,oneof"` +} + +func (*RuntimeLayer_StaticLayer) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_DiskLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_AdminLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (*RuntimeLayer_RtdsLayer_) isRuntimeLayer_LayerSpecifier() {} + +func (m *RuntimeLayer) GetLayerSpecifier() isRuntimeLayer_LayerSpecifier { + if m != nil { + return m.LayerSpecifier + } + return nil +} + +func (m *RuntimeLayer) GetStaticLayer() *_struct.Struct { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_StaticLayer); ok { + return x.StaticLayer + } + return nil +} + +func (m *RuntimeLayer) GetDiskLayer() *RuntimeLayer_DiskLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_DiskLayer_); ok { + return x.DiskLayer + } + return nil +} + +func (m *RuntimeLayer) GetAdminLayer() *RuntimeLayer_AdminLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_AdminLayer_); ok { + return x.AdminLayer + } + return nil +} + +func (m *RuntimeLayer) GetRtdsLayer() *RuntimeLayer_RtdsLayer { + if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_RtdsLayer_); ok { + return x.RtdsLayer + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RuntimeLayer) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RuntimeLayer_StaticLayer)(nil), + (*RuntimeLayer_DiskLayer_)(nil), + (*RuntimeLayer_AdminLayer_)(nil), + (*RuntimeLayer_RtdsLayer_)(nil), + } +} + +type RuntimeLayer_DiskLayer struct { + SymlinkRoot string `protobuf:"bytes,1,opt,name=symlink_root,json=symlinkRoot,proto3" json:"symlink_root,omitempty"` + Subdirectory string `protobuf:"bytes,3,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"` + AppendServiceCluster bool `protobuf:"varint,2,opt,name=append_service_cluster,json=appendServiceCluster,proto3" json:"append_service_cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_DiskLayer) Reset() { *m = RuntimeLayer_DiskLayer{} } +func (m *RuntimeLayer_DiskLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_DiskLayer) ProtoMessage() {} +func (*RuntimeLayer_DiskLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{5, 0} +} + +func (m *RuntimeLayer_DiskLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_DiskLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_DiskLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_DiskLayer.Merge(m, src) +} +func (m *RuntimeLayer_DiskLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_DiskLayer.Size(m) +} +func (m *RuntimeLayer_DiskLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_DiskLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_DiskLayer proto.InternalMessageInfo + +func (m *RuntimeLayer_DiskLayer) GetSymlinkRoot() string { + if m != nil { + return m.SymlinkRoot + } + return "" +} + +func (m *RuntimeLayer_DiskLayer) GetSubdirectory() string { + if m != nil { + return m.Subdirectory + } + return "" +} + +func (m *RuntimeLayer_DiskLayer) GetAppendServiceCluster() bool { + if m != nil { + return m.AppendServiceCluster + } + return false +} + +type RuntimeLayer_AdminLayer struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_AdminLayer) Reset() { *m = RuntimeLayer_AdminLayer{} } +func (m *RuntimeLayer_AdminLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_AdminLayer) ProtoMessage() {} +func (*RuntimeLayer_AdminLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{5, 1} +} + +func (m *RuntimeLayer_AdminLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_AdminLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_AdminLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_AdminLayer.Merge(m, src) +} +func (m *RuntimeLayer_AdminLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_AdminLayer.Size(m) +} +func (m *RuntimeLayer_AdminLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_AdminLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_AdminLayer proto.InternalMessageInfo + +type RuntimeLayer_RtdsLayer struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RtdsConfig *v3.ConfigSource `protobuf:"bytes,2,opt,name=rtds_config,json=rtdsConfig,proto3" json:"rtds_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeLayer_RtdsLayer) Reset() { *m = RuntimeLayer_RtdsLayer{} } +func (m *RuntimeLayer_RtdsLayer) String() string { return proto.CompactTextString(m) } +func (*RuntimeLayer_RtdsLayer) ProtoMessage() {} +func (*RuntimeLayer_RtdsLayer) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{5, 2} +} + +func (m *RuntimeLayer_RtdsLayer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Unmarshal(m, b) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Marshal(b, m, deterministic) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeLayer_RtdsLayer.Merge(m, src) +} +func (m *RuntimeLayer_RtdsLayer) XXX_Size() int { + return xxx_messageInfo_RuntimeLayer_RtdsLayer.Size(m) +} +func (m *RuntimeLayer_RtdsLayer) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeLayer_RtdsLayer.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeLayer_RtdsLayer proto.InternalMessageInfo + +func (m *RuntimeLayer_RtdsLayer) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RuntimeLayer_RtdsLayer) GetRtdsConfig() *v3.ConfigSource { + if m != nil { + return m.RtdsConfig + } + return nil +} + +type LayeredRuntime struct { + Layers []*RuntimeLayer `protobuf:"bytes,1,rep,name=layers,proto3" json:"layers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LayeredRuntime) Reset() { *m = LayeredRuntime{} } +func (m *LayeredRuntime) String() string { return proto.CompactTextString(m) } +func (*LayeredRuntime) ProtoMessage() {} +func (*LayeredRuntime) Descriptor() ([]byte, []int) { + return fileDescriptor_ccaa5ae7dd0aa495, []int{6} +} + +func (m *LayeredRuntime) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LayeredRuntime.Unmarshal(m, b) +} +func (m *LayeredRuntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LayeredRuntime.Marshal(b, m, deterministic) +} +func (m *LayeredRuntime) XXX_Merge(src proto.Message) { + xxx_messageInfo_LayeredRuntime.Merge(m, src) +} +func (m *LayeredRuntime) XXX_Size() int { + return xxx_messageInfo_LayeredRuntime.Size(m) +} +func (m *LayeredRuntime) XXX_DiscardUnknown() { + xxx_messageInfo_LayeredRuntime.DiscardUnknown(m) +} + +var xxx_messageInfo_LayeredRuntime proto.InternalMessageInfo + +func (m *LayeredRuntime) GetLayers() []*RuntimeLayer { + if m != nil { + return m.Layers + } + return nil +} + +func init() { + proto.RegisterType((*Bootstrap)(nil), "envoy.config.bootstrap.v3.Bootstrap") + proto.RegisterType((*Bootstrap_StaticResources)(nil), "envoy.config.bootstrap.v3.Bootstrap.StaticResources") + proto.RegisterType((*Bootstrap_DynamicResources)(nil), "envoy.config.bootstrap.v3.Bootstrap.DynamicResources") + proto.RegisterType((*Admin)(nil), "envoy.config.bootstrap.v3.Admin") + proto.RegisterType((*ClusterManager)(nil), "envoy.config.bootstrap.v3.ClusterManager") + proto.RegisterType((*ClusterManager_OutlierDetection)(nil), "envoy.config.bootstrap.v3.ClusterManager.OutlierDetection") + proto.RegisterType((*Watchdog)(nil), "envoy.config.bootstrap.v3.Watchdog") + proto.RegisterType((*Runtime)(nil), "envoy.config.bootstrap.v3.Runtime") + proto.RegisterType((*RuntimeLayer)(nil), "envoy.config.bootstrap.v3.RuntimeLayer") + proto.RegisterType((*RuntimeLayer_DiskLayer)(nil), "envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer") + proto.RegisterType((*RuntimeLayer_AdminLayer)(nil), "envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer") + proto.RegisterType((*RuntimeLayer_RtdsLayer)(nil), "envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer") + proto.RegisterType((*LayeredRuntime)(nil), "envoy.config.bootstrap.v3.LayeredRuntime") +} + +func init() { + proto.RegisterFile("envoy/config/bootstrap/v3/bootstrap.proto", fileDescriptor_ccaa5ae7dd0aa495) +} + +var fileDescriptor_ccaa5ae7dd0aa495 = []byte{ + // 1843 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xcd, 0x73, 0x23, 0x47, + 0x15, 0xcf, 0xc8, 0xb2, 0x2d, 0x3f, 0xc9, 0xb6, 0xdc, 0x71, 0xb2, 0x13, 0xb1, 0x1f, 0xb6, 0xbc, + 0x1f, 0xda, 0x00, 0x23, 0xd6, 0x72, 0x36, 0x41, 0x59, 0x2a, 0x59, 0x59, 0x59, 0xb2, 0x61, 0x93, + 0x5d, 0xc6, 0x9b, 0x70, 0x63, 0x6a, 0x3c, 0xd3, 0x96, 0xa7, 0x3c, 0x9a, 0x9e, 0xea, 0xee, 0x51, + 0xd6, 0x37, 0x8a, 0xe2, 0xc0, 0xdf, 0x90, 0x2a, 0x0e, 0x5c, 0x29, 0xfe, 0x00, 0x8a, 0x0b, 0x70, + 0xa0, 0x0a, 0x8a, 0x13, 0x5c, 0xe1, 0xc0, 0x5f, 0xc0, 0x81, 0x13, 0x95, 0x03, 0x45, 0xf5, 0xd7, + 0xc8, 0x23, 0x4b, 0xb6, 0xcc, 0xad, 0x3f, 0x7e, 0xbf, 0x5f, 0xbf, 0x7e, 0xfd, 0xde, 0xeb, 0x9e, + 0x81, 0xfb, 0x38, 0x19, 0x91, 0xd3, 0x76, 0x40, 0x92, 0xa3, 0x68, 0xd0, 0x3e, 0x24, 0x84, 0x33, + 0x4e, 0xfd, 0xb4, 0x3d, 0xea, 0x8c, 0x3b, 0x4e, 0x4a, 0x09, 0x27, 0xe8, 0x2d, 0x09, 0x75, 0x14, + 0xd4, 0x19, 0xcf, 0x8e, 0x3a, 0x8d, 0x3b, 0x05, 0x95, 0x20, 0xce, 0x18, 0xc7, 0x54, 0x68, 0xe8, + 0xa6, 0x52, 0x68, 0x34, 0x8b, 0x30, 0x42, 0xb1, 0xc0, 0xf8, 0x61, 0x48, 0x31, 0x63, 0x1a, 0x73, + 0x6b, 0x2a, 0xe6, 0xd0, 0x67, 0x58, 0x03, 0x5a, 0x53, 0x01, 0xaa, 0xeb, 0x31, 0x92, 0xd1, 0xc0, + 0x20, 0xdb, 0x53, 0x91, 0x78, 0x84, 0x13, 0xee, 0x31, 0x4c, 0x47, 0x51, 0x80, 0x3d, 0xbd, 0x9b, + 0x8b, 0xa4, 0x19, 0x09, 0x4e, 0x30, 0xf7, 0x48, 0xca, 0x23, 0x92, 0x68, 0xe4, 0xbd, 0x02, 0x32, + 0x8e, 0x18, 0xc7, 0x89, 0xda, 0xb1, 0x69, 0x6b, 0xe0, 0x4e, 0x01, 0x38, 0xc4, 0x9c, 0x46, 0x01, + 0x93, 0xaa, 0xdc, 0xe7, 0x6c, 0xaa, 0x1a, 0x19, 0x61, 0x1a, 0x13, 0x3f, 0x14, 0x28, 0xd3, 0xd6, + 0xc0, 0xed, 0x02, 0x90, 0x53, 0x3f, 0x90, 0x16, 0xca, 0x86, 0x86, 0xec, 0x29, 0x08, 0x7e, 0xc5, + 0x71, 0xc2, 0x22, 0x92, 0x30, 0x31, 0x9b, 0xb0, 0x94, 0x50, 0xee, 0xa9, 0x9d, 0xb0, 0x36, 0x8f, + 0xa5, 0x09, 0x01, 0xa6, 0x5c, 0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x7e, + 0xf3, 0x1d, 0xe8, 0xcc, 0x8a, 0xac, 0xdd, 0xd9, 0xe5, 0xbf, 0xf1, 0xcb, 0x12, 0xd4, 0x27, 0x0b, + 0x36, 0x7a, 0x0c, 0x10, 0x8f, 0x4b, 0xa9, 0x35, 0x2d, 0xcf, 0x4c, 0x29, 0x2d, 0xd6, 0xd1, 0x38, + 0xaf, 0xa3, 0x8f, 0x01, 0x82, 0xb1, 0x44, 0x69, 0x7e, 0x89, 0x20, 0x97, 0xe8, 0x03, 0xf8, 0x63, + 0x89, 0x85, 0x2b, 0x15, 0x74, 0xdf, 0xa8, 0x74, 0xdf, 0x17, 0xce, 0x79, 0x08, 0x7b, 0xf3, 0x38, + 0x67, 0xd2, 0x11, 0x9f, 0x94, 0x2b, 0xe5, 0xfa, 0x62, 0xf7, 0x6d, 0x21, 0x71, 0x07, 0x76, 0xe6, + 0x90, 0xf8, 0xa4, 0x5c, 0x81, 0x7a, 0xb5, 0xf9, 0x5f, 0x0b, 0x16, 0x65, 0x36, 0xa3, 0xbb, 0xb0, + 0xee, 0x07, 0x01, 0x66, 0x22, 0x52, 0x07, 0xea, 0x52, 0xb1, 0x64, 0xea, 0xac, 0xaa, 0xe1, 0x67, + 0x64, 0x20, 0x2f, 0x96, 0x6d, 0xa8, 0xa5, 0x94, 0x1c, 0x45, 0x31, 0x56, 0xa0, 0x92, 0x04, 0x55, + 0xf5, 0x98, 0x84, 0xbc, 0x0b, 0xcb, 0xfa, 0x71, 0xaa, 0x9d, 0x71, 0x63, 0x86, 0x33, 0x14, 0xc8, + 0x35, 0x68, 0xf4, 0x14, 0xd6, 0x0a, 0xaf, 0x46, 0x66, 0x97, 0xa7, 0x45, 0xbc, 0xe1, 0x1f, 0x48, + 0xec, 0x73, 0x09, 0x75, 0x57, 0xd9, 0x99, 0x1e, 0xeb, 0xde, 0x15, 0xae, 0xd8, 0x86, 0x5b, 0xb3, + 0x5d, 0x21, 0xb7, 0xdd, 0xfc, 0x4b, 0x19, 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c, 0xf1, 0x58, 0x8a, 0x83, 0xe8, 0x28, + 0xc2, 0x14, 0x2d, 0xfc, 0xa7, 0x67, 0x35, 0x7f, 0x6a, 0xc1, 0x5a, 0xf1, 0x2b, 0x07, 0x7d, 0x00, + 0x4b, 0x12, 0x6a, 0x1e, 0xcf, 0xf7, 0xe6, 0x8c, 0x2a, 0x57, 0xd3, 0xe6, 0xb8, 0x03, 0x8a, 0x2b, + 0xf6, 0xf6, 0x7f, 0xfb, 0x93, 0x3f, 0xfd, 0x75, 0xa9, 0x54, 0x2f, 0xc1, 0xbd, 0x88, 0xa8, 0xd5, + 0x52, 0x4a, 0x5e, 0x9d, 0xce, 0x5e, 0xb8, 0xb7, 0x96, 0x3f, 0xcb, 0x5e, 0x88, 0x94, 0x7e, 0x61, + 0x1d, 0x2e, 0xc9, 0xdc, 0xee, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x94, 0x5b, 0x1f, 0x0b, 0x68, + 0x14, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.validate.go new file mode 100644 index 000000000..9255e9485 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3/bootstrap.pb.validate.go @@ -0,0 +1,1368 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/bootstrap/v3/bootstrap.proto + +package envoy_config_bootstrap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _bootstrap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Bootstrap with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Bootstrap) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStaticResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StaticResources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDynamicResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "DynamicResources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClusterManager()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "ClusterManager", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetHdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "HdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FlagsPath + + for idx, item := range m.GetStatsSinks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: fmt.Sprintf("StatsSinks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetStatsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StatsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetStatsFlushInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return BootstrapValidationError{ + field: "StatsFlushInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + lt := time.Duration(300*time.Second + 0*time.Nanosecond) + gte := time.Duration(0*time.Second + 1000000*time.Nanosecond) + + if dur < gte || dur >= lt { + return BootstrapValidationError{ + field: "StatsFlushInterval", + reason: "value must be inside range [1ms, 5m0s)", + } + } + + } + + if v, ok := interface{}(m.GetWatchdog()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Watchdog", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTracing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Tracing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetHiddenEnvoyDeprecatedRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "HiddenEnvoyDeprecatedRuntime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLayeredRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "LayeredRuntime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAdmin()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "Admin", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOverloadManager()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "OverloadManager", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableDispatcherStats + + // no validation rules for HeaderPrefix + + if v, ok := interface{}(m.GetStatsServerVersionOverride()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BootstrapValidationError{ + field: "StatsServerVersionOverride", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UseTcpForDnsLookups + + return nil +} + +// BootstrapValidationError is the validation error returned by +// Bootstrap.Validate if the designated constraints aren't met. +type BootstrapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BootstrapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BootstrapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BootstrapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BootstrapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BootstrapValidationError) ErrorName() string { return "BootstrapValidationError" } + +// Error satisfies the builtin error interface +func (e BootstrapValidationError) 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 %sBootstrap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BootstrapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BootstrapValidationError{} + +// Validate checks the field values on Admin with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Admin) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AccessLogPath + + // no validation rules for ProfilePath + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdminValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSocketOptions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdminValidationError{ + field: fmt.Sprintf("SocketOptions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AdminValidationError is the validation error returned by Admin.Validate if +// the designated constraints aren't met. +type AdminValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdminValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdminValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdminValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdminValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdminValidationError) ErrorName() string { return "AdminValidationError" } + +// Error satisfies the builtin error interface +func (e AdminValidationError) 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 %sAdmin.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdminValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdminValidationError{} + +// Validate checks the field values on ClusterManager with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterManager) Validate() error { + if m == nil { + return nil + } + + // no validation rules for LocalClusterName + + if v, ok := interface{}(m.GetOutlierDetection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "OutlierDetection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamBindConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "UpstreamBindConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLoadStatsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManagerValidationError{ + field: "LoadStatsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterManagerValidationError is the validation error returned by +// ClusterManager.Validate if the designated constraints aren't met. +type ClusterManagerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterManagerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterManagerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterManagerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterManagerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterManagerValidationError) ErrorName() string { return "ClusterManagerValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterManagerValidationError) 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 %sClusterManager.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterManagerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterManagerValidationError{} + +// Validate checks the field values on Watchdog with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Watchdog) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMissTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MissTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMegamissTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MegamissTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetKillTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "KillTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMultikillTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WatchdogValidationError{ + field: "MultikillTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WatchdogValidationError is the validation error returned by +// Watchdog.Validate if the designated constraints aren't met. +type WatchdogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WatchdogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WatchdogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WatchdogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WatchdogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WatchdogValidationError) ErrorName() string { return "WatchdogValidationError" } + +// Error satisfies the builtin error interface +func (e WatchdogValidationError) 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 %sWatchdog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WatchdogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WatchdogValidationError{} + +// Validate checks the field values on Runtime with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Runtime) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SymlinkRoot + + // no validation rules for Subdirectory + + // no validation rules for OverrideSubdirectory + + if v, ok := interface{}(m.GetBase()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeValidationError{ + field: "Base", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RuntimeValidationError is the validation error returned by Runtime.Validate +// if the designated constraints aren't met. +type RuntimeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeValidationError) ErrorName() string { return "RuntimeValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeValidationError) 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 %sRuntime.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeValidationError{} + +// Validate checks the field values on RuntimeLayer with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RuntimeLayer) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return RuntimeLayerValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.LayerSpecifier.(type) { + + case *RuntimeLayer_StaticLayer: + + if v, ok := interface{}(m.GetStaticLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "StaticLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_DiskLayer_: + + if v, ok := interface{}(m.GetDiskLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "DiskLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_AdminLayer_: + + if v, ok := interface{}(m.GetAdminLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "AdminLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *RuntimeLayer_RtdsLayer_: + + if v, ok := interface{}(m.GetRtdsLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayerValidationError{ + field: "RtdsLayer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return RuntimeLayerValidationError{ + field: "LayerSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// RuntimeLayerValidationError is the validation error returned by +// RuntimeLayer.Validate if the designated constraints aren't met. +type RuntimeLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayerValidationError) ErrorName() string { return "RuntimeLayerValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeLayerValidationError) 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 %sRuntimeLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayerValidationError{} + +// Validate checks the field values on LayeredRuntime with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LayeredRuntime) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLayers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LayeredRuntimeValidationError{ + field: fmt.Sprintf("Layers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LayeredRuntimeValidationError is the validation error returned by +// LayeredRuntime.Validate if the designated constraints aren't met. +type LayeredRuntimeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LayeredRuntimeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LayeredRuntimeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LayeredRuntimeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LayeredRuntimeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LayeredRuntimeValidationError) ErrorName() string { return "LayeredRuntimeValidationError" } + +// Error satisfies the builtin error interface +func (e LayeredRuntimeValidationError) 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 %sLayeredRuntime.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LayeredRuntimeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LayeredRuntimeValidationError{} + +// Validate checks the field values on Bootstrap_StaticResources with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Bootstrap_StaticResources) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetListeners() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Listeners[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Clusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_StaticResourcesValidationError{ + field: fmt.Sprintf("Secrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// Bootstrap_StaticResourcesValidationError is the validation error returned by +// Bootstrap_StaticResources.Validate if the designated constraints aren't met. +type Bootstrap_StaticResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Bootstrap_StaticResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Bootstrap_StaticResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Bootstrap_StaticResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Bootstrap_StaticResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Bootstrap_StaticResourcesValidationError) ErrorName() string { + return "Bootstrap_StaticResourcesValidationError" +} + +// Error satisfies the builtin error interface +func (e Bootstrap_StaticResourcesValidationError) 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 %sBootstrap_StaticResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Bootstrap_StaticResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Bootstrap_StaticResourcesValidationError{} + +// Validate checks the field values on Bootstrap_DynamicResources with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Bootstrap_DynamicResources) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "LdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "CdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Bootstrap_DynamicResourcesValidationError{ + field: "AdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// Bootstrap_DynamicResourcesValidationError is the validation error returned +// by Bootstrap_DynamicResources.Validate if the designated constraints aren't met. +type Bootstrap_DynamicResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Bootstrap_DynamicResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Bootstrap_DynamicResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Bootstrap_DynamicResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Bootstrap_DynamicResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Bootstrap_DynamicResourcesValidationError) ErrorName() string { + return "Bootstrap_DynamicResourcesValidationError" +} + +// Error satisfies the builtin error interface +func (e Bootstrap_DynamicResourcesValidationError) 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 %sBootstrap_DynamicResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Bootstrap_DynamicResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Bootstrap_DynamicResourcesValidationError{} + +// Validate checks the field values on ClusterManager_OutlierDetection with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClusterManager_OutlierDetection) Validate() error { + if m == nil { + return nil + } + + // no validation rules for EventLogPath + + if v, ok := interface{}(m.GetEventService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterManager_OutlierDetectionValidationError{ + field: "EventService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterManager_OutlierDetectionValidationError is the validation error +// returned by ClusterManager_OutlierDetection.Validate if the designated +// constraints aren't met. +type ClusterManager_OutlierDetectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterManager_OutlierDetectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterManager_OutlierDetectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterManager_OutlierDetectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterManager_OutlierDetectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterManager_OutlierDetectionValidationError) ErrorName() string { + return "ClusterManager_OutlierDetectionValidationError" +} + +// Error satisfies the builtin error interface +func (e ClusterManager_OutlierDetectionValidationError) 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 %sClusterManager_OutlierDetection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterManager_OutlierDetectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterManager_OutlierDetectionValidationError{} + +// Validate checks the field values on RuntimeLayer_DiskLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_DiskLayer) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SymlinkRoot + + // no validation rules for Subdirectory + + // no validation rules for AppendServiceCluster + + return nil +} + +// RuntimeLayer_DiskLayerValidationError is the validation error returned by +// RuntimeLayer_DiskLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_DiskLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_DiskLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_DiskLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_DiskLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_DiskLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_DiskLayerValidationError) ErrorName() string { + return "RuntimeLayer_DiskLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_DiskLayerValidationError) 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 %sRuntimeLayer_DiskLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_DiskLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_DiskLayerValidationError{} + +// Validate checks the field values on RuntimeLayer_AdminLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_AdminLayer) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RuntimeLayer_AdminLayerValidationError is the validation error returned by +// RuntimeLayer_AdminLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_AdminLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_AdminLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_AdminLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_AdminLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_AdminLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_AdminLayerValidationError) ErrorName() string { + return "RuntimeLayer_AdminLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_AdminLayerValidationError) 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 %sRuntimeLayer_AdminLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_AdminLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_AdminLayerValidationError{} + +// Validate checks the field values on RuntimeLayer_RtdsLayer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RuntimeLayer_RtdsLayer) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetRtdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeLayer_RtdsLayerValidationError{ + field: "RtdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RuntimeLayer_RtdsLayerValidationError is the validation error returned by +// RuntimeLayer_RtdsLayer.Validate if the designated constraints aren't met. +type RuntimeLayer_RtdsLayerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeLayer_RtdsLayerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeLayer_RtdsLayerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeLayer_RtdsLayerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeLayer_RtdsLayerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeLayer_RtdsLayerValidationError) ErrorName() string { + return "RuntimeLayer_RtdsLayerValidationError" +} + +// Error satisfies the builtin error interface +func (e RuntimeLayer_RtdsLayerValidationError) 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 %sRuntimeLayer_RtdsLayer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeLayer_RtdsLayerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeLayer_RtdsLayerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.go new file mode 100644 index 000000000..50fc96479 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.go @@ -0,0 +1,89 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/cluster/aggregate/v2alpha/cluster.proto + +package envoy_config_cluster_aggregate_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClusterConfig struct { + Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } +func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } +func (*ClusterConfig) ProtoMessage() {} +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_2c7f3700a1612359, []int{0} +} + +func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) +} +func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) +} +func (m *ClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterConfig.Merge(m, src) +} +func (m *ClusterConfig) XXX_Size() int { + return xxx_messageInfo_ClusterConfig.Size(m) +} +func (m *ClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo + +func (m *ClusterConfig) GetClusters() []string { + if m != nil { + return m.Clusters + } + return nil +} + +func init() { + proto.RegisterType((*ClusterConfig)(nil), "envoy.config.cluster.aggregate.v2alpha.ClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/config/cluster/aggregate/v2alpha/cluster.proto", fileDescriptor_2c7f3700a1612359) +} + +var fileDescriptor_2c7f3700a1612359 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xce, 0x29, 0x2d, 0x2e, 0x49, 0x2d, + 0xd2, 0x4f, 0x4c, 0x4f, 0x2f, 0x4a, 0x4d, 0x4f, 0x2c, 0x49, 0xd5, 0x2f, 0x33, 0x4a, 0xcc, 0x29, + 0xc8, 0x48, 0x84, 0xc9, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0xa9, 0x81, 0x75, 0xe9, 0x41, + 0x74, 0xe9, 0xc1, 0xe4, 0xe0, 0xba, 0xf4, 0xa0, 0xba, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, 0xf5, + 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, 0x8b, + 0x40, 0x2a, 0xc0, 0xe6, 0x48, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xa5, + 0xc5, 0xcb, 0x12, 0x73, 0x32, 0x53, 0xc0, 0xce, 0x80, 0x32, 0x20, 0x12, 0x4a, 0xa6, 0x5c, 0xbc, + 0xce, 0x10, 0x4b, 0x9d, 0xc1, 0x4e, 0x10, 0x52, 0xe1, 0xe2, 0x80, 0xba, 0xa2, 0x58, 0x82, 0x51, + 0x81, 0x59, 0x83, 0xd3, 0x89, 0xe3, 0x97, 0x13, 0xeb, 0x24, 0x46, 0x26, 0x0e, 0xc6, 0x20, 0xb8, + 0x8c, 0x53, 0xcd, 0xa7, 0x19, 0xff, 0xfa, 0x59, 0x35, 0x60, 0xce, 0x4f, 0xad, 0x28, 0x49, 0xcd, + 0x2b, 0x06, 0x59, 0x0b, 0xf3, 0x42, 0x31, 0xb2, 0x1f, 0x8c, 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, + 0x24, 0xc0, 0xc8, 0x65, 0x92, 0x99, 0xaf, 0x07, 0xd6, 0x52, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, + 0x9c, 0xe7, 0x9d, 0x78, 0xa0, 0x4e, 0x0c, 0x00, 0x39, 0x39, 0x80, 0x31, 0x89, 0x0d, 0xec, 0x76, + 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa6, 0x54, 0xcb, 0x8a, 0x73, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.validate.go new file mode 100644 index 000000000..855b30469 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha/cluster.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/cluster/aggregate/v2alpha/cluster.proto + +package envoy_config_cluster_aggregate_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClusterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return ClusterConfigValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + return nil +} + +// ClusterConfigValidationError is the validation error returned by +// ClusterConfig.Validate if the designated constraints aren't met. +type ClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterConfigValidationError) ErrorName() string { return "ClusterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterConfigValidationError) 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 %sClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.go new file mode 100644 index 000000000..22b06ef7d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.go @@ -0,0 +1,94 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.proto + +package envoy_config_cluster_dynamic_forward_proxy_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClusterConfig struct { + DnsCacheConfig *v2alpha.DnsCacheConfig `protobuf:"bytes,1,opt,name=dns_cache_config,json=dnsCacheConfig,proto3" json:"dns_cache_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } +func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } +func (*ClusterConfig) ProtoMessage() {} +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_faeb9d327e132c11, []int{0} +} + +func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) +} +func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) +} +func (m *ClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterConfig.Merge(m, src) +} +func (m *ClusterConfig) XXX_Size() int { + return xxx_messageInfo_ClusterConfig.Size(m) +} +func (m *ClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo + +func (m *ClusterConfig) GetDnsCacheConfig() *v2alpha.DnsCacheConfig { + if m != nil { + return m.DnsCacheConfig + } + return nil +} + +func init() { + proto.RegisterType((*ClusterConfig)(nil), "envoy.config.cluster.dynamic_forward_proxy.v2alpha.ClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.proto", fileDescriptor_faeb9d327e132c11) +} + +var fileDescriptor_faeb9d327e132c11 = []byte{ + // 295 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xce, 0x29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0xe5, 0xc4, 0xda, 0xc5, 0xc8, 0x24, 0xc0, 0x18, 0xc4, 0x97, 0x82, 0x2a, 0x33, 0x85, 0xf1, + 0xd3, 0x8c, 0x7f, 0xfd, 0xac, 0x26, 0xb0, 0x00, 0x4e, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0x06, 0xf9, + 0x04, 0x16, 0xc8, 0xc5, 0xb8, 0xac, 0x32, 0xde, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, 0x00, 0x23, + 0x97, 0x43, 0x66, 0x3e, 0xc4, 0x8d, 0x10, 0x19, 0xd2, 0xa3, 0xca, 0x89, 0x07, 0x1a, 0x18, 0x01, + 0xa0, 0xd0, 0x09, 0x60, 0x4c, 0x62, 0x03, 0x07, 0x93, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xee, + 0x16, 0xe1, 0x80, 0x39, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.validate.go new file mode 100644 index 000000000..71cdd073f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.pb.validate.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.proto + +package envoy_config_cluster_dynamic_forward_proxy_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClusterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetDnsCacheConfig() == nil { + return ClusterConfigValidationError{ + field: "DnsCacheConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetDnsCacheConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterConfigValidationError{ + field: "DnsCacheConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterConfigValidationError is the validation error returned by +// ClusterConfig.Validate if the designated constraints aren't met. +type ClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterConfigValidationError) ErrorName() string { return "ClusterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterConfigValidationError) 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 %sClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.go new file mode 100644 index 000000000..b679efda4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/cluster/redis/redis_cluster.proto + +package envoy_config_cluster_redis + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RedisClusterConfig struct { + ClusterRefreshRate *duration.Duration `protobuf:"bytes,1,opt,name=cluster_refresh_rate,json=clusterRefreshRate,proto3" json:"cluster_refresh_rate,omitempty"` + ClusterRefreshTimeout *duration.Duration `protobuf:"bytes,2,opt,name=cluster_refresh_timeout,json=clusterRefreshTimeout,proto3" json:"cluster_refresh_timeout,omitempty"` + RedirectRefreshInterval *duration.Duration `protobuf:"bytes,3,opt,name=redirect_refresh_interval,json=redirectRefreshInterval,proto3" json:"redirect_refresh_interval,omitempty"` + RedirectRefreshThreshold *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=redirect_refresh_threshold,json=redirectRefreshThreshold,proto3" json:"redirect_refresh_threshold,omitempty"` + FailureRefreshThreshold uint32 `protobuf:"varint,5,opt,name=failure_refresh_threshold,json=failureRefreshThreshold,proto3" json:"failure_refresh_threshold,omitempty"` + HostDegradedRefreshThreshold uint32 `protobuf:"varint,6,opt,name=host_degraded_refresh_threshold,json=hostDegradedRefreshThreshold,proto3" json:"host_degraded_refresh_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisClusterConfig) Reset() { *m = RedisClusterConfig{} } +func (m *RedisClusterConfig) String() string { return proto.CompactTextString(m) } +func (*RedisClusterConfig) ProtoMessage() {} +func (*RedisClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_6d6593a6ec218c02, []int{0} +} + +func (m *RedisClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisClusterConfig.Unmarshal(m, b) +} +func (m *RedisClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisClusterConfig.Marshal(b, m, deterministic) +} +func (m *RedisClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisClusterConfig.Merge(m, src) +} +func (m *RedisClusterConfig) XXX_Size() int { + return xxx_messageInfo_RedisClusterConfig.Size(m) +} +func (m *RedisClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RedisClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisClusterConfig proto.InternalMessageInfo + +func (m *RedisClusterConfig) GetClusterRefreshRate() *duration.Duration { + if m != nil { + return m.ClusterRefreshRate + } + return nil +} + +func (m *RedisClusterConfig) GetClusterRefreshTimeout() *duration.Duration { + if m != nil { + return m.ClusterRefreshTimeout + } + return nil +} + +func (m *RedisClusterConfig) GetRedirectRefreshInterval() *duration.Duration { + if m != nil { + return m.RedirectRefreshInterval + } + return nil +} + +func (m *RedisClusterConfig) GetRedirectRefreshThreshold() *wrappers.UInt32Value { + if m != nil { + return m.RedirectRefreshThreshold + } + return nil +} + +func (m *RedisClusterConfig) GetFailureRefreshThreshold() uint32 { + if m != nil { + return m.FailureRefreshThreshold + } + return 0 +} + +func (m *RedisClusterConfig) GetHostDegradedRefreshThreshold() uint32 { + if m != nil { + return m.HostDegradedRefreshThreshold + } + return 0 +} + +func init() { + proto.RegisterType((*RedisClusterConfig)(nil), "envoy.config.cluster.redis.RedisClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/config/cluster/redis/redis_cluster.proto", fileDescriptor_6d6593a6ec218c02) +} + +var fileDescriptor_6d6593a6ec218c02 = []byte{ + // 393 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8e, 0xd3, 0x30, + 0x14, 0x45, 0x49, 0x87, 0xa9, 0x90, 0x11, 0x12, 0x58, 0xa0, 0xa4, 0xd5, 0x00, 0x23, 0x56, 0x15, + 0x0b, 0x5b, 0x9a, 0xd9, 0xb1, 0xcc, 0x14, 0xa1, 0xee, 0xaa, 0xa8, 0x65, 0x01, 0x8b, 0xc8, 0xad, + 0x5f, 0x52, 0x4b, 0x21, 0x8e, 0x9c, 0xe7, 0x42, 0x77, 0x7c, 0x0f, 0x9f, 0xc0, 0x17, 0xb0, 0xe5, + 0x77, 0x58, 0x20, 0x14, 0xdb, 0x41, 0xd0, 0x14, 0x31, 0x9b, 0xc4, 0xf2, 0xbd, 0xf7, 0xe8, 0x3e, + 0xeb, 0x11, 0x06, 0xf5, 0x5e, 0x1f, 0xf8, 0x56, 0xd7, 0x85, 0x2a, 0xf9, 0xb6, 0xb2, 0x2d, 0x82, + 0xe1, 0x06, 0xa4, 0x6a, 0xfd, 0x37, 0x0f, 0x77, 0xac, 0x31, 0x1a, 0x35, 0x9d, 0x3a, 0x3f, 0xf3, + 0x7e, 0xd6, 0x6b, 0xce, 0x39, 0x7d, 0x56, 0x6a, 0x5d, 0x56, 0xc0, 0x9d, 0x73, 0x63, 0x0b, 0x2e, + 0xad, 0x11, 0xa8, 0x74, 0xed, 0xb3, 0x43, 0xfd, 0xa3, 0x11, 0x4d, 0x03, 0xa6, 0x0d, 0xfa, 0x53, + 0x2b, 0x1b, 0xc1, 0x45, 0x5d, 0x6b, 0x74, 0xb1, 0x96, 0xb7, 0x28,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74, 0xb6, 0x79, 0x70, 0x1d, 0x63, 0xd2, 0x37, 0x5f, 0x3f, 0x7f, 0xfb, 0x3e, 0x1e, 0x3d, + 0x8c, 0xc8, 0x4c, 0x69, 0xbf, 0xd1, 0x8d, 0xd1, 0x9f, 0x0e, 0xec, 0xdf, 0xcb, 0x9a, 0x3e, 0xfa, + 0x73, 0x63, 0x96, 0xdd, 0xc8, 0xcb, 0x68, 0x33, 0x76, 0xb3, 0x5f, 0xff, 0x0a, 0x00, 0x00, 0xff, + 0xff, 0x97, 0x72, 0xe4, 0x91, 0x16, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.validate.go new file mode 100644 index 000000000..fb76257a0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis/redis_cluster.pb.validate.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/cluster/redis/redis_cluster.proto + +package envoy_config_cluster_redis + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _redis_cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RedisClusterConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisClusterConfig) Validate() error { + if m == nil { + return nil + } + + if d := m.GetClusterRefreshRate(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshRate", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshRate", + reason: "value must be greater than 0s", + } + } + + } + + if d := m.GetClusterRefreshTimeout(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshTimeout", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshTimeout", + reason: "value must be greater than 0s", + } + } + + } + + if v, ok := interface{}(m.GetRedirectRefreshInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisClusterConfigValidationError{ + field: "RedirectRefreshInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRedirectRefreshThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisClusterConfigValidationError{ + field: "RedirectRefreshThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureRefreshThreshold + + // no validation rules for HostDegradedRefreshThreshold + + return nil +} + +// RedisClusterConfigValidationError is the validation error returned by +// RedisClusterConfig.Validate if the designated constraints aren't met. +type RedisClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisClusterConfigValidationError) ErrorName() string { + return "RedisClusterConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisClusterConfigValidationError) 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 %sRedisClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.go new file mode 100644 index 000000000..d99099832 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.proto + +package envoy_config_common_dynamic_forward_proxy_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/api/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsCacheConfig struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DnsLookupFamily v2.Cluster_DnsLookupFamily `protobuf:"varint,2,opt,name=dns_lookup_family,json=dnsLookupFamily,proto3,enum=envoy.api.v2.Cluster_DnsLookupFamily" json:"dns_lookup_family,omitempty"` + DnsRefreshRate *duration.Duration `protobuf:"bytes,3,opt,name=dns_refresh_rate,json=dnsRefreshRate,proto3" json:"dns_refresh_rate,omitempty"` + HostTtl *duration.Duration `protobuf:"bytes,4,opt,name=host_ttl,json=hostTtl,proto3" json:"host_ttl,omitempty"` + MaxHosts *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=max_hosts,json=maxHosts,proto3" json:"max_hosts,omitempty"` + DnsFailureRefreshRate *v2.Cluster_RefreshRate `protobuf:"bytes,6,opt,name=dns_failure_refresh_rate,json=dnsFailureRefreshRate,proto3" json:"dns_failure_refresh_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsCacheConfig) Reset() { *m = DnsCacheConfig{} } +func (m *DnsCacheConfig) String() string { return proto.CompactTextString(m) } +func (*DnsCacheConfig) ProtoMessage() {} +func (*DnsCacheConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d2d9297e0c94cb56, []int{0} +} + +func (m *DnsCacheConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsCacheConfig.Unmarshal(m, b) +} +func (m *DnsCacheConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsCacheConfig.Marshal(b, m, deterministic) +} +func (m *DnsCacheConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsCacheConfig.Merge(m, src) +} +func (m *DnsCacheConfig) XXX_Size() int { + return xxx_messageInfo_DnsCacheConfig.Size(m) +} +func (m *DnsCacheConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsCacheConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsCacheConfig proto.InternalMessageInfo + +func (m *DnsCacheConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DnsCacheConfig) GetDnsLookupFamily() v2.Cluster_DnsLookupFamily { + if m != nil { + return m.DnsLookupFamily + } + return v2.Cluster_AUTO +} + +func (m *DnsCacheConfig) GetDnsRefreshRate() *duration.Duration { + if m != nil { + return m.DnsRefreshRate + } + return nil +} + +func (m *DnsCacheConfig) GetHostTtl() *duration.Duration { + if m != nil { + return m.HostTtl + } + return nil +} + +func (m *DnsCacheConfig) GetMaxHosts() *wrappers.UInt32Value { + if m != nil { + return m.MaxHosts + } + return nil +} + +func (m *DnsCacheConfig) GetDnsFailureRefreshRate() *v2.Cluster_RefreshRate { + if m != nil { + return m.DnsFailureRefreshRate + } + return nil +} + +func init() { + proto.RegisterType((*DnsCacheConfig)(nil), "envoy.config.common.dynamic_forward_proxy.v2alpha.DnsCacheConfig") +} + +func init() { + proto.RegisterFile("envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.proto", fileDescriptor_d2d9297e0c94cb56) +} + +var fileDescriptor_d2d9297e0c94cb56 = []byte{ + // 515 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x8b, 0x13, 0x31, + 0x18, 0xc6, 0x37, 0xb3, 0x6d, 0xb7, 0x1d, 0xb5, 0xd6, 0x01, 0x71, 0xac, 0x7f, 0xa8, 0x82, 0x50, + 0xf6, 0x90, 0xe8, 0xf4, 0xac, 0xe2, 0xb4, 0x2c, 0x0a, 0x1e, 0xd6, 0x41, 0x3d, 0xe8, 0x61, 0x78, + 0x77, 0x26, 0xd3, 0x0e, 0xce, 0x24, 0x43, 0x92, 0xe9, 0xb6, 0x37, 0x11, 0xef, 0x82, 0x27, 0x3f, + 0xc3, 0x7e, 0x04, 0x41, 0xf0, 0xe8, 0xd5, 0xaf, 0xe2, 0xb1, 0x07, 0x91, 0x24, 0x2d, 0xec, 0xb2, + 0x2b, 0xcb, 0xde, 0x92, 0x3c, 0x79, 0x7e, 0xc9, 0xf3, 0xf0, 0xba, 0xcf, 0x28, 0x9b, 0xf3, 0x25, + 0x49, 0x38, 0xcb, 0xf2, 0x29, 0x49, 0x78, 0x59, 0x72, 0x46, 0xd2, 0x25, 0x83, 0x32, 0x4f, 0xe2, + 0x8c, 0x8b, 0x43, 0x10, 0x69, 0x5c, 0x09, 0xbe, 0x58, 0x92, 0x79, 0x00, 0x45, 0x35, 0x03, 0x92, + 0x32, 0x19, 0x27, 0x90, 0xcc, 0x28, 0xae, 0x04, 0x57, 0xdc, 0x7b, 0x64, 0x10, 0xd8, 0x22, 0xb0, + 0x45, 0xe0, 0x33, 0x11, 0x78, 0x8d, 0xe8, 0xf7, 0xed, 0xab, 0x50, 0xe5, 0x64, 0x1e, 0x90, 0xa4, + 0xa8, 0xa5, 0xa2, 0xc2, 0xe2, 0xfa, 0x77, 0xa7, 0x9c, 0x4f, 0x0b, 0x4a, 0xcc, 0xee, 0xa0, 0xce, + 0x48, 0x5a, 0x0b, 0x50, 0x39, 0x67, 0xff, 0xd3, 0x0f, 0x05, 0x54, 0x15, 0x15, 0x72, 0xa3, 0xd7, + 0x69, 0x05, 0x04, 0x18, 0xe3, 0xca, 0xd8, 0x24, 0x29, 0xf3, 0xa9, 0x00, 0xb5, 0xfe, 0x6e, 0xff, + 0xce, 0x29, 0x5d, 0x2a, 0x50, 0xf5, 0xc6, 0x7e, 0x63, 0x0e, 0x45, 0x9e, 0x82, 0xa2, 0x64, 0xb3, + 0xb0, 0xc2, 0xfd, 0x1f, 0xdb, 0x6e, 0x77, 0xc2, 0xe4, 0x58, 0x27, 0x1f, 0x9b, 0xac, 0xde, 0x2d, + 0xb7, 0xc1, 0xa0, 0xa4, 0x3e, 0x1a, 0xa0, 0x61, 0x27, 0xdc, 0x59, 0x85, 0x0d, 0xe1, 0x0c, 0x50, + 0x64, 0x0e, 0xbd, 0xf7, 0xee, 0x35, 0xdd, 0x54, 0xc1, 0xf9, 0x87, 0xba, 0x8a, 0x33, 0x28, 0xf3, + 0x62, 0xe9, 0x3b, 0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 0xcd, 0xc0, 0x7b, 0x68, 0x09, 0x74, 0xa1, 0x28, + 0x93, 0x7a, 0x00, 0xce, 0x99, 0xd9, 0xd1, 0xf7, 0x8f, 0xbf, 0x7e, 0xb7, 0x9c, 0x1e, 0x72, 0x9f, + 0xe6, 0xdc, 0x3e, 0x6f, 0x95, 0x0b, 0xcf, 0x7d, 0x78, 0x65, 0x33, 0x40, 0xfb, 0xba, 0x90, 0x7d, + 0x74, 0xd0, 0x32, 0xcd, 0x8c, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0xed, 0x8c, 0x7e, 0xe3, 0x87, + 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.validate.go new file mode 100644 index 000000000..1602959c7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.pb.validate.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.proto + +package envoy_config_common_dynamic_forward_proxy_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + v2 "github.com/envoyproxy/go-control-plane/envoy/api/v2" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = v2.Cluster_DnsLookupFamily(0) +) + +// define the regex for a UUID once up-front +var _dns_cache_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsCacheConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DnsCacheConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return DnsCacheConfigValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := v2.Cluster_DnsLookupFamily_name[int32(m.GetDnsLookupFamily())]; !ok { + return DnsCacheConfigValidationError{ + field: "DnsLookupFamily", + reason: "value must be one of the defined enum values", + } + } + + if d := m.GetDnsRefreshRate(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsCacheConfigValidationError{ + field: "DnsRefreshRate", + reason: "value is not a valid duration", + cause: err, + } + } + + gte := time.Duration(0*time.Second + 1000000*time.Nanosecond) + + if dur < gte { + return DnsCacheConfigValidationError{ + field: "DnsRefreshRate", + reason: "value must be greater than or equal to 1ms", + } + } + + } + + if d := m.GetHostTtl(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsCacheConfigValidationError{ + field: "HostTtl", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return DnsCacheConfigValidationError{ + field: "HostTtl", + reason: "value must be greater than 0s", + } + } + + } + + if wrapper := m.GetMaxHosts(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return DnsCacheConfigValidationError{ + field: "MaxHosts", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetDnsFailureRefreshRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsCacheConfigValidationError{ + field: "DnsFailureRefreshRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DnsCacheConfigValidationError is the validation error returned by +// DnsCacheConfig.Validate if the designated constraints aren't met. +type DnsCacheConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsCacheConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsCacheConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsCacheConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsCacheConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsCacheConfigValidationError) ErrorName() string { return "DnsCacheConfigValidationError" } + +// Error satisfies the builtin error interface +func (e DnsCacheConfigValidationError) 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 %sDnsCacheConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsCacheConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsCacheConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.go new file mode 100644 index 000000000..690d78cf6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.go @@ -0,0 +1,248 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/common/tap/v2alpha/common.proto + +package envoy_config_common_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CommonExtensionConfig struct { + // Types that are valid to be assigned to ConfigType: + // *CommonExtensionConfig_AdminConfig + // *CommonExtensionConfig_StaticConfig + // *CommonExtensionConfig_TapdsConfig + ConfigType isCommonExtensionConfig_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonExtensionConfig) Reset() { *m = CommonExtensionConfig{} } +func (m *CommonExtensionConfig) String() string { return proto.CompactTextString(m) } +func (*CommonExtensionConfig) ProtoMessage() {} +func (*CommonExtensionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_79cf139d98a2fe3f, []int{0} +} + +func (m *CommonExtensionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonExtensionConfig.Unmarshal(m, b) +} +func (m *CommonExtensionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonExtensionConfig.Marshal(b, m, deterministic) +} +func (m *CommonExtensionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonExtensionConfig.Merge(m, src) +} +func (m *CommonExtensionConfig) XXX_Size() int { + return xxx_messageInfo_CommonExtensionConfig.Size(m) +} +func (m *CommonExtensionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonExtensionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonExtensionConfig proto.InternalMessageInfo + +type isCommonExtensionConfig_ConfigType interface { + isCommonExtensionConfig_ConfigType() +} + +type CommonExtensionConfig_AdminConfig struct { + AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"` +} + +type CommonExtensionConfig_StaticConfig struct { + StaticConfig *v2alpha.TapConfig `protobuf:"bytes,2,opt,name=static_config,json=staticConfig,proto3,oneof"` +} + +type CommonExtensionConfig_TapdsConfig struct { + TapdsConfig *CommonExtensionConfig_TapDSConfig `protobuf:"bytes,3,opt,name=tapds_config,json=tapdsConfig,proto3,oneof"` +} + +func (*CommonExtensionConfig_AdminConfig) isCommonExtensionConfig_ConfigType() {} + +func (*CommonExtensionConfig_StaticConfig) isCommonExtensionConfig_ConfigType() {} + +func (*CommonExtensionConfig_TapdsConfig) isCommonExtensionConfig_ConfigType() {} + +func (m *CommonExtensionConfig) GetConfigType() isCommonExtensionConfig_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +func (m *CommonExtensionConfig) GetAdminConfig() *AdminConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_AdminConfig); ok { + return x.AdminConfig + } + return nil +} + +func (m *CommonExtensionConfig) GetStaticConfig() *v2alpha.TapConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_StaticConfig); ok { + return x.StaticConfig + } + return nil +} + +func (m *CommonExtensionConfig) GetTapdsConfig() *CommonExtensionConfig_TapDSConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_TapdsConfig); ok { + return x.TapdsConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CommonExtensionConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CommonExtensionConfig_AdminConfig)(nil), + (*CommonExtensionConfig_StaticConfig)(nil), + (*CommonExtensionConfig_TapdsConfig)(nil), + } +} + +type CommonExtensionConfig_TapDSConfig struct { + ConfigSource *core.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonExtensionConfig_TapDSConfig) Reset() { *m = CommonExtensionConfig_TapDSConfig{} } +func (m *CommonExtensionConfig_TapDSConfig) String() string { return proto.CompactTextString(m) } +func (*CommonExtensionConfig_TapDSConfig) ProtoMessage() {} +func (*CommonExtensionConfig_TapDSConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_79cf139d98a2fe3f, []int{0, 0} +} + +func (m *CommonExtensionConfig_TapDSConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Unmarshal(m, b) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Marshal(b, m, deterministic) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Merge(m, src) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Size() int { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Size(m) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonExtensionConfig_TapDSConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonExtensionConfig_TapDSConfig proto.InternalMessageInfo + +func (m *CommonExtensionConfig_TapDSConfig) GetConfigSource() *core.ConfigSource { + if m != nil { + return m.ConfigSource + } + return nil +} + +func (m *CommonExtensionConfig_TapDSConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type AdminConfig struct { + ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdminConfig) Reset() { *m = AdminConfig{} } +func (m *AdminConfig) String() string { return proto.CompactTextString(m) } +func (*AdminConfig) ProtoMessage() {} +func (*AdminConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_79cf139d98a2fe3f, []int{1} +} + +func (m *AdminConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdminConfig.Unmarshal(m, b) +} +func (m *AdminConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdminConfig.Marshal(b, m, deterministic) +} +func (m *AdminConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminConfig.Merge(m, src) +} +func (m *AdminConfig) XXX_Size() int { + return xxx_messageInfo_AdminConfig.Size(m) +} +func (m *AdminConfig) XXX_DiscardUnknown() { + xxx_messageInfo_AdminConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_AdminConfig proto.InternalMessageInfo + +func (m *AdminConfig) GetConfigId() string { + if m != nil { + return m.ConfigId + } + return "" +} + +func init() { + proto.RegisterType((*CommonExtensionConfig)(nil), "envoy.config.common.tap.v2alpha.CommonExtensionConfig") + proto.RegisterType((*CommonExtensionConfig_TapDSConfig)(nil), "envoy.config.common.tap.v2alpha.CommonExtensionConfig.TapDSConfig") + proto.RegisterType((*AdminConfig)(nil), "envoy.config.common.tap.v2alpha.AdminConfig") +} + +func init() { + proto.RegisterFile("envoy/config/common/tap/v2alpha/common.proto", fileDescriptor_79cf139d98a2fe3f) +} + +var fileDescriptor_79cf139d98a2fe3f = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x6b, 0x14, 0x31, + 0x14, 0xc7, 0xcd, 0x6c, 0x5b, 0xdb, 0xcc, 0x14, 0x4a, 0x40, 0x94, 0x11, 0xdb, 0xa5, 0x54, 0xf1, + 0x50, 0x13, 0x98, 0xfd, 0x04, 0xa6, 0x0a, 0x8a, 0x20, 0x75, 0xeb, 0xbd, 0x3c, 0x67, 0xe2, 0x1a, + 0xd8, 0x49, 0xc2, 0x24, 0x3b, 0x74, 0x3d, 0x79, 0xf6, 0xe2, 0xd5, 0x8f, 0xe1, 0xd9, 0x4f, 0xe0, + 0xd5, 0xaf, 0xe2, 0x49, 0x7a, 0x10, 0x99, 0x24, 0xe3, 0xce, 0xa2, 0xb2, 0xb7, 0x99, 0xbc, 0xff, + 0xfb, 0xbd, 0xff, 0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xcc, 0x81, 0xa9, 0x6c, 0xcf, 0x1a, 0x79, + 0x16, 0xdf, 0xe8, 0xef, 0x9f, 0xdb, 0x76, 0x73, 0x9e, 0x5c, 0xac, 0x5c, 0x7b, 0x72, 0xf8, 0xcd, + 0xdf, 0xe3, 0x74, 0x50, 0x25, 0x2f, 0xf1, 0xfe, 0xda, 0x45, 0xc6, 0x60, 0x8e, 0xe2, 0x60, 0x30, + 0x92, 0xb6, 0x05, 0xed, 0x2e, 0x9c, 0x86, 0x8e, 0x0b, 0x2f, 0xe3, 0xbb, 0xd7, 0x7c, 0xfb, 0x23, + 0x4a, 0x0e, 0xd0, 0x34, 0x2b, 0x07, 0xe7, 0xe4, 0x2e, 0xde, 0x52, 0x50, 0x0b, 0x9f, 0xc5, 0x1e, + 0xbf, 0x79, 0xcd, 0xb7, 0x9a, 0x64, 0x8c, 0xa6, 0xfe, 0x90, 0x13, 0x9c, 0xc6, 0x61, 0x6e, 0x69, + 0x04, 0x19, 0xfd, 0xe4, 0xe8, 0x78, 0x82, 0xd3, 0x41, 0xc6, 0xe4, 0x04, 0xef, 0x45, 0x89, 0xac, + 0xbc, 0x97, 0x01, 0x64, 0x37, 0x54, 0x9e, 0x57, 0x7c, 0xfe, 0xe3, 0xf3, 0xaf, 0x4f, 0xdb, 0x63, + 0x72, 0x18, 0x5c, 0x8a, 0x7e, 0x7d, 0xbb, 0x16, 0xd1, 0xe4, 0xeb, 0x87, 0x6f, 0xdf, 0x77, 0x92, + 0x03, 0x84, 0x1f, 0x49, 0x1d, 0x16, 0x32, 0x8d, 0xbe, 0x5a, 0x6e, 0x0a, 0x95, 0xa7, 0x21, 0xd5, + 0xf3, 0xee, 0x4d, 0x9d, 0xa3, 0x37, 0x3b, 0xfe, 0x71, 0x4d, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, + 0x6a, 0x4b, 0x5b, 0x15, 0x54, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.validate.go new file mode 100644 index 000000000..f7dfdcc3e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha/common.pb.validate.go @@ -0,0 +1,314 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/common/tap/v2alpha/common.proto + +package envoy_config_common_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CommonExtensionConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommonExtensionConfig) Validate() error { + if m == nil { + return nil + } + + switch m.ConfigType.(type) { + + case *CommonExtensionConfig_AdminConfig: + + if v, ok := interface{}(m.GetAdminConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "AdminConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CommonExtensionConfig_StaticConfig: + + if v, ok := interface{}(m.GetStaticConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "StaticConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CommonExtensionConfig_TapdsConfig: + + if v, ok := interface{}(m.GetTapdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "TapdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return CommonExtensionConfigValidationError{ + field: "ConfigType", + reason: "value is required", + } + + } + + return nil +} + +// CommonExtensionConfigValidationError is the validation error returned by +// CommonExtensionConfig.Validate if the designated constraints aren't met. +type CommonExtensionConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonExtensionConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonExtensionConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonExtensionConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonExtensionConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonExtensionConfigValidationError) ErrorName() string { + return "CommonExtensionConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonExtensionConfigValidationError) 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 %sCommonExtensionConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonExtensionConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonExtensionConfigValidationError{} + +// Validate checks the field values on AdminConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AdminConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetConfigId()) < 1 { + return AdminConfigValidationError{ + field: "ConfigId", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// AdminConfigValidationError is the validation error returned by +// AdminConfig.Validate if the designated constraints aren't met. +type AdminConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdminConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdminConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdminConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdminConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdminConfigValidationError) ErrorName() string { return "AdminConfigValidationError" } + +// Error satisfies the builtin error interface +func (e AdminConfigValidationError) 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 %sAdminConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdminConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdminConfigValidationError{} + +// Validate checks the field values on CommonExtensionConfig_TapDSConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *CommonExtensionConfig_TapDSConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetConfigSource() == nil { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "ConfigSource", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetConfigSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "ConfigSource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetName()) < 1 { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// CommonExtensionConfig_TapDSConfigValidationError is the validation error +// returned by CommonExtensionConfig_TapDSConfig.Validate if the designated +// constraints aren't met. +type CommonExtensionConfig_TapDSConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonExtensionConfig_TapDSConfigValidationError) ErrorName() string { + return "CommonExtensionConfig_TapDSConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonExtensionConfig_TapDSConfigValidationError) 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 %sCommonExtensionConfig_TapDSConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonExtensionConfig_TapDSConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonExtensionConfig_TapDSConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.go new file mode 100644 index 000000000..4b3f8ba4f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/dubbo/router/v2alpha1/router.proto + +package envoy_config_filter_dubbo_router_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Router struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Router) Reset() { *m = Router{} } +func (m *Router) String() string { return proto.CompactTextString(m) } +func (*Router) ProtoMessage() {} +func (*Router) Descriptor() ([]byte, []int) { + return fileDescriptor_780c3e41bb913085, []int{0} +} + +func (m *Router) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Router.Unmarshal(m, b) +} +func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Router.Marshal(b, m, deterministic) +} +func (m *Router) XXX_Merge(src proto.Message) { + xxx_messageInfo_Router.Merge(m, src) +} +func (m *Router) XXX_Size() int { + return xxx_messageInfo_Router.Size(m) +} +func (m *Router) XXX_DiscardUnknown() { + xxx_messageInfo_Router.DiscardUnknown(m) +} + +var xxx_messageInfo_Router proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Router)(nil), "envoy.config.filter.dubbo.router.v2alpha1.Router") +} + +func init() { + proto.RegisterFile("envoy/config/filter/dubbo/router/v2alpha1/router.proto", fileDescriptor_780c3e41bb913085) +} + +var fileDescriptor_780c3e41bb913085 = []byte{ + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4b, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0x4f, 0x29, 0x4d, 0x4a, 0xca, 0xd7, 0x2f, 0xca, 0x2f, 0x05, 0x71, 0xca, 0x8c, 0x12, 0x73, 0x0a, + 0x32, 0x12, 0x0d, 0xa1, 0x7c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x4d, 0xb0, 0x3e, 0x3d, + 0x88, 0x3e, 0x3d, 0x88, 0x3e, 0x3d, 0xb0, 0x3e, 0x3d, 0xa8, 0x3a, 0x98, 0x3e, 0x29, 0xb9, 0xd2, + 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xfd, + 0xdc, 0xcc, 0xf4, 0xa2, 0xc4, 0x92, 0x54, 0x88, 0x51, 0x52, 0xb2, 0x18, 0xf2, 0xc5, 0x25, 0x89, + 0x25, 0xa5, 0xc5, 0x10, 0x69, 0x25, 0x0e, 0x2e, 0xb6, 0x20, 0xb0, 0x89, 0x4e, 0x7d, 0x8c, 0x9f, + 0x66, 0xfc, 0xeb, 0x67, 0xb5, 0x10, 0x82, 0x38, 0x5a, 0x2f, 0xb5, 0xa2, 0x24, 0x35, 0xaf, 0x18, + 0xa4, 0x03, 0xea, 0x80, 0x62, 0xbd, 0xbc, 0xd4, 0x92, 0xf2, 0xfc, 0xa2, 0x6c, 0x88, 0x4b, 0xe2, + 0x0b, 0x8a, 0xf2, 0x2b, 0x2a, 0xe1, 0xee, 0x31, 0xde, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, 0x00, + 0x23, 0x97, 0x79, 0x66, 0xbe, 0x1e, 0xd8, 0x08, 0x88, 0x02, 0xa2, 0xbd, 0xe2, 0xc4, 0x0d, 0x71, + 0x49, 0x00, 0xc8, 0x61, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x17, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x75, 0xf5, 0x9d, 0x77, 0x45, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.validate.go new file mode 100644 index 000000000..3cafee87d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1/router.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/dubbo/router/v2alpha1/router.proto + +package envoy_config_filter_dubbo_router_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _router_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Router with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Router) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// 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/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.go new file mode 100644 index 000000000..c4f213cad --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.go @@ -0,0 +1,387 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/fault/v2/fault.proto + +package envoy_config_filter_fault_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FaultDelay_FaultDelayType int32 + +const ( + FaultDelay_FIXED FaultDelay_FaultDelayType = 0 +) + +var FaultDelay_FaultDelayType_name = map[int32]string{ + 0: "FIXED", +} + +var FaultDelay_FaultDelayType_value = map[string]int32{ + "FIXED": 0, +} + +func (x FaultDelay_FaultDelayType) String() string { + return proto.EnumName(FaultDelay_FaultDelayType_name, int32(x)) +} + +func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{0, 0} +} + +type FaultDelay struct { + Type FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.config.filter.fault.v2.FaultDelay_FaultDelayType" json:"type,omitempty"` // Deprecated: Do not use. + // Types that are valid to be assigned to FaultDelaySecifier: + // *FaultDelay_FixedDelay + // *FaultDelay_HeaderDelay_ + FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"` + Percentage *_type.FractionalPercent `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultDelay) Reset() { *m = FaultDelay{} } +func (m *FaultDelay) String() string { return proto.CompactTextString(m) } +func (*FaultDelay) ProtoMessage() {} +func (*FaultDelay) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{0} +} + +func (m *FaultDelay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultDelay.Unmarshal(m, b) +} +func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultDelay.Marshal(b, m, deterministic) +} +func (m *FaultDelay) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultDelay.Merge(m, src) +} +func (m *FaultDelay) XXX_Size() int { + return xxx_messageInfo_FaultDelay.Size(m) +} +func (m *FaultDelay) XXX_DiscardUnknown() { + xxx_messageInfo_FaultDelay.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultDelay proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *FaultDelay) GetType() FaultDelay_FaultDelayType { + if m != nil { + return m.Type + } + return FaultDelay_FIXED +} + +type isFaultDelay_FaultDelaySecifier interface { + isFaultDelay_FaultDelaySecifier() +} + +type FaultDelay_FixedDelay struct { + FixedDelay *duration.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"` +} + +type FaultDelay_HeaderDelay_ struct { + HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"` +} + +func (*FaultDelay_FixedDelay) isFaultDelay_FaultDelaySecifier() {} + +func (*FaultDelay_HeaderDelay_) isFaultDelay_FaultDelaySecifier() {} + +func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier { + if m != nil { + return m.FaultDelaySecifier + } + return nil +} + +func (m *FaultDelay) GetFixedDelay() *duration.Duration { + if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_FixedDelay); ok { + return x.FixedDelay + } + return nil +} + +func (m *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay { + if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_HeaderDelay_); ok { + return x.HeaderDelay + } + return nil +} + +func (m *FaultDelay) GetPercentage() *_type.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultDelay) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultDelay_FixedDelay)(nil), + (*FaultDelay_HeaderDelay_)(nil), + } +} + +type FaultDelay_HeaderDelay struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultDelay_HeaderDelay) Reset() { *m = FaultDelay_HeaderDelay{} } +func (m *FaultDelay_HeaderDelay) String() string { return proto.CompactTextString(m) } +func (*FaultDelay_HeaderDelay) ProtoMessage() {} +func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{0, 0} +} + +func (m *FaultDelay_HeaderDelay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultDelay_HeaderDelay.Unmarshal(m, b) +} +func (m *FaultDelay_HeaderDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultDelay_HeaderDelay.Marshal(b, m, deterministic) +} +func (m *FaultDelay_HeaderDelay) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultDelay_HeaderDelay.Merge(m, src) +} +func (m *FaultDelay_HeaderDelay) XXX_Size() int { + return xxx_messageInfo_FaultDelay_HeaderDelay.Size(m) +} +func (m *FaultDelay_HeaderDelay) XXX_DiscardUnknown() { + xxx_messageInfo_FaultDelay_HeaderDelay.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultDelay_HeaderDelay proto.InternalMessageInfo + +type FaultRateLimit struct { + // Types that are valid to be assigned to LimitType: + // *FaultRateLimit_FixedLimit_ + // *FaultRateLimit_HeaderLimit_ + LimitType isFaultRateLimit_LimitType `protobuf_oneof:"limit_type"` + Percentage *_type.FractionalPercent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit) Reset() { *m = FaultRateLimit{} } +func (m *FaultRateLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit) ProtoMessage() {} +func (*FaultRateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{1} +} + +func (m *FaultRateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit.Merge(m, src) +} +func (m *FaultRateLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit.Size(m) +} +func (m *FaultRateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit proto.InternalMessageInfo + +type isFaultRateLimit_LimitType interface { + isFaultRateLimit_LimitType() +} + +type FaultRateLimit_FixedLimit_ struct { + FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"` +} + +type FaultRateLimit_HeaderLimit_ struct { + HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"` +} + +func (*FaultRateLimit_FixedLimit_) isFaultRateLimit_LimitType() {} + +func (*FaultRateLimit_HeaderLimit_) isFaultRateLimit_LimitType() {} + +func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType { + if m != nil { + return m.LimitType + } + return nil +} + +func (m *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit { + if x, ok := m.GetLimitType().(*FaultRateLimit_FixedLimit_); ok { + return x.FixedLimit + } + return nil +} + +func (m *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit { + if x, ok := m.GetLimitType().(*FaultRateLimit_HeaderLimit_); ok { + return x.HeaderLimit + } + return nil +} + +func (m *FaultRateLimit) GetPercentage() *_type.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultRateLimit) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultRateLimit_FixedLimit_)(nil), + (*FaultRateLimit_HeaderLimit_)(nil), + } +} + +type FaultRateLimit_FixedLimit struct { + LimitKbps uint64 `protobuf:"varint,1,opt,name=limit_kbps,json=limitKbps,proto3" json:"limit_kbps,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit_FixedLimit) Reset() { *m = FaultRateLimit_FixedLimit{} } +func (m *FaultRateLimit_FixedLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit_FixedLimit) ProtoMessage() {} +func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{1, 0} +} + +func (m *FaultRateLimit_FixedLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit_FixedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit_FixedLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit_FixedLimit.Merge(m, src) +} +func (m *FaultRateLimit_FixedLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Size(m) +} +func (m *FaultRateLimit_FixedLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit_FixedLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit_FixedLimit proto.InternalMessageInfo + +func (m *FaultRateLimit_FixedLimit) GetLimitKbps() uint64 { + if m != nil { + return m.LimitKbps + } + return 0 +} + +type FaultRateLimit_HeaderLimit struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit_HeaderLimit) Reset() { *m = FaultRateLimit_HeaderLimit{} } +func (m *FaultRateLimit_HeaderLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit_HeaderLimit) ProtoMessage() {} +func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b308afbc13f85b, []int{1, 1} +} + +func (m *FaultRateLimit_HeaderLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit_HeaderLimit.Merge(m, src) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Size(m) +} +func (m *FaultRateLimit_HeaderLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit_HeaderLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit_HeaderLimit proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.config.filter.fault.v2.FaultDelay_FaultDelayType", FaultDelay_FaultDelayType_name, FaultDelay_FaultDelayType_value) + proto.RegisterType((*FaultDelay)(nil), "envoy.config.filter.fault.v2.FaultDelay") + proto.RegisterType((*FaultDelay_HeaderDelay)(nil), "envoy.config.filter.fault.v2.FaultDelay.HeaderDelay") + proto.RegisterType((*FaultRateLimit)(nil), "envoy.config.filter.fault.v2.FaultRateLimit") + proto.RegisterType((*FaultRateLimit_FixedLimit)(nil), "envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit") + proto.RegisterType((*FaultRateLimit_HeaderLimit)(nil), "envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit") +} + +func init() { + proto.RegisterFile("envoy/config/filter/fault/v2/fault.proto", fileDescriptor_d1b308afbc13f85b) +} + +var fileDescriptor_d1b308afbc13f85b = []byte{ + // 562 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x8a, 0x13, 0x41, + 0x14, 0x4d, 0x77, 0x92, 0x31, 0x53, 0xd1, 0x21, 0x36, 0x82, 0x31, 0xe3, 0x0c, 0x43, 0x04, 0x09, + 0x59, 0x54, 0x43, 0x66, 0x40, 0x37, 0x6e, 0x9a, 0x18, 0xe2, 0x63, 0x11, 0x1a, 0x05, 0x15, 0x24, + 0x54, 0xba, 0x6f, 0x67, 0x0a, 0x3b, 0x5d, 0x4d, 0x75, 0x25, 0xa4, 0x77, 0xfe, 0x81, 0x1b, 0x17, + 0x7e, 0x83, 0x5f, 0x20, 0x7e, 0x81, 0x5b, 0xfd, 0x04, 0x3f, 0xc0, 0xc5, 0xac, 0x64, 0x16, 0x22, + 0xf5, 0xe8, 0x3c, 0x18, 0x18, 0x66, 0x76, 0xb7, 0xfa, 0x9e, 0x73, 0xb8, 0xe7, 0xdc, 0xaa, 0x46, + 0x1d, 0x48, 0x16, 0x2c, 0x77, 0x03, 0x96, 0x44, 0x74, 0xea, 0x46, 0x34, 0x16, 0xc0, 0xdd, 0x88, + 0xcc, 0x63, 0xe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79, 0xb7, 0x0b, 0x9a, 0xba, 0x90, 0x32, 0x6a, 0x8f, 0x9f, 0x7d, 0xf9, 0xf7, 0xa9, 0xda, + 0x75, 0xf4, 0x2f, 0x00, 0xc3, 0x52, 0x40, 0x92, 0xc9, 0xb7, 0x63, 0xac, 0x66, 0x38, 0x60, 0xb3, + 0x19, 0x4b, 0x0a, 0xcb, 0xc7, 0xdf, 0x3f, 0xfe, 0xf8, 0xb9, 0x63, 0x37, 0x2c, 0xd4, 0xa5, 0x4c, + 0x8f, 0x9f, 0x72, 0xb6, 0xcc, 0x2f, 0x8d, 0xc9, 0xd3, 0xcf, 0x6b, 0x24, 0xef, 0xf8, 0xc8, 0x9a, + 0xec, 0xa8, 0xcb, 0x7e, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x07, 0x63, 0xad, 0xac, 0x77, 0x04, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.validate.go new file mode 100644 index 000000000..8db854cbf --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2/fault.pb.validate.go @@ -0,0 +1,475 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/fault/v2/fault.proto + +package envoy_config_filter_fault_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _fault_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FaultDelay with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FaultDelay) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultDelayValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.FaultDelaySecifier.(type) { + + case *FaultDelay_FixedDelay: + + if d := m.GetFixedDelay(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return FaultDelayValidationError{ + field: "FixedDelay", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return FaultDelayValidationError{ + field: "FixedDelay", + reason: "value must be greater than 0s", + } + } + + } + + case *FaultDelay_HeaderDelay_: + + if v, ok := interface{}(m.GetHeaderDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultDelayValidationError{ + field: "HeaderDelay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultDelayValidationError{ + field: "FaultDelaySecifier", + reason: "value is required", + } + + } + + return nil +} + +// FaultDelayValidationError is the validation error returned by +// FaultDelay.Validate if the designated constraints aren't met. +type FaultDelayValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultDelayValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultDelayValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultDelayValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultDelayValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultDelayValidationError) ErrorName() string { return "FaultDelayValidationError" } + +// Error satisfies the builtin error interface +func (e FaultDelayValidationError) 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 %sFaultDelay.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultDelayValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultDelayValidationError{} + +// Validate checks the field values on FaultRateLimit with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FaultRateLimit) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.LimitType.(type) { + + case *FaultRateLimit_FixedLimit_: + + if v, ok := interface{}(m.GetFixedLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "FixedLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FaultRateLimit_HeaderLimit_: + + if v, ok := interface{}(m.GetHeaderLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "HeaderLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultRateLimitValidationError{ + field: "LimitType", + reason: "value is required", + } + + } + + return nil +} + +// FaultRateLimitValidationError is the validation error returned by +// FaultRateLimit.Validate if the designated constraints aren't met. +type FaultRateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimitValidationError) ErrorName() string { return "FaultRateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e FaultRateLimitValidationError) 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 %sFaultRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimitValidationError{} + +// Validate checks the field values on FaultDelay_HeaderDelay with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultDelay_HeaderDelay) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultDelay_HeaderDelayValidationError is the validation error returned by +// FaultDelay_HeaderDelay.Validate if the designated constraints aren't met. +type FaultDelay_HeaderDelayValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultDelay_HeaderDelayValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultDelay_HeaderDelayValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultDelay_HeaderDelayValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultDelay_HeaderDelayValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultDelay_HeaderDelayValidationError) ErrorName() string { + return "FaultDelay_HeaderDelayValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultDelay_HeaderDelayValidationError) 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 %sFaultDelay_HeaderDelay.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultDelay_HeaderDelayValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultDelay_HeaderDelayValidationError{} + +// Validate checks the field values on FaultRateLimit_FixedLimit with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultRateLimit_FixedLimit) Validate() error { + if m == nil { + return nil + } + + if m.GetLimitKbps() < 1 { + return FaultRateLimit_FixedLimitValidationError{ + field: "LimitKbps", + reason: "value must be greater than or equal to 1", + } + } + + return nil +} + +// FaultRateLimit_FixedLimitValidationError is the validation error returned by +// FaultRateLimit_FixedLimit.Validate if the designated constraints aren't met. +type FaultRateLimit_FixedLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimit_FixedLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimit_FixedLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimit_FixedLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimit_FixedLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimit_FixedLimitValidationError) ErrorName() string { + return "FaultRateLimit_FixedLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultRateLimit_FixedLimitValidationError) 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 %sFaultRateLimit_FixedLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimit_FixedLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimit_FixedLimitValidationError{} + +// Validate checks the field values on FaultRateLimit_HeaderLimit with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultRateLimit_HeaderLimit) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultRateLimit_HeaderLimitValidationError is the validation error returned +// by FaultRateLimit_HeaderLimit.Validate if the designated constraints aren't met. +type FaultRateLimit_HeaderLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimit_HeaderLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimit_HeaderLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimit_HeaderLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimit_HeaderLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimit_HeaderLimitValidationError) ErrorName() string { + return "FaultRateLimit_HeaderLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultRateLimit_HeaderLimitValidationError) 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 %sFaultRateLimit_HeaderLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimit_HeaderLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimit_HeaderLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.go new file mode 100644 index 000000000..79623f5d2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.go @@ -0,0 +1,345 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.proto + +package envoy_config_filter_http_adaptive_concurrency_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "google.golang.org/genproto/googleapis/api/annotations" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GradientControllerConfig struct { + SampleAggregatePercentile *_type.Percent `protobuf:"bytes,1,opt,name=sample_aggregate_percentile,json=sampleAggregatePercentile,proto3" json:"sample_aggregate_percentile,omitempty"` + ConcurrencyLimitParams *GradientControllerConfig_ConcurrencyLimitCalculationParams `protobuf:"bytes,2,opt,name=concurrency_limit_params,json=concurrencyLimitParams,proto3" json:"concurrency_limit_params,omitempty"` + MinRttCalcParams *GradientControllerConfig_MinimumRTTCalculationParams `protobuf:"bytes,3,opt,name=min_rtt_calc_params,json=minRttCalcParams,proto3" json:"min_rtt_calc_params,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig) Reset() { *m = GradientControllerConfig{} } +func (m *GradientControllerConfig) String() string { return proto.CompactTextString(m) } +func (*GradientControllerConfig) ProtoMessage() {} +func (*GradientControllerConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c58a0beecb0ec580, []int{0} +} + +func (m *GradientControllerConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig.Unmarshal(m, b) +} +func (m *GradientControllerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig.Merge(m, src) +} +func (m *GradientControllerConfig) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig.Size(m) +} +func (m *GradientControllerConfig) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig proto.InternalMessageInfo + +func (m *GradientControllerConfig) GetSampleAggregatePercentile() *_type.Percent { + if m != nil { + return m.SampleAggregatePercentile + } + return nil +} + +func (m *GradientControllerConfig) GetConcurrencyLimitParams() *GradientControllerConfig_ConcurrencyLimitCalculationParams { + if m != nil { + return m.ConcurrencyLimitParams + } + return nil +} + +func (m *GradientControllerConfig) GetMinRttCalcParams() *GradientControllerConfig_MinimumRTTCalculationParams { + if m != nil { + return m.MinRttCalcParams + } + return nil +} + +type GradientControllerConfig_ConcurrencyLimitCalculationParams struct { + MaxConcurrencyLimit *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=max_concurrency_limit,json=maxConcurrencyLimit,proto3" json:"max_concurrency_limit,omitempty"` + ConcurrencyUpdateInterval *duration.Duration `protobuf:"bytes,3,opt,name=concurrency_update_interval,json=concurrencyUpdateInterval,proto3" json:"concurrency_update_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) Reset() { + *m = GradientControllerConfig_ConcurrencyLimitCalculationParams{} +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) String() string { + return proto.CompactTextString(m) +} +func (*GradientControllerConfig_ConcurrencyLimitCalculationParams) ProtoMessage() {} +func (*GradientControllerConfig_ConcurrencyLimitCalculationParams) Descriptor() ([]byte, []int) { + return fileDescriptor_c58a0beecb0ec580, []int{0, 0} +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Unmarshal(m, b) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Merge(m, src) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Size(m) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams proto.InternalMessageInfo + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) GetMaxConcurrencyLimit() *wrappers.UInt32Value { + if m != nil { + return m.MaxConcurrencyLimit + } + return nil +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) GetConcurrencyUpdateInterval() *duration.Duration { + if m != nil { + return m.ConcurrencyUpdateInterval + } + return nil +} + +type GradientControllerConfig_MinimumRTTCalculationParams struct { + Interval *duration.Duration `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"` + RequestCount *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + Jitter *_type.Percent `protobuf:"bytes,3,opt,name=jitter,proto3" json:"jitter,omitempty"` + MinConcurrency *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=min_concurrency,json=minConcurrency,proto3" json:"min_concurrency,omitempty"` + Buffer *_type.Percent `protobuf:"bytes,5,opt,name=buffer,proto3" json:"buffer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) Reset() { + *m = GradientControllerConfig_MinimumRTTCalculationParams{} +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) String() string { + return proto.CompactTextString(m) +} +func (*GradientControllerConfig_MinimumRTTCalculationParams) ProtoMessage() {} +func (*GradientControllerConfig_MinimumRTTCalculationParams) Descriptor() ([]byte, []int) { + return fileDescriptor_c58a0beecb0ec580, []int{0, 1} +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Unmarshal(m, b) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Merge(m, src) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Size(m) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams proto.InternalMessageInfo + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetRequestCount() *wrappers.UInt32Value { + if m != nil { + return m.RequestCount + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetJitter() *_type.Percent { + if m != nil { + return m.Jitter + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetMinConcurrency() *wrappers.UInt32Value { + if m != nil { + return m.MinConcurrency + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetBuffer() *_type.Percent { + if m != nil { + return m.Buffer + } + return nil +} + +type AdaptiveConcurrency struct { + // Types that are valid to be assigned to ConcurrencyControllerConfig: + // *AdaptiveConcurrency_GradientControllerConfig + ConcurrencyControllerConfig isAdaptiveConcurrency_ConcurrencyControllerConfig `protobuf_oneof:"concurrency_controller_config"` + Enabled *core.RuntimeFeatureFlag `protobuf:"bytes,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdaptiveConcurrency) Reset() { *m = AdaptiveConcurrency{} } +func (m *AdaptiveConcurrency) String() string { return proto.CompactTextString(m) } +func (*AdaptiveConcurrency) ProtoMessage() {} +func (*AdaptiveConcurrency) Descriptor() ([]byte, []int) { + return fileDescriptor_c58a0beecb0ec580, []int{1} +} + +func (m *AdaptiveConcurrency) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdaptiveConcurrency.Unmarshal(m, b) +} +func (m *AdaptiveConcurrency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdaptiveConcurrency.Marshal(b, m, deterministic) +} +func (m *AdaptiveConcurrency) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdaptiveConcurrency.Merge(m, src) +} +func (m *AdaptiveConcurrency) XXX_Size() int { + return xxx_messageInfo_AdaptiveConcurrency.Size(m) +} +func (m *AdaptiveConcurrency) XXX_DiscardUnknown() { + xxx_messageInfo_AdaptiveConcurrency.DiscardUnknown(m) +} + +var xxx_messageInfo_AdaptiveConcurrency proto.InternalMessageInfo + +type isAdaptiveConcurrency_ConcurrencyControllerConfig interface { + isAdaptiveConcurrency_ConcurrencyControllerConfig() +} + +type AdaptiveConcurrency_GradientControllerConfig struct { + GradientControllerConfig *GradientControllerConfig `protobuf:"bytes,1,opt,name=gradient_controller_config,json=gradientControllerConfig,proto3,oneof"` +} + +func (*AdaptiveConcurrency_GradientControllerConfig) isAdaptiveConcurrency_ConcurrencyControllerConfig() { +} + +func (m *AdaptiveConcurrency) GetConcurrencyControllerConfig() isAdaptiveConcurrency_ConcurrencyControllerConfig { + if m != nil { + return m.ConcurrencyControllerConfig + } + return nil +} + +func (m *AdaptiveConcurrency) GetGradientControllerConfig() *GradientControllerConfig { + if x, ok := m.GetConcurrencyControllerConfig().(*AdaptiveConcurrency_GradientControllerConfig); ok { + return x.GradientControllerConfig + } + return nil +} + +func (m *AdaptiveConcurrency) GetEnabled() *core.RuntimeFeatureFlag { + if m != nil { + return m.Enabled + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdaptiveConcurrency) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdaptiveConcurrency_GradientControllerConfig)(nil), + } +} + +func init() { + proto.RegisterType((*GradientControllerConfig)(nil), "envoy.config.filter.http.adaptive_concurrency.v2alpha.GradientControllerConfig") + proto.RegisterType((*GradientControllerConfig_ConcurrencyLimitCalculationParams)(nil), "envoy.config.filter.http.adaptive_concurrency.v2alpha.GradientControllerConfig.ConcurrencyLimitCalculationParams") + proto.RegisterType((*GradientControllerConfig_MinimumRTTCalculationParams)(nil), "envoy.config.filter.http.adaptive_concurrency.v2alpha.GradientControllerConfig.MinimumRTTCalculationParams") + proto.RegisterType((*AdaptiveConcurrency)(nil), "envoy.config.filter.http.adaptive_concurrency.v2alpha.AdaptiveConcurrency") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.proto", fileDescriptor_c58a0beecb0ec580) +} + +var fileDescriptor_c58a0beecb0ec580 = []byte{ + // 737 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xad, 0xd3, 0xbf, 0x68, 0xbe, 0x1f, 0x2a, 0x47, 0x80, 0x9b, 0xb6, 0xa8, 0x54, 0x20, 0xa1, + 0x22, 0x8d, 0xa5, 0x54, 0x88, 0x25, 0xaa, 0x83, 0x0a, 0x45, 0xfc, 0x44, 0xa6, 0x45, 0x62, 0x65, + 0x4d, 0x9c, 0x1b, 0x77, 0x60, 0x3c, 0x76, 0xc7, 0xe3, 0x90, 0xec, 0x58, 0xb3, 0xe9, 0xb6, 0xec, + 0x11, 0x0b, 0xf6, 0x6c, 0x78, 0x02, 0xb6, 0x6c, 0x78, 0x03, 0x5e, 0x80, 0x15, 0xea, 0x02, 0x21, + 0x7b, 0xc6, 0xa9, 0xd5, 0xa4, 0x41, 0xad, 0xba, 0x6b, 0x75, 0xee, 0x39, 0xf7, 0xde, 0x73, 0x8f, + 0x27, 0xa8, 0x05, 0xbc, 0x17, 0x0d, 0x6c, 0x3f, 0xe2, 0x5d, 0x1a, 0xd8, 0x5d, 0xca, 0x24, 0x08, + 0x7b, 0x4f, 0xca, 0xd8, 0x26, 0x1d, 0x12, 0x4b, 0xda, 0x03, 0xcf, 0x8f, 0xb8, 0x9f, 0x0a, 0x01, + 0xdc, 0x1f, 0xd8, 0xbd, 0x06, 0x61, 0xf1, 0x1e, 0x19, 0x0b, 0xe2, 0x58, 0x44, 0x32, 0x32, 0xef, + 0xe4, 0x8a, 0x58, 0x29, 0x62, 0xa5, 0x88, 0x33, 0x45, 0x3c, 0x96, 0xa4, 0x15, 0xeb, 0xcb, 0x6a, + 0x10, 0x12, 0x53, 0xbb, 0xd7, 0xb0, 0xfd, 0x48, 0x80, 0xdd, 0x26, 0x09, 0x28, 0xd1, 0xba, 0xa5, + 0x50, 0x39, 0x88, 0xc1, 0x8e, 0x41, 0xf8, 0xc0, 0xa5, 0x46, 0x96, 0x83, 0x28, 0x0a, 0x18, 0xe4, + 0x44, 0xc2, 0x79, 0x24, 0x89, 0xa4, 0x11, 0x4f, 0x34, 0x7a, 0x4d, 0xa3, 0xf9, 0x7f, 0xed, 0xb4, + 0x6b, 0x77, 0x52, 0x91, 0x17, 0x9c, 0x86, 0xbf, 0x11, 0x24, 0x8e, 0x41, 0x0c, 0xf9, 0x69, 0x27, + 0x26, 0x65, 0x5d, 0x3b, 0xa4, 0x81, 0x20, 0xb2, 0x98, 0x6b, 0x65, 0x04, 0x4f, 0x24, 0x91, 0x69, + 0x41, 0xbf, 0xda, 0x23, 0x8c, 0x76, 0x88, 0x04, 0xbb, 0xf8, 0x43, 0x01, 0x6b, 0x07, 0x55, 0x64, + 0x3d, 0x10, 0xa4, 0x43, 0x81, 0xcb, 0x66, 0xc4, 0xa5, 0x88, 0x18, 0x03, 0xd1, 0xcc, 0x3d, 0x33, + 0x9f, 0xa3, 0xa5, 0x84, 0x84, 0x31, 0x03, 0x8f, 0x04, 0x81, 0x80, 0x80, 0x48, 0xf0, 0xf4, 0xd2, + 0x94, 0x81, 0x65, 0xac, 0x1a, 0xb7, 0xfe, 0x69, 0xd4, 0xb0, 0xf2, 0x39, 0xb3, 0x04, 0xb7, 0x14, + 0xea, 0x2e, 0x2a, 0xde, 0x66, 0x41, 0x6b, 0x0d, 0x59, 0xe6, 0x67, 0x03, 0x59, 0x25, 0xdf, 0x3d, + 0x46, 0x43, 0x2a, 0xbd, 0x98, 0x08, 0x12, 0x26, 0x56, 0x25, 0x97, 0xdc, 0xc7, 0xe7, 0x3a, 0x1d, + 0x3e, 0x6d, 0x11, 0xdc, 0x3c, 0x2e, 0x7e, 0x9c, 0xb5, 0x6b, 0x12, 0xe6, 0xa7, 0x2c, 0x37, 0xaa, + 0x95, 0x37, 0x76, 0xaa, 0x47, 0xce, 0xec, 0x3b, 0xa3, 0xb2, 0x60, 0xb8, 0x57, 0xfc, 0x13, 0xc5, + 0xaa, 0xc2, 0xfc, 0x60, 0xa0, 0x5a, 0x48, 0xb9, 0x27, 0xa4, 0xf4, 0x7c, 0xc2, 0xfc, 0x62, 0xe4, + 0xe9, 0x7c, 0xe4, 0xd7, 0x17, 0x3d, 0xf2, 0x13, 0xca, 0x69, 0x98, 0x86, 0xee, 0xce, 0xce, 0xa4, + 0x61, 0x17, 0x42, 0xca, 0x5d, 0x99, 0xef, 0xa3, 0xb0, 0xfa, 0x0f, 0x03, 0x5d, 0xff, 0xeb, 0xba, + 0xe6, 0x4b, 0x74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x12, 0xaf, 0x3d, 0x7e, 0x76, 0xc1, 0x9f, + 0xc1, 0x71, 0xd4, 0x1f, 0x4e, 0xb9, 0x56, 0x70, 0xda, 0x43, 0x75, 0x0f, 0xcd, 0x03, 0x27, 0x6d, + 0x06, 0x1d, 0x7d, 0xa3, 0x9b, 0x7a, 0x0e, 0x12, 0x53, 0xdc, 0x6b, 0xe0, 0xec, 0x15, 0xc7, 0x6e, + 0xca, 0x25, 0x0d, 0x61, 0x0b, 0x88, 0x4c, 0x05, 0x6c, 0x31, 0x12, 0xb8, 0x05, 0xcb, 0xb9, 0x81, + 0x56, 0xca, 0xa1, 0x1d, 0x59, 0xcf, 0x9c, 0xfe, 0xe5, 0x18, 0xce, 0x47, 0xe3, 0xe7, 0xe1, 0xef, + 0x83, 0xd9, 0xbb, 0xc5, 0x4f, 0x0b, 0xf4, 0x25, 0xf0, 0x24, 0x7f, 0xe5, 0xd5, 0xa6, 0xc9, 0xa4, + 0x55, 0x37, 0xbe, 0xbc, 0xfd, 0xfa, 0x6d, 0xae, 0xb2, 0x60, 0xa0, 0x26, 0x8d, 0xd4, 0x7c, 0xb1, + 0x88, 0xfa, 0x83, 0xf3, 0x59, 0xe6, 0x58, 0x63, 0x8e, 0xd4, 0xca, 0x62, 0xd1, 0x32, 0xda, 0x73, + 0x79, 0x3e, 0x36, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x38, 0xeb, 0x1d, 0x55, 0x07, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.validate.go new file mode 100644 index 000000000..b845fdb79 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.validate.go @@ -0,0 +1,517 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.proto + +package envoy_config_filter_http_adaptive_concurrency_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _adaptive_concurrency_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GradientControllerConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GradientControllerConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSampleAggregatePercentile()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "SampleAggregatePercentile", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetConcurrencyLimitParams() == nil { + return GradientControllerConfigValidationError{ + field: "ConcurrencyLimitParams", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetConcurrencyLimitParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "ConcurrencyLimitParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetMinRttCalcParams() == nil { + return GradientControllerConfigValidationError{ + field: "MinRttCalcParams", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMinRttCalcParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "MinRttCalcParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GradientControllerConfigValidationError is the validation error returned by +// GradientControllerConfig.Validate if the designated constraints aren't met. +type GradientControllerConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GradientControllerConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GradientControllerConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GradientControllerConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GradientControllerConfigValidationError) ErrorName() string { + return "GradientControllerConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfigValidationError) 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 %sGradientControllerConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfigValidationError{} + +// Validate checks the field values on AdaptiveConcurrency with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AdaptiveConcurrency) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdaptiveConcurrencyValidationError{ + field: "Enabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.ConcurrencyControllerConfig.(type) { + + case *AdaptiveConcurrency_GradientControllerConfig: + + if m.GetGradientControllerConfig() == nil { + return AdaptiveConcurrencyValidationError{ + field: "GradientControllerConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGradientControllerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdaptiveConcurrencyValidationError{ + field: "GradientControllerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return AdaptiveConcurrencyValidationError{ + field: "ConcurrencyControllerConfig", + reason: "value is required", + } + + } + + return nil +} + +// AdaptiveConcurrencyValidationError is the validation error returned by +// AdaptiveConcurrency.Validate if the designated constraints aren't met. +type AdaptiveConcurrencyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdaptiveConcurrencyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdaptiveConcurrencyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdaptiveConcurrencyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdaptiveConcurrencyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdaptiveConcurrencyValidationError) ErrorName() string { + return "AdaptiveConcurrencyValidationError" +} + +// Error satisfies the builtin error interface +func (e AdaptiveConcurrencyValidationError) 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 %sAdaptiveConcurrency.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdaptiveConcurrencyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdaptiveConcurrencyValidationError{} + +// Validate checks the field values on +// GradientControllerConfig_ConcurrencyLimitCalculationParams with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMaxConcurrencyLimit(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "MaxConcurrencyLimit", + reason: "value must be greater than 0", + } + } + + } + + if m.GetConcurrencyUpdateInterval() == nil { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value is required", + } + } + + if d := m.GetConcurrencyUpdateInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value must be greater than 0s", + } + } + + } + + return nil +} + +// GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError is +// the validation error returned by +// GradientControllerConfig_ConcurrencyLimitCalculationParams.Validate if the +// designated constraints aren't met. +type GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Key() bool { + return e.key +} + +// ErrorName returns error name. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) ErrorName() string { + return "GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) 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 %sGradientControllerConfig_ConcurrencyLimitCalculationParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{} + +// Validate checks the field values on +// GradientControllerConfig_MinimumRTTCalculationParams with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GradientControllerConfig_MinimumRTTCalculationParams) Validate() error { + if m == nil { + return nil + } + + if m.GetInterval() == nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value is required", + } + } + + if d := m.GetInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value must be greater than 0s", + } + } + + } + + if wrapper := m.GetRequestCount(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "RequestCount", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetJitter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Jitter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if wrapper := m.GetMinConcurrency(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "MinConcurrency", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetBuffer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Buffer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GradientControllerConfig_MinimumRTTCalculationParamsValidationError is the +// validation error returned by +// GradientControllerConfig_MinimumRTTCalculationParams.Validate if the +// designated constraints aren't met. +type GradientControllerConfig_MinimumRTTCalculationParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) ErrorName() string { + return "GradientControllerConfig_MinimumRTTCalculationParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) 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 %sGradientControllerConfig_MinimumRTTCalculationParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfig_MinimumRTTCalculationParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfig_MinimumRTTCalculationParamsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.go new file mode 100644 index 000000000..da8fddb95 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.proto + +package envoy_config_filter_http_aws_lambda_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + Arn string `protobuf:"bytes,1,opt,name=arn,proto3" json:"arn,omitempty"` + PayloadPassthrough bool `protobuf:"varint,2,opt,name=payload_passthrough,json=payloadPassthrough,proto3" json:"payload_passthrough,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_13dc726de71fada6, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetArn() string { + if m != nil { + return m.Arn + } + return "" +} + +func (m *Config) GetPayloadPassthrough() bool { + if m != nil { + return m.PayloadPassthrough + } + return false +} + +type PerRouteConfig struct { + InvokeConfig *Config `protobuf:"bytes,1,opt,name=invoke_config,json=invokeConfig,proto3" json:"invoke_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerRouteConfig) Reset() { *m = PerRouteConfig{} } +func (m *PerRouteConfig) String() string { return proto.CompactTextString(m) } +func (*PerRouteConfig) ProtoMessage() {} +func (*PerRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_13dc726de71fada6, []int{1} +} + +func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerRouteConfig.Unmarshal(m, b) +} +func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerRouteConfig.Marshal(b, m, deterministic) +} +func (m *PerRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerRouteConfig.Merge(m, src) +} +func (m *PerRouteConfig) XXX_Size() int { + return xxx_messageInfo_PerRouteConfig.Size(m) +} +func (m *PerRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerRouteConfig proto.InternalMessageInfo + +func (m *PerRouteConfig) GetInvokeConfig() *Config { + if m != nil { + return m.InvokeConfig + } + return nil +} + +func init() { + proto.RegisterType((*Config)(nil), "envoy.config.filter.http.aws_lambda.v2alpha.Config") + proto.RegisterType((*PerRouteConfig)(nil), "envoy.config.filter.http.aws_lambda.v2alpha.PerRouteConfig") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.proto", fileDescriptor_13dc726de71fada6) +} + +var fileDescriptor_13dc726de71fada6 = []byte{ + // 327 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xb1, 0x4e, 0xf3, 0x30, + 0x14, 0x85, 0xe5, 0xfe, 0x3f, 0xa5, 0x04, 0xa8, 0xaa, 0x30, 0x50, 0x2a, 0x81, 0xaa, 0x4e, 0x95, + 0x10, 0xb6, 0xd4, 0x4e, 0x48, 0x2c, 0x84, 0x95, 0x21, 0x8a, 0x18, 0xd8, 0xaa, 0x5b, 0xe2, 0x36, + 0x86, 0xd4, 0xb6, 0xec, 0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32, 0x57, 0x4f, 0x7c, 0xe4, 0xfe, + 0x5b, 0xbe, 0xb3, 0x3f, 0x18, 0xd2, 0x2d, 0x4a, 0xa0, 0x8e, 0x15, 0x1d, 0x38, 0x92, 0x3b, 0x05, + 0xaf, 0xe4, 0xeb, 0xed, 0xe7, 0x65, 0xe7, 0x62, 0xd5, 0x27, 0x5f, 0x20, 0x97, 0xb6, 0xa8, 0xa0, + 0xc2, 0xd9, 0x4d, 0xde, 0xf0, 0xfd, 0xf9, 0xe3, 0xb3, 0x5e, 0x6b, 0x10, 0xb7, 0xb6, 0x88, 0x77, + 0x29, 0x94, 0x8b, 0xa2, 0x8d, 0x5a, 0x2c, 0xb7, 0x49, 0x15, 0x34, 0xaf, 0xe7, 0xf6, 0xb6, 0x1c, + 0x85, 0x45, 0xa5, 0x21, 0x19, 0xd7, 0xcb, 0x6e, 0x87, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xce, + 0x41, 0x90, 0x82, 0x20, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.validate.go new file mode 100644 index 000000000..924d0152d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.pb.validate.go @@ -0,0 +1,185 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.proto + +package envoy_config_filter_http_aws_lambda_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_lambda_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetArn()) < 1 { + return ConfigValidationError{ + field: "Arn", + reason: "value length must be at least 1 runes", + } + } + + // no validation rules for PayloadPassthrough + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} + +// Validate checks the field values on PerRouteConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerRouteConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInvokeConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerRouteConfigValidationError{ + field: "InvokeConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// PerRouteConfigValidationError is the validation error returned by +// PerRouteConfig.Validate if the designated constraints aren't met. +type PerRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerRouteConfigValidationError) ErrorName() string { return "PerRouteConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerRouteConfigValidationError) 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 %sPerRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerRouteConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.go new file mode 100644 index 000000000..bf3f0e148 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.proto + +package envoy_config_filter_http_aws_request_signing_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AwsRequestSigning struct { + ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` + Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + HostRewrite string `protobuf:"bytes,3,opt,name=host_rewrite,json=hostRewrite,proto3" json:"host_rewrite,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AwsRequestSigning) Reset() { *m = AwsRequestSigning{} } +func (m *AwsRequestSigning) String() string { return proto.CompactTextString(m) } +func (*AwsRequestSigning) ProtoMessage() {} +func (*AwsRequestSigning) Descriptor() ([]byte, []int) { + return fileDescriptor_ebccdae368886250, []int{0} +} + +func (m *AwsRequestSigning) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AwsRequestSigning.Unmarshal(m, b) +} +func (m *AwsRequestSigning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AwsRequestSigning.Marshal(b, m, deterministic) +} +func (m *AwsRequestSigning) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwsRequestSigning.Merge(m, src) +} +func (m *AwsRequestSigning) XXX_Size() int { + return xxx_messageInfo_AwsRequestSigning.Size(m) +} +func (m *AwsRequestSigning) XXX_DiscardUnknown() { + xxx_messageInfo_AwsRequestSigning.DiscardUnknown(m) +} + +var xxx_messageInfo_AwsRequestSigning proto.InternalMessageInfo + +func (m *AwsRequestSigning) GetServiceName() string { + if m != nil { + return m.ServiceName + } + return "" +} + +func (m *AwsRequestSigning) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *AwsRequestSigning) GetHostRewrite() string { + if m != nil { + return m.HostRewrite + } + return "" +} + +func init() { + proto.RegisterType((*AwsRequestSigning)(nil), "envoy.config.filter.http.aws_request_signing.v2alpha.AwsRequestSigning") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.proto", fileDescriptor_ebccdae368886250) +} + +var fileDescriptor_ebccdae368886250 = []byte{ + // 312 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0x31, 0x4e, 0xc3, 0x30, + 0x14, 0x86, 0xe5, 0x02, 0x45, 0xb8, 0x1d, 0x20, 0x03, 0x54, 0x95, 0x80, 0xc2, 0x84, 0x18, 0x6c, + 0x89, 0x22, 0x76, 0x72, 0x80, 0xaa, 0x0a, 0x07, 0x88, 0x1e, 0xed, 0x6b, 0x6a, 0xa9, 0xb5, 0x83, + 0xfd, 0x92, 0xb4, 0x1b, 0x12, 0x07, 0x60, 0x65, 0xe6, 0x18, 0x9c, 0x80, 0x95, 0xab, 0x30, 0x32, + 0x20, 0x94, 0x38, 0x1d, 0x50, 0x2b, 0x06, 0x36, 0xeb, 0xff, 0x9f, 0xbf, 0xa7, 0xf7, 0xf1, 0x01, + 0xea, 0xdc, 0x2c, 0xe5, 0xc8, 0xe8, 0x89, 0x4a, 0xe4, 0x44, 0xcd, 0x08, 0xad, 0x9c, 0x12, 0xa5, + 0x12, 0x0a, 0x17, 0x5b, 0x7c, 0xc8, 0xd0, 0x51, 0xec, 0x54, 0xa2, 0x95, 0x4e, 0x64, 0x7e, 0x05, + 0xb3, 0x74, 0x0a, 0x9b, 0x3a, 0x91, 0x5a, 0x43, 0x26, 0xb8, 0xae, 0x78, 0xc2, 0xf3, 0x84, 0xe7, + 0x89, 0x92, 0x27, 0x36, 0xfd, 0xa9, 0x79, 0xdd, 0x93, 0x6c, 0x9c, 0x82, 0x04, 0xad, 0x0d, 0x01, + 0x29, 0xa3, 0x9d, 0x9c, 0xab, 0xc4, 0x02, 0xa1, 0xa7, 0x76, 0x8f, 0xd7, 0x7a, 0x47, 0x40, 0x99, + 0xab, 0xeb, 0xa3, 0x1c, 0x66, 0x6a, 0x0c, 0x84, 0x72, 0xf5, 0xf0, 0xc5, 0xf9, 0x13, 0xe3, 0x07, + 0xb7, 0x85, 0x8b, 0xfc, 0xda, 0x3b, 0xbf, 0x35, 0xb8, 0xe4, 0x6d, 0x87, 0x36, 0x57, 0x23, 0x8c, + 0x35, 0xcc, 0xb1, 0xc3, 0x7a, 0xec, 0x62, 0x2f, 0xdc, 0xfd, 0x0a, 0xb7, 0x6d, 0xa3, 0xc7, 0xa2, + 0x56, 0x5d, 0x0e, 0x60, 0x8e, 0xc1, 0x29, 0x6f, 0x5a, 0x4c, 0x94, 0xd1, 0x9d, 0xc6, 0xef, 0xa9, + 0x3a, 0x0e, 0xce, 0x78, 0x7b, 0x6a, 0x1c, 0xc5, 0x16, 0x0b, 0xab, 0x08, 0x3b, 0x5b, 0xe5, 0x58, + 0xd4, 0x2a, 0xb3, 0xc8, 0x47, 0xe1, 0x2b, 0xfb, 0x7c, 0xf9, 0x7e, 0xde, 0xb9, 0x59, 0xc9, 0xc1, + 0x05, 0xa1, 0x76, 0xe5, 0x19, 0xb5, 0x20, 0xf7, 0x87, 0xa1, 0xfe, 0xdb, 0xe3, 0xfb, 0x47, 0xb3, + 0xb1, 0xcf, 0x78, 0xa8, 0x8c, 0xa8, 0x00, 0xa9, 0x35, 0x8b, 0xa5, 0xf8, 0x8f, 0xe8, 0xf0, 0x70, + 0xcd, 0xc6, 0xb0, 0x14, 0x35, 0x64, 0xf7, 0xcd, 0xca, 0x58, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, + 0x2f, 0x13, 0x9f, 0x73, 0x11, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.validate.go new file mode 100644 index 000000000..039da8b2a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.pb.validate.go @@ -0,0 +1,120 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/aws_request_signing/v2alpha/aws_request_signing.proto + +package envoy_config_filter_http_aws_request_signing_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_request_signing_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AwsRequestSigning with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AwsRequestSigning) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServiceName()) < 1 { + return AwsRequestSigningValidationError{ + field: "ServiceName", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetRegion()) < 1 { + return AwsRequestSigningValidationError{ + field: "Region", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for HostRewrite + + return nil +} + +// AwsRequestSigningValidationError is the validation error returned by +// AwsRequestSigning.Validate if the designated constraints aren't met. +type AwsRequestSigningValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AwsRequestSigningValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AwsRequestSigningValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AwsRequestSigningValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AwsRequestSigningValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AwsRequestSigningValidationError) ErrorName() string { + return "AwsRequestSigningValidationError" +} + +// Error satisfies the builtin error interface +func (e AwsRequestSigningValidationError) 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 %sAwsRequestSigning.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AwsRequestSigningValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AwsRequestSigningValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.go new file mode 100644 index 000000000..533169dae --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.go @@ -0,0 +1,180 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/buffer/v2/buffer.proto + +package envoy_config_filter_http_buffer_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Buffer struct { + MaxRequestBytes *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_request_bytes,json=maxRequestBytes,proto3" json:"max_request_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Buffer) Reset() { *m = Buffer{} } +func (m *Buffer) String() string { return proto.CompactTextString(m) } +func (*Buffer) ProtoMessage() {} +func (*Buffer) Descriptor() ([]byte, []int) { + return fileDescriptor_e782fc75ce4c789f, []int{0} +} + +func (m *Buffer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Buffer.Unmarshal(m, b) +} +func (m *Buffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Buffer.Marshal(b, m, deterministic) +} +func (m *Buffer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Buffer.Merge(m, src) +} +func (m *Buffer) XXX_Size() int { + return xxx_messageInfo_Buffer.Size(m) +} +func (m *Buffer) XXX_DiscardUnknown() { + xxx_messageInfo_Buffer.DiscardUnknown(m) +} + +var xxx_messageInfo_Buffer proto.InternalMessageInfo + +func (m *Buffer) GetMaxRequestBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxRequestBytes + } + return nil +} + +type BufferPerRoute struct { + // Types that are valid to be assigned to Override: + // *BufferPerRoute_Disabled + // *BufferPerRoute_Buffer + Override isBufferPerRoute_Override `protobuf_oneof:"override"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BufferPerRoute) Reset() { *m = BufferPerRoute{} } +func (m *BufferPerRoute) String() string { return proto.CompactTextString(m) } +func (*BufferPerRoute) ProtoMessage() {} +func (*BufferPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_e782fc75ce4c789f, []int{1} +} + +func (m *BufferPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BufferPerRoute.Unmarshal(m, b) +} +func (m *BufferPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BufferPerRoute.Marshal(b, m, deterministic) +} +func (m *BufferPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferPerRoute.Merge(m, src) +} +func (m *BufferPerRoute) XXX_Size() int { + return xxx_messageInfo_BufferPerRoute.Size(m) +} +func (m *BufferPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_BufferPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_BufferPerRoute proto.InternalMessageInfo + +type isBufferPerRoute_Override interface { + isBufferPerRoute_Override() +} + +type BufferPerRoute_Disabled struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"` +} + +type BufferPerRoute_Buffer struct { + Buffer *Buffer `protobuf:"bytes,2,opt,name=buffer,proto3,oneof"` +} + +func (*BufferPerRoute_Disabled) isBufferPerRoute_Override() {} + +func (*BufferPerRoute_Buffer) isBufferPerRoute_Override() {} + +func (m *BufferPerRoute) GetOverride() isBufferPerRoute_Override { + if m != nil { + return m.Override + } + return nil +} + +func (m *BufferPerRoute) GetDisabled() bool { + if x, ok := m.GetOverride().(*BufferPerRoute_Disabled); ok { + return x.Disabled + } + return false +} + +func (m *BufferPerRoute) GetBuffer() *Buffer { + if x, ok := m.GetOverride().(*BufferPerRoute_Buffer); ok { + return x.Buffer + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BufferPerRoute) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BufferPerRoute_Disabled)(nil), + (*BufferPerRoute_Buffer)(nil), + } +} + +func init() { + proto.RegisterType((*Buffer)(nil), "envoy.config.filter.http.buffer.v2.Buffer") + proto.RegisterType((*BufferPerRoute)(nil), "envoy.config.filter.http.buffer.v2.BufferPerRoute") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/buffer/v2/buffer.proto", fileDescriptor_e782fc75ce4c789f) +} + +var fileDescriptor_e782fc75ce4c789f = []byte{ + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x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 0xff, 0xff, 0x53, 0x16, 0x8e, 0x67, 0x55, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.validate.go new file mode 100644 index 000000000..6d9d787af --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2/buffer.pb.validate.go @@ -0,0 +1,220 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/buffer/v2/buffer.proto + +package envoy_config_filter_http_buffer_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _buffer_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Buffer with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Buffer) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMaxRequestBytes(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return BufferValidationError{ + field: "MaxRequestBytes", + reason: "value must be greater than 0", + } + } + + } else { + return BufferValidationError{ + field: "MaxRequestBytes", + reason: "value is required and must not be nil.", + } + } + + return nil +} + +// BufferValidationError is the validation error returned by Buffer.Validate if +// the designated constraints aren't met. +type BufferValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferValidationError) ErrorName() string { return "BufferValidationError" } + +// Error satisfies the builtin error interface +func (e BufferValidationError) 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 %sBuffer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferValidationError{} + +// Validate checks the field values on BufferPerRoute with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BufferPerRoute) Validate() error { + if m == nil { + return nil + } + + switch m.Override.(type) { + + case *BufferPerRoute_Disabled: + + if m.GetDisabled() != true { + return BufferPerRouteValidationError{ + field: "Disabled", + reason: "value must equal true", + } + } + + case *BufferPerRoute_Buffer: + + if m.GetBuffer() == nil { + return BufferPerRouteValidationError{ + field: "Buffer", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetBuffer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BufferPerRouteValidationError{ + field: "Buffer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return BufferPerRouteValidationError{ + field: "Override", + reason: "value is required", + } + + } + + return nil +} + +// BufferPerRouteValidationError is the validation error returned by +// BufferPerRoute.Validate if the designated constraints aren't met. +type BufferPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferPerRouteValidationError) ErrorName() string { return "BufferPerRouteValidationError" } + +// Error satisfies the builtin error interface +func (e BufferPerRouteValidationError) 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 %sBufferPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferPerRouteValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.go new file mode 100644 index 000000000..127edcc9c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/cache/v2alpha/cache.proto + +package envoy_config_filter_http_cache_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CacheConfig struct { + TypedConfig *any.Any `protobuf:"bytes,1,opt,name=typed_config,json=typedConfig,proto3" json:"typed_config,omitempty"` + AllowedVaryHeaders []*matcher.StringMatcher `protobuf:"bytes,2,rep,name=allowed_vary_headers,json=allowedVaryHeaders,proto3" json:"allowed_vary_headers,omitempty"` + KeyCreatorParams *CacheConfig_KeyCreatorParams `protobuf:"bytes,3,opt,name=key_creator_params,json=keyCreatorParams,proto3" json:"key_creator_params,omitempty"` + MaxBodyBytes uint32 `protobuf:"varint,4,opt,name=max_body_bytes,json=maxBodyBytes,proto3" json:"max_body_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CacheConfig) Reset() { *m = CacheConfig{} } +func (m *CacheConfig) String() string { return proto.CompactTextString(m) } +func (*CacheConfig) ProtoMessage() {} +func (*CacheConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f8d6a0b399e44d47, []int{0} +} + +func (m *CacheConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CacheConfig.Unmarshal(m, b) +} +func (m *CacheConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CacheConfig.Marshal(b, m, deterministic) +} +func (m *CacheConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CacheConfig.Merge(m, src) +} +func (m *CacheConfig) XXX_Size() int { + return xxx_messageInfo_CacheConfig.Size(m) +} +func (m *CacheConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CacheConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CacheConfig proto.InternalMessageInfo + +func (m *CacheConfig) GetTypedConfig() *any.Any { + if m != nil { + return m.TypedConfig + } + return nil +} + +func (m *CacheConfig) GetAllowedVaryHeaders() []*matcher.StringMatcher { + if m != nil { + return m.AllowedVaryHeaders + } + return nil +} + +func (m *CacheConfig) GetKeyCreatorParams() *CacheConfig_KeyCreatorParams { + if m != nil { + return m.KeyCreatorParams + } + return nil +} + +func (m *CacheConfig) GetMaxBodyBytes() uint32 { + if m != nil { + return m.MaxBodyBytes + } + return 0 +} + +type CacheConfig_KeyCreatorParams struct { + ExcludeScheme bool `protobuf:"varint,1,opt,name=exclude_scheme,json=excludeScheme,proto3" json:"exclude_scheme,omitempty"` + ExcludeHost bool `protobuf:"varint,2,opt,name=exclude_host,json=excludeHost,proto3" json:"exclude_host,omitempty"` + QueryParametersIncluded []*route.QueryParameterMatcher `protobuf:"bytes,3,rep,name=query_parameters_included,json=queryParametersIncluded,proto3" json:"query_parameters_included,omitempty"` + QueryParametersExcluded []*route.QueryParameterMatcher `protobuf:"bytes,4,rep,name=query_parameters_excluded,json=queryParametersExcluded,proto3" json:"query_parameters_excluded,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CacheConfig_KeyCreatorParams) Reset() { *m = CacheConfig_KeyCreatorParams{} } +func (m *CacheConfig_KeyCreatorParams) String() string { return proto.CompactTextString(m) } +func (*CacheConfig_KeyCreatorParams) ProtoMessage() {} +func (*CacheConfig_KeyCreatorParams) Descriptor() ([]byte, []int) { + return fileDescriptor_f8d6a0b399e44d47, []int{0, 0} +} + +func (m *CacheConfig_KeyCreatorParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Unmarshal(m, b) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Marshal(b, m, deterministic) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CacheConfig_KeyCreatorParams.Merge(m, src) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Size() int { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Size(m) +} +func (m *CacheConfig_KeyCreatorParams) XXX_DiscardUnknown() { + xxx_messageInfo_CacheConfig_KeyCreatorParams.DiscardUnknown(m) +} + +var xxx_messageInfo_CacheConfig_KeyCreatorParams proto.InternalMessageInfo + +func (m *CacheConfig_KeyCreatorParams) GetExcludeScheme() bool { + if m != nil { + return m.ExcludeScheme + } + return false +} + +func (m *CacheConfig_KeyCreatorParams) GetExcludeHost() bool { + if m != nil { + return m.ExcludeHost + } + return false +} + +func (m *CacheConfig_KeyCreatorParams) GetQueryParametersIncluded() []*route.QueryParameterMatcher { + if m != nil { + return m.QueryParametersIncluded + } + return nil +} + +func (m *CacheConfig_KeyCreatorParams) GetQueryParametersExcluded() []*route.QueryParameterMatcher { + if m != nil { + return m.QueryParametersExcluded + } + return nil +} + +func init() { + proto.RegisterType((*CacheConfig)(nil), "envoy.config.filter.http.cache.v2alpha.CacheConfig") + proto.RegisterType((*CacheConfig_KeyCreatorParams)(nil), "envoy.config.filter.http.cache.v2alpha.CacheConfig.KeyCreatorParams") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/cache/v2alpha/cache.proto", fileDescriptor_f8d6a0b399e44d47) +} + +var fileDescriptor_f8d6a0b399e44d47 = []byte{ + // 563 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x96, 0xd3, 0x1f, 0x45, 0x9b, 0xb6, 0x8a, 0xac, 0x4a, 0x75, 0x23, 0x01, 0x29, 0x02, 0x94, + 0x0a, 0xb1, 0x2b, 0xb9, 0xbc, 0x40, 0x1d, 0x90, 0x8a, 0x10, 0x52, 0x48, 0x24, 0xae, 0xd6, 0xc6, + 0x9e, 0xc4, 0x56, 0xed, 0x5d, 0x77, 0x77, 0x6d, 0xb2, 0x37, 0x6e, 0x1c, 0xb9, 0x72, 0xe6, 0xc8, + 0x23, 0xf0, 0x04, 0x5c, 0x79, 0x0f, 0x4e, 0x1c, 0x39, 0x20, 0xe4, 0xdd, 0xb5, 0x44, 0x0b, 0x87, + 0x4a, 0x5c, 0x12, 0xef, 0xcc, 0x7c, 0xdf, 0x7c, 0x33, 0xdf, 0xa0, 0x10, 0x58,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, 0xbf, 0x6e, 0x41, 0xb3, + 0x0e, 0xd3, 0xad, 0xf6, 0xe8, 0xea, 0x5a, 0x58, 0xbe, 0x70, 0x4c, 0xff, 0x6c, 0xe3, 0x64, 0xa4, + 0xc1, 0xf6, 0xff, 0xb6, 0x79, 0xee, 0x98, 0xa2, 0xf7, 0xde, 0x8f, 0x8f, 0xbf, 0x3e, 0xec, 0x3c, + 0xf1, 0x1f, 0x5b, 0x2e, 0xd8, 0x28, 0x60, 0xb2, 0xbd, 0x57, 0x67, 0x9b, 0xbc, 0xe6, 0xdb, 0x99, + 0xf1, 0xed, 0xcb, 0xbb, 0xaf, 0xdf, 0x76, 0x7b, 0x7d, 0xcf, 0xfe, 0x0f, 0x3d, 0xf4, 0x34, 0xe7, + 0x56, 0x4b, 0x25, 0xf8, 0x46, 0xdf, 0xd2, 0xfd, 0x08, 0x19, 0xfb, 0x67, 0xed, 0x05, 0xcf, 0xbc, + 0xe5, 0xae, 0x39, 0xe5, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xa0, 0x89, 0x9b, 0x1c, + 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.validate.go new file mode 100644 index 000000000..3090ee61d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha/cache.pb.validate.go @@ -0,0 +1,242 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/cache/v2alpha/cache.proto + +package envoy_config_filter_http_cache_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cache_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CacheConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CacheConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetTypedConfig() == nil { + return CacheConfigValidationError{ + field: "TypedConfig", + reason: "value is required", + } + } + + if a := m.GetTypedConfig(); a != nil { + + } + + for idx, item := range m.GetAllowedVaryHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfigValidationError{ + field: fmt.Sprintf("AllowedVaryHeaders[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetKeyCreatorParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfigValidationError{ + field: "KeyCreatorParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxBodyBytes + + return nil +} + +// CacheConfigValidationError is the validation error returned by +// CacheConfig.Validate if the designated constraints aren't met. +type CacheConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CacheConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CacheConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CacheConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CacheConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CacheConfigValidationError) ErrorName() string { return "CacheConfigValidationError" } + +// Error satisfies the builtin error interface +func (e CacheConfigValidationError) 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 %sCacheConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CacheConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CacheConfigValidationError{} + +// Validate checks the field values on CacheConfig_KeyCreatorParams with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CacheConfig_KeyCreatorParams) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExcludeScheme + + // no validation rules for ExcludeHost + + for idx, item := range m.GetQueryParametersIncluded() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfig_KeyCreatorParamsValidationError{ + field: fmt.Sprintf("QueryParametersIncluded[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetQueryParametersExcluded() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfig_KeyCreatorParamsValidationError{ + field: fmt.Sprintf("QueryParametersExcluded[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CacheConfig_KeyCreatorParamsValidationError is the validation error returned +// by CacheConfig_KeyCreatorParams.Validate if the designated constraints +// aren't met. +type CacheConfig_KeyCreatorParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CacheConfig_KeyCreatorParamsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CacheConfig_KeyCreatorParamsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CacheConfig_KeyCreatorParamsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CacheConfig_KeyCreatorParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CacheConfig_KeyCreatorParamsValidationError) ErrorName() string { + return "CacheConfig_KeyCreatorParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e CacheConfig_KeyCreatorParamsValidationError) 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 %sCacheConfig_KeyCreatorParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CacheConfig_KeyCreatorParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CacheConfig_KeyCreatorParamsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.go new file mode 100644 index 000000000..3eda14971 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.go @@ -0,0 +1,134 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/compressor/v2/compressor.proto + +package envoy_config_filter_http_compressor_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Compressor struct { + ContentLength *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` + ContentType []string `protobuf:"bytes,2,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + DisableOnEtagHeader bool `protobuf:"varint,3,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"` + RemoveAcceptEncodingHeader bool `protobuf:"varint,4,opt,name=remove_accept_encoding_header,json=removeAcceptEncodingHeader,proto3" json:"remove_accept_encoding_header,omitempty"` + RuntimeEnabled *core.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Compressor) Reset() { *m = Compressor{} } +func (m *Compressor) String() string { return proto.CompactTextString(m) } +func (*Compressor) ProtoMessage() {} +func (*Compressor) Descriptor() ([]byte, []int) { + return fileDescriptor_8ef4714f5f18ab25, []int{0} +} + +func (m *Compressor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Compressor.Unmarshal(m, b) +} +func (m *Compressor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Compressor.Marshal(b, m, deterministic) +} +func (m *Compressor) XXX_Merge(src proto.Message) { + xxx_messageInfo_Compressor.Merge(m, src) +} +func (m *Compressor) XXX_Size() int { + return xxx_messageInfo_Compressor.Size(m) +} +func (m *Compressor) XXX_DiscardUnknown() { + xxx_messageInfo_Compressor.DiscardUnknown(m) +} + +var xxx_messageInfo_Compressor proto.InternalMessageInfo + +func (m *Compressor) GetContentLength() *wrappers.UInt32Value { + if m != nil { + return m.ContentLength + } + return nil +} + +func (m *Compressor) GetContentType() []string { + if m != nil { + return m.ContentType + } + return nil +} + +func (m *Compressor) GetDisableOnEtagHeader() bool { + if m != nil { + return m.DisableOnEtagHeader + } + return false +} + +func (m *Compressor) GetRemoveAcceptEncodingHeader() bool { + if m != nil { + return m.RemoveAcceptEncodingHeader + } + return false +} + +func (m *Compressor) GetRuntimeEnabled() *core.RuntimeFeatureFlag { + if m != nil { + return m.RuntimeEnabled + } + return nil +} + +func init() { + proto.RegisterType((*Compressor)(nil), "envoy.config.filter.http.compressor.v2.Compressor") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/compressor/v2/compressor.proto", fileDescriptor_8ef4714f5f18ab25) +} + +var fileDescriptor_8ef4714f5f18ab25 = []byte{ + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6b, 0xd4, 0x40, + 0x14, 0xc7, 0xc9, 0xd6, 0x16, 0x9d, 0x6a, 0x2b, 0x11, 0x64, 0x59, 0x5a, 0x59, 0x05, 0x65, 0x41, + 0x9c, 0x81, 0xac, 0xe0, 0xb9, 0x2d, 0x5b, 0x14, 0x44, 0x4b, 0x50, 0xaf, 0xe1, 0x6d, 0xf2, 0x36, + 0x3b, 0x90, 0x9d, 0x37, 0xcc, 0xbc, 0xc4, 0xee, 0xcd, 0x83, 0x77, 0xaf, 0x7e, 0x16, 0xf1, 0x03, + 0x78, 0xf5, 0xab, 0xf8, 0x01, 0x44, 0x92, 0xc9, 0xd6, 0xc2, 0x5e, 0x7a, 0x7c, 0xf9, 0xff, 0x7f, + 0xff, 0xf7, 0x92, 0x7f, 0xc4, 0x2b, 0x34, 0x0d, 0xad, 0x55, 0x4e, 0x66, 0xa1, 0x4b, 0xb5, 0xd0, + 0x15, 0xa3, 0x53, 0x4b, 0x66, 0xab, 0x72, 0x5a, 0x59, 0x87, 0xde, 0x93, 0x53, 0x4d, 0x72, 0x6d, + 0x92, 0xd6, 0x11, 0x53, 0xfc, 0xac, 0x03, 0x65, 0x00, 0x65, 0x00, 0x65, 0x0b, 0xca, 0x6b, 0xd6, + 0x26, 0x19, 0x1d, 0x85, 0x05, 0x60, 0x75, 0x88, 0x71, 0xa8, 0xe6, 0xe0, 0x31, 0xa4, 0x8c, 0x1e, + 0x95, 0x44, 0x65, 0x85, 0xaa, 0x9b, 0xe6, 0xf5, 0x42, 0x7d, 0x76, 0x60, 0x2d, 0x3a, 0xbf, 0xd1, + 0xeb,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x1c, 0x81, 0x6b, 0x87, 0xe7, 0x15, 0x94, 0xe9, 0x41, + 0x4f, 0xcf, 0x02, 0x7c, 0xfa, 0x35, 0xfa, 0xf3, 0xfd, 0xef, 0xb7, 0xdd, 0x17, 0xf1, 0xf3, 0x80, + 0xe3, 0x25, 0xa3, 0xf1, 0xed, 0x67, 0xee, 0x0b, 0xf7, 0xdb, 0x8d, 0x4f, 0x7f, 0x7c, 0xf9, 0xf5, + 0x7b, 0x6f, 0x70, 0x3f, 0x12, 0x2f, 0x35, 0x85, 0xb5, 0xd6, 0xd1, 0xe5, 0x5a, 0xde, 0xec, 0x7f, + 0x39, 0x3d, 0xfc, 0xdf, 0xd7, 0x45, 0xdb, 0xc6, 0x45, 0x34, 0xdf, 0xeb, 0x6a, 0x99, 0xfe, 0x0b, + 0x00, 0x00, 0xff, 0xff, 0x8d, 0x31, 0xb8, 0xb8, 0xac, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.validate.go new file mode 100644 index 000000000..fc2f142c3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2/compressor.pb.validate.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/compressor/v2/compressor.proto + +package envoy_config_filter_http_compressor_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _compressor_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Compressor with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Compressor) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetContentLength()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompressorValidationError{ + field: "ContentLength", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DisableOnEtagHeader + + // no validation rules for RemoveAcceptEncodingHeader + + if v, ok := interface{}(m.GetRuntimeEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompressorValidationError{ + field: "RuntimeEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompressorValidationError is the validation error returned by +// Compressor.Validate if the designated constraints aren't met. +type CompressorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompressorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompressorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompressorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompressorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompressorValidationError) ErrorName() string { return "CompressorValidationError" } + +// Error satisfies the builtin error interface +func (e CompressorValidationError) 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 %sCompressor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompressorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompressorValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.go new file mode 100644 index 000000000..7f8208f9b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/cors/v2/cors.proto + +package envoy_config_filter_http_cors_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Cors struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cors) Reset() { *m = Cors{} } +func (m *Cors) String() string { return proto.CompactTextString(m) } +func (*Cors) ProtoMessage() {} +func (*Cors) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba80e325986c17c, []int{0} +} + +func (m *Cors) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Cors.Unmarshal(m, b) +} +func (m *Cors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Cors.Marshal(b, m, deterministic) +} +func (m *Cors) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cors.Merge(m, src) +} +func (m *Cors) XXX_Size() int { + return xxx_messageInfo_Cors.Size(m) +} +func (m *Cors) XXX_DiscardUnknown() { + xxx_messageInfo_Cors.DiscardUnknown(m) +} + +var xxx_messageInfo_Cors proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Cors)(nil), "envoy.config.filter.http.cors.v2.Cors") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/cors/v2/cors.proto", fileDescriptor_8ba80e325986c17c) +} + +var fileDescriptor_8ba80e325986c17c = []byte{ + // 196 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0xce, 0x2f, 0x2a, 0xd6, 0x2f, 0x33, 0x02, 0xd3, 0x7a, 0x05, + 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x0a, 0x60, 0xc5, 0x7a, 0x10, 0xc5, 0x7a, 0x10, 0xc5, 0x7a, 0x20, + 0xc5, 0x7a, 0x60, 0x45, 0x65, 0x46, 0x52, 0x72, 0xa5, 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, + 0xf9, 0x25, 0x89, 0x25, 0x99, 0xf9, 0x79, 0xc5, 0xfa, 0xb9, 0x99, 0xe9, 0x45, 0x89, 0x25, 0xa9, + 0x10, 0x13, 0xa4, 0x64, 0x31, 0xe4, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0xa1, 0x16, 0x28, 0xb1, 0x71, + 0xb1, 0x38, 0xe7, 0x17, 0x15, 0x3b, 0x15, 0x7d, 0x9a, 0xf1, 0xaf, 0x9f, 0x55, 0x5d, 0x48, 0x15, + 0x62, 0x61, 0x6a, 0x45, 0x49, 0x6a, 0x5e, 0x31, 0x48, 0x39, 0xd4, 0xd2, 0x62, 0x64, 0x5b, 0x8d, + 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc8, 0xa5, 0x97, 0x99, 0xaf, 0x07, 0xd6, 0x51, + 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0xc8, 0xb5, 0x4e, 0x9c, 0x20, 0xcb, 0x02, 0x40, 0x36, 0x07, + 0x30, 0x26, 0xb1, 0x81, 0x9d, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x27, 0x78, 0x8b, 0x10, + 0x12, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.validate.go new file mode 100644 index 000000000..f10af4e96 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2/cors.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/cors/v2/cors.proto + +package envoy_config_filter_http_cors_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cors_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Cors with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Cors) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CorsValidationError is the validation error returned by Cors.Validate if the +// designated constraints aren't met. +type CorsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CorsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CorsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CorsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CorsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CorsValidationError) ErrorName() string { return "CorsValidationError" } + +// Error satisfies the builtin error interface +func (e CorsValidationError) 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 %sCors.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CorsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CorsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.go new file mode 100644 index 000000000..ecb593ed6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.go @@ -0,0 +1,116 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/csrf/v2/csrf.proto + +package envoy_config_filter_http_csrf_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CsrfPolicy struct { + FilterEnabled *core.RuntimeFractionalPercent `protobuf:"bytes,1,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"` + ShadowEnabled *core.RuntimeFractionalPercent `protobuf:"bytes,2,opt,name=shadow_enabled,json=shadowEnabled,proto3" json:"shadow_enabled,omitempty"` + AdditionalOrigins []*matcher.StringMatcher `protobuf:"bytes,3,rep,name=additional_origins,json=additionalOrigins,proto3" json:"additional_origins,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CsrfPolicy) Reset() { *m = CsrfPolicy{} } +func (m *CsrfPolicy) String() string { return proto.CompactTextString(m) } +func (*CsrfPolicy) ProtoMessage() {} +func (*CsrfPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_a9146cdf92353980, []int{0} +} + +func (m *CsrfPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CsrfPolicy.Unmarshal(m, b) +} +func (m *CsrfPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CsrfPolicy.Marshal(b, m, deterministic) +} +func (m *CsrfPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_CsrfPolicy.Merge(m, src) +} +func (m *CsrfPolicy) XXX_Size() int { + return xxx_messageInfo_CsrfPolicy.Size(m) +} +func (m *CsrfPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_CsrfPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_CsrfPolicy proto.InternalMessageInfo + +func (m *CsrfPolicy) GetFilterEnabled() *core.RuntimeFractionalPercent { + if m != nil { + return m.FilterEnabled + } + return nil +} + +func (m *CsrfPolicy) GetShadowEnabled() *core.RuntimeFractionalPercent { + if m != nil { + return m.ShadowEnabled + } + return nil +} + +func (m *CsrfPolicy) GetAdditionalOrigins() []*matcher.StringMatcher { + if m != nil { + return m.AdditionalOrigins + } + return nil +} + +func init() { + proto.RegisterType((*CsrfPolicy)(nil), "envoy.config.filter.http.csrf.v2.CsrfPolicy") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/csrf/v2/csrf.proto", fileDescriptor_a9146cdf92353980) +} + +var fileDescriptor_a9146cdf92353980 = []byte{ + // 383 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcd, 0x6a, 0xdb, 0x40, + 0x14, 0x85, 0x91, 0x8c, 0x4d, 0x2b, 0x63, 0xe3, 0x6a, 0x53, 0x63, 0xfa, 0xe3, 0x16, 0x4a, 0x0d, + 0x86, 0x19, 0x90, 0xdf, 0x40, 0xa5, 0xdd, 0x95, 0x0a, 0x75, 0x5b, 0x30, 0xd7, 0xd2, 0x48, 0x1e, + 0x90, 0x67, 0xc4, 0xcc, 0xb5, 0x6a, 0xed, 0xb2, 0xce, 0x26, 0x59, 0xe6, 0x59, 0xf2, 0x04, 0xd9, + 0xe6, 0x55, 0xb2, 0xcc, 0x22, 0x04, 0xe9, 0xca, 0x49, 0x20, 0x8b, 0x90, 0x95, 0x24, 0xee, 0x39, + 0xdf, 0x5c, 0x9d, 0x33, 0xde, 0x52, 0xa8, 0x4a, 0xd7, 0x3c, 0xd1, 0x2a, 0x93, 0x39, 0xcf, 0x64, + 0x81, 0xc2, 0xf0, 0x2d, 0x62, 0xc9, 0x13, 0x6b, 0x32, 0x5e, 0x05, 0xed, 0x93, 0x95, 0x46, 0xa3, + 0xf6, 0xe7, 0xad, 0x98, 0x91, 0x98, 0x91, 0x98, 0x35, 0x62, 0xd6, 0x8a, 0xaa, 0x60, 0xf6, 0x81, + 0x70, 0x50, 0xca, 0xd6, 0xaa, 0x8d, 0xe0, 0x1b, 0xb0, 0x82, 0xfc, 0xb3, 0xcf, 0x34, 0xc5, 0xba, + 0x14, 0x7c, 0x07, 0x98, 0x6c, 0x85, 0xe1, 0x16, 0x8d, 0x54, 0x79, 0x27, 0xf8, 0xb4, 0x4f, 0x4b, + 0xe0, 0xa0, 0x94, 0x46, 0x40, 0xa9, 0x95, 0xe5, 0x3b, 0x99, 0x1b, 0xc0, 0x23, 0xe0, 0xe3, 0xb3, + 0xb9, 0x45, 0xc0, 0xbd, 0xed, 0xc6, 0xef, 0x2b, 0x28, 0x64, 0x0a, 0x28, 0xf8, 0xf1, 0x85, 0x06, + 0x5f, 0xcf, 0x5d, 0xcf, 0xfb, 0x61, 0x4d, 0x16, 0xe9, 0x42, 0x26, 0xb5, 0xff, 0xcf, 0x1b, 0xd3, + 0xf2, 0x6b, 0xa1, 0x60, 0x53, 0x88, 0x74, 0xea, 0xcc, 0x9d, 0xc5, 0x30, 0x58, 0x32, 0xfa, 0x41, + 0x28, 0x25, 0xab, 0x02, 0xd6, 0xac, 0xcf, 0xe2, 0xbd, 0x42, 0xb9, 0x13, 0xbf, 0x0c, 0x24, 0xcd, + 0x89, 0x50, 0x44, 0xc2, 0x24, 0x42, 0x61, 0xf8, 0xe6, 0x36, 0xec, 0x9f, 0x3a, 0xee, 0xc4, 0x89, + 0x47, 0x04, 0xfb, 0x49, 0x2c, 0x3f, 0xf6, 0xc6, 0x76, 0x0b, 0xa9, 0xfe, 0xff, 0x40, 0x77, 0x5f, + 0x4d, 0x8f, 0x47, 0x84, 0x38, 0x32, 0x23, 0xcf, 0x87, 0x34, 0x95, 0xa4, 0x59, 0x6b, 0x23, 0x73, + 0xa9, 0xec, 0xb4, 0x37, 0xef, 0x2d, 0x86, 0xc1, 0x97, 0x8e, 0xdb, 0xc4, 0xca, 0xba, 0x58, 0xd9, + 0xdf, 0x36, 0xd6, 0xdf, 0xf4, 0x15, 0xbf, 0x7b, 0x34, 0xff, 0x21, 0x6f, 0x68, 0x6e, 0x2e, 0xee, + 0xce, 0xfa, 0xdf, 0xfd, 0x6f, 0x64, 0x16, 0x07, 0x14, 0xca, 0x36, 0x91, 0x76, 0xbd, 0xda, 0xa7, + 0xc5, 0xae, 0x2e, 0x4f, 0xae, 0xae, 0x07, 0xee, 0xc4, 0xf1, 0x98, 0xd4, 0x74, 0x5c, 0x69, 0xf4, + 0xa1, 0x66, 0x2f, 0x5d, 0x88, 0xf0, 0x6d, 0x1b, 0x7b, 0x53, 0x42, 0xe4, 0x6c, 0x06, 0x6d, 0x1b, + 0xab, 0xfb, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x40, 0x82, 0x48, 0x75, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.validate.go new file mode 100644 index 000000000..1e1d58df1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2/csrf.pb.validate.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/csrf/v2/csrf.proto + +package envoy_config_filter_http_csrf_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _csrf_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CsrfPolicy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *CsrfPolicy) Validate() error { + if m == nil { + return nil + } + + if m.GetFilterEnabled() == nil { + return CsrfPolicyValidationError{ + field: "FilterEnabled", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetFilterEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: "FilterEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetShadowEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: "ShadowEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetAdditionalOrigins() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: fmt.Sprintf("AdditionalOrigins[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CsrfPolicyValidationError is the validation error returned by +// CsrfPolicy.Validate if the designated constraints aren't met. +type CsrfPolicyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CsrfPolicyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CsrfPolicyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CsrfPolicyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CsrfPolicyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CsrfPolicyValidationError) ErrorName() string { return "CsrfPolicyValidationError" } + +// Error satisfies the builtin error interface +func (e CsrfPolicyValidationError) 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 %sCsrfPolicy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CsrfPolicyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CsrfPolicyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.go new file mode 100644 index 000000000..5f2793cb3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.proto + +package envoy_config_filter_http_dynamic_forward_proxy_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + DnsCacheConfig *v2alpha.DnsCacheConfig `protobuf:"bytes,1,opt,name=dns_cache_config,json=dnsCacheConfig,proto3" json:"dns_cache_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_85a2356b260c47da, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetDnsCacheConfig() *v2alpha.DnsCacheConfig { + if m != nil { + return m.DnsCacheConfig + } + return nil +} + +type PerRouteConfig struct { + // Types that are valid to be assigned to HostRewriteSpecifier: + // *PerRouteConfig_HostRewrite + // *PerRouteConfig_AutoHostRewriteHeader + HostRewriteSpecifier isPerRouteConfig_HostRewriteSpecifier `protobuf_oneof:"host_rewrite_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerRouteConfig) Reset() { *m = PerRouteConfig{} } +func (m *PerRouteConfig) String() string { return proto.CompactTextString(m) } +func (*PerRouteConfig) ProtoMessage() {} +func (*PerRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_85a2356b260c47da, []int{1} +} + +func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerRouteConfig.Unmarshal(m, b) +} +func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerRouteConfig.Marshal(b, m, deterministic) +} +func (m *PerRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerRouteConfig.Merge(m, src) +} +func (m *PerRouteConfig) XXX_Size() int { + return xxx_messageInfo_PerRouteConfig.Size(m) +} +func (m *PerRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerRouteConfig proto.InternalMessageInfo + +type isPerRouteConfig_HostRewriteSpecifier interface { + isPerRouteConfig_HostRewriteSpecifier() +} + +type PerRouteConfig_HostRewrite struct { + HostRewrite string `protobuf:"bytes,1,opt,name=host_rewrite,json=hostRewrite,proto3,oneof"` +} + +type PerRouteConfig_AutoHostRewriteHeader struct { + AutoHostRewriteHeader string `protobuf:"bytes,2,opt,name=auto_host_rewrite_header,json=autoHostRewriteHeader,proto3,oneof"` +} + +func (*PerRouteConfig_HostRewrite) isPerRouteConfig_HostRewriteSpecifier() {} + +func (*PerRouteConfig_AutoHostRewriteHeader) isPerRouteConfig_HostRewriteSpecifier() {} + +func (m *PerRouteConfig) GetHostRewriteSpecifier() isPerRouteConfig_HostRewriteSpecifier { + if m != nil { + return m.HostRewriteSpecifier + } + return nil +} + +func (m *PerRouteConfig) GetHostRewrite() string { + if x, ok := m.GetHostRewriteSpecifier().(*PerRouteConfig_HostRewrite); ok { + return x.HostRewrite + } + return "" +} + +func (m *PerRouteConfig) GetAutoHostRewriteHeader() string { + if x, ok := m.GetHostRewriteSpecifier().(*PerRouteConfig_AutoHostRewriteHeader); ok { + return x.AutoHostRewriteHeader + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PerRouteConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PerRouteConfig_HostRewrite)(nil), + (*PerRouteConfig_AutoHostRewriteHeader)(nil), + } +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.config.filter.http.dynamic_forward_proxy.v2alpha.FilterConfig") + proto.RegisterType((*PerRouteConfig)(nil), "envoy.config.filter.http.dynamic_forward_proxy.v2alpha.PerRouteConfig") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.proto", fileDescriptor_85a2356b260c47da) +} + +var fileDescriptor_85a2356b260c47da = []byte{ + // 410 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xbd, 0xae, 0xd3, 0x30, + 0x14, 0xc7, 0xaf, 0x2b, 0xdd, 0x0a, 0xdc, 0xaa, 0xaa, 0x02, 0x2d, 0x51, 0xf9, 0x10, 0xea, 0xc4, + 0x14, 0x4b, 0xad, 0x84, 0x58, 0x9b, 0x56, 0x55, 0xc6, 0x28, 0x03, 0x6b, 0x64, 0x12, 0xa7, 0xb1, + 0x94, 0xd8, 0x91, 0x7d, 0xd2, 0x8f, 0x8d, 0x85, 0x85, 0x85, 0x95, 0x47, 0xe0, 0x19, 0xd8, 0x91, + 0x58, 0x79, 0x15, 0x46, 0x06, 0x84, 0x62, 0xa7, 0x40, 0x44, 0x55, 0xa4, 0xbb, 0x45, 0xe7, 0x77, + 0xfc, 0xf3, 0x39, 0xf1, 0x1f, 0x47, 0x4c, 0xec, 0xe5, 0x89, 0x24, 0x52, 0x64, 0x7c, 0x47, 0x32, + 0x5e, 0x00, 0x53, 0x24, 0x07, 0xa8, 0x48, 0x7a, 0x12, 0xb4, 0xe4, 0x49, 0x9c, 0x49, 0x75, 0xa0, + 0x2a, 0x8d, 0x2b, 0x25, 0x8f, 0x27, 0xb2, 0x5f, 0xd0, 0xa2, 0xca, 0xe9, 0x65, 0xea, 0x55, 0x4a, + 0x82, 0x74, 0x5e, 0x1a, 0xa7, 0x67, 0x9d, 0x9e, 0x75, 0x7a, 0x8d, 0xd3, 0xbb, 0x7c, 0xaa, 0x75, + 0xce, 0x56, 0x9d, 0x59, 0x12, 0x59, 0x96, 0x52, 0xfc, 0x6f, 0x0c, 0xa1, 0xe3, 0x84, 0x26, 0x39, + 0xb3, 0x57, 0xcf, 0x9e, 0xd5, 0x69, 0x45, 0x09, 0x15, 0x42, 0x02, 0x05, 0x2e, 0x85, 0x26, 0x25, + 0xdf, 0x29, 0x0a, 0x67, 0xfe, 0xf4, 0x1f, 0xae, 0x81, 0x42, 0xad, 0x5b, 0xfc, 0x68, 0x4f, 0x0b, + 0x9e, 0x52, 0x60, 0xe4, 0xfc, 0x61, 0xc1, 0xfc, 0x1d, 0xc2, 0xc3, 0xad, 0x59, 0x64, 0x6d, 0xa6, + 0x73, 0x6a, 0x3c, 0xfe, 0x7d, 0x77, 0x6c, 0x27, 0x76, 0xd1, 0x73, 0xf4, 0x62, 0xb0, 0x58, 0x79, + 0x9d, 0xf5, 0xed, 0x1a, 0xd7, 0x37, 0xf7, 0x36, 0x42, 0xaf, 0x1b, 0x93, 0x95, 0xfb, 0xf7, 0x7e, + 0xf8, 0xb7, 0xef, 0x51, 0x6f, 0x8c, 0xa2, 0x51, 0xda, 0x21, 0xf3, 0x2f, 0x08, 0x8f, 0x42, 0xa6, + 0x22, 0x59, 0x43, 0x5b, 0x72, 0x56, 0x78, 0x98, 0x4b, 0x0d, 0xb1, 0x62, 0x07, 0xc5, 0x81, 0x99, + 0x29, 0xee, 0xfb, 0x4f, 0xbe, 0x7f, 0xfc, 0xf9, 0xe1, 0x76, 0x8a, 0x1f, 0xfe, 0xcd, 0xe2, 0x82, + 0x03, 0x53, 0xb4, 0x08, 0x6e, 0xa2, 0x41, 0x53, 0x8f, 0x6c, 0xd9, 0x79, 0x8d, 0x5d, 0x5a, 0x83, + 0x8c, 0x3b, 0xbd, 0x39, 0xa3, 0x29, 0x53, 0x6e, 0xcf, 0xe8, 0x1e, 0x1b, 0xdd, 0x04, 0x3f, 0xb8, + 0xd0, 0x12, 0xdc, 0x44, 0x93, 0xe6, 0x78, 0xf0, 0xc7, 0x18, 0x18, 0xe0, 0xbb, 0x78, 0xda, 0xe9, + 0xd7, 0x15, 0x4b, 0x78, 0xc6, 0x99, 0xf2, 0x3f, 0x21, 0x23, 0x7c, 0x75, 0xce, 0x0a, 0x3b, 0x02, + 0x13, 0xba, 0x79, 0x90, 0x36, 0x2f, 0xfa, 0x6a, 0x60, 0x96, 0x9f, 0xdf, 0x7e, 0xfd, 0xd6, 0xef, + 0x8d, 0x11, 0xde, 0x70, 0x69, 0xff, 0xb7, 0x25, 0x77, 0x4b, 0x9e, 0xef, 0x6e, 0x2c, 0xde, 0x5a, + 0x1a, 0x36, 0x30, 0x6c, 0x1e, 0x3e, 0x44, 0x6f, 0xfa, 0x26, 0x01, 0xcb, 0x5f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x67, 0x0c, 0x51, 0x47, 0x2a, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.validate.go new file mode 100644 index 000000000..7ff07c91e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.pb.validate.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/dynamic_forward_proxy/v2alpha/dynamic_forward_proxy.proto + +package envoy_config_filter_http_dynamic_forward_proxy_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dynamic_forward_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetDnsCacheConfig() == nil { + return FilterConfigValidationError{ + field: "DnsCacheConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetDnsCacheConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "DnsCacheConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on PerRouteConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerRouteConfig) Validate() error { + if m == nil { + return nil + } + + switch m.HostRewriteSpecifier.(type) { + + case *PerRouteConfig_HostRewrite: + // no validation rules for HostRewrite + + case *PerRouteConfig_AutoHostRewriteHeader: + // no validation rules for AutoHostRewriteHeader + + } + + return nil +} + +// PerRouteConfigValidationError is the validation error returned by +// PerRouteConfig.Validate if the designated constraints aren't met. +type PerRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerRouteConfigValidationError) ErrorName() string { return "PerRouteConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerRouteConfigValidationError) 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 %sPerRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerRouteConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.go new file mode 100644 index 000000000..987a33228 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/dynamo/v2/dynamo.proto + +package envoy_config_filter_http_dynamo_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Dynamo struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Dynamo) Reset() { *m = Dynamo{} } +func (m *Dynamo) String() string { return proto.CompactTextString(m) } +func (*Dynamo) ProtoMessage() {} +func (*Dynamo) Descriptor() ([]byte, []int) { + return fileDescriptor_37ee82f4c86cc210, []int{0} +} + +func (m *Dynamo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dynamo.Unmarshal(m, b) +} +func (m *Dynamo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dynamo.Marshal(b, m, deterministic) +} +func (m *Dynamo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dynamo.Merge(m, src) +} +func (m *Dynamo) XXX_Size() int { + return xxx_messageInfo_Dynamo.Size(m) +} +func (m *Dynamo) XXX_DiscardUnknown() { + xxx_messageInfo_Dynamo.DiscardUnknown(m) +} + +var xxx_messageInfo_Dynamo proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Dynamo)(nil), "envoy.config.filter.http.dynamo.v2.Dynamo") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/dynamo/v2/dynamo.proto", fileDescriptor_37ee82f4c86cc210) +} + +var fileDescriptor_37ee82f4c86cc210 = []byte{ + // 198 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, 0xd7, 0x2f, 0x33, 0x82, 0xb2, + 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x94, 0xc0, 0x1a, 0xf4, 0x20, 0x1a, 0xf4, 0x20, 0x1a, + 0xf4, 0x40, 0x1a, 0xf4, 0xa0, 0xca, 0xca, 0x8c, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, 0xf5, 0x13, + 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, 0x8b, 0x12, + 0x4b, 0x52, 0x21, 0x66, 0x48, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xa4, + 0x95, 0x38, 0xb8, 0xd8, 0x5c, 0xc0, 0x66, 0x39, 0x55, 0x7c, 0x9a, 0xf1, 0xaf, 0x9f, 0x55, 0x53, + 0x48, 0x1d, 0x62, 0x69, 0x6a, 0x45, 0x49, 0x6a, 0x5e, 0x31, 0x48, 0x03, 0xd4, 0xe2, 0x62, 0x54, + 0x9b, 0x8d, 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc8, 0x65, 0x90, 0x99, 0xaf, 0x07, + 0xd6, 0x53, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0xd8, 0xcd, 0x4e, 0xdc, 0x10, 0x2b, 0x03, 0x40, + 0x2e, 0x08, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xc5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x48, + 0x26, 0xf0, 0x20, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.validate.go new file mode 100644 index 000000000..4670ebbe0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2/dynamo.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/dynamo/v2/dynamo.proto + +package envoy_config_filter_http_dynamo_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dynamo_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Dynamo with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Dynamo) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DynamoValidationError is the validation error returned by Dynamo.Validate if +// the designated constraints aren't met. +type DynamoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamoValidationError) ErrorName() string { return "DynamoValidationError" } + +// Error satisfies the builtin error interface +func (e DynamoValidationError) 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 %sDynamo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamoValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.go new file mode 100644 index 000000000..82ae2e993 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.go @@ -0,0 +1,584 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/ext_authz/v2/ext_authz.proto + +package envoy_config_filter_http_ext_authz_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ExtAuthz struct { + // Types that are valid to be assigned to Services: + // *ExtAuthz_GrpcService + // *ExtAuthz_HttpService + Services isExtAuthz_Services `protobuf_oneof:"services"` + FailureModeAllow bool `protobuf:"varint,2,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"` + UseAlpha bool `protobuf:"varint,4,opt,name=use_alpha,json=useAlpha,proto3" json:"use_alpha,omitempty"` // Deprecated: Do not use. + WithRequestBody *BufferSettings `protobuf:"bytes,5,opt,name=with_request_body,json=withRequestBody,proto3" json:"with_request_body,omitempty"` + ClearRouteCache bool `protobuf:"varint,6,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"` + StatusOnError *_type.HttpStatus `protobuf:"bytes,7,opt,name=status_on_error,json=statusOnError,proto3" json:"status_on_error,omitempty"` + MetadataContextNamespaces []string `protobuf:"bytes,8,rep,name=metadata_context_namespaces,json=metadataContextNamespaces,proto3" json:"metadata_context_namespaces,omitempty"` + FilterEnabled *core.RuntimeFractionalPercent `protobuf:"bytes,9,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"` + IncludePeerCertificate bool `protobuf:"varint,10,opt,name=include_peer_certificate,json=includePeerCertificate,proto3" json:"include_peer_certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthz) Reset() { *m = ExtAuthz{} } +func (m *ExtAuthz) String() string { return proto.CompactTextString(m) } +func (*ExtAuthz) ProtoMessage() {} +func (*ExtAuthz) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{0} +} + +func (m *ExtAuthz) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthz.Unmarshal(m, b) +} +func (m *ExtAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthz.Marshal(b, m, deterministic) +} +func (m *ExtAuthz) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthz.Merge(m, src) +} +func (m *ExtAuthz) XXX_Size() int { + return xxx_messageInfo_ExtAuthz.Size(m) +} +func (m *ExtAuthz) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthz.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthz proto.InternalMessageInfo + +type isExtAuthz_Services interface { + isExtAuthz_Services() +} + +type ExtAuthz_GrpcService struct { + GrpcService *core.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3,oneof"` +} + +type ExtAuthz_HttpService struct { + HttpService *HttpService `protobuf:"bytes,3,opt,name=http_service,json=httpService,proto3,oneof"` +} + +func (*ExtAuthz_GrpcService) isExtAuthz_Services() {} + +func (*ExtAuthz_HttpService) isExtAuthz_Services() {} + +func (m *ExtAuthz) GetServices() isExtAuthz_Services { + if m != nil { + return m.Services + } + return nil +} + +func (m *ExtAuthz) GetGrpcService() *core.GrpcService { + if x, ok := m.GetServices().(*ExtAuthz_GrpcService); ok { + return x.GrpcService + } + return nil +} + +func (m *ExtAuthz) GetHttpService() *HttpService { + if x, ok := m.GetServices().(*ExtAuthz_HttpService); ok { + return x.HttpService + } + return nil +} + +func (m *ExtAuthz) GetFailureModeAllow() bool { + if m != nil { + return m.FailureModeAllow + } + return false +} + +// Deprecated: Do not use. +func (m *ExtAuthz) GetUseAlpha() bool { + if m != nil { + return m.UseAlpha + } + return false +} + +func (m *ExtAuthz) GetWithRequestBody() *BufferSettings { + if m != nil { + return m.WithRequestBody + } + return nil +} + +func (m *ExtAuthz) GetClearRouteCache() bool { + if m != nil { + return m.ClearRouteCache + } + return false +} + +func (m *ExtAuthz) GetStatusOnError() *_type.HttpStatus { + if m != nil { + return m.StatusOnError + } + return nil +} + +func (m *ExtAuthz) GetMetadataContextNamespaces() []string { + if m != nil { + return m.MetadataContextNamespaces + } + return nil +} + +func (m *ExtAuthz) GetFilterEnabled() *core.RuntimeFractionalPercent { + if m != nil { + return m.FilterEnabled + } + return nil +} + +func (m *ExtAuthz) GetIncludePeerCertificate() bool { + if m != nil { + return m.IncludePeerCertificate + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExtAuthz) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExtAuthz_GrpcService)(nil), + (*ExtAuthz_HttpService)(nil), + } +} + +type BufferSettings struct { + MaxRequestBytes uint32 `protobuf:"varint,1,opt,name=max_request_bytes,json=maxRequestBytes,proto3" json:"max_request_bytes,omitempty"` + AllowPartialMessage bool `protobuf:"varint,2,opt,name=allow_partial_message,json=allowPartialMessage,proto3" json:"allow_partial_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BufferSettings) Reset() { *m = BufferSettings{} } +func (m *BufferSettings) String() string { return proto.CompactTextString(m) } +func (*BufferSettings) ProtoMessage() {} +func (*BufferSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{1} +} + +func (m *BufferSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BufferSettings.Unmarshal(m, b) +} +func (m *BufferSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BufferSettings.Marshal(b, m, deterministic) +} +func (m *BufferSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferSettings.Merge(m, src) +} +func (m *BufferSettings) XXX_Size() int { + return xxx_messageInfo_BufferSettings.Size(m) +} +func (m *BufferSettings) XXX_DiscardUnknown() { + xxx_messageInfo_BufferSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_BufferSettings proto.InternalMessageInfo + +func (m *BufferSettings) GetMaxRequestBytes() uint32 { + if m != nil { + return m.MaxRequestBytes + } + return 0 +} + +func (m *BufferSettings) GetAllowPartialMessage() bool { + if m != nil { + return m.AllowPartialMessage + } + return false +} + +type HttpService struct { + ServerUri *core.HttpUri `protobuf:"bytes,1,opt,name=server_uri,json=serverUri,proto3" json:"server_uri,omitempty"` + PathPrefix string `protobuf:"bytes,2,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` + AuthorizationRequest *AuthorizationRequest `protobuf:"bytes,7,opt,name=authorization_request,json=authorizationRequest,proto3" json:"authorization_request,omitempty"` + AuthorizationResponse *AuthorizationResponse `protobuf:"bytes,8,opt,name=authorization_response,json=authorizationResponse,proto3" json:"authorization_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpService) Reset() { *m = HttpService{} } +func (m *HttpService) String() string { return proto.CompactTextString(m) } +func (*HttpService) ProtoMessage() {} +func (*HttpService) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{2} +} + +func (m *HttpService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpService.Unmarshal(m, b) +} +func (m *HttpService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpService.Marshal(b, m, deterministic) +} +func (m *HttpService) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpService.Merge(m, src) +} +func (m *HttpService) XXX_Size() int { + return xxx_messageInfo_HttpService.Size(m) +} +func (m *HttpService) XXX_DiscardUnknown() { + xxx_messageInfo_HttpService.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpService proto.InternalMessageInfo + +func (m *HttpService) GetServerUri() *core.HttpUri { + if m != nil { + return m.ServerUri + } + return nil +} + +func (m *HttpService) GetPathPrefix() string { + if m != nil { + return m.PathPrefix + } + return "" +} + +func (m *HttpService) GetAuthorizationRequest() *AuthorizationRequest { + if m != nil { + return m.AuthorizationRequest + } + return nil +} + +func (m *HttpService) GetAuthorizationResponse() *AuthorizationResponse { + if m != nil { + return m.AuthorizationResponse + } + return nil +} + +type AuthorizationRequest struct { + AllowedHeaders *matcher.ListStringMatcher `protobuf:"bytes,1,opt,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"` + HeadersToAdd []*core.HeaderValue `protobuf:"bytes,2,rep,name=headers_to_add,json=headersToAdd,proto3" json:"headers_to_add,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuthorizationRequest) Reset() { *m = AuthorizationRequest{} } +func (m *AuthorizationRequest) String() string { return proto.CompactTextString(m) } +func (*AuthorizationRequest) ProtoMessage() {} +func (*AuthorizationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{3} +} + +func (m *AuthorizationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthorizationRequest.Unmarshal(m, b) +} +func (m *AuthorizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthorizationRequest.Marshal(b, m, deterministic) +} +func (m *AuthorizationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizationRequest.Merge(m, src) +} +func (m *AuthorizationRequest) XXX_Size() int { + return xxx_messageInfo_AuthorizationRequest.Size(m) +} +func (m *AuthorizationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizationRequest proto.InternalMessageInfo + +func (m *AuthorizationRequest) GetAllowedHeaders() *matcher.ListStringMatcher { + if m != nil { + return m.AllowedHeaders + } + return nil +} + +func (m *AuthorizationRequest) GetHeadersToAdd() []*core.HeaderValue { + if m != nil { + return m.HeadersToAdd + } + return nil +} + +type AuthorizationResponse struct { + AllowedUpstreamHeaders *matcher.ListStringMatcher `protobuf:"bytes,1,opt,name=allowed_upstream_headers,json=allowedUpstreamHeaders,proto3" json:"allowed_upstream_headers,omitempty"` + AllowedClientHeaders *matcher.ListStringMatcher `protobuf:"bytes,2,opt,name=allowed_client_headers,json=allowedClientHeaders,proto3" json:"allowed_client_headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuthorizationResponse) Reset() { *m = AuthorizationResponse{} } +func (m *AuthorizationResponse) String() string { return proto.CompactTextString(m) } +func (*AuthorizationResponse) ProtoMessage() {} +func (*AuthorizationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{4} +} + +func (m *AuthorizationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthorizationResponse.Unmarshal(m, b) +} +func (m *AuthorizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthorizationResponse.Marshal(b, m, deterministic) +} +func (m *AuthorizationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizationResponse.Merge(m, src) +} +func (m *AuthorizationResponse) XXX_Size() int { + return xxx_messageInfo_AuthorizationResponse.Size(m) +} +func (m *AuthorizationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizationResponse proto.InternalMessageInfo + +func (m *AuthorizationResponse) GetAllowedUpstreamHeaders() *matcher.ListStringMatcher { + if m != nil { + return m.AllowedUpstreamHeaders + } + return nil +} + +func (m *AuthorizationResponse) GetAllowedClientHeaders() *matcher.ListStringMatcher { + if m != nil { + return m.AllowedClientHeaders + } + return nil +} + +type ExtAuthzPerRoute struct { + // Types that are valid to be assigned to Override: + // *ExtAuthzPerRoute_Disabled + // *ExtAuthzPerRoute_CheckSettings + Override isExtAuthzPerRoute_Override `protobuf_oneof:"override"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthzPerRoute) Reset() { *m = ExtAuthzPerRoute{} } +func (m *ExtAuthzPerRoute) String() string { return proto.CompactTextString(m) } +func (*ExtAuthzPerRoute) ProtoMessage() {} +func (*ExtAuthzPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{5} +} + +func (m *ExtAuthzPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthzPerRoute.Unmarshal(m, b) +} +func (m *ExtAuthzPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthzPerRoute.Marshal(b, m, deterministic) +} +func (m *ExtAuthzPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthzPerRoute.Merge(m, src) +} +func (m *ExtAuthzPerRoute) XXX_Size() int { + return xxx_messageInfo_ExtAuthzPerRoute.Size(m) +} +func (m *ExtAuthzPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthzPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthzPerRoute proto.InternalMessageInfo + +type isExtAuthzPerRoute_Override interface { + isExtAuthzPerRoute_Override() +} + +type ExtAuthzPerRoute_Disabled struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"` +} + +type ExtAuthzPerRoute_CheckSettings struct { + CheckSettings *CheckSettings `protobuf:"bytes,2,opt,name=check_settings,json=checkSettings,proto3,oneof"` +} + +func (*ExtAuthzPerRoute_Disabled) isExtAuthzPerRoute_Override() {} + +func (*ExtAuthzPerRoute_CheckSettings) isExtAuthzPerRoute_Override() {} + +func (m *ExtAuthzPerRoute) GetOverride() isExtAuthzPerRoute_Override { + if m != nil { + return m.Override + } + return nil +} + +func (m *ExtAuthzPerRoute) GetDisabled() bool { + if x, ok := m.GetOverride().(*ExtAuthzPerRoute_Disabled); ok { + return x.Disabled + } + return false +} + +func (m *ExtAuthzPerRoute) GetCheckSettings() *CheckSettings { + if x, ok := m.GetOverride().(*ExtAuthzPerRoute_CheckSettings); ok { + return x.CheckSettings + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExtAuthzPerRoute) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExtAuthzPerRoute_Disabled)(nil), + (*ExtAuthzPerRoute_CheckSettings)(nil), + } +} + +type CheckSettings struct { + ContextExtensions map[string]string `protobuf:"bytes,1,rep,name=context_extensions,json=contextExtensions,proto3" json:"context_extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckSettings) Reset() { *m = CheckSettings{} } +func (m *CheckSettings) String() string { return proto.CompactTextString(m) } +func (*CheckSettings) ProtoMessage() {} +func (*CheckSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_861cd76675296973, []int{6} +} + +func (m *CheckSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckSettings.Unmarshal(m, b) +} +func (m *CheckSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckSettings.Marshal(b, m, deterministic) +} +func (m *CheckSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSettings.Merge(m, src) +} +func (m *CheckSettings) XXX_Size() int { + return xxx_messageInfo_CheckSettings.Size(m) +} +func (m *CheckSettings) XXX_DiscardUnknown() { + xxx_messageInfo_CheckSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckSettings proto.InternalMessageInfo + +func (m *CheckSettings) GetContextExtensions() map[string]string { + if m != nil { + return m.ContextExtensions + } + return nil +} + +func init() { + proto.RegisterType((*ExtAuthz)(nil), "envoy.config.filter.http.ext_authz.v2.ExtAuthz") + proto.RegisterType((*BufferSettings)(nil), "envoy.config.filter.http.ext_authz.v2.BufferSettings") + proto.RegisterType((*HttpService)(nil), "envoy.config.filter.http.ext_authz.v2.HttpService") + proto.RegisterType((*AuthorizationRequest)(nil), "envoy.config.filter.http.ext_authz.v2.AuthorizationRequest") + proto.RegisterType((*AuthorizationResponse)(nil), "envoy.config.filter.http.ext_authz.v2.AuthorizationResponse") + proto.RegisterType((*ExtAuthzPerRoute)(nil), "envoy.config.filter.http.ext_authz.v2.ExtAuthzPerRoute") + proto.RegisterType((*CheckSettings)(nil), "envoy.config.filter.http.ext_authz.v2.CheckSettings") + proto.RegisterMapType((map[string]string)(nil), "envoy.config.filter.http.ext_authz.v2.CheckSettings.ContextExtensionsEntry") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/ext_authz/v2/ext_authz.proto", fileDescriptor_861cd76675296973) +} + +var fileDescriptor_861cd76675296973 = []byte{ + // 1119 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0x1b, 0xc5, + 0x1b, 0xee, 0xfa, 0x4f, 0xba, 0x9e, 0xd4, 0xb1, 0x33, 0xbf, 0x24, 0xbf, 0x25, 0x40, 0x6b, 0x19, + 0x22, 0x55, 0xa5, 0x5a, 0x4b, 0x0e, 0x95, 0xca, 0x1f, 0x55, 0x8a, 0xdd, 0x40, 0x14, 0x68, 0xb1, + 0xb6, 0x14, 0x0e, 0x1c, 0x46, 0x93, 0xdd, 0xd7, 0xf6, 0xd0, 0xf5, 0xee, 0x32, 0x33, 0xeb, 0xda, + 0x3d, 0xf5, 0xcc, 0x85, 0x2b, 0x9f, 0x80, 0x13, 0x37, 0x2e, 0x88, 0x4f, 0xc0, 0xb5, 0x48, 0x7c, + 0x07, 0x4e, 0x1c, 0x7a, 0x42, 0x3d, 0x20, 0x34, 0x7f, 0x36, 0x76, 0x1a, 0x23, 0x85, 0xde, 0x3c, + 0xf3, 0x3c, 0xef, 0xf3, 0x3e, 0xf3, 0xce, 0x3b, 0xaf, 0x17, 0xdd, 0x82, 0x64, 0x9a, 0xce, 0x3b, + 0x61, 0x9a, 0x0c, 0xd9, 0xa8, 0x33, 0x64, 0xb1, 0x04, 0xde, 0x19, 0x4b, 0x99, 0x75, 0x60, 0x26, + 0x09, 0xcd, 0xe5, 0xf8, 0x49, 0x67, 0xda, 0x5d, 0x2c, 0xfc, 0x8c, 0xa7, 0x32, 0xc5, 0x7b, 0x3a, + 0xcc, 0x37, 0x61, 0xbe, 0x09, 0xf3, 0x55, 0x98, 0xbf, 0x60, 0x4e, 0xbb, 0xbb, 0x6f, 0x18, 0x75, + 0x9a, 0x31, 0x25, 0x12, 0xa6, 0x1c, 0x3a, 0x27, 0x54, 0x80, 0x11, 0xd9, 0x7d, 0xfb, 0x3c, 0x3a, + 0xe2, 0x59, 0x48, 0x04, 0xf0, 0x29, 0x0b, 0x0b, 0x56, 0xeb, 0x3c, 0x4b, 0x25, 0x22, 0x39, 0x67, + 0x96, 0x61, 0xb3, 0xc8, 0x79, 0x66, 0x21, 0x21, 0xa9, 0xcc, 0x85, 0x45, 0xaf, 0x2d, 0xa1, 0x13, + 0x2a, 0xc3, 0x31, 0xf0, 0x8e, 0x90, 0x9c, 0x25, 0x23, 0x4b, 0x78, 0xcb, 0x26, 0x48, 0x92, 0x54, + 0x52, 0xc9, 0xd2, 0x44, 0x74, 0x22, 0xc8, 0x38, 0x84, 0x7a, 0x61, 0x49, 0x57, 0xf3, 0x28, 0xa3, + 0x67, 0x38, 0x13, 0x36, 0xe2, 0x54, 0x16, 0x2e, 0xdf, 0x3c, 0x87, 0x9f, 0x31,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 0xf8, 0x09, 0xc2, 0xc5, 0x14, 0x84, 0x99, + 0x84, 0x44, 0xa8, 0x7f, 0x46, 0xcf, 0xd1, 0x37, 0xfd, 0xc9, 0xab, 0xf8, 0xf1, 0xed, 0xc8, 0x3c, + 0x3c, 0x55, 0x3b, 0x4c, 0x24, 0x9f, 0x07, 0x9b, 0xe1, 0xcb, 0xfb, 0xbb, 0x77, 0xd1, 0xce, 0x6a, + 0x32, 0x6e, 0xa2, 0xf2, 0x23, 0x98, 0xeb, 0x1a, 0xd6, 0x02, 0xf5, 0x13, 0x6f, 0xa1, 0xea, 0x54, + 0xb5, 0x97, 0x1d, 0x08, 0x66, 0xf1, 0x7e, 0xe9, 0xb6, 0xd3, 0x7b, 0xea, 0x3c, 0xff, 0xfe, 0xef, + 0xef, 0xaa, 0x37, 0xf1, 0x0d, 0xe3, 0x76, 0x71, 0x0c, 0xeb, 0x58, 0x9c, 0xb3, 0xbc, 0xff, 0xcb, + 0xd3, 0x5f, 0x9f, 0xad, 0x95, 0x9a, 0x0e, 0xda, 0x67, 0xa9, 0x39, 0x64, 0xc6, 0xd3, 0xd9, 0xfc, + 0x62, 0xe7, 0xed, 0xd5, 0x4f, 0x2f, 0x5e, 0x7d, 0x20, 0x0c, 0x9c, 0x93, 0x35, 0xfd, 0xa5, 0xb0, + 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0x29, 0x0b, 0x78, 0xab, 0x09, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.validate.go new file mode 100644 index 000000000..310344346 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2/ext_authz.pb.validate.go @@ -0,0 +1,687 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/ext_authz/v2/ext_authz.proto + +package envoy_config_filter_http_ext_authz_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ext_authz_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ExtAuthz with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ExtAuthz) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailureModeAllow + + // no validation rules for UseAlpha + + if v, ok := interface{}(m.GetWithRequestBody()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "WithRequestBody", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ClearRouteCache + + if v, ok := interface{}(m.GetStatusOnError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "StatusOnError", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFilterEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "FilterEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IncludePeerCertificate + + switch m.Services.(type) { + + case *ExtAuthz_GrpcService: + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExtAuthz_HttpService: + + if v, ok := interface{}(m.GetHttpService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "HttpService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ExtAuthzValidationError is the validation error returned by +// ExtAuthz.Validate if the designated constraints aren't met. +type ExtAuthzValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzValidationError) ErrorName() string { return "ExtAuthzValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzValidationError) 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 %sExtAuthz.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzValidationError{} + +// Validate checks the field values on BufferSettings with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BufferSettings) Validate() error { + if m == nil { + return nil + } + + if m.GetMaxRequestBytes() <= 0 { + return BufferSettingsValidationError{ + field: "MaxRequestBytes", + reason: "value must be greater than 0", + } + } + + // no validation rules for AllowPartialMessage + + return nil +} + +// BufferSettingsValidationError is the validation error returned by +// BufferSettings.Validate if the designated constraints aren't met. +type BufferSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferSettingsValidationError) ErrorName() string { return "BufferSettingsValidationError" } + +// Error satisfies the builtin error interface +func (e BufferSettingsValidationError) 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 %sBufferSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferSettingsValidationError{} + +// Validate checks the field values on HttpService with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HttpService) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetServerUri()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "ServerUri", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for PathPrefix + + if v, ok := interface{}(m.GetAuthorizationRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "AuthorizationRequest", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuthorizationResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "AuthorizationResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpServiceValidationError is the validation error returned by +// HttpService.Validate if the designated constraints aren't met. +type HttpServiceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpServiceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpServiceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpServiceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpServiceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpServiceValidationError) ErrorName() string { return "HttpServiceValidationError" } + +// Error satisfies the builtin error interface +func (e HttpServiceValidationError) 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 %sHttpService.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpServiceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpServiceValidationError{} + +// Validate checks the field values on AuthorizationRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AuthorizationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAllowedHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationRequestValidationError{ + field: "AllowedHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeadersToAdd() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationRequestValidationError{ + field: fmt.Sprintf("HeadersToAdd[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AuthorizationRequestValidationError is the validation error returned by +// AuthorizationRequest.Validate if the designated constraints aren't met. +type AuthorizationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthorizationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthorizationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthorizationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthorizationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthorizationRequestValidationError) ErrorName() string { + return "AuthorizationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AuthorizationRequestValidationError) 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 %sAuthorizationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthorizationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthorizationRequestValidationError{} + +// Validate checks the field values on AuthorizationResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AuthorizationResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAllowedUpstreamHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationResponseValidationError{ + field: "AllowedUpstreamHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAllowedClientHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationResponseValidationError{ + field: "AllowedClientHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AuthorizationResponseValidationError is the validation error returned by +// AuthorizationResponse.Validate if the designated constraints aren't met. +type AuthorizationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthorizationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthorizationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthorizationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthorizationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthorizationResponseValidationError) ErrorName() string { + return "AuthorizationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e AuthorizationResponseValidationError) 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 %sAuthorizationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthorizationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthorizationResponseValidationError{} + +// Validate checks the field values on ExtAuthzPerRoute with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExtAuthzPerRoute) Validate() error { + if m == nil { + return nil + } + + switch m.Override.(type) { + + case *ExtAuthzPerRoute_Disabled: + + if m.GetDisabled() != true { + return ExtAuthzPerRouteValidationError{ + field: "Disabled", + reason: "value must equal true", + } + } + + case *ExtAuthzPerRoute_CheckSettings: + + if m.GetCheckSettings() == nil { + return ExtAuthzPerRouteValidationError{ + field: "CheckSettings", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCheckSettings()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzPerRouteValidationError{ + field: "CheckSettings", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return ExtAuthzPerRouteValidationError{ + field: "Override", + reason: "value is required", + } + + } + + return nil +} + +// ExtAuthzPerRouteValidationError is the validation error returned by +// ExtAuthzPerRoute.Validate if the designated constraints aren't met. +type ExtAuthzPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzPerRouteValidationError) ErrorName() string { return "ExtAuthzPerRouteValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzPerRouteValidationError) 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 %sExtAuthzPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzPerRouteValidationError{} + +// Validate checks the field values on CheckSettings with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckSettings) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ContextExtensions + + return nil +} + +// CheckSettingsValidationError is the validation error returned by +// CheckSettings.Validate if the designated constraints aren't met. +type CheckSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckSettingsValidationError) ErrorName() string { return "CheckSettingsValidationError" } + +// Error satisfies the builtin error interface +func (e CheckSettingsValidationError) 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 %sCheckSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckSettingsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.go new file mode 100644 index 000000000..57f96a857 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.go @@ -0,0 +1,341 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/fault/v2/fault.proto + +package envoy_config_filter_http_fault_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FaultAbort struct { + // Types that are valid to be assigned to ErrorType: + // *FaultAbort_HttpStatus + // *FaultAbort_HeaderAbort_ + ErrorType isFaultAbort_ErrorType `protobuf_oneof:"error_type"` + Percentage *_type.FractionalPercent `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultAbort) Reset() { *m = FaultAbort{} } +func (m *FaultAbort) String() string { return proto.CompactTextString(m) } +func (*FaultAbort) ProtoMessage() {} +func (*FaultAbort) Descriptor() ([]byte, []int) { + return fileDescriptor_26070db6b6576d5c, []int{0} +} + +func (m *FaultAbort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultAbort.Unmarshal(m, b) +} +func (m *FaultAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultAbort.Marshal(b, m, deterministic) +} +func (m *FaultAbort) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultAbort.Merge(m, src) +} +func (m *FaultAbort) XXX_Size() int { + return xxx_messageInfo_FaultAbort.Size(m) +} +func (m *FaultAbort) XXX_DiscardUnknown() { + xxx_messageInfo_FaultAbort.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultAbort proto.InternalMessageInfo + +type isFaultAbort_ErrorType interface { + isFaultAbort_ErrorType() +} + +type FaultAbort_HttpStatus struct { + HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"` +} + +type FaultAbort_HeaderAbort_ struct { + HeaderAbort *FaultAbort_HeaderAbort `protobuf:"bytes,4,opt,name=header_abort,json=headerAbort,proto3,oneof"` +} + +func (*FaultAbort_HttpStatus) isFaultAbort_ErrorType() {} + +func (*FaultAbort_HeaderAbort_) isFaultAbort_ErrorType() {} + +func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType { + if m != nil { + return m.ErrorType + } + return nil +} + +func (m *FaultAbort) GetHttpStatus() uint32 { + if x, ok := m.GetErrorType().(*FaultAbort_HttpStatus); ok { + return x.HttpStatus + } + return 0 +} + +func (m *FaultAbort) GetHeaderAbort() *FaultAbort_HeaderAbort { + if x, ok := m.GetErrorType().(*FaultAbort_HeaderAbort_); ok { + return x.HeaderAbort + } + return nil +} + +func (m *FaultAbort) GetPercentage() *_type.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultAbort) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultAbort_HttpStatus)(nil), + (*FaultAbort_HeaderAbort_)(nil), + } +} + +type FaultAbort_HeaderAbort struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultAbort_HeaderAbort) Reset() { *m = FaultAbort_HeaderAbort{} } +func (m *FaultAbort_HeaderAbort) String() string { return proto.CompactTextString(m) } +func (*FaultAbort_HeaderAbort) ProtoMessage() {} +func (*FaultAbort_HeaderAbort) Descriptor() ([]byte, []int) { + return fileDescriptor_26070db6b6576d5c, []int{0, 0} +} + +func (m *FaultAbort_HeaderAbort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultAbort_HeaderAbort.Unmarshal(m, b) +} +func (m *FaultAbort_HeaderAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultAbort_HeaderAbort.Marshal(b, m, deterministic) +} +func (m *FaultAbort_HeaderAbort) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultAbort_HeaderAbort.Merge(m, src) +} +func (m *FaultAbort_HeaderAbort) XXX_Size() int { + return xxx_messageInfo_FaultAbort_HeaderAbort.Size(m) +} +func (m *FaultAbort_HeaderAbort) XXX_DiscardUnknown() { + xxx_messageInfo_FaultAbort_HeaderAbort.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultAbort_HeaderAbort proto.InternalMessageInfo + +type HTTPFault struct { + Delay *v2.FaultDelay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"` + Abort *FaultAbort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"` + UpstreamCluster string `protobuf:"bytes,3,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` + Headers []*route.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` + DownstreamNodes []string `protobuf:"bytes,5,rep,name=downstream_nodes,json=downstreamNodes,proto3" json:"downstream_nodes,omitempty"` + MaxActiveFaults *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=max_active_faults,json=maxActiveFaults,proto3" json:"max_active_faults,omitempty"` + ResponseRateLimit *v2.FaultRateLimit `protobuf:"bytes,7,opt,name=response_rate_limit,json=responseRateLimit,proto3" json:"response_rate_limit,omitempty"` + DelayPercentRuntime string `protobuf:"bytes,8,opt,name=delay_percent_runtime,json=delayPercentRuntime,proto3" json:"delay_percent_runtime,omitempty"` + AbortPercentRuntime string `protobuf:"bytes,9,opt,name=abort_percent_runtime,json=abortPercentRuntime,proto3" json:"abort_percent_runtime,omitempty"` + DelayDurationRuntime string `protobuf:"bytes,10,opt,name=delay_duration_runtime,json=delayDurationRuntime,proto3" json:"delay_duration_runtime,omitempty"` + AbortHttpStatusRuntime string `protobuf:"bytes,11,opt,name=abort_http_status_runtime,json=abortHttpStatusRuntime,proto3" json:"abort_http_status_runtime,omitempty"` + MaxActiveFaultsRuntime string `protobuf:"bytes,12,opt,name=max_active_faults_runtime,json=maxActiveFaultsRuntime,proto3" json:"max_active_faults_runtime,omitempty"` + ResponseRateLimitPercentRuntime string `protobuf:"bytes,13,opt,name=response_rate_limit_percent_runtime,json=responseRateLimitPercentRuntime,proto3" json:"response_rate_limit_percent_runtime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPFault) Reset() { *m = HTTPFault{} } +func (m *HTTPFault) String() string { return proto.CompactTextString(m) } +func (*HTTPFault) ProtoMessage() {} +func (*HTTPFault) Descriptor() ([]byte, []int) { + return fileDescriptor_26070db6b6576d5c, []int{1} +} + +func (m *HTTPFault) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPFault.Unmarshal(m, b) +} +func (m *HTTPFault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPFault.Marshal(b, m, deterministic) +} +func (m *HTTPFault) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPFault.Merge(m, src) +} +func (m *HTTPFault) XXX_Size() int { + return xxx_messageInfo_HTTPFault.Size(m) +} +func (m *HTTPFault) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPFault.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPFault proto.InternalMessageInfo + +func (m *HTTPFault) GetDelay() *v2.FaultDelay { + if m != nil { + return m.Delay + } + return nil +} + +func (m *HTTPFault) GetAbort() *FaultAbort { + if m != nil { + return m.Abort + } + return nil +} + +func (m *HTTPFault) GetUpstreamCluster() string { + if m != nil { + return m.UpstreamCluster + } + return "" +} + +func (m *HTTPFault) GetHeaders() []*route.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +func (m *HTTPFault) GetDownstreamNodes() []string { + if m != nil { + return m.DownstreamNodes + } + return nil +} + +func (m *HTTPFault) GetMaxActiveFaults() *wrappers.UInt32Value { + if m != nil { + return m.MaxActiveFaults + } + return nil +} + +func (m *HTTPFault) GetResponseRateLimit() *v2.FaultRateLimit { + if m != nil { + return m.ResponseRateLimit + } + return nil +} + +func (m *HTTPFault) GetDelayPercentRuntime() string { + if m != nil { + return m.DelayPercentRuntime + } + return "" +} + +func (m *HTTPFault) GetAbortPercentRuntime() string { + if m != nil { + return m.AbortPercentRuntime + } + return "" +} + +func (m *HTTPFault) GetDelayDurationRuntime() string { + if m != nil { + return m.DelayDurationRuntime + } + return "" +} + +func (m *HTTPFault) GetAbortHttpStatusRuntime() string { + if m != nil { + return m.AbortHttpStatusRuntime + } + return "" +} + +func (m *HTTPFault) GetMaxActiveFaultsRuntime() string { + if m != nil { + return m.MaxActiveFaultsRuntime + } + return "" +} + +func (m *HTTPFault) GetResponseRateLimitPercentRuntime() string { + if m != nil { + return m.ResponseRateLimitPercentRuntime + } + return "" +} + +func init() { + proto.RegisterType((*FaultAbort)(nil), "envoy.config.filter.http.fault.v2.FaultAbort") + proto.RegisterType((*FaultAbort_HeaderAbort)(nil), "envoy.config.filter.http.fault.v2.FaultAbort.HeaderAbort") + proto.RegisterType((*HTTPFault)(nil), "envoy.config.filter.http.fault.v2.HTTPFault") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/fault/v2/fault.proto", fileDescriptor_26070db6b6576d5c) +} + +var fileDescriptor_26070db6b6576d5c = []byte{ + // 724 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x4e, 0x13, 0x41, + 0x14, 0xc6, 0xd9, 0xfe, 0x03, 0xa6, 0x10, 0xca, 0xa2, 0xb8, 0x36, 0x82, 0x05, 0x13, 0x53, 0x8c, + 0xec, 0x26, 0xc5, 0x1b, 0x62, 0x34, 0xa1, 0x10, 0x52, 0x0d, 0x9a, 0x66, 0x45, 0xaf, 0x8c, 0x9b, + 0xa1, 0x3d, 0x6d, 0x37, 0xd9, 0xce, 0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f, 0x19, 0x42, 0x8e, + 0xd5, 0x09, 0x0f, 0xce, 0xb8, 0x90, 0xa6, 0x4d, 0x8a, 0xca, 0x06, 0x4f, 0xc3, 0x56, 0xa6, 0x62, + 0x54, 0x97, 0xeb, 0xc5, 0xdf, 0xf5, 0x85, 0x47, 0x85, 0xd2, 0x8f, 0x5c, 0xf5, 0xc2, 0x68, 0xcc, + 0xb9, 0x44, 0x65, 0xbc, 0xc1, 0x04, 0xf3, 0x03, 0x59, 0xea, 0x01, 0x6d, 0x83, 0xf0, 0xa8, 0xe2, + 0xad, 0x5c, 0xc5, 0xa8, 0x16, 0x6b, 0xfb, 0xf6, 0x8d, 0xfe, 0xda, 0x97, 0xa2, 0x76, 0x03, 0x2b, + 0xe0, 0xba, 0x31, 0xe7, 0x16, 0x7b, 0x97, 0x7f, 0xcd, 0x67, 0x84, 0x24, 0x3e, 0xd1, 0x2e, 0x58, + 0x59, 0xac, 0xbe, 0x91, 0x54, 0x57, 0x2e, 0xda, 0xc7, 0x82, 0xb6, 0x54, 0xbf, 0x34, 0x68, 0xea, + 0x3c, 0x77, 0x02, 0x28, 0x2f, 0x93, 0xe2, 0x44, 0xf1, 0xfa, 0x2a, 0x21, 0x20, 0x04, 0x17, 0x9e, + 0x42, 0xcd, 0xec, 0xaf, 0xba, 0xf1, 0x32, 0xb7, 0x60, 0x94, 0x32, 0xdb, 0x5f, 0x0b, 0x64, 0xb1, + 0x71, 0x7a, 0xda, 0xc4, 0x43, 0x99, 0xcf, 0x49, 0xbe, 0x0d, 0x01, 0x1d, 0x59, 0x06, 0xea, 0x55, + 0x67, 0x76, 0x73, 0xb5, 0x91, 0x23, 0x95, 0xef, 0x6a, 0xcc, 0x3c, 0x24, 0x79, 0xed, 0x46, 0x06, + 0xf9, 0xdd, 0xff, 0x72, 0xc3, 0xd5, 0xac, 0xb9, 0x43, 0x4a, 0x71, 0x18, 0x49, 0x01, 0xb4, 0xef, + 0xb5, 0x82, 0x38, 0x92, 0x20, 0xb0,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, 0x3d, 0x4a, 0x82, 0x29, + 0xb5, 0x4f, 0xee, 0x6a, 0xa5, 0x89, 0x87, 0x36, 0x06, 0x8b, 0x08, 0xae, 0x63, 0x42, 0x63, 0xfc, + 0xcc, 0x26, 0xd0, 0xa9, 0x0b, 0x18, 0xa3, 0x4b, 0x1a, 0xbd, 0x66, 0x75, 0x8a, 0x9e, 0x90, 0x07, + 0x33, 0x1c, 0x9f, 0xea, 0x76, 0x19, 0x8b, 0xdc, 0x9f, 0xf2, 0xf4, 0x6a, 0xe7, 0xf5, 0xf8, 0xe7, + 0x97, 0x3f, 0x9f, 0xf3, 0x55, 0xf3, 0xa1, 0xbe, 0x29, 0x18, 0x4a, 0x60, 0x91, 0xfa, 0xea, 0x24, + 0xb7, 0x15, 0x5d, 0x19, 0xef, 0xbd, 0x6f, 0x1f, 0x2f, 0xbe, 0x17, 0x32, 0x25, 0x83, 0x38, 0x3e, + 0xd7, 0x97, 0x1b, 0x0a, 0x3e, 0x1c, 0xdd, 0xfc, 0x2e, 0xea, 0xfa, 0xdb, 0xd4, 0x54, 0x43, 0xd5, + 0x34, 0xce, 0x0a, 0x38, 0x5d, 0x7b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x95, 0x3e, 0x4f, + 0xee, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.validate.go new file mode 100644 index 000000000..1c9de0947 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2/fault.pb.validate.go @@ -0,0 +1,342 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/fault/v2/fault.proto + +package envoy_config_filter_http_fault_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _fault_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FaultAbort with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FaultAbort) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultAbortValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.ErrorType.(type) { + + case *FaultAbort_HttpStatus: + + if val := m.GetHttpStatus(); val < 200 || val >= 600 { + return FaultAbortValidationError{ + field: "HttpStatus", + reason: "value must be inside range [200, 600)", + } + } + + case *FaultAbort_HeaderAbort_: + + if v, ok := interface{}(m.GetHeaderAbort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultAbortValidationError{ + field: "HeaderAbort", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultAbortValidationError{ + field: "ErrorType", + reason: "value is required", + } + + } + + return nil +} + +// FaultAbortValidationError is the validation error returned by +// FaultAbort.Validate if the designated constraints aren't met. +type FaultAbortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultAbortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultAbortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultAbortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultAbortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultAbortValidationError) ErrorName() string { return "FaultAbortValidationError" } + +// Error satisfies the builtin error interface +func (e FaultAbortValidationError) 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 %sFaultAbort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultAbortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultAbortValidationError{} + +// Validate checks the field values on HTTPFault with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HTTPFault) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "Delay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAbort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "Abort", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamCluster + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMaxActiveFaults()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "MaxActiveFaults", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponseRateLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "ResponseRateLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DelayPercentRuntime + + // no validation rules for AbortPercentRuntime + + // no validation rules for DelayDurationRuntime + + // no validation rules for AbortHttpStatusRuntime + + // no validation rules for MaxActiveFaultsRuntime + + // no validation rules for ResponseRateLimitPercentRuntime + + return nil +} + +// HTTPFaultValidationError is the validation error returned by +// HTTPFault.Validate if the designated constraints aren't met. +type HTTPFaultValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPFaultValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPFaultValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPFaultValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPFaultValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPFaultValidationError) ErrorName() string { return "HTTPFaultValidationError" } + +// Error satisfies the builtin error interface +func (e HTTPFaultValidationError) 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 %sHTTPFault.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPFaultValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPFaultValidationError{} + +// Validate checks the field values on FaultAbort_HeaderAbort with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultAbort_HeaderAbort) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultAbort_HeaderAbortValidationError is the validation error returned by +// FaultAbort_HeaderAbort.Validate if the designated constraints aren't met. +type FaultAbort_HeaderAbortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultAbort_HeaderAbortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultAbort_HeaderAbortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultAbort_HeaderAbortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultAbort_HeaderAbortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultAbort_HeaderAbortValidationError) ErrorName() string { + return "FaultAbort_HeaderAbortValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultAbort_HeaderAbortValidationError) 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 %sFaultAbort_HeaderAbort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultAbort_HeaderAbortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultAbort_HeaderAbortValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.go new file mode 100644 index 000000000..659beadc4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_http1_bridge/v2/config.proto + +package envoy_config_filter_http_grpc_http1_bridge_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_e529266ab36980e8, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Config)(nil), "envoy.config.filter.http.grpc_http1_bridge.v2.Config") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/grpc_http1_bridge/v2/config.proto", fileDescriptor_e529266ab36980e8) +} + +var fileDescriptor_e529266ab36980e8 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4a, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0x2f, 0x2a, 0x48, 0x8e, 0x07, 0xb1, 0x0c, 0xe3, 0x93, 0x8a, + 0x32, 0x53, 0xd2, 0x53, 0xf5, 0xcb, 0x8c, 0xa0, 0xea, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, + 0x74, 0xc1, 0x7a, 0xf5, 0xa0, 0x62, 0x10, 0xbd, 0x7a, 0x20, 0x1d, 0x7a, 0x18, 0x7a, 0xf5, 0xca, + 0x8c, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, + 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, 0x8b, 0x12, 0x4b, 0x52, 0x21, 0xc6, 0x49, 0xc9, 0x62, + 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xa4, 0x95, 0x38, 0xb8, 0xd8, 0x9c, 0xc1, 0x36, + 0x39, 0xf5, 0x31, 0x7e, 0x9a, 0xf1, 0xaf, 0x9f, 0xd5, 0x44, 0xc8, 0x08, 0xe2, 0x80, 0xd4, 0x8a, + 0x92, 0xd4, 0xbc, 0x62, 0x90, 0x0e, 0xa8, 0x23, 0x8a, 0x71, 0xba, 0xc2, 0x78, 0x57, 0xc3, 0x89, + 0x8b, 0x6c, 0x4c, 0x02, 0x8c, 0x5c, 0xd6, 0x99, 0xf9, 0x7a, 0x60, 0xed, 0x05, 0x45, 0xf9, 0x15, + 0x95, 0x7a, 0x24, 0x79, 0xc5, 0x89, 0x1b, 0xe2, 0x92, 0x00, 0x90, 0xc3, 0x02, 0x18, 0x93, 0xd8, + 0xc0, 0x2e, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb5, 0xd5, 0xbd, 0x4d, 0x01, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.validate.go new file mode 100644 index 000000000..ba811b63d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2/config.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_http1_bridge/v2/config.proto + +package envoy_config_filter_http_grpc_http1_bridge_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.go new file mode 100644 index 000000000..eb3c5a2b5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.proto + +package envoy_config_filter_http_grpc_http1_reverse_bridge_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + WithholdGrpcFrames bool `protobuf:"varint,2,opt,name=withhold_grpc_frames,json=withholdGrpcFrames,proto3" json:"withhold_grpc_frames,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_2a86db517160ad0a, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetContentType() string { + if m != nil { + return m.ContentType + } + return "" +} + +func (m *FilterConfig) GetWithholdGrpcFrames() bool { + if m != nil { + return m.WithholdGrpcFrames + } + return false +} + +type FilterConfigPerRoute struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfigPerRoute) Reset() { *m = FilterConfigPerRoute{} } +func (m *FilterConfigPerRoute) String() string { return proto.CompactTextString(m) } +func (*FilterConfigPerRoute) ProtoMessage() {} +func (*FilterConfigPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_2a86db517160ad0a, []int{1} +} + +func (m *FilterConfigPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfigPerRoute.Unmarshal(m, b) +} +func (m *FilterConfigPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfigPerRoute.Marshal(b, m, deterministic) +} +func (m *FilterConfigPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfigPerRoute.Merge(m, src) +} +func (m *FilterConfigPerRoute) XXX_Size() int { + return xxx_messageInfo_FilterConfigPerRoute.Size(m) +} +func (m *FilterConfigPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfigPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfigPerRoute proto.InternalMessageInfo + +func (m *FilterConfigPerRoute) GetDisabled() bool { + if m != nil { + return m.Disabled + } + return false +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.config.filter.http.grpc_http1_reverse_bridge.v2alpha1.FilterConfig") + proto.RegisterType((*FilterConfigPerRoute)(nil), "envoy.config.filter.http.grpc_http1_reverse_bridge.v2alpha1.FilterConfigPerRoute") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.proto", fileDescriptor_2a86db517160ad0a) +} + +var fileDescriptor_2a86db517160ad0a = []byte{ + // 339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xc1, 0x4a, 0xc3, 0x40, + 0x10, 0x86, 0x49, 0xd1, 0x5a, 0xd3, 0x1e, 0x24, 0x14, 0x2c, 0x05, 0xa5, 0xf4, 0x54, 0x3c, 0xec, + 0xda, 0xf6, 0xa6, 0x9e, 0x22, 0x54, 0xbd, 0x95, 0xe0, 0x3d, 0x6c, 0x93, 0x69, 0xb2, 0x90, 0xee, + 0x2e, 0xbb, 0xd3, 0xd8, 0xdc, 0x7c, 0x03, 0xaf, 0x3e, 0x80, 0x4f, 0xe1, 0x13, 0x78, 0xf5, 0x55, + 0x3c, 0x7a, 0x10, 0xc9, 0x26, 0x15, 0x41, 0xc4, 0x83, 0xb7, 0x49, 0x3e, 0xe6, 0x9b, 0x99, 0x7f, + 0xdd, 0x6b, 0x10, 0xb9, 0x2c, 0x68, 0x24, 0xc5, 0x92, 0x27, 0x74, 0xc9, 0x33, 0x04, 0x4d, 0x53, + 0x44, 0x45, 0x13, 0xad, 0xa2, 0xb0, 0xac, 0xc6, 0xa1, 0x86, 0x1c, 0xb4, 0x81, 0x70, 0xa1, 0x79, + 0x9c, 0x00, 0xcd, 0x27, 0x2c, 0x53, 0x29, 0x1b, 0xd7, 0x5d, 0x44, 0x69, 0x89, 0xd2, 0x3b, 0xb7, + 0x26, 0x52, 0xff, 0xab, 0x4c, 0xa4, 0xec, 0x27, 0xbf, 0x9a, 0xc8, 0xd6, 0xd4, 0x3f, 0x5e, 0xc7, + 0x8a, 0x51, 0x26, 0x84, 0x44, 0x86, 0x5c, 0x0a, 0x43, 0x57, 0x3c, 0xd1, 0x0c, 0xa1, 0x92, 0xf7, + 0x8f, 0x7e, 0x70, 0x83, 0x0c, 0xd7, 0xa6, 0xc6, 0x87, 0x39, 0xcb, 0x78, 0xcc, 0x10, 0xe8, 0xb6, + 0xa8, 0xc0, 0x30, 0x73, 0x3b, 0x33, 0xbb, 0xc9, 0xa5, 0x5d, 0xcb, 0x3b, 0x71, 0x3b, 0x91, 0x14, + 0x08, 0x02, 0x43, 0x2c, 0x14, 0xf4, 0x9c, 0x81, 0x33, 0xda, 0xf7, 0xf7, 0xde, 0xfd, 0x1d, 0xdd, + 0x18, 0x38, 0x41, 0xbb, 0x86, 0xb7, 0x85, 0x02, 0xef, 0xd4, 0xed, 0xde, 0x71, 0x4c, 0x53, 0x99, + 0xc5, 0xa1, 0x3d, 0x61, 0xa9, 0xd9, 0x0a, 0x4c, 0xaf, 0x31, 0x70, 0x46, 0xad, 0xc0, 0xdb, 0xb2, + 0x2b, 0xad, 0xa2, 0x99, 0x25, 0xc3, 0x89, 0xdb, 0xfd, 0x3e, 0x6d, 0x0e, 0x3a, 0x90, 0x6b, 0x04, + 0xaf, 0xef, 0xb6, 0x62, 0x6e, 0xd8, 0x22, 0x83, 0xd8, 0x4e, 0x6c, 0x05, 0x5f, 0xdf, 0xfe, 0x93, + 0xf3, 0xf6, 0xf8, 0xf1, 0xb0, 0x7b, 0xe1, 0x9d, 0x55, 0xf9, 0xc1, 0x06, 0x41, 0x98, 0xf2, 0xc4, + 0x3a, 0x43, 0xf3, 0x67, 0x88, 0xd3, 0xe7, 0xfb, 0x97, 0xd7, 0x66, 0xe3, 0xc0, 0x71, 0x6f, 0xb8, + 0x24, 0x56, 0xa3, 0xb4, 0xdc, 0x14, 0xe4, 0x1f, 0x2f, 0xe2, 0xb7, 0xeb, 0x1b, 0xca, 0x18, 0xe7, + 0xce, 0xa2, 0x69, 0xf3, 0x9c, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x82, 0xa5, 0x64, 0x26, 0x30, + 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.validate.go new file mode 100644 index 000000000..9eb5241eb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.pb.validate.go @@ -0,0 +1,180 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1/config.proto + +package envoy_config_filter_http_grpc_http1_reverse_bridge_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetContentType()) < 1 { + return FilterConfigValidationError{ + field: "ContentType", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for WithholdGrpcFrames + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on FilterConfigPerRoute with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FilterConfigPerRoute) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Disabled + + return nil +} + +// FilterConfigPerRouteValidationError is the validation error returned by +// FilterConfigPerRoute.Validate if the designated constraints aren't met. +type FilterConfigPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigPerRouteValidationError) ErrorName() string { + return "FilterConfigPerRouteValidationError" +} + +// Error satisfies the builtin error interface +func (e FilterConfigPerRouteValidationError) 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 %sFilterConfigPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigPerRouteValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.go new file mode 100644 index 000000000..b33d46b37 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.go @@ -0,0 +1,203 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_stats/v2alpha/config.proto + +package envoy_config_filter_http_grpc_stats_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + EmitFilterState bool `protobuf:"varint,1,opt,name=emit_filter_state,json=emitFilterState,proto3" json:"emit_filter_state,omitempty"` + // Types that are valid to be assigned to PerMethodStatSpecifier: + // *FilterConfig_IndividualMethodStatsAllowlist + // *FilterConfig_StatsForAllMethods + PerMethodStatSpecifier isFilterConfig_PerMethodStatSpecifier `protobuf_oneof:"per_method_stat_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1419fab6b23f453d, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetEmitFilterState() bool { + if m != nil { + return m.EmitFilterState + } + return false +} + +type isFilterConfig_PerMethodStatSpecifier interface { + isFilterConfig_PerMethodStatSpecifier() +} + +type FilterConfig_IndividualMethodStatsAllowlist struct { + IndividualMethodStatsAllowlist *core.GrpcMethodList `protobuf:"bytes,2,opt,name=individual_method_stats_allowlist,json=individualMethodStatsAllowlist,proto3,oneof"` +} + +type FilterConfig_StatsForAllMethods struct { + StatsForAllMethods *wrappers.BoolValue `protobuf:"bytes,3,opt,name=stats_for_all_methods,json=statsForAllMethods,proto3,oneof"` +} + +func (*FilterConfig_IndividualMethodStatsAllowlist) isFilterConfig_PerMethodStatSpecifier() {} + +func (*FilterConfig_StatsForAllMethods) isFilterConfig_PerMethodStatSpecifier() {} + +func (m *FilterConfig) GetPerMethodStatSpecifier() isFilterConfig_PerMethodStatSpecifier { + if m != nil { + return m.PerMethodStatSpecifier + } + return nil +} + +func (m *FilterConfig) GetIndividualMethodStatsAllowlist() *core.GrpcMethodList { + if x, ok := m.GetPerMethodStatSpecifier().(*FilterConfig_IndividualMethodStatsAllowlist); ok { + return x.IndividualMethodStatsAllowlist + } + return nil +} + +func (m *FilterConfig) GetStatsForAllMethods() *wrappers.BoolValue { + if x, ok := m.GetPerMethodStatSpecifier().(*FilterConfig_StatsForAllMethods); ok { + return x.StatsForAllMethods + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FilterConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FilterConfig_IndividualMethodStatsAllowlist)(nil), + (*FilterConfig_StatsForAllMethods)(nil), + } +} + +type FilterObject struct { + RequestMessageCount uint64 `protobuf:"varint,1,opt,name=request_message_count,json=requestMessageCount,proto3" json:"request_message_count,omitempty"` + ResponseMessageCount uint64 `protobuf:"varint,2,opt,name=response_message_count,json=responseMessageCount,proto3" json:"response_message_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterObject) Reset() { *m = FilterObject{} } +func (m *FilterObject) String() string { return proto.CompactTextString(m) } +func (*FilterObject) ProtoMessage() {} +func (*FilterObject) Descriptor() ([]byte, []int) { + return fileDescriptor_1419fab6b23f453d, []int{1} +} + +func (m *FilterObject) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterObject.Unmarshal(m, b) +} +func (m *FilterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterObject.Marshal(b, m, deterministic) +} +func (m *FilterObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterObject.Merge(m, src) +} +func (m *FilterObject) XXX_Size() int { + return xxx_messageInfo_FilterObject.Size(m) +} +func (m *FilterObject) XXX_DiscardUnknown() { + xxx_messageInfo_FilterObject.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterObject proto.InternalMessageInfo + +func (m *FilterObject) GetRequestMessageCount() uint64 { + if m != nil { + return m.RequestMessageCount + } + return 0 +} + +func (m *FilterObject) GetResponseMessageCount() uint64 { + if m != nil { + return m.ResponseMessageCount + } + return 0 +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.config.filter.http.grpc_stats.v2alpha.FilterConfig") + proto.RegisterType((*FilterObject)(nil), "envoy.config.filter.http.grpc_stats.v2alpha.FilterObject") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/grpc_stats/v2alpha/config.proto", fileDescriptor_1419fab6b23f453d) +} + +var fileDescriptor_1419fab6b23f453d = []byte{ + // 475 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6e, 0xd4, 0x30, + 0x10, 0x86, 0x9b, 0x05, 0x2a, 0x94, 0x22, 0x01, 0x81, 0x42, 0x59, 0x44, 0xd5, 0xf6, 0xb4, 0x02, + 0x61, 0x4b, 0x29, 0x07, 0x38, 0x76, 0x2b, 0x95, 0x1e, 0xa8, 0x5a, 0x2d, 0x12, 0xd7, 0xc8, 0x9b, + 0x4c, 0xb2, 0x46, 0x5e, 0x8f, 0xb1, 0x27, 0xe9, 0xf6, 0xc6, 0x85, 0x33, 0xd7, 0x3e, 0x0b, 0x4f, + 0xc0, 0x95, 0x57, 0xe1, 0x01, 0x10, 0xb2, 0x9d, 0xa8, 0x15, 0x3d, 0x71, 0xdb, 0xf5, 0xef, 0xef, + 0x1f, 0xff, 0x7f, 0x26, 0x7d, 0x0b, 0xba, 0xc3, 0x0b, 0x5e, 0xa2, 0xae, 0x65, 0xc3, 0x6b, 0xa9, + 0x08, 0x2c, 0x5f, 0x10, 0x19, 0xde, 0x58, 0x53, 0x16, 0x8e, 0x04, 0x39, 0xde, 0xe5, 0x42, 0x99, + 0x85, 0xe8, 0x6f, 0x31, 0x63, 0x91, 0x30, 0x7b, 0x15, 0x48, 0xd6, 0x9f, 0x45, 0x92, 0x79, 0x92, + 0x5d, 0x91, 0xac, 0x27, 0xc7, 0x93, 0x38, 0x46, 0x18, 0xc9, 0xbb, 0x9c, 0x97, 0x68, 0x21, 0xfa, + 0x2f, 0x81, 0x16, 0x58, 0x15, 0x4a, 0x3a, 0x8a, 0xb6, 0xe3, 0xed, 0x06, 0xb1, 0x51, 0xc0, 0xc3, + 0xbf, 0x79, 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x9c, 0x81, 0x52, 0xd6, 0x12, 0xec, 0xde, 0x6a, + 0x68, 0xe6, 0x74, 0xfe, 0x19, 0x4a, 0xca, 0xf2, 0x74, 0xd3, 0xc2, 0x97, 0x16, 0x1c, 0x15, 0x4b, + 0x70, 0x4e, 0x34, 0x50, 0x94, 0xd8, 0x6a, 0x0a, 0xed, 0xdc, 0x9e, 0x3d, 0xea, 0xc5, 0x93, 0xa8, + 0x1d, 0x7a, 0x29, 0x7b, 0x93, 0x3e, 0xb1, 0xe0, 0x0c, 0x6a, 0x07, 0xff, 0x40, 0xa3, 0x00, 0x3d, + 0x1e, 0xd4, 0xeb, 0xd4, 0xf4, 0x5b, 0xf2, 0xfb, 0xf2, 0xcf, 0xf7, 0x3b, 0xaf, 0x87, 0x65, 0x83, + 0x15, 0x81, 0x76, 0xfe, 0xab, 0xf6, 0x0b, 0xe7, 0x6e, 0x6e, 0xdc, 0xfe, 0x8f, 0xaf, 0x3f, 0x7f, + 0xad, 0x8f, 0x1e, 0x24, 0xe9, 0x3b, 0x89, 0xb1, 0x6c, 0x63, 0x71, 0x75, 0xc1, 0xfe, 0x63, 0x5f, + 0xa7, 0x1b, 0x71, 0x09, 0xce, 0x7c, 0x7f, 0x67, 0xc9, 0x7c, 0x3d, 0x14, 0xb9, 0xff, 0x37, 0x00, + 0x00, 0xff, 0xff, 0xb2, 0x64, 0xa9, 0x6d, 0x2e, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.validate.go new file mode 100644 index 000000000..7739b5a9b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha/config.pb.validate.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_stats/v2alpha/config.proto + +package envoy_config_filter_http_grpc_stats_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for EmitFilterState + + switch m.PerMethodStatSpecifier.(type) { + + case *FilterConfig_IndividualMethodStatsAllowlist: + + if v, ok := interface{}(m.GetIndividualMethodStatsAllowlist()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "IndividualMethodStatsAllowlist", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FilterConfig_StatsForAllMethods: + + if v, ok := interface{}(m.GetStatsForAllMethods()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "StatsForAllMethods", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on FilterObject with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterObject) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestMessageCount + + // no validation rules for ResponseMessageCount + + return nil +} + +// FilterObjectValidationError is the validation error returned by +// FilterObject.Validate if the designated constraints aren't met. +type FilterObjectValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterObjectValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterObjectValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterObjectValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterObjectValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterObjectValidationError) ErrorName() string { return "FilterObjectValidationError" } + +// Error satisfies the builtin error interface +func (e FilterObjectValidationError) 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 %sFilterObject.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterObjectValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterObjectValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.go new file mode 100644 index 000000000..3dcf1c7ce --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_web/v2/grpc_web.proto + +package envoy_config_filter_http_grpc_web_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GrpcWeb struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcWeb) Reset() { *m = GrpcWeb{} } +func (m *GrpcWeb) String() string { return proto.CompactTextString(m) } +func (*GrpcWeb) ProtoMessage() {} +func (*GrpcWeb) Descriptor() ([]byte, []int) { + return fileDescriptor_8fe810f98c50c033, []int{0} +} + +func (m *GrpcWeb) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcWeb.Unmarshal(m, b) +} +func (m *GrpcWeb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcWeb.Marshal(b, m, deterministic) +} +func (m *GrpcWeb) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcWeb.Merge(m, src) +} +func (m *GrpcWeb) XXX_Size() int { + return xxx_messageInfo_GrpcWeb.Size(m) +} +func (m *GrpcWeb) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcWeb.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcWeb proto.InternalMessageInfo + +func init() { + proto.RegisterType((*GrpcWeb)(nil), "envoy.config.filter.http.grpc_web.v2.GrpcWeb") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/grpc_web/v2/grpc_web.proto", fileDescriptor_8fe810f98c50c033) +} + +var fileDescriptor_8fe810f98c50c033 = []byte{ + // 204 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0x2f, 0x2a, 0x48, 0x8e, 0x2f, 0x4f, 0x4d, 0xd2, 0x2f, 0x33, + 0x82, 0xb3, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x54, 0xc0, 0x9a, 0xf4, 0x20, 0x9a, 0xf4, + 0x20, 0x9a, 0xf4, 0x40, 0x9a, 0xf4, 0xe0, 0x0a, 0xcb, 0x8c, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, + 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, + 0x8b, 0x12, 0x4b, 0x52, 0x21, 0xa6, 0x48, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, + 0x43, 0xa4, 0x95, 0x38, 0xb9, 0xd8, 0xdd, 0x8b, 0x0a, 0x92, 0xc3, 0x53, 0x93, 0x9c, 0x6a, 0x3f, + 0xcd, 0xf8, 0xd7, 0xcf, 0xaa, 0x2d, 0xa4, 0x09, 0xb1, 0x37, 0xb5, 0xa2, 0x24, 0x35, 0xaf, 0x18, + 0xa4, 0x03, 0x6a, 0x77, 0x31, 0xba, 0xe5, 0xc6, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, + 0xe4, 0x32, 0xca, 0xcc, 0xd7, 0x03, 0xeb, 0x2a, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x23, 0xc6, 0xe1, + 0x4e, 0x3c, 0x50, 0x7b, 0x03, 0x40, 0xee, 0x08, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xc8, 0x18, 0x10, + 0x00, 0x00, 0xff, 0xff, 0xd9, 0x5f, 0x26, 0x22, 0x2c, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.validate.go new file mode 100644 index 000000000..c32d077c8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2/grpc_web.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/grpc_web/v2/grpc_web.proto + +package envoy_config_filter_http_grpc_web_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _grpc_web_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GrpcWeb with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *GrpcWeb) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// GrpcWebValidationError is the validation error returned by GrpcWeb.Validate +// if the designated constraints aren't met. +type GrpcWebValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcWebValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcWebValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcWebValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcWebValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcWebValidationError) ErrorName() string { return "GrpcWebValidationError" } + +// Error satisfies the builtin error interface +func (e GrpcWebValidationError) 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 %sGrpcWeb.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcWebValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcWebValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.go new file mode 100644 index 000000000..634f4cbec --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.go @@ -0,0 +1,277 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/gzip/v2/gzip.proto + +package envoy_config_filter_http_gzip_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Gzip_CompressionStrategy int32 + +const ( + Gzip_DEFAULT Gzip_CompressionStrategy = 0 + Gzip_FILTERED Gzip_CompressionStrategy = 1 + Gzip_HUFFMAN Gzip_CompressionStrategy = 2 + Gzip_RLE Gzip_CompressionStrategy = 3 +) + +var Gzip_CompressionStrategy_name = map[int32]string{ + 0: "DEFAULT", + 1: "FILTERED", + 2: "HUFFMAN", + 3: "RLE", +} + +var Gzip_CompressionStrategy_value = map[string]int32{ + "DEFAULT": 0, + "FILTERED": 1, + "HUFFMAN": 2, + "RLE": 3, +} + +func (x Gzip_CompressionStrategy) String() string { + return proto.EnumName(Gzip_CompressionStrategy_name, int32(x)) +} + +func (Gzip_CompressionStrategy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e2b7bd5745a19167, []int{0, 0} +} + +type Gzip_CompressionLevel_Enum int32 + +const ( + Gzip_CompressionLevel_DEFAULT Gzip_CompressionLevel_Enum = 0 + Gzip_CompressionLevel_BEST Gzip_CompressionLevel_Enum = 1 + Gzip_CompressionLevel_SPEED Gzip_CompressionLevel_Enum = 2 +) + +var Gzip_CompressionLevel_Enum_name = map[int32]string{ + 0: "DEFAULT", + 1: "BEST", + 2: "SPEED", +} + +var Gzip_CompressionLevel_Enum_value = map[string]int32{ + "DEFAULT": 0, + "BEST": 1, + "SPEED": 2, +} + +func (x Gzip_CompressionLevel_Enum) String() string { + return proto.EnumName(Gzip_CompressionLevel_Enum_name, int32(x)) +} + +func (Gzip_CompressionLevel_Enum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e2b7bd5745a19167, []int{0, 0, 0} +} + +type Gzip struct { + MemoryLevel *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=memory_level,json=memoryLevel,proto3" json:"memory_level,omitempty"` + ContentLength *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` // Deprecated: Do not use. + CompressionLevel Gzip_CompressionLevel_Enum `protobuf:"varint,3,opt,name=compression_level,json=compressionLevel,proto3,enum=envoy.config.filter.http.gzip.v2.Gzip_CompressionLevel_Enum" json:"compression_level,omitempty"` + CompressionStrategy Gzip_CompressionStrategy `protobuf:"varint,4,opt,name=compression_strategy,json=compressionStrategy,proto3,enum=envoy.config.filter.http.gzip.v2.Gzip_CompressionStrategy" json:"compression_strategy,omitempty"` + ContentType []string `protobuf:"bytes,6,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // Deprecated: Do not use. + DisableOnEtagHeader bool `protobuf:"varint,7,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"` // Deprecated: Do not use. + RemoveAcceptEncodingHeader bool `protobuf:"varint,8,opt,name=remove_accept_encoding_header,json=removeAcceptEncodingHeader,proto3" json:"remove_accept_encoding_header,omitempty"` // Deprecated: Do not use. + WindowBits *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=window_bits,json=windowBits,proto3" json:"window_bits,omitempty"` + Compressor *v2.Compressor `protobuf:"bytes,10,opt,name=compressor,proto3" json:"compressor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Gzip) Reset() { *m = Gzip{} } +func (m *Gzip) String() string { return proto.CompactTextString(m) } +func (*Gzip) ProtoMessage() {} +func (*Gzip) Descriptor() ([]byte, []int) { + return fileDescriptor_e2b7bd5745a19167, []int{0} +} + +func (m *Gzip) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Gzip.Unmarshal(m, b) +} +func (m *Gzip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Gzip.Marshal(b, m, deterministic) +} +func (m *Gzip) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gzip.Merge(m, src) +} +func (m *Gzip) XXX_Size() int { + return xxx_messageInfo_Gzip.Size(m) +} +func (m *Gzip) XXX_DiscardUnknown() { + xxx_messageInfo_Gzip.DiscardUnknown(m) +} + +var xxx_messageInfo_Gzip proto.InternalMessageInfo + +func (m *Gzip) GetMemoryLevel() *wrappers.UInt32Value { + if m != nil { + return m.MemoryLevel + } + return nil +} + +// Deprecated: Do not use. +func (m *Gzip) GetContentLength() *wrappers.UInt32Value { + if m != nil { + return m.ContentLength + } + return nil +} + +func (m *Gzip) GetCompressionLevel() Gzip_CompressionLevel_Enum { + if m != nil { + return m.CompressionLevel + } + return Gzip_CompressionLevel_DEFAULT +} + +func (m *Gzip) GetCompressionStrategy() Gzip_CompressionStrategy { + if m != nil { + return m.CompressionStrategy + } + return Gzip_DEFAULT +} + +// Deprecated: Do not use. +func (m *Gzip) GetContentType() []string { + if m != nil { + return m.ContentType + } + return nil +} + +// Deprecated: Do not use. +func (m *Gzip) GetDisableOnEtagHeader() bool { + if m != nil { + return m.DisableOnEtagHeader + } + return false +} + +// Deprecated: Do not use. +func (m *Gzip) GetRemoveAcceptEncodingHeader() bool { + if m != nil { + return m.RemoveAcceptEncodingHeader + } + return false +} + +func (m *Gzip) GetWindowBits() *wrappers.UInt32Value { + if m != nil { + return m.WindowBits + } + return nil +} + +func (m *Gzip) GetCompressor() *v2.Compressor { + if m != nil { + return m.Compressor + } + return nil +} + +type Gzip_CompressionLevel struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Gzip_CompressionLevel) Reset() { *m = Gzip_CompressionLevel{} } +func (m *Gzip_CompressionLevel) String() string { return proto.CompactTextString(m) } +func (*Gzip_CompressionLevel) ProtoMessage() {} +func (*Gzip_CompressionLevel) Descriptor() ([]byte, []int) { + return fileDescriptor_e2b7bd5745a19167, []int{0, 0} +} + +func (m *Gzip_CompressionLevel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Gzip_CompressionLevel.Unmarshal(m, b) +} +func (m *Gzip_CompressionLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Gzip_CompressionLevel.Marshal(b, m, deterministic) +} +func (m *Gzip_CompressionLevel) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gzip_CompressionLevel.Merge(m, src) +} +func (m *Gzip_CompressionLevel) XXX_Size() int { + return xxx_messageInfo_Gzip_CompressionLevel.Size(m) +} +func (m *Gzip_CompressionLevel) XXX_DiscardUnknown() { + xxx_messageInfo_Gzip_CompressionLevel.DiscardUnknown(m) +} + +var xxx_messageInfo_Gzip_CompressionLevel proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.config.filter.http.gzip.v2.Gzip_CompressionStrategy", Gzip_CompressionStrategy_name, Gzip_CompressionStrategy_value) + proto.RegisterEnum("envoy.config.filter.http.gzip.v2.Gzip_CompressionLevel_Enum", Gzip_CompressionLevel_Enum_name, Gzip_CompressionLevel_Enum_value) + proto.RegisterType((*Gzip)(nil), "envoy.config.filter.http.gzip.v2.Gzip") + proto.RegisterType((*Gzip_CompressionLevel)(nil), "envoy.config.filter.http.gzip.v2.Gzip.CompressionLevel") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/gzip/v2/gzip.proto", fileDescriptor_e2b7bd5745a19167) +} + +var fileDescriptor_e2b7bd5745a19167 = []byte{ + // 635 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcf, 0x6e, 0xd3, 0x4c, + 0x10, 0xff, 0x9c, 0xa4, 0x69, 0xbc, 0xe9, 0x57, 0xcc, 0x16, 0x81, 0x15, 0x51, 0x14, 0x55, 0xaa, + 0xb0, 0x40, 0x5a, 0x4b, 0xee, 0xa1, 0x12, 0xea, 0xa5, 0xa6, 0x4e, 0x5b, 0x14, 0xa0, 0x72, 0x53, + 0xae, 0xd6,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68, 0x00, 0x51, 0x5e, 0x8c, 0x9f, 0x08, 0x7e, 0x3e, 0xbb, 0xf3, 0xd2, + 0x5c, 0x3d, 0x3f, 0xb5, 0xa3, 0x3c, 0xf1, 0x23, 0x6d, 0xd8, 0x54, 0xd1, 0x6f, 0xfd, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0xa2, 0x09, 0xf2, 0x3b, 0xd3, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.validate.go new file mode 100644 index 000000000..537dc056f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2/gzip.pb.validate.go @@ -0,0 +1,228 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/gzip/v2/gzip.proto + +package envoy_config_filter_http_gzip_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _gzip_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Gzip with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Gzip) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMemoryLevel(); wrapper != nil { + + if val := wrapper.GetValue(); val < 1 || val > 9 { + return GzipValidationError{ + field: "MemoryLevel", + reason: "value must be inside range [1, 9]", + } + } + + } + + if v, ok := interface{}(m.GetContentLength()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GzipValidationError{ + field: "ContentLength", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if _, ok := Gzip_CompressionLevel_Enum_name[int32(m.GetCompressionLevel())]; !ok { + return GzipValidationError{ + field: "CompressionLevel", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := Gzip_CompressionStrategy_name[int32(m.GetCompressionStrategy())]; !ok { + return GzipValidationError{ + field: "CompressionStrategy", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for DisableOnEtagHeader + + // no validation rules for RemoveAcceptEncodingHeader + + if wrapper := m.GetWindowBits(); wrapper != nil { + + if val := wrapper.GetValue(); val < 9 || val > 15 { + return GzipValidationError{ + field: "WindowBits", + reason: "value must be inside range [9, 15]", + } + } + + } + + if v, ok := interface{}(m.GetCompressor()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GzipValidationError{ + field: "Compressor", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GzipValidationError is the validation error returned by Gzip.Validate if the +// designated constraints aren't met. +type GzipValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GzipValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GzipValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GzipValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GzipValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GzipValidationError) ErrorName() string { return "GzipValidationError" } + +// Error satisfies the builtin error interface +func (e GzipValidationError) 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 %sGzip.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GzipValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GzipValidationError{} + +// Validate checks the field values on Gzip_CompressionLevel with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Gzip_CompressionLevel) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// Gzip_CompressionLevelValidationError is the validation error returned by +// Gzip_CompressionLevel.Validate if the designated constraints aren't met. +type Gzip_CompressionLevelValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Gzip_CompressionLevelValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Gzip_CompressionLevelValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Gzip_CompressionLevelValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Gzip_CompressionLevelValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Gzip_CompressionLevelValidationError) ErrorName() string { + return "Gzip_CompressionLevelValidationError" +} + +// Error satisfies the builtin error interface +func (e Gzip_CompressionLevelValidationError) 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 %sGzip_CompressionLevel.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Gzip_CompressionLevelValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Gzip_CompressionLevelValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.go new file mode 100644 index 000000000..46609263c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.go @@ -0,0 +1,309 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.proto + +package envoy_config_filter_http_header_to_metadata_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config_ValueType int32 + +const ( + Config_STRING Config_ValueType = 0 + Config_NUMBER Config_ValueType = 1 + Config_PROTOBUF_VALUE Config_ValueType = 2 +) + +var Config_ValueType_name = map[int32]string{ + 0: "STRING", + 1: "NUMBER", + 2: "PROTOBUF_VALUE", +} + +var Config_ValueType_value = map[string]int32{ + "STRING": 0, + "NUMBER": 1, + "PROTOBUF_VALUE": 2, +} + +func (x Config_ValueType) String() string { + return proto.EnumName(Config_ValueType_name, int32(x)) +} + +func (Config_ValueType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5891b90c2f7c1ebe, []int{0, 0} +} + +type Config_ValueEncode int32 + +const ( + Config_NONE Config_ValueEncode = 0 + Config_BASE64 Config_ValueEncode = 1 +) + +var Config_ValueEncode_name = map[int32]string{ + 0: "NONE", + 1: "BASE64", +} + +var Config_ValueEncode_value = map[string]int32{ + "NONE": 0, + "BASE64": 1, +} + +func (x Config_ValueEncode) String() string { + return proto.EnumName(Config_ValueEncode_name, int32(x)) +} + +func (Config_ValueEncode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5891b90c2f7c1ebe, []int{0, 1} +} + +type Config struct { + RequestRules []*Config_Rule `protobuf:"bytes,1,rep,name=request_rules,json=requestRules,proto3" json:"request_rules,omitempty"` + ResponseRules []*Config_Rule `protobuf:"bytes,2,rep,name=response_rules,json=responseRules,proto3" json:"response_rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_5891b90c2f7c1ebe, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetRequestRules() []*Config_Rule { + if m != nil { + return m.RequestRules + } + return nil +} + +func (m *Config) GetResponseRules() []*Config_Rule { + if m != nil { + return m.ResponseRules + } + return nil +} + +type Config_KeyValuePair struct { + MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Type Config_ValueType `protobuf:"varint,4,opt,name=type,proto3,enum=envoy.config.filter.http.header_to_metadata.v2.Config_ValueType" json:"type,omitempty"` + Encode Config_ValueEncode `protobuf:"varint,5,opt,name=encode,proto3,enum=envoy.config.filter.http.header_to_metadata.v2.Config_ValueEncode" json:"encode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config_KeyValuePair) Reset() { *m = Config_KeyValuePair{} } +func (m *Config_KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*Config_KeyValuePair) ProtoMessage() {} +func (*Config_KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_5891b90c2f7c1ebe, []int{0, 0} +} + +func (m *Config_KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config_KeyValuePair.Unmarshal(m, b) +} +func (m *Config_KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config_KeyValuePair.Marshal(b, m, deterministic) +} +func (m *Config_KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config_KeyValuePair.Merge(m, src) +} +func (m *Config_KeyValuePair) XXX_Size() int { + return xxx_messageInfo_Config_KeyValuePair.Size(m) +} +func (m *Config_KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_Config_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_Config_KeyValuePair proto.InternalMessageInfo + +func (m *Config_KeyValuePair) GetMetadataNamespace() string { + if m != nil { + return m.MetadataNamespace + } + return "" +} + +func (m *Config_KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Config_KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func (m *Config_KeyValuePair) GetType() Config_ValueType { + if m != nil { + return m.Type + } + return Config_STRING +} + +func (m *Config_KeyValuePair) GetEncode() Config_ValueEncode { + if m != nil { + return m.Encode + } + return Config_NONE +} + +type Config_Rule struct { + Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + OnHeaderPresent *Config_KeyValuePair `protobuf:"bytes,2,opt,name=on_header_present,json=onHeaderPresent,proto3" json:"on_header_present,omitempty"` + OnHeaderMissing *Config_KeyValuePair `protobuf:"bytes,3,opt,name=on_header_missing,json=onHeaderMissing,proto3" json:"on_header_missing,omitempty"` + Remove bool `protobuf:"varint,4,opt,name=remove,proto3" json:"remove,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config_Rule) Reset() { *m = Config_Rule{} } +func (m *Config_Rule) String() string { return proto.CompactTextString(m) } +func (*Config_Rule) ProtoMessage() {} +func (*Config_Rule) Descriptor() ([]byte, []int) { + return fileDescriptor_5891b90c2f7c1ebe, []int{0, 1} +} + +func (m *Config_Rule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config_Rule.Unmarshal(m, b) +} +func (m *Config_Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config_Rule.Marshal(b, m, deterministic) +} +func (m *Config_Rule) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config_Rule.Merge(m, src) +} +func (m *Config_Rule) XXX_Size() int { + return xxx_messageInfo_Config_Rule.Size(m) +} +func (m *Config_Rule) XXX_DiscardUnknown() { + xxx_messageInfo_Config_Rule.DiscardUnknown(m) +} + +var xxx_messageInfo_Config_Rule proto.InternalMessageInfo + +func (m *Config_Rule) GetHeader() string { + if m != nil { + return m.Header + } + return "" +} + +func (m *Config_Rule) GetOnHeaderPresent() *Config_KeyValuePair { + if m != nil { + return m.OnHeaderPresent + } + return nil +} + +func (m *Config_Rule) GetOnHeaderMissing() *Config_KeyValuePair { + if m != nil { + return m.OnHeaderMissing + } + return nil +} + +func (m *Config_Rule) GetRemove() bool { + if m != nil { + return m.Remove + } + return false +} + +func init() { + proto.RegisterEnum("envoy.config.filter.http.header_to_metadata.v2.Config_ValueType", Config_ValueType_name, Config_ValueType_value) + proto.RegisterEnum("envoy.config.filter.http.header_to_metadata.v2.Config_ValueEncode", Config_ValueEncode_name, Config_ValueEncode_value) + proto.RegisterType((*Config)(nil), "envoy.config.filter.http.header_to_metadata.v2.Config") + proto.RegisterType((*Config_KeyValuePair)(nil), "envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair") + proto.RegisterType((*Config_Rule)(nil), "envoy.config.filter.http.header_to_metadata.v2.Config.Rule") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.proto", fileDescriptor_5891b90c2f7c1ebe) +} + +var fileDescriptor_5891b90c2f7c1ebe = []byte{ + // 573 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x3d, 0x6f, 0xd4, 0x30, + 0x18, 0xc7, 0xeb, 0xf4, 0x1a, 0x5a, 0xf7, 0x85, 0xab, 0xc5, 0x4b, 0x38, 0x09, 0x74, 0x2a, 0x42, + 0xea, 0x42, 0x22, 0x5d, 0x79, 0x19, 0x60, 0xa0, 0xa9, 0x8e, 0x82, 0xe0, 0x5e, 0xe4, 0xde, 0x75, + 0x60, 0x09, 0xee, 0xdd, 0xd3, 0x6b, 0xc4, 0x9d, 0x1d, 0x6c, 0x27, 0x6a, 0x36, 0xbe, 0x01, 0x2b, + 0x62, 0x62, 0xe3, 0x3b, 0x30, 0x31, 0x76, 0xe5, 0xab, 0xb0, 0xd1, 0x01, 0xa1, 0xd8, 0x39, 0x54, + 0x44, 0x19, 0xda, 0xb2, 0xd9, 0xfe, 0xe7, 0xf9, 0xfd, 0x9f, 0xe7, 0x6f, 0xc5, 0x78, 0x1b, 0x78, + 0x26, 0xf2, 0x60, 0x20, 0xf8, 0x7e, 0x3c, 0x0a, 0xf6, 0xe3, 0xb1, 0x06, 0x19, 0x1c, 0x68, 0x9d, + 0x04, 0x07, 0xc0, 0x86, 0x20, 0x23, 0x2d, 0xa2, 0x09, 0x68, 0x36, 0x64, 0x9a, 0x05, 0x59, 0xe3, + 0x94, 0x53, 0x3f, 0x91, 0x42, 0x0b, 0xe2, 0x1b, 0x90, 0x6f, 0x41, 0xbe, 0x05, 0xf9, 0x05, 0xc8, + 0x3f, 0xa5, 0x24, 0x6b, 0xd4, 0x6e, 0xa5, 0xc3, 0x84, 0x05, 0x8c, 0x73, 0xa1, 0x99, 0x8e, 0x05, + 0x57, 0xc1, 0x24, 0x1e, 0x49, 0xa6, 0xc1, 0xf2, 0x6a, 0x37, 0xff, 0xd2, 0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0xcc, 0xcf, 0x18, 0x4f, 0x78, 0xd5, 0x06, + 0xd1, 0x13, 0xad, 0xf2, 0xb0, 0x5b, 0x3c, 0x0b, 0x5d, 0xb4, 0xe7, 0x9a, 0xf7, 0x61, 0xe3, 0x57, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x41, 0xd7, 0x6c, 0xf2, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.validate.go new file mode 100644 index 000000000..9be92a6f5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.pb.validate.go @@ -0,0 +1,316 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.proto + +package envoy_config_filter_http_header_to_metadata_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _header_to_metadata_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRequestRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: fmt.Sprintf("RequestRules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetResponseRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: fmt.Sprintf("ResponseRules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} + +// Validate checks the field values on Config_KeyValuePair with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Config_KeyValuePair) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MetadataNamespace + + if len(m.GetKey()) < 1 { + return Config_KeyValuePairValidationError{ + field: "Key", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Value + + // no validation rules for Type + + // no validation rules for Encode + + return nil +} + +// Config_KeyValuePairValidationError is the validation error returned by +// Config_KeyValuePair.Validate if the designated constraints aren't met. +type Config_KeyValuePairValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Config_KeyValuePairValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Config_KeyValuePairValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Config_KeyValuePairValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Config_KeyValuePairValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Config_KeyValuePairValidationError) ErrorName() string { + return "Config_KeyValuePairValidationError" +} + +// Error satisfies the builtin error interface +func (e Config_KeyValuePairValidationError) 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 %sConfig_KeyValuePair.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Config_KeyValuePairValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Config_KeyValuePairValidationError{} + +// Validate checks the field values on Config_Rule with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Config_Rule) Validate() error { + if m == nil { + return nil + } + + if len(m.GetHeader()) < 1 { + return Config_RuleValidationError{ + field: "Header", + reason: "value length must be at least 1 bytes", + } + } + + if !_Config_Rule_Header_Pattern.MatchString(m.GetHeader()) { + return Config_RuleValidationError{ + field: "Header", + reason: "value does not match regex pattern \"^[^\\x00\\n\\r]*$\"", + } + } + + if v, ok := interface{}(m.GetOnHeaderPresent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Config_RuleValidationError{ + field: "OnHeaderPresent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOnHeaderMissing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Config_RuleValidationError{ + field: "OnHeaderMissing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Remove + + return nil +} + +// Config_RuleValidationError is the validation error returned by +// Config_Rule.Validate if the designated constraints aren't met. +type Config_RuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Config_RuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Config_RuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Config_RuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Config_RuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Config_RuleValidationError) ErrorName() string { return "Config_RuleValidationError" } + +// Error satisfies the builtin error interface +func (e Config_RuleValidationError) 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 %sConfig_Rule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Config_RuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Config_RuleValidationError{} + +var _Config_Rule_Header_Pattern = regexp.MustCompile("^[^\x00\n\r]*$") diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.go new file mode 100644 index 000000000..48c20d4c1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/health_check/v2/health_check.proto + +package envoy_config_filter_http_health_check_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HealthCheck struct { + PassThroughMode *wrappers.BoolValue `protobuf:"bytes,1,opt,name=pass_through_mode,json=passThroughMode,proto3" json:"pass_through_mode,omitempty"` + CacheTime *duration.Duration `protobuf:"bytes,3,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` + ClusterMinHealthyPercentages map[string]*_type.Percent `protobuf:"bytes,4,rep,name=cluster_min_healthy_percentages,json=clusterMinHealthyPercentages,proto3" json:"cluster_min_healthy_percentages,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers []*route.HeaderMatcher `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheck) Reset() { *m = HealthCheck{} } +func (m *HealthCheck) String() string { return proto.CompactTextString(m) } +func (*HealthCheck) ProtoMessage() {} +func (*HealthCheck) Descriptor() ([]byte, []int) { + return fileDescriptor_75439d7b4d98e201, []int{0} +} + +func (m *HealthCheck) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheck.Unmarshal(m, b) +} +func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheck.Marshal(b, m, deterministic) +} +func (m *HealthCheck) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheck.Merge(m, src) +} +func (m *HealthCheck) XXX_Size() int { + return xxx_messageInfo_HealthCheck.Size(m) +} +func (m *HealthCheck) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheck.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheck proto.InternalMessageInfo + +func (m *HealthCheck) GetPassThroughMode() *wrappers.BoolValue { + if m != nil { + return m.PassThroughMode + } + return nil +} + +func (m *HealthCheck) GetCacheTime() *duration.Duration { + if m != nil { + return m.CacheTime + } + return nil +} + +func (m *HealthCheck) GetClusterMinHealthyPercentages() map[string]*_type.Percent { + if m != nil { + return m.ClusterMinHealthyPercentages + } + return nil +} + +func (m *HealthCheck) GetHeaders() []*route.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +func init() { + proto.RegisterType((*HealthCheck)(nil), "envoy.config.filter.http.health_check.v2.HealthCheck") + proto.RegisterMapType((map[string]*_type.Percent)(nil), "envoy.config.filter.http.health_check.v2.HealthCheck.ClusterMinHealthyPercentagesEntry") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/health_check/v2/health_check.proto", fileDescriptor_75439d7b4d98e201) +} + +var fileDescriptor_75439d7b4d98e201 = []byte{ + // 515 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x3f, 0x6f, 0xd4, 0x30, + 0x14, 0x57, 0xee, 0x7a, 0xa5, 0xf5, 0x0d, 0x1c, 0x61, 0x20, 0x9c, 0xa0, 0xb4, 0x4c, 0xd7, 0x01, + 0x5b, 0xba, 0x4a, 0xa8, 0xa2, 0xdb, 0x15, 0x24, 0x84, 0x74, 0xd2, 0x29, 0xaa, 0x60, 0x8c, 0xdc, + 0xe4, 0x5d, 0x62, 0x35, 0xb1, 0x2d, 0xe7, 0xe5, 0x68, 0x36, 0x56, 0x58, 0x58, 0x99, 0xf8, 0x20, + 0x7c, 0x02, 0x56, 0x3e, 0x03, 0xdf, 0x80, 0x91, 0x01, 0x21, 0xdb, 0x39, 0xd1, 0xaa, 0x40, 0xbb, + 0x44, 0x76, 0xde, 0xef, 0xcf, 0xf3, 0xef, 0x3d, 0x72, 0x04, 0x72, 0xa5, 0x5a, 0x96, 0x2a, 0xb9, + 0x14, 0x39, 0x5b, 0x8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6, 0x6b, 0xd2, 0x65, + 0x55, 0xff, 0x2d, 0xac, 0x83, 0x2f, 0xef, 0xbe, 0x7e, 0xdb, 0xec, 0x8d, 0x02, 0xf2, 0x54, 0x28, + 0xef, 0xa3, 0x8d, 0x3a, 0x6f, 0x6f, 0x1c, 0xf6, 0x6c, 0x74, 0x21, 0xed, 0x85, 0x1d, 0xf5, 0x22, + 0x38, 0xdd, 0x74, 0x33, 0x3f, 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xe4, 0x6a, 0x12, 0xbe, + 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.validate.go new file mode 100644 index 000000000..1802f1542 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2/health_check.pb.validate.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/health_check/v2/health_check.proto + +package envoy_config_filter_http_health_check_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _health_check_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HealthCheck with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HealthCheck) Validate() error { + if m == nil { + return nil + } + + if m.GetPassThroughMode() == nil { + return HealthCheckValidationError{ + field: "PassThroughMode", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetPassThroughMode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: "PassThroughMode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCacheTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: "CacheTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetClusterMinHealthyPercentages() { + _ = val + + // no validation rules for ClusterMinHealthyPercentages[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: fmt.Sprintf("ClusterMinHealthyPercentages[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HealthCheckValidationError is the validation error returned by +// HealthCheck.Validate if the designated constraints aren't met. +type HealthCheckValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckValidationError) ErrorName() string { return "HealthCheckValidationError" } + +// Error satisfies the builtin error interface +func (e HealthCheckValidationError) 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 %sHealthCheck.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.go new file mode 100644 index 000000000..68deae4d5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.go @@ -0,0 +1,187 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/ip_tagging/v2/ip_tagging.proto + +package envoy_config_filter_http_ip_tagging_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type IPTagging_RequestType int32 + +const ( + IPTagging_BOTH IPTagging_RequestType = 0 + IPTagging_INTERNAL IPTagging_RequestType = 1 + IPTagging_EXTERNAL IPTagging_RequestType = 2 +) + +var IPTagging_RequestType_name = map[int32]string{ + 0: "BOTH", + 1: "INTERNAL", + 2: "EXTERNAL", +} + +var IPTagging_RequestType_value = map[string]int32{ + "BOTH": 0, + "INTERNAL": 1, + "EXTERNAL": 2, +} + +func (x IPTagging_RequestType) String() string { + return proto.EnumName(IPTagging_RequestType_name, int32(x)) +} + +func (IPTagging_RequestType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f4275d0b367744d2, []int{0, 0} +} + +type IPTagging struct { + RequestType IPTagging_RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=envoy.config.filter.http.ip_tagging.v2.IPTagging_RequestType" json:"request_type,omitempty"` + IpTags []*IPTagging_IPTag `protobuf:"bytes,4,rep,name=ip_tags,json=ipTags,proto3" json:"ip_tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPTagging) Reset() { *m = IPTagging{} } +func (m *IPTagging) String() string { return proto.CompactTextString(m) } +func (*IPTagging) ProtoMessage() {} +func (*IPTagging) Descriptor() ([]byte, []int) { + return fileDescriptor_f4275d0b367744d2, []int{0} +} + +func (m *IPTagging) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IPTagging.Unmarshal(m, b) +} +func (m *IPTagging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IPTagging.Marshal(b, m, deterministic) +} +func (m *IPTagging) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPTagging.Merge(m, src) +} +func (m *IPTagging) XXX_Size() int { + return xxx_messageInfo_IPTagging.Size(m) +} +func (m *IPTagging) XXX_DiscardUnknown() { + xxx_messageInfo_IPTagging.DiscardUnknown(m) +} + +var xxx_messageInfo_IPTagging proto.InternalMessageInfo + +func (m *IPTagging) GetRequestType() IPTagging_RequestType { + if m != nil { + return m.RequestType + } + return IPTagging_BOTH +} + +func (m *IPTagging) GetIpTags() []*IPTagging_IPTag { + if m != nil { + return m.IpTags + } + return nil +} + +type IPTagging_IPTag struct { + IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"` + IpList []*core.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList,proto3" json:"ip_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPTagging_IPTag) Reset() { *m = IPTagging_IPTag{} } +func (m *IPTagging_IPTag) String() string { return proto.CompactTextString(m) } +func (*IPTagging_IPTag) ProtoMessage() {} +func (*IPTagging_IPTag) Descriptor() ([]byte, []int) { + return fileDescriptor_f4275d0b367744d2, []int{0, 0} +} + +func (m *IPTagging_IPTag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IPTagging_IPTag.Unmarshal(m, b) +} +func (m *IPTagging_IPTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IPTagging_IPTag.Marshal(b, m, deterministic) +} +func (m *IPTagging_IPTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPTagging_IPTag.Merge(m, src) +} +func (m *IPTagging_IPTag) XXX_Size() int { + return xxx_messageInfo_IPTagging_IPTag.Size(m) +} +func (m *IPTagging_IPTag) XXX_DiscardUnknown() { + xxx_messageInfo_IPTagging_IPTag.DiscardUnknown(m) +} + +var xxx_messageInfo_IPTagging_IPTag proto.InternalMessageInfo + +func (m *IPTagging_IPTag) GetIpTagName() string { + if m != nil { + return m.IpTagName + } + return "" +} + +func (m *IPTagging_IPTag) GetIpList() []*core.CidrRange { + if m != nil { + return m.IpList + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.config.filter.http.ip_tagging.v2.IPTagging_RequestType", IPTagging_RequestType_name, IPTagging_RequestType_value) + proto.RegisterType((*IPTagging)(nil), "envoy.config.filter.http.ip_tagging.v2.IPTagging") + proto.RegisterType((*IPTagging_IPTag)(nil), "envoy.config.filter.http.ip_tagging.v2.IPTagging.IPTag") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/ip_tagging/v2/ip_tagging.proto", fileDescriptor_f4275d0b367744d2) +} + +var fileDescriptor_f4275d0b367744d2 = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0xcf,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f7, 0x1f, 0xdd, 0x64, 0x88, 0xf0, 0x23, + 0xa9, 0xa3, 0x35, 0x63, 0xf5, 0x45, 0xb3, 0xe5, 0x57, 0x65, 0x7b, 0x53, 0xd3, 0xfe, 0xd5, 0xdc, + 0xd7, 0x3d, 0x47, 0x6f, 0xba, 0xa1, 0xf7, 0xc9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x6b, + 0x45, 0x6b, 0xd3, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go new file mode 100644 index 000000000..9ee2e61de --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go @@ -0,0 +1,212 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/ip_tagging/v2/ip_tagging.proto + +package envoy_config_filter_http_ip_tagging_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ip_tagging_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on IPTagging with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IPTagging) Validate() error { + if m == nil { + return nil + } + + if _, ok := IPTagging_RequestType_name[int32(m.GetRequestType())]; !ok { + return IPTaggingValidationError{ + field: "RequestType", + reason: "value must be one of the defined enum values", + } + } + + if len(m.GetIpTags()) < 1 { + return IPTaggingValidationError{ + field: "IpTags", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetIpTags() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IPTaggingValidationError{ + field: fmt.Sprintf("IpTags[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IPTaggingValidationError is the validation error returned by +// IPTagging.Validate if the designated constraints aren't met. +type IPTaggingValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IPTaggingValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IPTaggingValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IPTaggingValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IPTaggingValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IPTaggingValidationError) ErrorName() string { return "IPTaggingValidationError" } + +// Error satisfies the builtin error interface +func (e IPTaggingValidationError) 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 %sIPTagging.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IPTaggingValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IPTaggingValidationError{} + +// Validate checks the field values on IPTagging_IPTag with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *IPTagging_IPTag) Validate() error { + if m == nil { + return nil + } + + // no validation rules for IpTagName + + for idx, item := range m.GetIpList() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IPTagging_IPTagValidationError{ + field: fmt.Sprintf("IpList[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IPTagging_IPTagValidationError is the validation error returned by +// IPTagging_IPTag.Validate if the designated constraints aren't met. +type IPTagging_IPTagValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IPTagging_IPTagValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IPTagging_IPTagValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IPTagging_IPTagValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IPTagging_IPTagValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IPTagging_IPTagValidationError) ErrorName() string { return "IPTagging_IPTagValidationError" } + +// Error satisfies the builtin error interface +func (e IPTagging_IPTagValidationError) 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 %sIPTagging_IPTag.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IPTagging_IPTagValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IPTagging_IPTagValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.go new file mode 100644 index 000000000..55007d014 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.go @@ -0,0 +1,775 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/jwt_authn/v2alpha/config.proto + +package envoy_config_filter_http_jwt_authn_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type JwtProvider struct { + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"` + // Types that are valid to be assigned to JwksSourceSpecifier: + // *JwtProvider_RemoteJwks + // *JwtProvider_LocalJwks + JwksSourceSpecifier isJwtProvider_JwksSourceSpecifier `protobuf_oneof:"jwks_source_specifier"` + Forward bool `protobuf:"varint,5,opt,name=forward,proto3" json:"forward,omitempty"` + FromHeaders []*JwtHeader `protobuf:"bytes,6,rep,name=from_headers,json=fromHeaders,proto3" json:"from_headers,omitempty"` + FromParams []string `protobuf:"bytes,7,rep,name=from_params,json=fromParams,proto3" json:"from_params,omitempty"` + ForwardPayloadHeader string `protobuf:"bytes,8,opt,name=forward_payload_header,json=forwardPayloadHeader,proto3" json:"forward_payload_header,omitempty"` + PayloadInMetadata string `protobuf:"bytes,9,opt,name=payload_in_metadata,json=payloadInMetadata,proto3" json:"payload_in_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtProvider) Reset() { *m = JwtProvider{} } +func (m *JwtProvider) String() string { return proto.CompactTextString(m) } +func (*JwtProvider) ProtoMessage() {} +func (*JwtProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{0} +} + +func (m *JwtProvider) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtProvider.Unmarshal(m, b) +} +func (m *JwtProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtProvider.Marshal(b, m, deterministic) +} +func (m *JwtProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtProvider.Merge(m, src) +} +func (m *JwtProvider) XXX_Size() int { + return xxx_messageInfo_JwtProvider.Size(m) +} +func (m *JwtProvider) XXX_DiscardUnknown() { + xxx_messageInfo_JwtProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtProvider proto.InternalMessageInfo + +func (m *JwtProvider) GetIssuer() string { + if m != nil { + return m.Issuer + } + return "" +} + +func (m *JwtProvider) GetAudiences() []string { + if m != nil { + return m.Audiences + } + return nil +} + +type isJwtProvider_JwksSourceSpecifier interface { + isJwtProvider_JwksSourceSpecifier() +} + +type JwtProvider_RemoteJwks struct { + RemoteJwks *RemoteJwks `protobuf:"bytes,3,opt,name=remote_jwks,json=remoteJwks,proto3,oneof"` +} + +type JwtProvider_LocalJwks struct { + LocalJwks *core.DataSource `protobuf:"bytes,4,opt,name=local_jwks,json=localJwks,proto3,oneof"` +} + +func (*JwtProvider_RemoteJwks) isJwtProvider_JwksSourceSpecifier() {} + +func (*JwtProvider_LocalJwks) isJwtProvider_JwksSourceSpecifier() {} + +func (m *JwtProvider) GetJwksSourceSpecifier() isJwtProvider_JwksSourceSpecifier { + if m != nil { + return m.JwksSourceSpecifier + } + return nil +} + +func (m *JwtProvider) GetRemoteJwks() *RemoteJwks { + if x, ok := m.GetJwksSourceSpecifier().(*JwtProvider_RemoteJwks); ok { + return x.RemoteJwks + } + return nil +} + +func (m *JwtProvider) GetLocalJwks() *core.DataSource { + if x, ok := m.GetJwksSourceSpecifier().(*JwtProvider_LocalJwks); ok { + return x.LocalJwks + } + return nil +} + +func (m *JwtProvider) GetForward() bool { + if m != nil { + return m.Forward + } + return false +} + +func (m *JwtProvider) GetFromHeaders() []*JwtHeader { + if m != nil { + return m.FromHeaders + } + return nil +} + +func (m *JwtProvider) GetFromParams() []string { + if m != nil { + return m.FromParams + } + return nil +} + +func (m *JwtProvider) GetForwardPayloadHeader() string { + if m != nil { + return m.ForwardPayloadHeader + } + return "" +} + +func (m *JwtProvider) GetPayloadInMetadata() string { + if m != nil { + return m.PayloadInMetadata + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*JwtProvider) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*JwtProvider_RemoteJwks)(nil), + (*JwtProvider_LocalJwks)(nil), + } +} + +type RemoteJwks struct { + HttpUri *core.HttpUri `protobuf:"bytes,1,opt,name=http_uri,json=httpUri,proto3" json:"http_uri,omitempty"` + CacheDuration *duration.Duration `protobuf:"bytes,2,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoteJwks) Reset() { *m = RemoteJwks{} } +func (m *RemoteJwks) String() string { return proto.CompactTextString(m) } +func (*RemoteJwks) ProtoMessage() {} +func (*RemoteJwks) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{1} +} + +func (m *RemoteJwks) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoteJwks.Unmarshal(m, b) +} +func (m *RemoteJwks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoteJwks.Marshal(b, m, deterministic) +} +func (m *RemoteJwks) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteJwks.Merge(m, src) +} +func (m *RemoteJwks) XXX_Size() int { + return xxx_messageInfo_RemoteJwks.Size(m) +} +func (m *RemoteJwks) XXX_DiscardUnknown() { + xxx_messageInfo_RemoteJwks.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoteJwks proto.InternalMessageInfo + +func (m *RemoteJwks) GetHttpUri() *core.HttpUri { + if m != nil { + return m.HttpUri + } + return nil +} + +func (m *RemoteJwks) GetCacheDuration() *duration.Duration { + if m != nil { + return m.CacheDuration + } + return nil +} + +type JwtHeader struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ValuePrefix string `protobuf:"bytes,2,opt,name=value_prefix,json=valuePrefix,proto3" json:"value_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtHeader) Reset() { *m = JwtHeader{} } +func (m *JwtHeader) String() string { return proto.CompactTextString(m) } +func (*JwtHeader) ProtoMessage() {} +func (*JwtHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{2} +} + +func (m *JwtHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtHeader.Unmarshal(m, b) +} +func (m *JwtHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtHeader.Marshal(b, m, deterministic) +} +func (m *JwtHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtHeader.Merge(m, src) +} +func (m *JwtHeader) XXX_Size() int { + return xxx_messageInfo_JwtHeader.Size(m) +} +func (m *JwtHeader) XXX_DiscardUnknown() { + xxx_messageInfo_JwtHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtHeader proto.InternalMessageInfo + +func (m *JwtHeader) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *JwtHeader) GetValuePrefix() string { + if m != nil { + return m.ValuePrefix + } + return "" +} + +type ProviderWithAudiences struct { + ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` + Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProviderWithAudiences) Reset() { *m = ProviderWithAudiences{} } +func (m *ProviderWithAudiences) String() string { return proto.CompactTextString(m) } +func (*ProviderWithAudiences) ProtoMessage() {} +func (*ProviderWithAudiences) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{3} +} + +func (m *ProviderWithAudiences) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProviderWithAudiences.Unmarshal(m, b) +} +func (m *ProviderWithAudiences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProviderWithAudiences.Marshal(b, m, deterministic) +} +func (m *ProviderWithAudiences) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProviderWithAudiences.Merge(m, src) +} +func (m *ProviderWithAudiences) XXX_Size() int { + return xxx_messageInfo_ProviderWithAudiences.Size(m) +} +func (m *ProviderWithAudiences) XXX_DiscardUnknown() { + xxx_messageInfo_ProviderWithAudiences.DiscardUnknown(m) +} + +var xxx_messageInfo_ProviderWithAudiences proto.InternalMessageInfo + +func (m *ProviderWithAudiences) GetProviderName() string { + if m != nil { + return m.ProviderName + } + return "" +} + +func (m *ProviderWithAudiences) GetAudiences() []string { + if m != nil { + return m.Audiences + } + return nil +} + +type JwtRequirement struct { + // Types that are valid to be assigned to RequiresType: + // *JwtRequirement_ProviderName + // *JwtRequirement_ProviderAndAudiences + // *JwtRequirement_RequiresAny + // *JwtRequirement_RequiresAll + // *JwtRequirement_AllowMissingOrFailed + // *JwtRequirement_AllowMissing + RequiresType isJwtRequirement_RequiresType `protobuf_oneof:"requires_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirement) Reset() { *m = JwtRequirement{} } +func (m *JwtRequirement) String() string { return proto.CompactTextString(m) } +func (*JwtRequirement) ProtoMessage() {} +func (*JwtRequirement) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{4} +} + +func (m *JwtRequirement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirement.Unmarshal(m, b) +} +func (m *JwtRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirement.Marshal(b, m, deterministic) +} +func (m *JwtRequirement) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirement.Merge(m, src) +} +func (m *JwtRequirement) XXX_Size() int { + return xxx_messageInfo_JwtRequirement.Size(m) +} +func (m *JwtRequirement) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirement.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirement proto.InternalMessageInfo + +type isJwtRequirement_RequiresType interface { + isJwtRequirement_RequiresType() +} + +type JwtRequirement_ProviderName struct { + ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3,oneof"` +} + +type JwtRequirement_ProviderAndAudiences struct { + ProviderAndAudiences *ProviderWithAudiences `protobuf:"bytes,2,opt,name=provider_and_audiences,json=providerAndAudiences,proto3,oneof"` +} + +type JwtRequirement_RequiresAny struct { + RequiresAny *JwtRequirementOrList `protobuf:"bytes,3,opt,name=requires_any,json=requiresAny,proto3,oneof"` +} + +type JwtRequirement_RequiresAll struct { + RequiresAll *JwtRequirementAndList `protobuf:"bytes,4,opt,name=requires_all,json=requiresAll,proto3,oneof"` +} + +type JwtRequirement_AllowMissingOrFailed struct { + AllowMissingOrFailed *empty.Empty `protobuf:"bytes,5,opt,name=allow_missing_or_failed,json=allowMissingOrFailed,proto3,oneof"` +} + +type JwtRequirement_AllowMissing struct { + AllowMissing *empty.Empty `protobuf:"bytes,6,opt,name=allow_missing,json=allowMissing,proto3,oneof"` +} + +func (*JwtRequirement_ProviderName) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_ProviderAndAudiences) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_RequiresAny) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_RequiresAll) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_AllowMissingOrFailed) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_AllowMissing) isJwtRequirement_RequiresType() {} + +func (m *JwtRequirement) GetRequiresType() isJwtRequirement_RequiresType { + if m != nil { + return m.RequiresType + } + return nil +} + +func (m *JwtRequirement) GetProviderName() string { + if x, ok := m.GetRequiresType().(*JwtRequirement_ProviderName); ok { + return x.ProviderName + } + return "" +} + +func (m *JwtRequirement) GetProviderAndAudiences() *ProviderWithAudiences { + if x, ok := m.GetRequiresType().(*JwtRequirement_ProviderAndAudiences); ok { + return x.ProviderAndAudiences + } + return nil +} + +func (m *JwtRequirement) GetRequiresAny() *JwtRequirementOrList { + if x, ok := m.GetRequiresType().(*JwtRequirement_RequiresAny); ok { + return x.RequiresAny + } + return nil +} + +func (m *JwtRequirement) GetRequiresAll() *JwtRequirementAndList { + if x, ok := m.GetRequiresType().(*JwtRequirement_RequiresAll); ok { + return x.RequiresAll + } + return nil +} + +func (m *JwtRequirement) GetAllowMissingOrFailed() *empty.Empty { + if x, ok := m.GetRequiresType().(*JwtRequirement_AllowMissingOrFailed); ok { + return x.AllowMissingOrFailed + } + return nil +} + +func (m *JwtRequirement) GetAllowMissing() *empty.Empty { + if x, ok := m.GetRequiresType().(*JwtRequirement_AllowMissing); ok { + return x.AllowMissing + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*JwtRequirement) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*JwtRequirement_ProviderName)(nil), + (*JwtRequirement_ProviderAndAudiences)(nil), + (*JwtRequirement_RequiresAny)(nil), + (*JwtRequirement_RequiresAll)(nil), + (*JwtRequirement_AllowMissingOrFailed)(nil), + (*JwtRequirement_AllowMissing)(nil), + } +} + +type JwtRequirementOrList struct { + Requirements []*JwtRequirement `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirementOrList) Reset() { *m = JwtRequirementOrList{} } +func (m *JwtRequirementOrList) String() string { return proto.CompactTextString(m) } +func (*JwtRequirementOrList) ProtoMessage() {} +func (*JwtRequirementOrList) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{5} +} + +func (m *JwtRequirementOrList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirementOrList.Unmarshal(m, b) +} +func (m *JwtRequirementOrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirementOrList.Marshal(b, m, deterministic) +} +func (m *JwtRequirementOrList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirementOrList.Merge(m, src) +} +func (m *JwtRequirementOrList) XXX_Size() int { + return xxx_messageInfo_JwtRequirementOrList.Size(m) +} +func (m *JwtRequirementOrList) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirementOrList.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirementOrList proto.InternalMessageInfo + +func (m *JwtRequirementOrList) GetRequirements() []*JwtRequirement { + if m != nil { + return m.Requirements + } + return nil +} + +type JwtRequirementAndList struct { + Requirements []*JwtRequirement `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirementAndList) Reset() { *m = JwtRequirementAndList{} } +func (m *JwtRequirementAndList) String() string { return proto.CompactTextString(m) } +func (*JwtRequirementAndList) ProtoMessage() {} +func (*JwtRequirementAndList) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{6} +} + +func (m *JwtRequirementAndList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirementAndList.Unmarshal(m, b) +} +func (m *JwtRequirementAndList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirementAndList.Marshal(b, m, deterministic) +} +func (m *JwtRequirementAndList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirementAndList.Merge(m, src) +} +func (m *JwtRequirementAndList) XXX_Size() int { + return xxx_messageInfo_JwtRequirementAndList.Size(m) +} +func (m *JwtRequirementAndList) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirementAndList.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirementAndList proto.InternalMessageInfo + +func (m *JwtRequirementAndList) GetRequirements() []*JwtRequirement { + if m != nil { + return m.Requirements + } + return nil +} + +type RequirementRule struct { + Match *route.RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Requires *JwtRequirement `protobuf:"bytes,2,opt,name=requires,proto3" json:"requires,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequirementRule) Reset() { *m = RequirementRule{} } +func (m *RequirementRule) String() string { return proto.CompactTextString(m) } +func (*RequirementRule) ProtoMessage() {} +func (*RequirementRule) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{7} +} + +func (m *RequirementRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequirementRule.Unmarshal(m, b) +} +func (m *RequirementRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequirementRule.Marshal(b, m, deterministic) +} +func (m *RequirementRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequirementRule.Merge(m, src) +} +func (m *RequirementRule) XXX_Size() int { + return xxx_messageInfo_RequirementRule.Size(m) +} +func (m *RequirementRule) XXX_DiscardUnknown() { + xxx_messageInfo_RequirementRule.DiscardUnknown(m) +} + +var xxx_messageInfo_RequirementRule proto.InternalMessageInfo + +func (m *RequirementRule) GetMatch() *route.RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *RequirementRule) GetRequires() *JwtRequirement { + if m != nil { + return m.Requires + } + return nil +} + +type FilterStateRule struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Requires map[string]*JwtRequirement `protobuf:"bytes,3,rep,name=requires,proto3" json:"requires,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterStateRule) Reset() { *m = FilterStateRule{} } +func (m *FilterStateRule) String() string { return proto.CompactTextString(m) } +func (*FilterStateRule) ProtoMessage() {} +func (*FilterStateRule) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{8} +} + +func (m *FilterStateRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterStateRule.Unmarshal(m, b) +} +func (m *FilterStateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterStateRule.Marshal(b, m, deterministic) +} +func (m *FilterStateRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterStateRule.Merge(m, src) +} +func (m *FilterStateRule) XXX_Size() int { + return xxx_messageInfo_FilterStateRule.Size(m) +} +func (m *FilterStateRule) XXX_DiscardUnknown() { + xxx_messageInfo_FilterStateRule.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterStateRule proto.InternalMessageInfo + +func (m *FilterStateRule) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FilterStateRule) GetRequires() map[string]*JwtRequirement { + if m != nil { + return m.Requires + } + return nil +} + +type JwtAuthentication struct { + Providers map[string]*JwtProvider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Rules []*RequirementRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + FilterStateRules *FilterStateRule `protobuf:"bytes,3,opt,name=filter_state_rules,json=filterStateRules,proto3" json:"filter_state_rules,omitempty"` + BypassCorsPreflight bool `protobuf:"varint,4,opt,name=bypass_cors_preflight,json=bypassCorsPreflight,proto3" json:"bypass_cors_preflight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtAuthentication) Reset() { *m = JwtAuthentication{} } +func (m *JwtAuthentication) String() string { return proto.CompactTextString(m) } +func (*JwtAuthentication) ProtoMessage() {} +func (*JwtAuthentication) Descriptor() ([]byte, []int) { + return fileDescriptor_3d4e20dc3096b50e, []int{9} +} + +func (m *JwtAuthentication) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtAuthentication.Unmarshal(m, b) +} +func (m *JwtAuthentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtAuthentication.Marshal(b, m, deterministic) +} +func (m *JwtAuthentication) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtAuthentication.Merge(m, src) +} +func (m *JwtAuthentication) XXX_Size() int { + return xxx_messageInfo_JwtAuthentication.Size(m) +} +func (m *JwtAuthentication) XXX_DiscardUnknown() { + xxx_messageInfo_JwtAuthentication.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtAuthentication proto.InternalMessageInfo + +func (m *JwtAuthentication) GetProviders() map[string]*JwtProvider { + if m != nil { + return m.Providers + } + return nil +} + +func (m *JwtAuthentication) GetRules() []*RequirementRule { + if m != nil { + return m.Rules + } + return nil +} + +func (m *JwtAuthentication) GetFilterStateRules() *FilterStateRule { + if m != nil { + return m.FilterStateRules + } + return nil +} + +func (m *JwtAuthentication) GetBypassCorsPreflight() bool { + if m != nil { + return m.BypassCorsPreflight + } + return false +} + +func init() { + proto.RegisterType((*JwtProvider)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider") + proto.RegisterType((*RemoteJwks)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.RemoteJwks") + proto.RegisterType((*JwtHeader)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtHeader") + proto.RegisterType((*ProviderWithAudiences)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.ProviderWithAudiences") + proto.RegisterType((*JwtRequirement)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement") + proto.RegisterType((*JwtRequirementOrList)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementOrList") + proto.RegisterType((*JwtRequirementAndList)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementAndList") + proto.RegisterType((*RequirementRule)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule") + proto.RegisterType((*FilterStateRule)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.FilterStateRule") + proto.RegisterMapType((map[string]*JwtRequirement)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.FilterStateRule.RequiresEntry") + proto.RegisterType((*JwtAuthentication)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtAuthentication") + proto.RegisterMapType((map[string]*JwtProvider)(nil), "envoy.config.filter.http.jwt_authn.v2alpha.JwtAuthentication.ProvidersEntry") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/jwt_authn/v2alpha/config.proto", fileDescriptor_3d4e20dc3096b50e) +} + +var fileDescriptor_3d4e20dc3096b50e = []byte{ + // 1154 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xda, 0x71, 0x62, 0x3f, 0x27, 0x4d, 0x3a, 0x4d, 0xd2, 0x25, 0x4d, 0x5b, 0x63, 0x84, + 0x14, 0x10, 0xda, 0x95, 0x5c, 0x4a, 0xab, 0x56, 0x54, 0xb5, 0xfb, 0x47, 0x6e, 0x68, 0x88, 0xd9, + 0x8a, 0xbf, 0x97, 0xd5, 0x64, 0x77, 0x6c, 0x4f, 0xb2, 0xde, 0x59, 0x66, 0x66, 0xed, 0xf8, 0x16, + 0x84, 0xb8, 0x70, 0x00, 0x89, 0x13, 0x67, 0x6e, 0x7c, 0x05, 0x3e, 0x01, 0x57, 0xbe, 0x05, 0x67, + 0x4e, 0xa8, 0x07, 0x84, 0x76, 0x76, 0xd6, 0x7f, 0x12, 0xab, 0xe0, 0x16, 0x71, 0xb1, 0x76, 0xde, + 0x7b, 0xbf, 0xdf, 0x7b, 0xf3, 0x9b, 0x37, 0xcf, 0x03, 0xb7, 0x48, 0xd8, 0x67, 0x43, 0xdb, 0x63, + 0x61, 0x9b, 0x76, 0xec, 0x36, 0x0d, 0x24, 0xe1, 0x76, 0x57, 0xca, 0xc8, 0x3e, 0x1a, 0x48, 0x17, + 0xc7, 0xb2, 0x1b, 0xda, 0xfd, 0x1a, 0x0e, 0xa2, 0x2e, 0xd6, 0x41, 0x56, 0xc4, 0x99, 0x64, 0xe8, + 0x6d, 0x05, 0xb4, 0xb4, 0x2d, 0x05, 0x5a, 0x09, 0xd0, 0x1a, 0x01, 0x2d, 0x0d, 0xdc, 0xde, 0x49, + 0x93, 0xe0, 0x88, 0xda, 0xfd, 0x9a, 0xed, 0x31, 0x4e, 0xec, 0x43, 0x2c, 0x48, 0xca, 0xb4, 0x5d, + 0x39, 0xef, 0x4d, 0x78, 0xdc, 0x98, 0x53, 0x1d, 0xf1, 0xd6, 0x54, 0x04, 0x67, 0xb1, 0x24, 0xe9, + 0xaf, 0xeb, 0xb1, 0x5e, 0xc4, 0x42, 0x12, 0x4a, 0xa1, 0x43, 0xaf, 0x75, 0x18, 0xeb, 0x04, 0xc4, + 0x56, 0xab, 0xc3, 0xb8, 0x6d, 0xfb, 0x31, 0xc7, 0x92, 0xb2, 0x50, 0xfb, 0xaf, 0x9c, 0xf5, 0x93, + 0x5e, 0x24, 0x87, 0x19, 0x38, 0xf6, 0x23, 0x6c, 0xe3, 0x30, 0x64, 0x52, 0x61, 0x84, 0xdd, 0xa3, + 0x1d, 0x8e, 0x65, 0x56, 0xe9, 0xd5, 0x73, 0x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/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.validate.go new file mode 100644 index 000000000..0697197fd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.validate.go @@ -0,0 +1,992 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/jwt_authn/v2alpha/config.proto + +package envoy_config_filter_http_jwt_authn_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on JwtProvider with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *JwtProvider) Validate() error { + if m == nil { + return nil + } + + if len(m.GetIssuer()) < 1 { + return JwtProviderValidationError{ + field: "Issuer", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Forward + + for idx, item := range m.GetFromHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: fmt.Sprintf("FromHeaders[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for ForwardPayloadHeader + + // no validation rules for PayloadInMetadata + + switch m.JwksSourceSpecifier.(type) { + + case *JwtProvider_RemoteJwks: + + if v, ok := interface{}(m.GetRemoteJwks()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: "RemoteJwks", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtProvider_LocalJwks: + + if v, ok := interface{}(m.GetLocalJwks()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: "LocalJwks", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return JwtProviderValidationError{ + field: "JwksSourceSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// JwtProviderValidationError is the validation error returned by +// JwtProvider.Validate if the designated constraints aren't met. +type JwtProviderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtProviderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtProviderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtProviderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtProviderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtProviderValidationError) ErrorName() string { return "JwtProviderValidationError" } + +// Error satisfies the builtin error interface +func (e JwtProviderValidationError) 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 %sJwtProvider.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtProviderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtProviderValidationError{} + +// Validate checks the field values on RemoteJwks with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RemoteJwks) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHttpUri()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RemoteJwksValidationError{ + field: "HttpUri", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCacheDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RemoteJwksValidationError{ + field: "CacheDuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RemoteJwksValidationError is the validation error returned by +// RemoteJwks.Validate if the designated constraints aren't met. +type RemoteJwksValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RemoteJwksValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RemoteJwksValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RemoteJwksValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RemoteJwksValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RemoteJwksValidationError) ErrorName() string { return "RemoteJwksValidationError" } + +// Error satisfies the builtin error interface +func (e RemoteJwksValidationError) 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 %sRemoteJwks.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RemoteJwksValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RemoteJwksValidationError{} + +// Validate checks the field values on JwtHeader with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *JwtHeader) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return JwtHeaderValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for ValuePrefix + + return nil +} + +// JwtHeaderValidationError is the validation error returned by +// JwtHeader.Validate if the designated constraints aren't met. +type JwtHeaderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtHeaderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtHeaderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtHeaderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtHeaderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtHeaderValidationError) ErrorName() string { return "JwtHeaderValidationError" } + +// Error satisfies the builtin error interface +func (e JwtHeaderValidationError) 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 %sJwtHeader.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtHeaderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtHeaderValidationError{} + +// Validate checks the field values on ProviderWithAudiences with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProviderWithAudiences) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ProviderName + + return nil +} + +// ProviderWithAudiencesValidationError is the validation error returned by +// ProviderWithAudiences.Validate if the designated constraints aren't met. +type ProviderWithAudiencesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProviderWithAudiencesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProviderWithAudiencesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProviderWithAudiencesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProviderWithAudiencesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProviderWithAudiencesValidationError) ErrorName() string { + return "ProviderWithAudiencesValidationError" +} + +// Error satisfies the builtin error interface +func (e ProviderWithAudiencesValidationError) 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 %sProviderWithAudiences.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProviderWithAudiencesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProviderWithAudiencesValidationError{} + +// Validate checks the field values on JwtRequirement with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *JwtRequirement) Validate() error { + if m == nil { + return nil + } + + switch m.RequiresType.(type) { + + case *JwtRequirement_ProviderName: + // no validation rules for ProviderName + + case *JwtRequirement_ProviderAndAudiences: + + if v, ok := interface{}(m.GetProviderAndAudiences()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "ProviderAndAudiences", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_RequiresAny: + + if v, ok := interface{}(m.GetRequiresAny()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "RequiresAny", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_RequiresAll: + + if v, ok := interface{}(m.GetRequiresAll()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "RequiresAll", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_AllowMissingOrFailed: + + if v, ok := interface{}(m.GetAllowMissingOrFailed()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "AllowMissingOrFailed", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_AllowMissing: + + if v, ok := interface{}(m.GetAllowMissing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "AllowMissing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementValidationError is the validation error returned by +// JwtRequirement.Validate if the designated constraints aren't met. +type JwtRequirementValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementValidationError) ErrorName() string { return "JwtRequirementValidationError" } + +// Error satisfies the builtin error interface +func (e JwtRequirementValidationError) 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 %sJwtRequirement.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementValidationError{} + +// Validate checks the field values on JwtRequirementOrList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *JwtRequirementOrList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRequirements()) < 2 { + return JwtRequirementOrListValidationError{ + field: "Requirements", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRequirements() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementOrListValidationError{ + field: fmt.Sprintf("Requirements[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementOrListValidationError is the validation error returned by +// JwtRequirementOrList.Validate if the designated constraints aren't met. +type JwtRequirementOrListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementOrListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementOrListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementOrListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementOrListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementOrListValidationError) ErrorName() string { + return "JwtRequirementOrListValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtRequirementOrListValidationError) 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 %sJwtRequirementOrList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementOrListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementOrListValidationError{} + +// Validate checks the field values on JwtRequirementAndList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *JwtRequirementAndList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRequirements()) < 2 { + return JwtRequirementAndListValidationError{ + field: "Requirements", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRequirements() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementAndListValidationError{ + field: fmt.Sprintf("Requirements[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementAndListValidationError is the validation error returned by +// JwtRequirementAndList.Validate if the designated constraints aren't met. +type JwtRequirementAndListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementAndListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementAndListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementAndListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementAndListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementAndListValidationError) ErrorName() string { + return "JwtRequirementAndListValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtRequirementAndListValidationError) 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 %sJwtRequirementAndList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementAndListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementAndListValidationError{} + +// Validate checks the field values on RequirementRule with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RequirementRule) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RequirementRuleValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RequirementRuleValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequires()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RequirementRuleValidationError{ + field: "Requires", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RequirementRuleValidationError is the validation error returned by +// RequirementRule.Validate if the designated constraints aren't met. +type RequirementRuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RequirementRuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RequirementRuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RequirementRuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RequirementRuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RequirementRuleValidationError) ErrorName() string { return "RequirementRuleValidationError" } + +// Error satisfies the builtin error interface +func (e RequirementRuleValidationError) 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 %sRequirementRule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RequirementRuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RequirementRuleValidationError{} + +// Validate checks the field values on FilterStateRule with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *FilterStateRule) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return FilterStateRuleValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + for key, val := range m.GetRequires() { + _ = val + + // no validation rules for Requires[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterStateRuleValidationError{ + field: fmt.Sprintf("Requires[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FilterStateRuleValidationError is the validation error returned by +// FilterStateRule.Validate if the designated constraints aren't met. +type FilterStateRuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterStateRuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterStateRuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterStateRuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterStateRuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterStateRuleValidationError) ErrorName() string { return "FilterStateRuleValidationError" } + +// Error satisfies the builtin error interface +func (e FilterStateRuleValidationError) 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 %sFilterStateRule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterStateRuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterStateRuleValidationError{} + +// Validate checks the field values on JwtAuthentication with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *JwtAuthentication) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetProviders() { + _ = val + + // no validation rules for Providers[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: fmt.Sprintf("Providers[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: fmt.Sprintf("Rules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetFilterStateRules()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: "FilterStateRules", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for BypassCorsPreflight + + return nil +} + +// JwtAuthenticationValidationError is the validation error returned by +// JwtAuthentication.Validate if the designated constraints aren't met. +type JwtAuthenticationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtAuthenticationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtAuthenticationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtAuthenticationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtAuthenticationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtAuthenticationValidationError) ErrorName() string { + return "JwtAuthenticationValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtAuthenticationValidationError) 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 %sJwtAuthentication.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtAuthenticationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtAuthenticationValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.go new file mode 100644 index 000000000..9a9c46d85 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/lua/v2/lua.proto + +package envoy_config_filter_http_lua_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Lua struct { + InlineCode string `protobuf:"bytes,1,opt,name=inline_code,json=inlineCode,proto3" json:"inline_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Lua) Reset() { *m = Lua{} } +func (m *Lua) String() string { return proto.CompactTextString(m) } +func (*Lua) ProtoMessage() {} +func (*Lua) Descriptor() ([]byte, []int) { + return fileDescriptor_f59dca3e63e33613, []int{0} +} + +func (m *Lua) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Lua.Unmarshal(m, b) +} +func (m *Lua) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Lua.Marshal(b, m, deterministic) +} +func (m *Lua) XXX_Merge(src proto.Message) { + xxx_messageInfo_Lua.Merge(m, src) +} +func (m *Lua) XXX_Size() int { + return xxx_messageInfo_Lua.Size(m) +} +func (m *Lua) XXX_DiscardUnknown() { + xxx_messageInfo_Lua.DiscardUnknown(m) +} + +var xxx_messageInfo_Lua proto.InternalMessageInfo + +func (m *Lua) GetInlineCode() string { + if m != nil { + return m.InlineCode + } + return "" +} + +func init() { + proto.RegisterType((*Lua)(nil), "envoy.config.filter.http.lua.v2.Lua") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/lua/v2/lua.proto", fileDescriptor_f59dca3e63e33613) +} + +var fileDescriptor_f59dca3e63e33613 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0xcf, 0x29, 0x4d, 0xd4, 0x2f, 0x33, 0x02, 0x51, 0x7a, 0x05, 0x45, + 0xf9, 0x25, 0xf9, 0x42, 0xf2, 0x60, 0xa5, 0x7a, 0x10, 0xa5, 0x7a, 0x10, 0xa5, 0x7a, 0x20, 0xa5, + 0x7a, 0x20, 0x35, 0x65, 0x46, 0x52, 0x72, 0xa5, 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, + 0x25, 0x89, 0x25, 0x99, 0xf9, 0x79, 0xc5, 0xfa, 0xb9, 0x99, 0xe9, 0x45, 0x89, 0x25, 0xa9, 0x10, + 0x03, 0xa4, 0x64, 0x31, 0xe4, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0xa1, 0xd2, 0xe2, 0x65, 0x89, + 0x39, 0x99, 0x29, 0x89, 0x25, 0xa9, 0xfa, 0x30, 0x06, 0x44, 0x42, 0x49, 0x9f, 0x8b, 0xd9, 0xa7, + 0x34, 0x51, 0x48, 0x83, 0x8b, 0x3b, 0x33, 0x2f, 0x27, 0x33, 0x2f, 0x35, 0x3e, 0x39, 0x3f, 0x25, + 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0xd3, 0x89, 0xfd, 0x97, 0x13, 0x4b, 0x11, 0x93, 0x02, 0x63, + 0x10, 0x17, 0x44, 0xce, 0x39, 0x3f, 0x25, 0xd5, 0x29, 0xff, 0xd3, 0x8c, 0x7f, 0xfd, 0xac, 0x6a, + 0x42, 0x2a, 0x10, 0x17, 0xa7, 0x56, 0x94, 0xa4, 0xe6, 0x15, 0x83, 0x2c, 0x84, 0xba, 0xba, 0x18, + 0xc9, 0xd9, 0xc6, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe4, 0xd2, 0xcd, 0xcc, 0xd7, + 0x03, 0x6b, 0x28, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x23, 0xe0, 0x5b, 0x27, 0x0e, 0x9f, 0xd2, 0xc4, + 0x00, 0x90, 0xfb, 0x02, 0x18, 0x93, 0xd8, 0xc0, 0x0e, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, + 0x18, 0xb8, 0xca, 0x4e, 0x4e, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.validate.go new file mode 100644 index 000000000..93967dd01 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2/lua.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/lua/v2/lua.proto + +package envoy_config_filter_http_lua_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _lua_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Lua with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Lua) Validate() error { + if m == nil { + return nil + } + + if len(m.GetInlineCode()) < 1 { + return LuaValidationError{ + field: "InlineCode", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// LuaValidationError is the validation error returned by Lua.Validate if the +// designated constraints aren't met. +type LuaValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LuaValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LuaValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LuaValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LuaValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LuaValidationError) ErrorName() string { return "LuaValidationError" } + +// Error satisfies the builtin error interface +func (e LuaValidationError) 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 %sLua.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LuaValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LuaValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.go new file mode 100644 index 000000000..49d94d6e5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.go @@ -0,0 +1,80 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/on_demand/v2/on_demand.proto + +package envoy_config_filter_http_on_demand_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OnDemand struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OnDemand) Reset() { *m = OnDemand{} } +func (m *OnDemand) String() string { return proto.CompactTextString(m) } +func (*OnDemand) ProtoMessage() {} +func (*OnDemand) Descriptor() ([]byte, []int) { + return fileDescriptor_313ef71bc8ae9362, []int{0} +} + +func (m *OnDemand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OnDemand.Unmarshal(m, b) +} +func (m *OnDemand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OnDemand.Marshal(b, m, deterministic) +} +func (m *OnDemand) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnDemand.Merge(m, src) +} +func (m *OnDemand) XXX_Size() int { + return xxx_messageInfo_OnDemand.Size(m) +} +func (m *OnDemand) XXX_DiscardUnknown() { + xxx_messageInfo_OnDemand.DiscardUnknown(m) +} + +var xxx_messageInfo_OnDemand proto.InternalMessageInfo + +func init() { + proto.RegisterType((*OnDemand)(nil), "envoy.config.filter.http.on_demand.v2.OnDemand") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/on_demand/v2/on_demand.proto", fileDescriptor_313ef71bc8ae9362) +} + +var fileDescriptor_313ef71bc8ae9362 = []byte{ + // 219 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4d, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0xcf, 0xcf, 0x8b, 0x4f, 0x49, 0xcd, 0x4d, 0xcc, 0x4b, 0xd1, 0x2f, + 0x33, 0x42, 0x70, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x54, 0xc1, 0xda, 0xf4, 0x20, 0xda, + 0xf4, 0x20, 0xda, 0xf4, 0x40, 0xda, 0xf4, 0x10, 0x2a, 0xcb, 0x8c, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, + 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, + 0xd3, 0x8b, 0x12, 0x4b, 0x52, 0x21, 0xc6, 0x48, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, + 0x16, 0x43, 0xa5, 0xc5, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, + 0x84, 0x12, 0x17, 0x17, 0x87, 0x7f, 0x9e, 0x0b, 0xd8, 0x1a, 0xa7, 0x06, 0xc6, 0x4f, 0x33, 0xfe, + 0xf5, 0xb3, 0xea, 0x08, 0x69, 0x41, 0xdc, 0x94, 0x5a, 0x51, 0x92, 0x9a, 0x57, 0x0c, 0x32, 0x0c, + 0xea, 0xae, 0x62, 0x0c, 0x87, 0x19, 0xef, 0x6a, 0x38, 0x71, 0x91, 0x8d, 0x49, 0x80, 0x91, 0xcb, + 0x38, 0x33, 0x5f, 0x0f, 0xac, 0xad, 0xa0, 0x28, 0xbf, 0xa2, 0x52, 0x8f, 0x28, 0x5f, 0x39, 0xf1, + 0xc2, 0xec, 0x0e, 0x00, 0x39, 0x26, 0x80, 0x31, 0x89, 0x0d, 0xec, 0x2a, 0x63, 0x40, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x6c, 0x77, 0xff, 0xa1, 0x4d, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.validate.go new file mode 100644 index 000000000..75b6a85b8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2/on_demand.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/on_demand/v2/on_demand.proto + +package envoy_config_filter_http_on_demand_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _on_demand_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OnDemand with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *OnDemand) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OnDemandValidationError is the validation error returned by +// OnDemand.Validate if the designated constraints aren't met. +type OnDemandValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OnDemandValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OnDemandValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OnDemandValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OnDemandValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OnDemandValidationError) ErrorName() string { return "OnDemandValidationError" } + +// Error satisfies the builtin error interface +func (e OnDemandValidationError) 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 %sOnDemand.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OnDemandValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OnDemandValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.go new file mode 100644 index 000000000..7381601b8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/original_src/v2alpha1/original_src.proto + +package envoy_config_filter_http_original_src_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalSrc struct { + Mark uint32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalSrc) Reset() { *m = OriginalSrc{} } +func (m *OriginalSrc) String() string { return proto.CompactTextString(m) } +func (*OriginalSrc) ProtoMessage() {} +func (*OriginalSrc) Descriptor() ([]byte, []int) { + return fileDescriptor_898a61b697cc0660, []int{0} +} + +func (m *OriginalSrc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalSrc.Unmarshal(m, b) +} +func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalSrc.Marshal(b, m, deterministic) +} +func (m *OriginalSrc) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalSrc.Merge(m, src) +} +func (m *OriginalSrc) XXX_Size() int { + return xxx_messageInfo_OriginalSrc.Size(m) +} +func (m *OriginalSrc) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalSrc.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalSrc proto.InternalMessageInfo + +func (m *OriginalSrc) GetMark() uint32 { + if m != nil { + return m.Mark + } + return 0 +} + +func init() { + proto.RegisterType((*OriginalSrc)(nil), "envoy.config.filter.http.original_src.v2alpha1.OriginalSrc") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/original_src/v2alpha1/original_src.proto", fileDescriptor_898a61b697cc0660) +} + +var fileDescriptor_898a61b697cc0660 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x28, 0x29, 0x29, 0xd0, 0xcf, 0x2f, 0xca, 0x4c, 0xcf, 0xcc, 0x4b, 0xcc, 0x89, 0x2f, 0x2e, + 0x4a, 0xd6, 0x2f, 0x33, 0x4a, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0x44, 0x11, 0xd5, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0xd2, 0x03, 0x1b, 0xa1, 0x07, 0x31, 0x42, 0x0f, 0x62, 0x84, 0x1e, 0xc8, 0x08, + 0x3d, 0x14, 0xc5, 0x30, 0x23, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, + 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, 0x8b, 0x12, 0x4b, 0x52, 0x21, + 0xe6, 0x49, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xa5, 0xc5, 0xcb, 0x12, + 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x84, 0x92, 0x22, 0x17, 0xb7, 0x3f, + 0xd4, 0xc2, 0xe0, 0xa2, 0x64, 0x21, 0x21, 0x2e, 0x96, 0xdc, 0xc4, 0xa2, 0x6c, 0x09, 0x46, 0x05, + 0x46, 0x0d, 0xde, 0x20, 0x30, 0xdb, 0xa9, 0x9f, 0xf1, 0xd3, 0x8c, 0x7f, 0xfd, 0xac, 0xfa, 0x42, + 0xba, 0x10, 0x37, 0xa7, 0x56, 0x94, 0xa4, 0xe6, 0x15, 0x83, 0xec, 0x80, 0xba, 0xbb, 0x18, 0x9b, + 0xc3, 0x8d, 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc8, 0x65, 0x93, 0x99, 0x0f, 0xf1, + 0x6d, 0x41, 0x51, 0x7e, 0x45, 0x25, 0x89, 0x1e, 0x77, 0x12, 0x40, 0x72, 0x5e, 0x00, 0xc8, 0xc9, + 0x01, 0x8c, 0x49, 0x6c, 0x60, 0xb7, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x36, 0x11, + 0x02, 0x88, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.validate.go new file mode 100644 index 000000000..66277f910 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1/original_src.pb.validate.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/original_src/v2alpha1/original_src.proto + +package envoy_config_filter_http_original_src_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_src_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalSrc with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalSrc) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Mark + + return nil +} + +// OriginalSrcValidationError is the validation error returned by +// OriginalSrc.Validate if the designated constraints aren't met. +type OriginalSrcValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalSrcValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalSrcValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalSrcValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalSrcValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalSrcValidationError) ErrorName() string { return "OriginalSrcValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalSrcValidationError) 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 %sOriginalSrc.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalSrcValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalSrcValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.go new file mode 100644 index 000000000..f45415602 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.go @@ -0,0 +1,155 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/rate_limit/v2/rate_limit.proto + +package envoy_config_filter_http_rate_limit_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"` + RequestType string `protobuf:"bytes,3,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitedAsResourceExhausted bool `protobuf:"varint,6,opt,name=rate_limited_as_resource_exhausted,json=rateLimitedAsResourceExhausted,proto3" json:"rate_limited_as_resource_exhausted,omitempty"` + RateLimitService *v2.RateLimitServiceConfig `protobuf:"bytes,7,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_af348a51c982d3a6, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetStage() uint32 { + if m != nil { + return m.Stage + } + return 0 +} + +func (m *RateLimit) GetRequestType() string { + if m != nil { + return m.RequestType + } + return "" +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitedAsResourceExhausted() bool { + if m != nil { + return m.RateLimitedAsResourceExhausted + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v2.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.config.filter.http.rate_limit.v2.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/rate_limit/v2/rate_limit.proto", fileDescriptor_af348a51c982d3a6) +} + +var fileDescriptor_af348a51c982d3a6 = []byte{ + // 492 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbd, 0x8e, 0xd3, 0x40, + 0x10, 0x66, 0x73, 0xf9, 0xbb, 0x3d, 0x7e, 0x82, 0x1b, 0xcc, 0x89, 0x0b, 0xe1, 0x90, 0x50, 0x14, + 0xa1, 0xb5, 0x48, 0x90, 0xa8, 0x31, 0xa1, 0x41, 0x20, 0x9d, 0x16, 0x7a, 0x6b, 0x13, 0x4f, 0x92, + 0x95, 0xec, 0x5d, 0xb3, 0x3b, 0xb6, 0xe2, 0x0e, 0x51, 0xd2, 0xd0, 0xf2, 0x0a, 0xbc, 0x02, 0x4f, + 0x40, 0xcb, 0xab, 0x50, 0xa6, 0x40, 0xc8, 0x7f, 0xc9, 0x1d, 0x34, 0xd7, 0xed, 0xce, 0xf7, 0x33, + 0xa3, 0x6f, 0x86, 0xbe, 0x00, 0x95, 0xe9, 0xdc, 0x5b, 0x6a, 0xb5, 0x92, 0x6b, 0x6f, 0x25, 0x23, + 0x04, 0xe3, 0x6d, 0x10, 0x13, 0xcf, 0x08, 0x84, 0x20, 0x92, 0xb1, 0x44, 0x2f, 0x9b, 0x5e, 0xfa, + 0xb1, 0xc4, 0x68, 0xd4, 0xce, 0x93, 0x52, 0xc8, 0x2a, 0x21, 0xab, 0x84, 0xac, 0x10, 0xb2, 0x4b, + 0xd4, 0x6c, 0x7a, 0xfa, 0xf8, 0x4a, 0x83, 0x02, 0x3b, 0x78, 0x46, 0xb6, 0x32, 0x3b, 0x1d, 0xae, + 0xb5, 0x5e, 0x47, 0xe0, 0x95, 0xbf, 0x45, 0xba, 0xf2, 0xc2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0x73, 0x50, 0xb9, 0xf3, 0x86, 0x9e, 0x1f, 0x56, 0x04, 0x61, 0x20, 0x6c, 0x60, 0xc0, 0xea, + 0xd4, 0x2c, 0x21, 0x80, 0xed, 0x46, 0xa4, 0x16, 0x21, 0x74, 0xbb, 0xa5, 0x78, 0x68, 0x9a, 0x74, + 0x20, 0x7c, 0x69, 0x79, 0x4d, 0x7b, 0xdd, 0xb0, 0x1c, 0x49, 0x9d, 0x83, 0x57, 0x60, 0xc1, 0x64, + 0x72, 0x09, 0x6e, 0xaf, 0x9c, 0xfb, 0x19, 0xbb, 0x72, 0x22, 0xfb, 0xd5, 0xb3, 0x6c, 0xca, 0xf6, + 0xa1, 0xbf, 0xaf, 0x24, 0xaf, 0x4a, 0x8e, 0xdf, 0xdf, 0xf9, 0x9d, 0x2f, 0xa4, 0x35, 0x20, 0x7c, + 0x60, 0xfe, 0x61, 0xf8, 0x9f, 0xc9, 0xef, 0x6f, 0x7f, 0xbe, 0x76, 0x9e, 0x3a, 0x93, 0xca, 0xb6, + 0x48, 0x51, 0xd9, 0x62, 0xd9, 0xf5, 0xf5, 0xd9, 0xc3, 0xf9, 0xd5, 0x7d, 0x66, 0x3f, 0x3e, 0xfd, + 0xfc, 0xd5, 0x6d, 0x0d, 0x08, 0x7d, 0x2e, 0x75, 0x35, 0x4d, 0x62, 0xf4, 0x36, 0x67, 0xd7, 0xbb, + 0x5d, 0xff, 0xf6, 0x7e, 0xcc, 0x8b, 0x22, 0xfa, 0x0b, 0xb2, 0xe8, 0x96, 0x3b, 0x98, 0xfd, 0x0d, + 0x00, 0x00, 0xff, 0xff, 0xd3, 0xd2, 0xbe, 0xea, 0x37, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.validate.go new file mode 100644 index 000000000..a7a196ac4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2/rate_limit.pb.validate.go @@ -0,0 +1,160 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/rate_limit/v2/rate_limit.proto + +package envoy_config_filter_http_rate_limit_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetStage() > 10 { + return RateLimitValidationError{ + field: "Stage", + reason: "value must be less than or equal to 10", + } + } + + if _, ok := _RateLimit_RequestType_InLookup[m.GetRequestType()]; !ok { + return RateLimitValidationError{ + field: "RequestType", + reason: "value must be in list [internal external both ]", + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + // no validation rules for RateLimitedAsResourceExhausted + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} + +var _RateLimit_RequestType_InLookup = map[string]struct{}{ + "internal": {}, + "external": {}, + "both": {}, + "": {}, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.go new file mode 100644 index 000000000..a8518b0db --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/router/v2/router.proto + +package envoy_config_filter_http_router_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/filter/accesslog/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Router struct { + DynamicStats *wrappers.BoolValue `protobuf:"bytes,1,opt,name=dynamic_stats,json=dynamicStats,proto3" json:"dynamic_stats,omitempty"` + StartChildSpan bool `protobuf:"varint,2,opt,name=start_child_span,json=startChildSpan,proto3" json:"start_child_span,omitempty"` + UpstreamLog []*v2.AccessLog `protobuf:"bytes,3,rep,name=upstream_log,json=upstreamLog,proto3" json:"upstream_log,omitempty"` + SuppressEnvoyHeaders bool `protobuf:"varint,4,opt,name=suppress_envoy_headers,json=suppressEnvoyHeaders,proto3" json:"suppress_envoy_headers,omitempty"` + StrictCheckHeaders []string `protobuf:"bytes,5,rep,name=strict_check_headers,json=strictCheckHeaders,proto3" json:"strict_check_headers,omitempty"` + RespectExpectedRqTimeout bool `protobuf:"varint,6,opt,name=respect_expected_rq_timeout,json=respectExpectedRqTimeout,proto3" json:"respect_expected_rq_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Router) Reset() { *m = Router{} } +func (m *Router) String() string { return proto.CompactTextString(m) } +func (*Router) ProtoMessage() {} +func (*Router) Descriptor() ([]byte, []int) { + return fileDescriptor_cc1f525510d06eb8, []int{0} +} + +func (m *Router) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Router.Unmarshal(m, b) +} +func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Router.Marshal(b, m, deterministic) +} +func (m *Router) XXX_Merge(src proto.Message) { + xxx_messageInfo_Router.Merge(m, src) +} +func (m *Router) XXX_Size() int { + return xxx_messageInfo_Router.Size(m) +} +func (m *Router) XXX_DiscardUnknown() { + xxx_messageInfo_Router.DiscardUnknown(m) +} + +var xxx_messageInfo_Router proto.InternalMessageInfo + +func (m *Router) GetDynamicStats() *wrappers.BoolValue { + if m != nil { + return m.DynamicStats + } + return nil +} + +func (m *Router) GetStartChildSpan() bool { + if m != nil { + return m.StartChildSpan + } + return false +} + +func (m *Router) GetUpstreamLog() []*v2.AccessLog { + if m != nil { + return m.UpstreamLog + } + return nil +} + +func (m *Router) GetSuppressEnvoyHeaders() bool { + if m != nil { + return m.SuppressEnvoyHeaders + } + return false +} + +func (m *Router) GetStrictCheckHeaders() []string { + if m != nil { + return m.StrictCheckHeaders + } + return nil +} + +func (m *Router) GetRespectExpectedRqTimeout() bool { + if m != nil { + return m.RespectExpectedRqTimeout + } + return false +} + +func init() { + proto.RegisterType((*Router)(nil), "envoy.config.filter.http.router.v2.Router") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/router/v2/router.proto", fileDescriptor_cc1f525510d06eb8) +} + +var fileDescriptor_cc1f525510d06eb8 = []byte{ + // 532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4f, 0x6b, 0xd4, 0x40, + 0x14, 0x67, 0xfa, 0x67, 0xd1, 0x6c, 0x95, 0x12, 0xab, 0x86, 0x8a, 0x65, 0xd9, 0x83, 0xae, 0x48, + 0x26, 0x65, 0xeb, 0x55, 0xc4, 0x2d, 0x05, 0x0f, 0x45, 0x4a, 0x2a, 0x5e, 0xc3, 0x34, 0x79, 0x9b, + 0x1d, 0x4c, 0x66, 0x66, 0xdf, 0x4c, 0xd6, 0xec, 0x4d, 0x3c, 0x08, 0x82, 0xa0, 0x88, 0x07, 0x3f, + 0x8b, 0x5f, 0x40, 0xaf, 0x7e, 0x15, 0x8f, 0x1e, 0x44, 0x26, 0x93, 0x54, 0x8b, 0x0b, 0x9e, 0x76, + 0xe6, 0xfd, 0xfe, 0xbc, 0xdf, 0xbe, 0x79, 0xf1, 0x22, 0x10, 0x0b, 0xb9, 0x8c, 0x52, 0x29, 0xa6, + 0x3c, 0x8f, 0xa6, 0xbc, 0x30, 0x80, 0xd1, 0xcc, 0x18, 0x15, 0xa1, 0xac, 0xec, 0x79, 0x31, 0x6e, + 0x4f, 0x54, 0xa1, 0x34, 0xd2, 0x1f, 0x36, 0x02, 0xea, 0x04, 0xd4, 0x09, 0xa8, 0x15, 0xd0, 0x96, + 0xb6, 0x18, 0xef, 0xee, 0xaf, 0x32, 0x65, 0x69, 0x0a, 0x5a, 0x17, 0x32, 0xb7, 0x96, 0xe7, 0x17, + 0xe7, 0xba, 0xbb, 0x97, 0x4b, 0x99, 0x17, 0x10, 0x35, 0xb7, 0xb3, 0x6a, 0x1a, 0xbd, 0x44, 0xa6, + 0x14, 0xa0, 0xee, 0xf0, 0x2a, 0x53, 0x2c, 0x62, 0x42, 0x48, 0xc3, 0x0c, 0x97, 0x42, 0x47, 0x25, + 0xcf, 0x91, 0x19, 0x68, 0xf1, 0xdb, 0xff, 0xe0, 0xda, 0x30, 0x53, 0x75, 0xf2, 0x9b, 0x0b, 0x56, + 0xf0, 0x8c, 0x19, 0x88, 0xba, 0x83, 0x03, 0x86, 0xaf, 0x37, 0xbc, 0x5e, 0xdc, 0xe4, 0xf6, 0x1f, + 0x79, 0x57, 0xb2, 0xa5, 0x60, 0x25, 0x4f, 0x13, 0xab, 0xd5, 0x01, 0x19, 0x90, 0x51, 0x7f, 0xbc, + 0x4b, 0x5d, 0x34, 0xda, 0x45, 0xa3, 0x13, 0x29, 0x8b, 0xe7, 0xac, 0xa8, 0x20, 0xde, 0x6a, 0x05, + 0xa7, 0x96, 0xef, 0x8f, 0xbc, 0x6d, 0x6d, 0x18, 0x9a, 0x24, 0x9d, 0xf1, 0x22, 0x4b, 0xb4, 0x62, + 0x22, 0x58, 0x1b, 0x90, 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38, 0x4f, 0xda, 0x9e, 0x41, + 0xaf, 0x19, 0x42, 0xd0, 0x52, 0x8e, 0x5a, 0x46, 0x3c, 0x7f, 0xe6, 0xf0, 0x49, 0xfd, 0xe3, 0xf3, + 0xaf, 0xf7, 0x9b, 0xf7, 0xfc, 0xbb, 0x6e, 0xfe, 0x50, 0x1b, 0x10, 0xda, 0x2e, 0x51, 0xfb, 0x06, + 0xfa, 0xe2, 0x7e, 0x1f, 0x7c, 0x79, 0xf5, 0xed, 0x7b, 0x6f, 0x6d, 0x9b, 0x78, 0xfb, 0x5c, 0xba, + 0x37, 0x53, 0x28, 0xeb, 0x25, 0xfd, 0xff, 0x97, 0x31, 0xe9, 0xbb, 0x65, 0x3b, 0xb1, 0xbb, 0x74, + 0x42, 0xce, 0x7a, 0xcd, 0x52, 0x1d, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x78, 0xb7, 0x88, 0x0b, + 0x86, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.validate.go new file mode 100644 index 000000000..86ecdcc09 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2/router.pb.validate.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/router/v2/router.proto + +package envoy_config_filter_http_router_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _router_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Router with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Router) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDynamicStats()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouterValidationError{ + field: "DynamicStats", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for StartChildSpan + + for idx, item := range m.GetUpstreamLog() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouterValidationError{ + field: fmt.Sprintf("UpstreamLog[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for SuppressEnvoyHeaders + + for idx, item := range m.GetStrictCheckHeaders() { + _, _ = idx, item + + if _, ok := _Router_StrictCheckHeaders_InLookup[item]; !ok { + return RouterValidationError{ + field: fmt.Sprintf("StrictCheckHeaders[%v]", idx), + reason: "value must be in list [x-envoy-upstream-rq-timeout-ms x-envoy-upstream-rq-per-try-timeout-ms x-envoy-max-retries x-envoy-retry-grpc-on x-envoy-retry-on]", + } + } + + } + + // no validation rules for RespectExpectedRqTimeout + + return nil +} + +// 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{} + +var _Router_StrictCheckHeaders_InLookup = map[string]struct{}{ + "x-envoy-upstream-rq-timeout-ms": {}, + "x-envoy-upstream-rq-per-try-timeout-ms": {}, + "x-envoy-max-retries": {}, + "x-envoy-retry-grpc-on": {}, + "x-envoy-retry-on": {}, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.go new file mode 100644 index 000000000..8f362de15 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.go @@ -0,0 +1,133 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/squash/v2/squash.proto + +package envoy_config_filter_http_squash_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Squash struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + AttachmentTemplate *_struct.Struct `protobuf:"bytes,2,opt,name=attachment_template,json=attachmentTemplate,proto3" json:"attachment_template,omitempty"` + RequestTimeout *duration.Duration `protobuf:"bytes,3,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"` + AttachmentTimeout *duration.Duration `protobuf:"bytes,4,opt,name=attachment_timeout,json=attachmentTimeout,proto3" json:"attachment_timeout,omitempty"` + AttachmentPollPeriod *duration.Duration `protobuf:"bytes,5,opt,name=attachment_poll_period,json=attachmentPollPeriod,proto3" json:"attachment_poll_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Squash) Reset() { *m = Squash{} } +func (m *Squash) String() string { return proto.CompactTextString(m) } +func (*Squash) ProtoMessage() {} +func (*Squash) Descriptor() ([]byte, []int) { + return fileDescriptor_63fc8434388b1e13, []int{0} +} + +func (m *Squash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Squash.Unmarshal(m, b) +} +func (m *Squash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Squash.Marshal(b, m, deterministic) +} +func (m *Squash) XXX_Merge(src proto.Message) { + xxx_messageInfo_Squash.Merge(m, src) +} +func (m *Squash) XXX_Size() int { + return xxx_messageInfo_Squash.Size(m) +} +func (m *Squash) XXX_DiscardUnknown() { + xxx_messageInfo_Squash.DiscardUnknown(m) +} + +var xxx_messageInfo_Squash proto.InternalMessageInfo + +func (m *Squash) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *Squash) GetAttachmentTemplate() *_struct.Struct { + if m != nil { + return m.AttachmentTemplate + } + return nil +} + +func (m *Squash) GetRequestTimeout() *duration.Duration { + if m != nil { + return m.RequestTimeout + } + return nil +} + +func (m *Squash) GetAttachmentTimeout() *duration.Duration { + if m != nil { + return m.AttachmentTimeout + } + return nil +} + +func (m *Squash) GetAttachmentPollPeriod() *duration.Duration { + if m != nil { + return m.AttachmentPollPeriod + } + return nil +} + +func init() { + proto.RegisterType((*Squash)(nil), "envoy.config.filter.http.squash.v2.Squash") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/squash/v2/squash.proto", fileDescriptor_63fc8434388b1e13) +} + +var fileDescriptor_63fc8434388b1e13 = []byte{ + // 387 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0xae, 0x12, 0x31, + 0x14, 0xc6, 0x33, 0xe3, 0xbd, 0xdc, 0xd8, 0x9b, 0xf8, 0xa7, 0x1a, 0x19, 0x89, 0x12, 0x64, 0x23, + 0x6e, 0x5a, 0x03, 0x6f, 0x30, 0x71, 0xc1, 0xce, 0x09, 0xb0, 0x27, 0x65, 0xa6, 0x0c, 0x4d, 0x3a, + 0xd3, 0xa1, 0x3d, 0x9d, 0xc0, 0xce, 0x37, 0x70, 0xeb, 0xb3, 0xf8, 0x04, 0x6e, 0x4d, 0x7c, 0x12, + 0x97, 0x2e, 0x8c, 0xa1, 0x2d, 0x01, 0x2f, 0x0b, 0x76, 0xcd, 0x7c, 0xf3, 0xfb, 0xe5, 0x3b, 0xed, + 0x41, 0x94, 0xd7, 0xad, 0xda, 0xd3, 0x5c, 0xd5, 0x6b, 0x51, 0xd2, 0xb5, 0x90, 0xc0, 0x35, 0xdd, + 0x00, 0x34, 0xd4, 0x6c, 0x2d, 0x33, 0x1b, 0xda, 0x8e, 0xc3, 0x89, 0x34, 0x5a, 0x81, 0xc2, 0x43, + 0x07, 0x10, 0x0f, 0x10, 0x0f, 0x90, 0x03, 0x40, 0xc2, 0x6f, 0xed, 0xb8, 0xd7, 0x2f, 0x95, 0x2a, + 0x25, 0xa7, 0x8e, 0x58, 0xd9, 0x35, 0x2d, 0xac, 0x66, 0x20, 0x54, 0xed, 0x1d, 0xbd, 0x37, 0x0f, + 0x73, 0x03, 0xda, 0xe6, 0x10, 0xd2, 0xbe, 0x2d, 0x1a, 0x46, 0x59, 0x5d, 0x2b, 0x70, 0x90, 0xa1, + 0x95, 0x28, 0x35, 0x03, 0x1e, 0xf2, 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8, 0x59, 0x84, 0x3e, 0x0a, 0x45, + 0x1c, 0xd3, 0x68, 0xb5, 0xdb, 0x93, 0xeb, 0x7b, 0x95, 0xde, 0xfb, 0xe7, 0xcb, 0x0e, 0xcd, 0xb2, + 0x68, 0xd5, 0x71, 0x15, 0x27, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x08, 0x88, 0x5b, 0x95, 0xc4, + 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.validate.go new file mode 100644 index 000000000..d9bc42858 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2/squash.pb.validate.go @@ -0,0 +1,148 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/squash/v2/squash.proto + +package envoy_config_filter_http_squash_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _squash_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Squash with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Squash) Validate() error { + if m == nil { + return nil + } + + if len(m.GetCluster()) < 1 { + return SquashValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetAttachmentTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentTemplate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequestTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "RequestTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAttachmentTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAttachmentPollPeriod()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentPollPeriod", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SquashValidationError is the validation error returned by Squash.Validate if +// the designated constraints aren't met. +type SquashValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SquashValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SquashValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SquashValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SquashValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SquashValidationError) ErrorName() string { return "SquashValidationError" } + +// Error satisfies the builtin error interface +func (e SquashValidationError) 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 %sSquash.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SquashValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SquashValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.go new file mode 100644 index 000000000..22ea43adc --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.go @@ -0,0 +1,93 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/tap/v2alpha/tap.proto + +package envoy_config_filter_http_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Tap struct { + CommonConfig *v2alpha.CommonExtensionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Tap) Reset() { *m = Tap{} } +func (m *Tap) String() string { return proto.CompactTextString(m) } +func (*Tap) ProtoMessage() {} +func (*Tap) Descriptor() ([]byte, []int) { + return fileDescriptor_ee77d938a401b876, []int{0} +} + +func (m *Tap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tap.Unmarshal(m, b) +} +func (m *Tap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tap.Marshal(b, m, deterministic) +} +func (m *Tap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tap.Merge(m, src) +} +func (m *Tap) XXX_Size() int { + return xxx_messageInfo_Tap.Size(m) +} +func (m *Tap) XXX_DiscardUnknown() { + xxx_messageInfo_Tap.DiscardUnknown(m) +} + +var xxx_messageInfo_Tap proto.InternalMessageInfo + +func (m *Tap) GetCommonConfig() *v2alpha.CommonExtensionConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func init() { + proto.RegisterType((*Tap)(nil), "envoy.config.filter.http.tap.v2alpha.Tap") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/tap/v2alpha/tap.proto", fileDescriptor_ee77d938a401b876) +} + +var fileDescriptor_ee77d938a401b876 = []byte{ + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4a, 0x03, 0x41, + 0x10, 0x86, 0xd9, 0x48, 0x42, 0x38, 0x15, 0x42, 0x1a, 0x25, 0xa0, 0x88, 0x88, 0x58, 0xc8, 0x2e, + 0x5c, 0xc0, 0x07, 0xb8, 0x60, 0x1f, 0x24, 0xbd, 0x8c, 0xc9, 0x26, 0x59, 0xb8, 0xdb, 0x59, 0x6e, + 0x27, 0x47, 0xd2, 0x59, 0xdb, 0xd8, 0xfa, 0x2c, 0x3e, 0x81, 0xad, 0xaf, 0x62, 0x69, 0x21, 0x72, + 0x3b, 0x7b, 0x90, 0xc3, 0xc6, 0x6e, 0x99, 0xff, 0x9b, 0xd9, 0xff, 0xff, 0x13, 0xa9, 0x6d, 0x85, + 0x3b, 0x35, 0x47, 0xbb, 0x34, 0x2b, 0xb5, 0x34, 0x39, 0xe9, 0x52, 0xad, 0x89, 0x9c, 0x22, 0x70, + 0xaa, 0x4a, 0x21, 0x77, 0x6b, 0xa8, 0xdf, 0xd2, 0x95, 0x48, 0x38, 0xbc, 0x0a, 0xbc, 0x64, 0x5e, + 0x32, 0x2f, 0x6b, 0x5e, 0xd6, 0x4c, 0xe4, 0x47, 0xb7, 0xad, 0xab, 0x73, 0x2c, 0x0a, 0xb4, 0xad, + 0x83, 0x3c, 0xe2, 0x9b, 0xa3, 0xf3, 0xcd, 0xc2, 0x81, 0x02, 0x6b, 0x91, 0x80, 0x0c, 0x5a, 0xaf, + 0x0a, 0xb3, 0x2a, 0x81, 0x74, 0xd4, 0xcf, 0xfe, 0xe8, 0x9e, 0x80, 0x36, 0x3e, 0xca, 0x27, 0x15, + 0xe4, 0x66, 0x01, 0xa4, 0x55, 0xf3, 0x60, 0xe1, 0x32, 0x4f, 0x0e, 0x66, 0xe0, 0x86, 0x3a, 0x39, + 0xe6, 0xef, 0x1e, 0xd9, 0xcf, 0xa9, 0xb8, 0x10, 0x37, 0x87, 0xe9, 0x9d, 0x6c, 0x45, 0x89, 0x8e, + 0xf6, 0x52, 0xc8, 0x49, 0x18, 0xdd, 0x6f, 0x49, 0x5b, 0x6f, 0xd0, 0x4e, 0x02, 0x98, 0xf5, 0xbf, + 0xb3, 0xee, 0x8b, 0xe8, 0x0c, 0xc4, 0xc3, 0x11, 0xef, 0xc4, 0x39, 0x7d, 0xbd, 0xfd, 0xbc, 0x76, + 0xaf, 0x9b, 0x86, 0x74, 0xb3, 0xe6, 0x63, 0x4b, 0x7e, 0xaf, 0xa6, 0xf1, 0xfb, 0xf3, 0xc7, 0x67, + 0xaf, 0x33, 0x10, 0x49, 0x6a, 0x90, 0x7d, 0xb8, 0x12, 0xb7, 0x3b, 0xf9, 0x9f, 0x76, 0xb3, 0xfe, + 0x0c, 0xdc, 0xb4, 0x4e, 0x38, 0x15, 0x4f, 0xbd, 0x10, 0x75, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0x3a, 0x24, 0x90, 0xac, 0xc8, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.validate.go new file mode 100644 index 000000000..55c653d51 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha/tap.pb.validate.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/tap/v2alpha/tap.proto + +package envoy_config_filter_http_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Tap with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tap) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TapValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapValidationError is the validation error returned by Tap.Validate if the +// designated constraints aren't met. +type TapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapValidationError) ErrorName() string { return "TapValidationError" } + +// Error satisfies the builtin error interface +func (e TapValidationError) 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 %sTap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.go new file mode 100644 index 000000000..f35134692 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.go @@ -0,0 +1,275 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/http/transcoder/v2/transcoder.proto + +package envoy_config_filter_http_transcoder_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GrpcJsonTranscoder struct { + // Types that are valid to be assigned to DescriptorSet: + // *GrpcJsonTranscoder_ProtoDescriptor + // *GrpcJsonTranscoder_ProtoDescriptorBin + DescriptorSet isGrpcJsonTranscoder_DescriptorSet `protobuf_oneof:"descriptor_set"` + Services []string `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"` + PrintOptions *GrpcJsonTranscoder_PrintOptions `protobuf:"bytes,3,opt,name=print_options,json=printOptions,proto3" json:"print_options,omitempty"` + MatchIncomingRequestRoute bool `protobuf:"varint,5,opt,name=match_incoming_request_route,json=matchIncomingRequestRoute,proto3" json:"match_incoming_request_route,omitempty"` + IgnoredQueryParameters []string `protobuf:"bytes,6,rep,name=ignored_query_parameters,json=ignoredQueryParameters,proto3" json:"ignored_query_parameters,omitempty"` + AutoMapping bool `protobuf:"varint,7,opt,name=auto_mapping,json=autoMapping,proto3" json:"auto_mapping,omitempty"` + IgnoreUnknownQueryParameters bool `protobuf:"varint,8,opt,name=ignore_unknown_query_parameters,json=ignoreUnknownQueryParameters,proto3" json:"ignore_unknown_query_parameters,omitempty"` + ConvertGrpcStatus bool `protobuf:"varint,9,opt,name=convert_grpc_status,json=convertGrpcStatus,proto3" json:"convert_grpc_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcJsonTranscoder) Reset() { *m = GrpcJsonTranscoder{} } +func (m *GrpcJsonTranscoder) String() string { return proto.CompactTextString(m) } +func (*GrpcJsonTranscoder) ProtoMessage() {} +func (*GrpcJsonTranscoder) Descriptor() ([]byte, []int) { + return fileDescriptor_540f2f6de8b0585c, []int{0} +} + +func (m *GrpcJsonTranscoder) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcJsonTranscoder.Unmarshal(m, b) +} +func (m *GrpcJsonTranscoder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcJsonTranscoder.Marshal(b, m, deterministic) +} +func (m *GrpcJsonTranscoder) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcJsonTranscoder.Merge(m, src) +} +func (m *GrpcJsonTranscoder) XXX_Size() int { + return xxx_messageInfo_GrpcJsonTranscoder.Size(m) +} +func (m *GrpcJsonTranscoder) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcJsonTranscoder.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcJsonTranscoder proto.InternalMessageInfo + +type isGrpcJsonTranscoder_DescriptorSet interface { + isGrpcJsonTranscoder_DescriptorSet() +} + +type GrpcJsonTranscoder_ProtoDescriptor struct { + ProtoDescriptor string `protobuf:"bytes,1,opt,name=proto_descriptor,json=protoDescriptor,proto3,oneof"` +} + +type GrpcJsonTranscoder_ProtoDescriptorBin struct { + ProtoDescriptorBin []byte `protobuf:"bytes,4,opt,name=proto_descriptor_bin,json=protoDescriptorBin,proto3,oneof"` +} + +func (*GrpcJsonTranscoder_ProtoDescriptor) isGrpcJsonTranscoder_DescriptorSet() {} + +func (*GrpcJsonTranscoder_ProtoDescriptorBin) isGrpcJsonTranscoder_DescriptorSet() {} + +func (m *GrpcJsonTranscoder) GetDescriptorSet() isGrpcJsonTranscoder_DescriptorSet { + if m != nil { + return m.DescriptorSet + } + return nil +} + +func (m *GrpcJsonTranscoder) GetProtoDescriptor() string { + if x, ok := m.GetDescriptorSet().(*GrpcJsonTranscoder_ProtoDescriptor); ok { + return x.ProtoDescriptor + } + return "" +} + +func (m *GrpcJsonTranscoder) GetProtoDescriptorBin() []byte { + if x, ok := m.GetDescriptorSet().(*GrpcJsonTranscoder_ProtoDescriptorBin); ok { + return x.ProtoDescriptorBin + } + return nil +} + +func (m *GrpcJsonTranscoder) GetServices() []string { + if m != nil { + return m.Services + } + return nil +} + +func (m *GrpcJsonTranscoder) GetPrintOptions() *GrpcJsonTranscoder_PrintOptions { + if m != nil { + return m.PrintOptions + } + return nil +} + +func (m *GrpcJsonTranscoder) GetMatchIncomingRequestRoute() bool { + if m != nil { + return m.MatchIncomingRequestRoute + } + return false +} + +func (m *GrpcJsonTranscoder) GetIgnoredQueryParameters() []string { + if m != nil { + return m.IgnoredQueryParameters + } + return nil +} + +func (m *GrpcJsonTranscoder) GetAutoMapping() bool { + if m != nil { + return m.AutoMapping + } + return false +} + +func (m *GrpcJsonTranscoder) GetIgnoreUnknownQueryParameters() bool { + if m != nil { + return m.IgnoreUnknownQueryParameters + } + return false +} + +func (m *GrpcJsonTranscoder) GetConvertGrpcStatus() bool { + if m != nil { + return m.ConvertGrpcStatus + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GrpcJsonTranscoder) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GrpcJsonTranscoder_ProtoDescriptor)(nil), + (*GrpcJsonTranscoder_ProtoDescriptorBin)(nil), + } +} + +type GrpcJsonTranscoder_PrintOptions struct { + AddWhitespace bool `protobuf:"varint,1,opt,name=add_whitespace,json=addWhitespace,proto3" json:"add_whitespace,omitempty"` + AlwaysPrintPrimitiveFields bool `protobuf:"varint,2,opt,name=always_print_primitive_fields,json=alwaysPrintPrimitiveFields,proto3" json:"always_print_primitive_fields,omitempty"` + AlwaysPrintEnumsAsInts bool `protobuf:"varint,3,opt,name=always_print_enums_as_ints,json=alwaysPrintEnumsAsInts,proto3" json:"always_print_enums_as_ints,omitempty"` + PreserveProtoFieldNames bool `protobuf:"varint,4,opt,name=preserve_proto_field_names,json=preserveProtoFieldNames,proto3" json:"preserve_proto_field_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcJsonTranscoder_PrintOptions) Reset() { *m = GrpcJsonTranscoder_PrintOptions{} } +func (m *GrpcJsonTranscoder_PrintOptions) String() string { return proto.CompactTextString(m) } +func (*GrpcJsonTranscoder_PrintOptions) ProtoMessage() {} +func (*GrpcJsonTranscoder_PrintOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_540f2f6de8b0585c, []int{0, 0} +} + +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Unmarshal(m, b) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Marshal(b, m, deterministic) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Merge(m, src) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Size() int { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Size(m) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcJsonTranscoder_PrintOptions proto.InternalMessageInfo + +func (m *GrpcJsonTranscoder_PrintOptions) GetAddWhitespace() bool { + if m != nil { + return m.AddWhitespace + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintPrimitiveFields() bool { + if m != nil { + return m.AlwaysPrintPrimitiveFields + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintEnumsAsInts() bool { + if m != nil { + return m.AlwaysPrintEnumsAsInts + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetPreserveProtoFieldNames() bool { + if m != nil { + return m.PreserveProtoFieldNames + } + return false +} + +func init() { + proto.RegisterType((*GrpcJsonTranscoder)(nil), "envoy.config.filter.http.transcoder.v2.GrpcJsonTranscoder") + proto.RegisterType((*GrpcJsonTranscoder_PrintOptions)(nil), "envoy.config.filter.http.transcoder.v2.GrpcJsonTranscoder.PrintOptions") +} + +func init() { + proto.RegisterFile("envoy/config/filter/http/transcoder/v2/transcoder.proto", fileDescriptor_540f2f6de8b0585c) +} + +var fileDescriptor_540f2f6de8b0585c = []byte{ + // 640 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6e, 0x13, 0x3d, + 0x14, 0xc5, 0x3b, 0xed, 0xd7, 0x7c, 0x53, 0x37, 0xfd, 0x83, 0x81, 0x76, 0x88, 0x5a, 0x08, 0x08, + 0x50, 0x24, 0xa4, 0x19, 0x29, 0x05, 0x15, 0xc1, 0x02, 0x35, 0xa2, 0xb4, 0x45, 0x02, 0xc2, 0x00, + 0x62, 0x69, 0xb9, 0x33, 0xb7, 0xa9, 0x21, 0x63, 0xbb, 0xb6, 0x27, 0x6d, 0x76, 0x3c, 0x01, 0x48, + 0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c3, 0x33, 0xb2, 0xdc, 0x59, 0xf8, 0x0b, 0xb1, 0xfb, 0xdf, 0x6e, 0xb0, 0x5b, 0x73, + 0x93, 0xad, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x8b, 0xae, 0xf9, 0x7e, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.validate.go new file mode 100644 index 000000000..8b79c997e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2/transcoder.pb.validate.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/http/transcoder/v2/transcoder.proto + +package envoy_config_filter_http_transcoder_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _transcoder_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GrpcJsonTranscoder with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GrpcJsonTranscoder) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServices()) < 1 { + return GrpcJsonTranscoderValidationError{ + field: "Services", + reason: "value must contain at least 1 item(s)", + } + } + + if v, ok := interface{}(m.GetPrintOptions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GrpcJsonTranscoderValidationError{ + field: "PrintOptions", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MatchIncomingRequestRoute + + // no validation rules for AutoMapping + + // no validation rules for IgnoreUnknownQueryParameters + + // no validation rules for ConvertGrpcStatus + + switch m.DescriptorSet.(type) { + + case *GrpcJsonTranscoder_ProtoDescriptor: + // no validation rules for ProtoDescriptor + + case *GrpcJsonTranscoder_ProtoDescriptorBin: + // no validation rules for ProtoDescriptorBin + + default: + return GrpcJsonTranscoderValidationError{ + field: "DescriptorSet", + reason: "value is required", + } + + } + + return nil +} + +// GrpcJsonTranscoderValidationError is the validation error returned by +// GrpcJsonTranscoder.Validate if the designated constraints aren't met. +type GrpcJsonTranscoderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcJsonTranscoderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcJsonTranscoderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcJsonTranscoderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcJsonTranscoderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcJsonTranscoderValidationError) ErrorName() string { + return "GrpcJsonTranscoderValidationError" +} + +// Error satisfies the builtin error interface +func (e GrpcJsonTranscoderValidationError) 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 %sGrpcJsonTranscoder.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcJsonTranscoderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcJsonTranscoderValidationError{} + +// Validate checks the field values on GrpcJsonTranscoder_PrintOptions with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GrpcJsonTranscoder_PrintOptions) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AddWhitespace + + // no validation rules for AlwaysPrintPrimitiveFields + + // no validation rules for AlwaysPrintEnumsAsInts + + // no validation rules for PreserveProtoFieldNames + + return nil +} + +// GrpcJsonTranscoder_PrintOptionsValidationError is the validation error +// returned by GrpcJsonTranscoder_PrintOptions.Validate if the designated +// constraints aren't met. +type GrpcJsonTranscoder_PrintOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) ErrorName() string { + return "GrpcJsonTranscoder_PrintOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e GrpcJsonTranscoder_PrintOptionsValidationError) 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 %sGrpcJsonTranscoder_PrintOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcJsonTranscoder_PrintOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcJsonTranscoder_PrintOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.go new file mode 100644 index 000000000..063dffb31 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/listener/http_inspector/v2/http_inspector.proto + +package envoy_config_filter_listener_http_inspector_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpInspector struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpInspector) Reset() { *m = HttpInspector{} } +func (m *HttpInspector) String() string { return proto.CompactTextString(m) } +func (*HttpInspector) ProtoMessage() {} +func (*HttpInspector) Descriptor() ([]byte, []int) { + return fileDescriptor_0d6cdfe6d97a924e, []int{0} +} + +func (m *HttpInspector) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpInspector.Unmarshal(m, b) +} +func (m *HttpInspector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpInspector.Marshal(b, m, deterministic) +} +func (m *HttpInspector) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpInspector.Merge(m, src) +} +func (m *HttpInspector) XXX_Size() int { + return xxx_messageInfo_HttpInspector.Size(m) +} +func (m *HttpInspector) XXX_DiscardUnknown() { + xxx_messageInfo_HttpInspector.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpInspector proto.InternalMessageInfo + +func init() { + proto.RegisterType((*HttpInspector)(nil), "envoy.config.filter.listener.http_inspector.v2.HttpInspector") +} + +func init() { + proto.RegisterFile("envoy/config/filter/listener/http_inspector/v2/http_inspector.proto", fileDescriptor_0d6cdfe6d97a924e) +} + +var fileDescriptor_0d6cdfe6d97a924e = []byte{ + // 215 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0xc9, 0x2c, 0x2e, 0x49, 0xcd, 0x4b, 0x2d, 0xd2, 0xcf, 0x28, 0x29, 0x29, 0x88, 0xcf, 0xcc, + 0x2b, 0x2e, 0x48, 0x4d, 0x2e, 0xc9, 0x2f, 0xd2, 0x2f, 0x33, 0x42, 0x13, 0xd1, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0xd2, 0x03, 0x1b, 0xa2, 0x07, 0x31, 0x44, 0x0f, 0x62, 0x88, 0x1e, 0xcc, 0x10, + 0x3d, 0x34, 0x2d, 0x65, 0x46, 0x52, 0x72, 0xa5, 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, + 0x25, 0x89, 0x25, 0x99, 0xf9, 0x79, 0xc5, 0xfa, 0xb9, 0x99, 0xe9, 0x45, 0x89, 0x25, 0xa9, 0x10, + 0xf3, 0xa4, 0x64, 0x31, 0xe4, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0x21, 0xd2, 0x4a, 0xfc, 0x5c, + 0xbc, 0x1e, 0x25, 0x25, 0x05, 0x9e, 0x30, 0x23, 0x9d, 0xa6, 0x33, 0x7e, 0x9a, 0xf1, 0xaf, 0x9f, + 0xd5, 0x54, 0xc8, 0x18, 0xe2, 0x90, 0xd4, 0x8a, 0x92, 0xd4, 0xbc, 0x62, 0x90, 0x46, 0xa8, 0x63, + 0x8a, 0x71, 0xbb, 0xc6, 0x78, 0x57, 0xc3, 0x89, 0x8b, 0x6c, 0x4c, 0x02, 0x8c, 0x5c, 0x36, 0x99, + 0xf9, 0x10, 0x8f, 0x14, 0x14, 0xe5, 0x57, 0x54, 0x92, 0xe8, 0x27, 0x27, 0x21, 0x14, 0x27, 0x05, + 0x80, 0x1c, 0x1a, 0xc0, 0x98, 0xc4, 0x06, 0x76, 0xb1, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x1a, + 0x65, 0x38, 0xb4, 0x67, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.validate.go new file mode 100644 index 000000000..4260e1c93 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2/http_inspector.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/listener/http_inspector/v2/http_inspector.proto + +package envoy_config_filter_listener_http_inspector_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _http_inspector_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpInspector with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HttpInspector) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// HttpInspectorValidationError is the validation error returned by +// HttpInspector.Validate if the designated constraints aren't met. +type HttpInspectorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpInspectorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpInspectorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpInspectorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpInspectorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpInspectorValidationError) ErrorName() string { return "HttpInspectorValidationError" } + +// Error satisfies the builtin error interface +func (e HttpInspectorValidationError) 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 %sHttpInspector.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpInspectorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpInspectorValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.go new file mode 100644 index 000000000..c2222ea9c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/listener/original_dst/v2/original_dst.proto + +package envoy_config_filter_listener_original_dst_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalDst struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalDst) Reset() { *m = OriginalDst{} } +func (m *OriginalDst) String() string { return proto.CompactTextString(m) } +func (*OriginalDst) ProtoMessage() {} +func (*OriginalDst) Descriptor() ([]byte, []int) { + return fileDescriptor_1b6ce05288da843c, []int{0} +} + +func (m *OriginalDst) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalDst.Unmarshal(m, b) +} +func (m *OriginalDst) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalDst.Marshal(b, m, deterministic) +} +func (m *OriginalDst) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalDst.Merge(m, src) +} +func (m *OriginalDst) XXX_Size() int { + return xxx_messageInfo_OriginalDst.Size(m) +} +func (m *OriginalDst) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalDst.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalDst proto.InternalMessageInfo + +func init() { + proto.RegisterType((*OriginalDst)(nil), "envoy.config.filter.listener.original_dst.v2.OriginalDst") +} + +func init() { + proto.RegisterFile("envoy/config/filter/listener/original_dst/v2/original_dst.proto", fileDescriptor_1b6ce05288da843c) +} + +var fileDescriptor_1b6ce05288da843c = []byte{ + // 214 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0xc9, 0x2c, 0x2e, 0x49, 0xcd, 0x4b, 0x2d, 0xd2, 0xcf, 0x2f, 0xca, 0x4c, 0xcf, 0xcc, 0x4b, + 0xcc, 0x89, 0x4f, 0x29, 0x2e, 0xd1, 0x2f, 0x33, 0x42, 0xe1, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, + 0x0b, 0xe9, 0x80, 0x0d, 0xd0, 0x83, 0x18, 0xa0, 0x07, 0x31, 0x40, 0x0f, 0x66, 0x80, 0x1e, 0x8a, + 0x86, 0x32, 0x23, 0x29, 0xb9, 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, + 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xfd, 0xdc, 0xcc, 0xf4, 0xa2, 0xc4, 0x92, 0x54, 0x88, 0x69, 0x52, + 0xb2, 0x18, 0xf2, 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x69, 0x25, 0x5e, 0x2e, 0x6e, 0x7f, + 0xa8, 0x89, 0x2e, 0xc5, 0x25, 0x4e, 0x13, 0x19, 0x3f, 0xcd, 0xf8, 0xd7, 0xcf, 0x6a, 0x2c, 0x64, + 0x08, 0x71, 0x44, 0x6a, 0x45, 0x49, 0x6a, 0x5e, 0x31, 0x48, 0x1b, 0xd4, 0x21, 0xc5, 0xb8, 0x5c, + 0x62, 0xbc, 0xab, 0xe1, 0xc4, 0x45, 0x36, 0x26, 0x01, 0x46, 0x2e, 0xab, 0xcc, 0x7c, 0x3d, 0xb0, + 0xee, 0x82, 0xa2, 0xfc, 0x8a, 0x4a, 0x3d, 0x52, 0x7c, 0xe3, 0x24, 0x80, 0xe4, 0x98, 0x00, 0x90, + 0x03, 0x03, 0x18, 0x93, 0xd8, 0xc0, 0x2e, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x80, 0xc9, + 0x36, 0x5e, 0x59, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.validate.go new file mode 100644 index 000000000..9588294ff --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2/original_dst.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/listener/original_dst/v2/original_dst.proto + +package envoy_config_filter_listener_original_dst_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_dst_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalDst with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalDst) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OriginalDstValidationError is the validation error returned by +// OriginalDst.Validate if the designated constraints aren't met. +type OriginalDstValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalDstValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalDstValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalDstValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalDstValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalDstValidationError) ErrorName() string { return "OriginalDstValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalDstValidationError) 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 %sOriginalDst.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalDstValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalDstValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.go new file mode 100644 index 000000000..3201adfed --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.go @@ -0,0 +1,100 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/listener/original_src/v2alpha1/original_src.proto + +package envoy_config_filter_listener_original_src_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalSrc struct { + BindPort bool `protobuf:"varint,1,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"` + Mark uint32 `protobuf:"varint,2,opt,name=mark,proto3" json:"mark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalSrc) Reset() { *m = OriginalSrc{} } +func (m *OriginalSrc) String() string { return proto.CompactTextString(m) } +func (*OriginalSrc) ProtoMessage() {} +func (*OriginalSrc) Descriptor() ([]byte, []int) { + return fileDescriptor_19e4bd40556a6972, []int{0} +} + +func (m *OriginalSrc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalSrc.Unmarshal(m, b) +} +func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalSrc.Marshal(b, m, deterministic) +} +func (m *OriginalSrc) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalSrc.Merge(m, src) +} +func (m *OriginalSrc) XXX_Size() int { + return xxx_messageInfo_OriginalSrc.Size(m) +} +func (m *OriginalSrc) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalSrc.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalSrc proto.InternalMessageInfo + +func (m *OriginalSrc) GetBindPort() bool { + if m != nil { + return m.BindPort + } + return false +} + +func (m *OriginalSrc) GetMark() uint32 { + if m != nil { + return m.Mark + } + return 0 +} + +func init() { + proto.RegisterType((*OriginalSrc)(nil), "envoy.config.filter.listener.original_src.v2alpha1.OriginalSrc") +} + +func init() { + proto.RegisterFile("envoy/config/filter/listener/original_src/v2alpha1/original_src.proto", fileDescriptor_19e4bd40556a6972) +} + +var fileDescriptor_19e4bd40556a6972 = []byte{ + // 276 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xc1, 0x4a, 0xc3, 0x40, + 0x10, 0x86, 0xd9, 0xa2, 0xa5, 0x46, 0x84, 0x92, 0x8b, 0xa5, 0xa2, 0x14, 0x4f, 0x3d, 0xed, 0xd2, + 0xe6, 0x2e, 0x52, 0xf0, 0x6c, 0xa8, 0x0f, 0x50, 0xa6, 0xc9, 0x36, 0x2e, 0xa6, 0x3b, 0x61, 0x76, + 0x1a, 0xda, 0x9b, 0x6f, 0xe0, 0x51, 0x9f, 0xc5, 0x27, 0xf0, 0xea, 0xab, 0xf8, 0x00, 0x22, 0xc9, + 0x26, 0x60, 0x11, 0x0f, 0xbd, 0x0d, 0xf3, 0xf3, 0x7f, 0xbb, 0xdf, 0x04, 0x77, 0xda, 0x96, 0xb8, + 0x53, 0x09, 0xda, 0x95, 0xc9, 0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ff, 0xff, 0x57, 0x2c, 0x7c, 0x08, + 0xb5, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.validate.go new file mode 100644 index 000000000..c170bf2ad --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1/original_src.pb.validate.go @@ -0,0 +1,106 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/listener/original_src/v2alpha1/original_src.proto + +package envoy_config_filter_listener_original_src_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_src_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalSrc with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalSrc) Validate() error { + if m == nil { + return nil + } + + // no validation rules for BindPort + + // no validation rules for Mark + + return nil +} + +// OriginalSrcValidationError is the validation error returned by +// OriginalSrc.Validate if the designated constraints aren't met. +type OriginalSrcValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalSrcValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalSrcValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalSrcValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalSrcValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalSrcValidationError) ErrorName() string { return "OriginalSrcValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalSrcValidationError) 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 %sOriginalSrc.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalSrcValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalSrcValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.go new file mode 100644 index 000000000..b87224beb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.proto + +package envoy_config_filter_listener_proxy_protocol_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ProxyProtocol struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProxyProtocol) Reset() { *m = ProxyProtocol{} } +func (m *ProxyProtocol) String() string { return proto.CompactTextString(m) } +func (*ProxyProtocol) ProtoMessage() {} +func (*ProxyProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_614eea5d50c8eea0, []int{0} +} + +func (m *ProxyProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProxyProtocol.Unmarshal(m, b) +} +func (m *ProxyProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProxyProtocol.Marshal(b, m, deterministic) +} +func (m *ProxyProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProxyProtocol.Merge(m, src) +} +func (m *ProxyProtocol) XXX_Size() int { + return xxx_messageInfo_ProxyProtocol.Size(m) +} +func (m *ProxyProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_ProxyProtocol.DiscardUnknown(m) +} + +var xxx_messageInfo_ProxyProtocol proto.InternalMessageInfo + +func init() { + proto.RegisterType((*ProxyProtocol)(nil), "envoy.config.filter.listener.proxy_protocol.v2.ProxyProtocol") +} + +func init() { + proto.RegisterFile("envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.proto", fileDescriptor_614eea5d50c8eea0) +} + +var fileDescriptor_614eea5d50c8eea0 = []byte{ + // 206 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0xc9, 0x2c, 0x2e, 0x49, 0xcd, 0x4b, 0x2d, 0xd2, 0x2f, 0x28, 0xca, 0xaf, 0xa8, 0x8c, 0x2f, + 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0xce, 0xcf, 0xd1, 0x2f, 0x33, 0x42, 0x13, 0xd1, 0x03, 0x33, 0x84, + 0xf4, 0xc0, 0x86, 0xe8, 0x41, 0x0c, 0xd1, 0x83, 0x18, 0xa2, 0x07, 0x33, 0x44, 0x0f, 0x4d, 0x4b, + 0x99, 0x91, 0x94, 0x5c, 0x69, 0x4a, 0x41, 0xa2, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, + 0x66, 0x7e, 0x5e, 0xb1, 0x7e, 0x6e, 0x66, 0x7a, 0x51, 0x62, 0x49, 0x2a, 0xc4, 0x3c, 0x29, 0x59, + 0x0c, 0xf9, 0xe2, 0x92, 0xc4, 0x92, 0xd2, 0x62, 0x88, 0xb4, 0x12, 0x3f, 0x17, 0x6f, 0x00, 0xc8, + 0xcc, 0x00, 0xa8, 0x91, 0x4e, 0xd3, 0x19, 0x3f, 0xcd, 0xf8, 0xd7, 0xcf, 0x6a, 0x2a, 0x64, 0x0c, + 0x71, 0x48, 0x6a, 0x45, 0x49, 0x6a, 0x5e, 0x31, 0x48, 0x23, 0xd4, 0x31, 0xc5, 0xb8, 0x5d, 0x63, + 0xbc, 0xab, 0xe1, 0xc4, 0x45, 0x36, 0x26, 0x01, 0x46, 0x2e, 0x9b, 0xcc, 0x7c, 0x88, 0x47, 0xc0, + 0x4a, 0x48, 0xf4, 0x93, 0x93, 0x10, 0x8a, 0x93, 0xc0, 0x74, 0x00, 0x63, 0x12, 0x1b, 0x58, 0x89, + 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x28, 0x9c, 0x3b, 0x21, 0x67, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.validate.go new file mode 100644 index 000000000..8a2453f83 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/listener/proxy_protocol/v2/proxy_protocol.proto + +package envoy_config_filter_listener_proxy_protocol_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _proxy_protocol_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ProxyProtocol with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ProxyProtocol) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProxyProtocolValidationError is the validation error returned by +// ProxyProtocol.Validate if the designated constraints aren't met. +type ProxyProtocolValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProxyProtocolValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProxyProtocolValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProxyProtocolValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProxyProtocolValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProxyProtocolValidationError) ErrorName() string { return "ProxyProtocolValidationError" } + +// Error satisfies the builtin error interface +func (e ProxyProtocolValidationError) 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 %sProxyProtocol.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProxyProtocolValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProxyProtocolValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.go new file mode 100644 index 000000000..fa760fba3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.go @@ -0,0 +1,126 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.proto + +package envoy_config_filter_network_client_ssl_auth_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClientSSLAuth struct { + AuthApiCluster string `protobuf:"bytes,1,opt,name=auth_api_cluster,json=authApiCluster,proto3" json:"auth_api_cluster,omitempty"` + StatPrefix string `protobuf:"bytes,2,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + RefreshDelay *duration.Duration `protobuf:"bytes,3,opt,name=refresh_delay,json=refreshDelay,proto3" json:"refresh_delay,omitempty"` + IpWhiteList []*core.CidrRange `protobuf:"bytes,4,rep,name=ip_white_list,json=ipWhiteList,proto3" json:"ip_white_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientSSLAuth) Reset() { *m = ClientSSLAuth{} } +func (m *ClientSSLAuth) String() string { return proto.CompactTextString(m) } +func (*ClientSSLAuth) ProtoMessage() {} +func (*ClientSSLAuth) Descriptor() ([]byte, []int) { + return fileDescriptor_2c05e9c9b57da130, []int{0} +} + +func (m *ClientSSLAuth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientSSLAuth.Unmarshal(m, b) +} +func (m *ClientSSLAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientSSLAuth.Marshal(b, m, deterministic) +} +func (m *ClientSSLAuth) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientSSLAuth.Merge(m, src) +} +func (m *ClientSSLAuth) XXX_Size() int { + return xxx_messageInfo_ClientSSLAuth.Size(m) +} +func (m *ClientSSLAuth) XXX_DiscardUnknown() { + xxx_messageInfo_ClientSSLAuth.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientSSLAuth proto.InternalMessageInfo + +func (m *ClientSSLAuth) GetAuthApiCluster() string { + if m != nil { + return m.AuthApiCluster + } + return "" +} + +func (m *ClientSSLAuth) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ClientSSLAuth) GetRefreshDelay() *duration.Duration { + if m != nil { + return m.RefreshDelay + } + return nil +} + +func (m *ClientSSLAuth) GetIpWhiteList() []*core.CidrRange { + if m != nil { + return m.IpWhiteList + } + return nil +} + +func init() { + proto.RegisterType((*ClientSSLAuth)(nil), "envoy.config.filter.network.client_ssl_auth.v2.ClientSSLAuth") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.proto", fileDescriptor_2c05e9c9b57da130) +} + +var fileDescriptor_2c05e9c9b57da130 = []byte{ + // 416 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52,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 0xc6, 0x5e, 0xa1, 0x4d, 0x23, 0x9d, 0xb7, 0xbb, 0xfd, 0x7f, + 0xbe, 0x86, 0x79, 0xde, 0x27, 0x1e, 0x74, 0x4c, 0x7c, 0x15, 0x3d, 0xaf, 0xb2, 0x9b, 0xb3, 0xce, + 0xfc, 0xec, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x14, 0x8c, 0xd0, 0x34, 0xa2, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.validate.go new file mode 100644 index 000000000..1fc30da42 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.pb.validate.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/client_ssl_auth/v2/client_ssl_auth.proto + +package envoy_config_filter_network_client_ssl_auth_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _client_ssl_auth_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClientSSLAuth with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClientSSLAuth) Validate() error { + if m == nil { + return nil + } + + if len(m.GetAuthApiCluster()) < 1 { + return ClientSSLAuthValidationError{ + field: "AuthApiCluster", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetStatPrefix()) < 1 { + return ClientSSLAuthValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRefreshDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientSSLAuthValidationError{ + field: "RefreshDelay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetIpWhiteList() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientSSLAuthValidationError{ + field: fmt.Sprintf("IpWhiteList[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientSSLAuthValidationError is the validation error returned by +// ClientSSLAuth.Validate if the designated constraints aren't met. +type ClientSSLAuthValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientSSLAuthValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientSSLAuthValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientSSLAuthValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientSSLAuthValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientSSLAuthValidationError) ErrorName() string { return "ClientSSLAuthValidationError" } + +// Error satisfies the builtin error interface +func (e ClientSSLAuthValidationError) 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 %sClientSSLAuth.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientSSLAuthValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientSSLAuthValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.go new file mode 100644 index 000000000..1011b549a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/direct_response/v2/config.proto + +package envoy_config_filter_network_direct_response_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + Response *core.DataSource `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_cc687b2cc8aaa7fe, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetResponse() *core.DataSource { + if m != nil { + return m.Response + } + return nil +} + +func init() { + proto.RegisterType((*Config)(nil), "envoy.config.filter.network.direct_response.v2.Config") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/direct_response/v2/config.proto", fileDescriptor_cc687b2cc8aaa7fe) +} + +var fileDescriptor_cc687b2cc8aaa7fe = []byte{ + // 265 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xb1, 0x4a, 0x03, 0x41, + 0x10, 0x86, 0x59, 0xc1, 0x43, 0x2e, 0x8d, 0x5c, 0x25, 0xc1, 0x88, 0x58, 0x59, 0xed, 0xc2, 0x1d, + 0x16, 0xa2, 0x55, 0xe2, 0x03, 0x04, 0x7d, 0x00, 0x99, 0x5c, 0x26, 0x61, 0x51, 0x77, 0x96, 0xd9, + 0xb9, 0x33, 0xe9, 0x7c, 0x03, 0x2d, 0x7d, 0x16, 0x9f, 0xc0, 0xd6, 0x57, 0xf1, 0x01, 0x44, 0xee, + 0x76, 0x63, 0xa1, 0x58, 0xa4, 0xdd, 0x7f, 0xfe, 0xf9, 0xe6, 0xdb, 0xfc, 0x02, 0x5d, 0x4b, 0x6b, + 0x53, 0x93, 0x5b, 0xd8, 0xa5, 0x59, 0xd8, 0x7b, 0x41, 0x36, 0x0e, 0xe5, 0x91, 0xf8, 0xce, 0xcc, + 0x2d, 0x63, 0x2d, 0xb7, 0x8c, 0xc1, 0x93, 0x0b, 0x68, 0xda, 0x32, 0x0d, 0x6a, 0xcf, 0x24, 0x54, + 0xe8, 0xbe, 0xac, 0xd3, 0x5b, 0x2c, 0xeb, 0x54, 0xd6, 0xbf, 0xca, 0xba, 0x2d, 0x87, 0x87, 0x11, + 0x06, 0xde, 0xc6, 0x55, 0x8c, 0x66, 0x06, 0x01, 0xe3, 0xb6, 0xe1, 0x51, 0x33, 0xf7, 0x60, 0xc0, + 0x39, 0x12, 0x10, 0x4b, 0x2e, 0x98, 0x07, 0xbb, 0x64, 0x90, 0x4d, 0x3e, 0xfa, 0x93, 0x07, 0x01, + 0x69, 0x42, 0x8c, 0x4f, 0x26, 0x79, 0x36, 0xe9, 0x0f, 0x29, 0xce, 0xf3, 0xbd, 0x0d, 0xf5, 0x40, + 0x1d, 0xab, 0xd3, 0x41, 0x39, 0x4a, 0x97, 0x82, 0xb7, 0xba, 0x2d, 0x75, 0x47, 0xd6, 0x57, 0x20, + 0x70, 0x43, 0x0d, 0xd7, 0x78, 0xfd, 0x33, 0x3e, 0x7e, 0x51, 0x9f, 0xaf, 0x5f, 0xcf, 0xbb, 0x67, + 0x45, 0x15, 0x0b, 0xb8, 0x12, 0x74, 0xa1, 0x83, 0x25, 0xbd, 0xf0, 0xbf, 0x5f, 0xf5, 0xf6, 0xf4, + 0xfe, 0x91, 0xed, 0xec, 0xab, 0xfc, 0xd2, 0x52, 0x04, 0x7a, 0xa6, 0xd5, 0x7a, 0xcb, 0x5f, 0x1a, + 0x0f, 0xa2, 0xc6, 0xb4, 0xb3, 0x9a, 0xaa, 0x59, 0xd6, 0xeb, 0x55, 0xdf, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x40, 0xde, 0xcb, 0xc1, 0xaa, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.validate.go new file mode 100644 index 000000000..4f1e191c5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2/config.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/direct_response/v2/config.proto + +package envoy_config_filter_network_direct_response_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.go new file mode 100644 index 000000000..698095f37 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.go @@ -0,0 +1,232 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.proto + +package envoy_config_filter_network_dubbo_proxy_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ProtocolType int32 + +const ( + ProtocolType_Dubbo ProtocolType = 0 +) + +var ProtocolType_name = map[int32]string{ + 0: "Dubbo", +} + +var ProtocolType_value = map[string]int32{ + "Dubbo": 0, +} + +func (x ProtocolType) String() string { + return proto.EnumName(ProtocolType_name, int32(x)) +} + +func (ProtocolType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8ee9c82d7d1be64c, []int{0} +} + +type SerializationType int32 + +const ( + SerializationType_Hessian2 SerializationType = 0 +) + +var SerializationType_name = map[int32]string{ + 0: "Hessian2", +} + +var SerializationType_value = map[string]int32{ + "Hessian2": 0, +} + +func (x SerializationType) String() string { + return proto.EnumName(SerializationType_name, int32(x)) +} + +func (SerializationType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8ee9c82d7d1be64c, []int{1} +} + +type DubboProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + ProtocolType ProtocolType `protobuf:"varint,2,opt,name=protocol_type,json=protocolType,proto3,enum=envoy.config.filter.network.dubbo_proxy.v2alpha1.ProtocolType" json:"protocol_type,omitempty"` + SerializationType SerializationType `protobuf:"varint,3,opt,name=serialization_type,json=serializationType,proto3,enum=envoy.config.filter.network.dubbo_proxy.v2alpha1.SerializationType" json:"serialization_type,omitempty"` + RouteConfig []*RouteConfiguration `protobuf:"bytes,4,rep,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + DubboFilters []*DubboFilter `protobuf:"bytes,5,rep,name=dubbo_filters,json=dubboFilters,proto3" json:"dubbo_filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DubboProxy) Reset() { *m = DubboProxy{} } +func (m *DubboProxy) String() string { return proto.CompactTextString(m) } +func (*DubboProxy) ProtoMessage() {} +func (*DubboProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_8ee9c82d7d1be64c, []int{0} +} + +func (m *DubboProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DubboProxy.Unmarshal(m, b) +} +func (m *DubboProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DubboProxy.Marshal(b, m, deterministic) +} +func (m *DubboProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_DubboProxy.Merge(m, src) +} +func (m *DubboProxy) XXX_Size() int { + return xxx_messageInfo_DubboProxy.Size(m) +} +func (m *DubboProxy) XXX_DiscardUnknown() { + xxx_messageInfo_DubboProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_DubboProxy proto.InternalMessageInfo + +func (m *DubboProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *DubboProxy) GetProtocolType() ProtocolType { + if m != nil { + return m.ProtocolType + } + return ProtocolType_Dubbo +} + +func (m *DubboProxy) GetSerializationType() SerializationType { + if m != nil { + return m.SerializationType + } + return SerializationType_Hessian2 +} + +func (m *DubboProxy) GetRouteConfig() []*RouteConfiguration { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *DubboProxy) GetDubboFilters() []*DubboFilter { + if m != nil { + return m.DubboFilters + } + return nil +} + +type DubboFilter struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Config *any.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DubboFilter) Reset() { *m = DubboFilter{} } +func (m *DubboFilter) String() string { return proto.CompactTextString(m) } +func (*DubboFilter) ProtoMessage() {} +func (*DubboFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_8ee9c82d7d1be64c, []int{1} +} + +func (m *DubboFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DubboFilter.Unmarshal(m, b) +} +func (m *DubboFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DubboFilter.Marshal(b, m, deterministic) +} +func (m *DubboFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_DubboFilter.Merge(m, src) +} +func (m *DubboFilter) XXX_Size() int { + return xxx_messageInfo_DubboFilter.Size(m) +} +func (m *DubboFilter) XXX_DiscardUnknown() { + xxx_messageInfo_DubboFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_DubboFilter proto.InternalMessageInfo + +func (m *DubboFilter) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DubboFilter) GetConfig() *any.Any { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.config.filter.network.dubbo_proxy.v2alpha1.ProtocolType", ProtocolType_name, ProtocolType_value) + proto.RegisterEnum("envoy.config.filter.network.dubbo_proxy.v2alpha1.SerializationType", SerializationType_name, SerializationType_value) + proto.RegisterType((*DubboProxy)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.DubboProxy") + proto.RegisterType((*DubboFilter)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.DubboFilter") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.proto", fileDescriptor_8ee9c82d7d1be64c) +} + +var fileDescriptor_8ee9c82d7d1be64c = []byte{ + // 491 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x8e, 0xd3, 0x30, + 0x10, 0x5e, 0xf7, 0x8f, 0x5d, 0x27, 0x0b, 0x5d, 0x0b, 0x89, 0x6e, 0x11, 0xa8, 0xec, 0xa9, 0x5a, + 0x21, 0x9b, 0xcd, 0x5e, 0x61, 0x25, 0xb2, 0x2b, 0xc4, 0xb1, 0x0a, 0x1c, 0xb8, 0x55, 0xce, 0xd6, + 0x0d, 0x16, 0xa9, 0x1d, 0xd9, 0x4e, 0x69, 0x10, 0x07, 0xc4, 0x0b, 0x20, 0x71, 0xe2, 0x59, 0x78, + 0x02, 0xae, 0xbc, 0x09, 0xe2, 0xb8, 0x07, 0x84, 0x62, 0xa7, 0x34, 0x6a, 0xb9, 0xe4, 0x16, 0xcf, + 0x37, 0xf3, 0x7d, 0xf3, 0xcd, 0x4c, 0x60, 0xc8, 0xc4, 0x52, 0x16, 0xe4, 0x5a, 0x8a, 0x39, 0x4f, + 0xc8, 0x9c, 0xa7, 0x86, 0x29, 0x22, 0x98, 0x79, 0x2f, 0xd5, 0x3b, 0x32, 0xcb, 0xe3, 0x58, 0x4e, + 0x33, 0x25, 0x57, 0x05, 0x59, 0x06, 0x34, 0xcd, 0xde, 0xd2, 0xb3, 0x7a, 0x10, 0x67, 0x4a, 0x1a, + 0x89, 0x9e, 0x58, 0x0e, 0xec, 0x38, 0xb0, 0xe3, 0xc0, 0x15, 0x07, 0xae, 0xa7, 0xaf, 0x39, 0x86, + 0x4f,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b2, 0x5c, 0xda, 0xfc, 0x5c, 0x59, 0xfe, 0xc8, 0x53, 0x9b, 0x18, + 0x8a, 0xe1, 0xa1, 0xab, 0x73, 0x64, 0x7a, 0xd0, 0xb5, 0x4a, 0xcf, 0x9a, 0x2b, 0xd9, 0xa5, 0xbe, + 0xb0, 0x89, 0x91, 0x3f, 0xdb, 0x3c, 0xf4, 0xc9, 0x1b, 0xe8, 0xd5, 0x40, 0x74, 0x1f, 0x76, 0x04, + 0x5d, 0xb0, 0xed, 0x5d, 0xdb, 0x20, 0x7a, 0x0c, 0x7b, 0x95, 0xe5, 0x72, 0xbd, 0x5e, 0x70, 0x17, + 0xbb, 0x13, 0xc5, 0xeb, 0x13, 0xc5, 0xcf, 0x45, 0x11, 0x55, 0x39, 0xa7, 0xc7, 0xd0, 0xaf, 0x2f, + 0x13, 0x1d, 0xc0, 0xae, 0x55, 0xea, 0xef, 0x9d, 0x3e, 0x82, 0x47, 0x3b, 0x33, 0x47, 0x3e, 0xdc, + 0x7f, 0xc9, 0xb4, 0xe6, 0x54, 0x04, 0xfd, 0xbd, 0xf0, 0x2b, 0xf8, 0xfd, 0xed, 0xcf, 0x97, 0xee, + 0x19, 0x22, 0xce, 0x2c, 0x5b, 0x19, 0x26, 0x74, 0x79, 0xcb, 0x95, 0x61, 0xfd, 0x7f, 0xc7, 0xe7, + 0xdf, 0x3f, 0xfd, 0xf8, 0xd9, 0x6b, 0xf5, 0x01, 0xbc, 0xe0, 0xd2, 0x0d, 0xca, 0x21, 0x4d, 0x67, + 0x16, 0xde, 0xd9, 0xfc, 0x09, 0xd6, 0xc7, 0x04, 0xc4, 0x3d, 0x6b, 0xf4, 0xfc, 0x6f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xaa, 0x4f, 0x2e, 0x51, 0x4f, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.validate.go new file mode 100644 index 000000000..a7106aa28 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.pb.validate.go @@ -0,0 +1,234 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.proto + +package envoy_config_filter_network_dubbo_proxy_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dubbo_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DubboProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DubboProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return DubboProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocolType())]; !ok { + return DubboProxyValidationError{ + field: "ProtocolType", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := SerializationType_name[int32(m.GetSerializationType())]; !ok { + return DubboProxyValidationError{ + field: "SerializationType", + reason: "value must be one of the defined enum values", + } + } + + for idx, item := range m.GetRouteConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboProxyValidationError{ + field: fmt.Sprintf("RouteConfig[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDubboFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboProxyValidationError{ + field: fmt.Sprintf("DubboFilters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DubboProxyValidationError is the validation error returned by +// DubboProxy.Validate if the designated constraints aren't met. +type DubboProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DubboProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DubboProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DubboProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DubboProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DubboProxyValidationError) ErrorName() string { return "DubboProxyValidationError" } + +// Error satisfies the builtin error interface +func (e DubboProxyValidationError) 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 %sDubboProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DubboProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DubboProxyValidationError{} + +// Validate checks the field values on DubboFilter with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DubboFilter) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return DubboFilterValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboFilterValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DubboFilterValidationError is the validation error returned by +// DubboFilter.Validate if the designated constraints aren't met. +type DubboFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DubboFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DubboFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DubboFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DubboFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DubboFilterValidationError) ErrorName() string { return "DubboFilterValidationError" } + +// Error satisfies the builtin error interface +func (e DubboFilterValidationError) 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 %sDubboFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DubboFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DubboFilterValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.go new file mode 100644 index 000000000..44c3fb430 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.go @@ -0,0 +1,463 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/dubbo_proxy/v2alpha1/route.proto + +package envoy_config_filter_network_dubbo_proxy_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RouteConfiguration struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteConfiguration) Reset() { *m = RouteConfiguration{} } +func (m *RouteConfiguration) String() string { return proto.CompactTextString(m) } +func (*RouteConfiguration) ProtoMessage() {} +func (*RouteConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{0} +} + +func (m *RouteConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteConfiguration.Unmarshal(m, b) +} +func (m *RouteConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteConfiguration.Marshal(b, m, deterministic) +} +func (m *RouteConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteConfiguration.Merge(m, src) +} +func (m *RouteConfiguration) XXX_Size() int { + return xxx_messageInfo_RouteConfiguration.Size(m) +} +func (m *RouteConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_RouteConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteConfiguration proto.InternalMessageInfo + +func (m *RouteConfiguration) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RouteConfiguration) GetInterface() string { + if m != nil { + return m.Interface + } + return "" +} + +func (m *RouteConfiguration) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +func (m *RouteConfiguration) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *RouteConfiguration) GetRoutes() []*Route { + if m != nil { + return m.Routes + } + return nil +} + +type Route struct { + Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Route) Reset() { *m = Route{} } +func (m *Route) String() string { return proto.CompactTextString(m) } +func (*Route) ProtoMessage() {} +func (*Route) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{1} +} + +func (m *Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Route.Unmarshal(m, b) +} +func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Route.Marshal(b, m, deterministic) +} +func (m *Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_Route.Merge(m, src) +} +func (m *Route) XXX_Size() int { + return xxx_messageInfo_Route.Size(m) +} +func (m *Route) XXX_DiscardUnknown() { + xxx_messageInfo_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_Route proto.InternalMessageInfo + +func (m *Route) GetMatch() *RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *Route) GetRoute() *RouteAction { + if m != nil { + return m.Route + } + return nil +} + +type RouteMatch struct { + Method *MethodMatch `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` + Headers []*route.HeaderMatcher `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteMatch) Reset() { *m = RouteMatch{} } +func (m *RouteMatch) String() string { return proto.CompactTextString(m) } +func (*RouteMatch) ProtoMessage() {} +func (*RouteMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{2} +} + +func (m *RouteMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteMatch.Unmarshal(m, b) +} +func (m *RouteMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteMatch.Marshal(b, m, deterministic) +} +func (m *RouteMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteMatch.Merge(m, src) +} +func (m *RouteMatch) XXX_Size() int { + return xxx_messageInfo_RouteMatch.Size(m) +} +func (m *RouteMatch) XXX_DiscardUnknown() { + xxx_messageInfo_RouteMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteMatch proto.InternalMessageInfo + +func (m *RouteMatch) GetMethod() *MethodMatch { + if m != nil { + return m.Method + } + return nil +} + +func (m *RouteMatch) GetHeaders() []*route.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +type RouteAction struct { + // Types that are valid to be assigned to ClusterSpecifier: + // *RouteAction_Cluster + // *RouteAction_WeightedClusters + ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteAction) Reset() { *m = RouteAction{} } +func (m *RouteAction) String() string { return proto.CompactTextString(m) } +func (*RouteAction) ProtoMessage() {} +func (*RouteAction) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{3} +} + +func (m *RouteAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteAction.Unmarshal(m, b) +} +func (m *RouteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteAction.Marshal(b, m, deterministic) +} +func (m *RouteAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteAction.Merge(m, src) +} +func (m *RouteAction) XXX_Size() int { + return xxx_messageInfo_RouteAction.Size(m) +} +func (m *RouteAction) XXX_DiscardUnknown() { + xxx_messageInfo_RouteAction.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteAction proto.InternalMessageInfo + +type isRouteAction_ClusterSpecifier interface { + isRouteAction_ClusterSpecifier() +} + +type RouteAction_Cluster struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` +} + +type RouteAction_WeightedClusters struct { + WeightedClusters *route.WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` +} + +func (*RouteAction_Cluster) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_WeightedClusters) isRouteAction_ClusterSpecifier() {} + +func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier { + if m != nil { + return m.ClusterSpecifier + } + return nil +} + +func (m *RouteAction) GetCluster() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_Cluster); ok { + return x.Cluster + } + return "" +} + +func (m *RouteAction) GetWeightedClusters() *route.WeightedCluster { + if x, ok := m.GetClusterSpecifier().(*RouteAction_WeightedClusters); ok { + return x.WeightedClusters + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteAction) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteAction_Cluster)(nil), + (*RouteAction_WeightedClusters)(nil), + } +} + +type MethodMatch struct { + Name *matcher.StringMatcher `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ParamsMatch map[uint32]*MethodMatch_ParameterMatchSpecifier `protobuf:"bytes,2,rep,name=params_match,json=paramsMatch,proto3" json:"params_match,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodMatch) Reset() { *m = MethodMatch{} } +func (m *MethodMatch) String() string { return proto.CompactTextString(m) } +func (*MethodMatch) ProtoMessage() {} +func (*MethodMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{4} +} + +func (m *MethodMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodMatch.Unmarshal(m, b) +} +func (m *MethodMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodMatch.Marshal(b, m, deterministic) +} +func (m *MethodMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodMatch.Merge(m, src) +} +func (m *MethodMatch) XXX_Size() int { + return xxx_messageInfo_MethodMatch.Size(m) +} +func (m *MethodMatch) XXX_DiscardUnknown() { + xxx_messageInfo_MethodMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodMatch proto.InternalMessageInfo + +func (m *MethodMatch) GetName() *matcher.StringMatcher { + if m != nil { + return m.Name + } + return nil +} + +func (m *MethodMatch) GetParamsMatch() map[uint32]*MethodMatch_ParameterMatchSpecifier { + if m != nil { + return m.ParamsMatch + } + return nil +} + +type MethodMatch_ParameterMatchSpecifier struct { + // Types that are valid to be assigned to ParameterMatchSpecifier: + // *MethodMatch_ParameterMatchSpecifier_ExactMatch + // *MethodMatch_ParameterMatchSpecifier_RangeMatch + ParameterMatchSpecifier isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier `protobuf_oneof:"parameter_match_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodMatch_ParameterMatchSpecifier) Reset() { *m = MethodMatch_ParameterMatchSpecifier{} } +func (m *MethodMatch_ParameterMatchSpecifier) String() string { return proto.CompactTextString(m) } +func (*MethodMatch_ParameterMatchSpecifier) ProtoMessage() {} +func (*MethodMatch_ParameterMatchSpecifier) Descriptor() ([]byte, []int) { + return fileDescriptor_74a572433a3292e0, []int{4, 0} +} + +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Unmarshal(m, b) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Marshal(b, m, deterministic) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Merge(m, src) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Size() int { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Size(m) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_DiscardUnknown() { + xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodMatch_ParameterMatchSpecifier proto.InternalMessageInfo + +type isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier interface { + isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() +} + +type MethodMatch_ParameterMatchSpecifier_ExactMatch struct { + ExactMatch string `protobuf:"bytes,3,opt,name=exact_match,json=exactMatch,proto3,oneof"` +} + +type MethodMatch_ParameterMatchSpecifier_RangeMatch struct { + RangeMatch *_type.Int64Range `protobuf:"bytes,4,opt,name=range_match,json=rangeMatch,proto3,oneof"` +} + +func (*MethodMatch_ParameterMatchSpecifier_ExactMatch) isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() { +} + +func (*MethodMatch_ParameterMatchSpecifier_RangeMatch) isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() { +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetParameterMatchSpecifier() isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier { + if m != nil { + return m.ParameterMatchSpecifier + } + return nil +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetExactMatch() string { + if x, ok := m.GetParameterMatchSpecifier().(*MethodMatch_ParameterMatchSpecifier_ExactMatch); ok { + return x.ExactMatch + } + return "" +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetRangeMatch() *_type.Int64Range { + if x, ok := m.GetParameterMatchSpecifier().(*MethodMatch_ParameterMatchSpecifier_RangeMatch); ok { + return x.RangeMatch + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MethodMatch_ParameterMatchSpecifier) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MethodMatch_ParameterMatchSpecifier_ExactMatch)(nil), + (*MethodMatch_ParameterMatchSpecifier_RangeMatch)(nil), + } +} + +func init() { + proto.RegisterType((*RouteConfiguration)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.RouteConfiguration") + proto.RegisterType((*Route)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.Route") + proto.RegisterType((*RouteMatch)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.RouteMatch") + proto.RegisterType((*RouteAction)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.RouteAction") + proto.RegisterType((*MethodMatch)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.MethodMatch") + proto.RegisterMapType((map[uint32]*MethodMatch_ParameterMatchSpecifier)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.MethodMatch.ParamsMatchEntry") + proto.RegisterType((*MethodMatch_ParameterMatchSpecifier)(nil), "envoy.config.filter.network.dubbo_proxy.v2alpha1.MethodMatch.ParameterMatchSpecifier") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/dubbo_proxy/v2alpha1/route.proto", fileDescriptor_74a572433a3292e0) +} + +var fileDescriptor_74a572433a3292e0 = []byte{ + // 720 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, + 0x14, 0xed, 0x24, 0x75, 0xfa, 0x7a, 0xfd, 0x9e, 0x94, 0x8e, 0x9e, 0x5a, 0xbf, 0x3c, 0x3e, 0xda, + 0xb0, 0x29, 0x1b, 0x9b, 0xa6, 0x7c, 0x53, 0x90, 0x48, 0x85, 0x54, 0x16, 0x85, 0xca, 0x55, 0xc5, + 0x06, 0x14, 0x4d, 0x9d, 0x49, 0x62, 0x35, 0x99, 0x31, 0xe3, 0x71, 0xda, 0xec, 0x58, 0x23, 0x21, + 0x36, 0x20, 0x58, 0xf2, 0x3b, 0x58, 0x23, 0xc1, 0x96, 0x3f, 0xc1, 0x0f, 0x60, 0x85, 0x58, 0x20, + 0xe4, 0x3b, 0x63, 0x12, 0x68, 0x37, 0x2d, 0x6c, 0xac, 0xf1, 0x9d, 0x7b, 0xce, 0xb9, 0xf7, 0xe8, + 0xde, 0x81, 0x35, 0x2e, 0x86, 0x72, 0x14, 0x44, 0x52, 0x74, 0xe2, 0x6e, 0xd0, 0x89, 0xfb, 0x9a, + 0xab, 0x40, 0x70, 0xbd, 0x2f, 0xd5, 0x5e, 0xd0, 0xce, 0x76, 0x77, 0x65, 0x2b, 0x51, 0xf2, 0x60, + 0x14, 0x0c, 0x1b, 0xac, 0x9f, 0xf4, 0xd8, 0x4a, 0xa0, 0x64, 0xa6, 0xb9, 0x9f, 0x28, 0xa9, 0x25, + 0xbd, 0x80, 0x68, 0xdf, 0xa0, 0x7d, 0x83, 0xf6, 0x2d, 0xda, 0x9f, 0x40, 0xfb, 0x05, 0xba, 0x76, + 0xde, 0xe8, 0xb1, 0x24, 0x0e, 0x86, 0x0d, 0xc3, 0x65, 0xbe, 0xad, 0x48, 0x0e, 0x12, 0x29, 0xb8, + 0xd0, 0xa9, 0x21, 0xaf, 0x9d, 0x35, 0xa9, 0x7a, 0x94, 0xf0, 0x60, 0xc0, 0x74, 0xd4, 0xe3, 0x2a, + 0x48, 0xb5, 0x8a, 0x45, 0xd7, 0x26, 0xcc, 0x4f, 0x24, 0x28, 0x26, 0xba, 0xb6, 0xaa, 0xda, 0x99, + 0xac, 0x9d, 0xb0, 0x80, 0x09, 0x21, 0x35, 0xd3, 0xb1, 0x14, 0x69, 0x30, 0x88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7, 0xc2, 0xa6, 0x4c, 0x63, 0xbf, 0xf3, 0x93, 0xfd, + 0xde, 0x15, 0xfa, 0xf2, 0xc5, 0x30, 0xcf, 0xc9, 0xa1, 0x98, 0x6c, 0x06, 0xfc, 0x7f, 0xf8, 0x2f, + 0x29, 0x84, 0x0d, 0x7c, 0xec, 0x6a, 0xed, 0x25, 0x81, 0xea, 0xaf, 0x85, 0xd3, 0x2a, 0x94, 0xf7, + 0xf8, 0x08, 0x4d, 0xfd, 0x27, 0xcc, 0x8f, 0x74, 0x0f, 0x9c, 0x21, 0xeb, 0x67, 0xc5, 0x4e, 0xec, + 0xfc, 0x01, 0xa7, 0x0e, 0xfb, 0x10, 0x1a, 0x8d, 0xeb, 0xa5, 0xab, 0xa4, 0xf9, 0x8c, 0x7c, 0x7e, + 0xfd, 0xed, 0xb9, 0xb3, 0x42, 0x03, 0xa3, 0xc4, 0x0f, 0x34, 0x17, 0xf9, 0xbb, 0x92, 0x5a, 0xb5, + 0xf4, 0x68, 0xb9, 0xd5, 0xb7, 0x4f, 0x3e, 0x7c, 0xac, 0x94, 0xaa, 0x04, 0x6e, 0xc5, 0xd2, 0x54, + 0x69, 0x6e, 0x8e, 0x5b, 0x70, 0xd3, 0x2c, 0xe9, 0x56, 0xfe, 0x88, 0x6e, 0x91, 0xdd, 0x0a, 0xbe, + 0xa6, 0xab, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xdc, 0xf1, 0xc1, 0x7b, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.validate.go new file mode 100644 index 000000000..5ca08f7f0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1/route.pb.validate.go @@ -0,0 +1,583 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/dubbo_proxy/v2alpha1/route.proto + +package envoy_config_filter_network_dubbo_proxy_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _route_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RouteConfiguration with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RouteConfiguration) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Interface + + // no validation rules for Group + + // no validation rules for Version + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteConfigurationValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on Route with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Route) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RouteValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetRoute() == nil { + return RouteValidationError{ + field: "Route", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Route", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RouteValidationError is the validation error returned by Route.Validate if +// the designated constraints aren't met. +type RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteValidationError) ErrorName() string { return "RouteValidationError" } + +// Error satisfies the builtin error interface +func (e RouteValidationError) 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 %sRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteValidationError{} + +// Validate checks the field values on RouteMatch with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RouteMatch) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMethod()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: "Method", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RouteMatchValidationError is the validation error returned by +// RouteMatch.Validate if the designated constraints aren't met. +type RouteMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteMatchValidationError) ErrorName() string { return "RouteMatchValidationError" } + +// Error satisfies the builtin error interface +func (e RouteMatchValidationError) 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 %sRouteMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteMatchValidationError{} + +// Validate checks the field values on RouteAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RouteAction) Validate() error { + if m == nil { + return nil + } + + switch m.ClusterSpecifier.(type) { + + case *RouteAction_Cluster: + // no validation rules for Cluster + + case *RouteAction_WeightedClusters: + + 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: + return RouteActionValidationError{ + field: "ClusterSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on MethodMatch with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *MethodMatch) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetName()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatchValidationError{ + field: "Name", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetParamsMatch() { + _ = val + + // no validation rules for ParamsMatch[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatchValidationError{ + field: fmt.Sprintf("ParamsMatch[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MethodMatchValidationError is the validation error returned by +// MethodMatch.Validate if the designated constraints aren't met. +type MethodMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MethodMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MethodMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MethodMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MethodMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MethodMatchValidationError) ErrorName() string { return "MethodMatchValidationError" } + +// Error satisfies the builtin error interface +func (e MethodMatchValidationError) 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 %sMethodMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MethodMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MethodMatchValidationError{} + +// Validate checks the field values on MethodMatch_ParameterMatchSpecifier with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *MethodMatch_ParameterMatchSpecifier) Validate() error { + if m == nil { + return nil + } + + switch m.ParameterMatchSpecifier.(type) { + + case *MethodMatch_ParameterMatchSpecifier_ExactMatch: + // no validation rules for ExactMatch + + case *MethodMatch_ParameterMatchSpecifier_RangeMatch: + + if v, ok := interface{}(m.GetRangeMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatch_ParameterMatchSpecifierValidationError{ + field: "RangeMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MethodMatch_ParameterMatchSpecifierValidationError is the validation error +// returned by MethodMatch_ParameterMatchSpecifier.Validate if the designated +// constraints aren't met. +type MethodMatch_ParameterMatchSpecifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MethodMatch_ParameterMatchSpecifierValidationError) ErrorName() string { + return "MethodMatch_ParameterMatchSpecifierValidationError" +} + +// Error satisfies the builtin error interface +func (e MethodMatch_ParameterMatchSpecifierValidationError) 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 %sMethodMatch_ParameterMatchSpecifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MethodMatch_ParameterMatchSpecifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MethodMatch_ParameterMatchSpecifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.go new file mode 100644 index 000000000..3dfe589dd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/echo/v2/echo.proto + +package envoy_config_filter_network_echo_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Echo struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Echo) Reset() { *m = Echo{} } +func (m *Echo) String() string { return proto.CompactTextString(m) } +func (*Echo) ProtoMessage() {} +func (*Echo) Descriptor() ([]byte, []int) { + return fileDescriptor_91604fcc0a62c54b, []int{0} +} + +func (m *Echo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Echo.Unmarshal(m, b) +} +func (m *Echo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Echo.Marshal(b, m, deterministic) +} +func (m *Echo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Echo.Merge(m, src) +} +func (m *Echo) XXX_Size() int { + return xxx_messageInfo_Echo.Size(m) +} +func (m *Echo) XXX_DiscardUnknown() { + xxx_messageInfo_Echo.DiscardUnknown(m) +} + +var xxx_messageInfo_Echo proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Echo)(nil), "envoy.config.filter.network.echo.v2.Echo") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/echo/v2/echo.proto", fileDescriptor_91604fcc0a62c54b) +} + +var fileDescriptor_91604fcc0a62c54b = []byte{ + // 199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4b, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x4f, 0x4d, 0xce, 0xc8, 0xd7, 0x2f, 0x33, 0x02, + 0xd3, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xca, 0x60, 0xf5, 0x7a, 0x10, 0xf5, 0x7a, 0x10, + 0xf5, 0x7a, 0x50, 0xf5, 0x7a, 0x60, 0x75, 0x65, 0x46, 0x52, 0x72, 0xa5, 0x29, 0x05, 0x89, 0xfa, + 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89, 0x25, 0x99, 0xf9, 0x79, 0xc5, 0xfa, 0xb9, 0x99, 0xe9, 0x45, + 0x89, 0x25, 0xa9, 0x10, 0x43, 0xa4, 0x64, 0x31, 0xe4, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0x21, + 0xd2, 0x4a, 0x6c, 0x5c, 0x2c, 0xae, 0xc9, 0x19, 0xf9, 0x4e, 0x15, 0x9f, 0x66, 0xfc, 0xeb, 0x67, + 0xd5, 0x12, 0xd2, 0x80, 0xd8, 0x99, 0x5a, 0x51, 0x92, 0x9a, 0x57, 0x0c, 0x52, 0x0e, 0xb5, 0xb7, + 0x18, 0xcd, 0x62, 0xe3, 0x5d, 0x0d, 0x27, 0x2e, 0xb2, 0x31, 0x09, 0x30, 0x72, 0x19, 0x66, 0xe6, + 0x43, 0x3c, 0x56, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0x84, 0x9b, 0x9d, 0x38, 0x41, 0x56, 0x06, + 0x80, 0xec, 0x0f, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xc4, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x58, + 0xa6, 0x0f, 0x2c, 0x1e, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.validate.go new file mode 100644 index 000000000..f05102a6c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2/echo.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/echo/v2/echo.proto + +package envoy_config_filter_network_echo_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _echo_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Echo with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Echo) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EchoValidationError is the validation error returned by Echo.Validate if the +// designated constraints aren't met. +type EchoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EchoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EchoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EchoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EchoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EchoValidationError) ErrorName() string { return "EchoValidationError" } + +// Error satisfies the builtin error interface +func (e EchoValidationError) 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 %sEcho.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EchoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EchoValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.go new file mode 100644 index 000000000..484489b80 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.go @@ -0,0 +1,123 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/ext_authz/v2/ext_authz.proto + +package envoy_config_filter_network_ext_authz_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ExtAuthz struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + GrpcService *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + FailureModeAllow bool `protobuf:"varint,3,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"` + IncludePeerCertificate bool `protobuf:"varint,4,opt,name=include_peer_certificate,json=includePeerCertificate,proto3" json:"include_peer_certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthz) Reset() { *m = ExtAuthz{} } +func (m *ExtAuthz) String() string { return proto.CompactTextString(m) } +func (*ExtAuthz) ProtoMessage() {} +func (*ExtAuthz) Descriptor() ([]byte, []int) { + return fileDescriptor_3ec2615c2696024a, []int{0} +} + +func (m *ExtAuthz) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthz.Unmarshal(m, b) +} +func (m *ExtAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthz.Marshal(b, m, deterministic) +} +func (m *ExtAuthz) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthz.Merge(m, src) +} +func (m *ExtAuthz) XXX_Size() int { + return xxx_messageInfo_ExtAuthz.Size(m) +} +func (m *ExtAuthz) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthz.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthz proto.InternalMessageInfo + +func (m *ExtAuthz) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ExtAuthz) GetGrpcService() *core.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func (m *ExtAuthz) GetFailureModeAllow() bool { + if m != nil { + return m.FailureModeAllow + } + return false +} + +func (m *ExtAuthz) GetIncludePeerCertificate() bool { + if m != nil { + return m.IncludePeerCertificate + } + return false +} + +func init() { + proto.RegisterType((*ExtAuthz)(nil), "envoy.config.filter.network.ext_authz.v2.ExtAuthz") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/ext_authz/v2/ext_authz.proto", fileDescriptor_3ec2615c2696024a) +} + +var fileDescriptor_3ec2615c2696024a = []byte{ + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xb1, 0xee, 0xd3, 0x30, + 0x10, 0xc6, 0xe5, 0x52, 0x4a, 0x71, 0x41, 0xaa, 0x32, 0x40, 0x54, 0x89, 0x2a, 0x42, 0x0c, 0x19, + 0xc0, 0x96, 0x52, 0x09, 0x75, 0x6d, 0x10, 0x62, 0x42, 0x8a, 0xca, 0x03, 0x44, 0xc6, 0xb9, 0x04, + 0x8b, 0xd4, 0xb6, 0x1c, 0x27, 0x4d, 0x99, 0x98, 0x58, 0x59, 0x79, 0x16, 0x9e, 0x80, 0x95, 0x27, + 0xe0, 0x1d,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xf8, 0xae, 0xe3, 0xaa, 0x9a, 0x8a, 0xe0, + 0x29, 0x0e, 0x4a, 0x26, 0xea, 0xd6, 0x40, 0x7e, 0x52, 0x05, 0xe4, 0xac, 0xae, 0xd5, 0x39, 0xbc, + 0x15, 0xa1, 0x78, 0x79, 0x5c, 0x8f, 0xe4, 0xb5, 0x2a, 0xe0, 0xe0, 0xfe, 0x07, 0x7b, 0x1c, 0x0a, + 0xc9, 0xeb, 0xb6, 0x80, 0x5c, 0x03, 0x98, 0x9c, 0x83, 0xb1, 0xa2, 0x14, 0x9c, 0x59, 0x08, 0xe7, + 0x83, 0xe6, 0xc1, 0xc8, 0x33, 0x00, 0xf3, 0x62, 0xa2, 0xe9, 0x27, 0xf4, 0xf3, 0xcb, 0xef, 0xcf, + 0xb7, 0x69, 0xf0, 0xcc, 0x2f, 0x07, 0xbd, 0x05, 0xd9, 0x38, 0x8b, 0xc6, 0x58, 0x9a, 0xff, 0xe5, + 0xb2, 0xfb, 0xfa, 0xf1, 0xdb, 0xf7, 0xc5, 0x6c, 0x8d, 0xf0, 0x73, 0xa1, 0xfc, 0x59, 0xda, 0xa8, + 0xfe, 0x42, 0x6e, 0x9a, 0x6b, 0x7a, 0xff, 0x6a, 0x6b, 0xe6, 0x8c, 0xce, 0xd0, 0xdb, 0xc5, 0xe0, + 0xf8, 0xee, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x56, 0xa0, 0x9b, 0x55, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.validate.go new file mode 100644 index 000000000..5a05f5464 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2/ext_authz.pb.validate.go @@ -0,0 +1,122 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/ext_authz/v2/ext_authz.proto + +package envoy_config_filter_network_ext_authz_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ext_authz_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ExtAuthz with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ExtAuthz) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return ExtAuthzValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeAllow + + // no validation rules for IncludePeerCertificate + + return nil +} + +// ExtAuthzValidationError is the validation error returned by +// ExtAuthz.Validate if the designated constraints aren't met. +type ExtAuthzValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzValidationError) ErrorName() string { return "ExtAuthzValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzValidationError) 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 %sExtAuthz.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.go new file mode 100644 index 000000000..f97a2f460 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.proto + +package envoy_config_filter_network_kafka_broker_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type KafkaBroker struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KafkaBroker) Reset() { *m = KafkaBroker{} } +func (m *KafkaBroker) String() string { return proto.CompactTextString(m) } +func (*KafkaBroker) ProtoMessage() {} +func (*KafkaBroker) Descriptor() ([]byte, []int) { + return fileDescriptor_c4f522eb0d8e5471, []int{0} +} + +func (m *KafkaBroker) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KafkaBroker.Unmarshal(m, b) +} +func (m *KafkaBroker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KafkaBroker.Marshal(b, m, deterministic) +} +func (m *KafkaBroker) XXX_Merge(src proto.Message) { + xxx_messageInfo_KafkaBroker.Merge(m, src) +} +func (m *KafkaBroker) XXX_Size() int { + return xxx_messageInfo_KafkaBroker.Size(m) +} +func (m *KafkaBroker) XXX_DiscardUnknown() { + xxx_messageInfo_KafkaBroker.DiscardUnknown(m) +} + +var xxx_messageInfo_KafkaBroker proto.InternalMessageInfo + +func (m *KafkaBroker) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func init() { + proto.RegisterType((*KafkaBroker)(nil), "envoy.config.filter.network.kafka_broker.v2alpha1.KafkaBroker") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.proto", fileDescriptor_c4f522eb0d8e5471) +} + +var fileDescriptor_c4f522eb0d8e5471 = []byte{ + // 268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0xcf, 0x4e, 0x4c, 0xcb, 0x4e, 0x8c, 0x4f, 0x2a, + 0xca, 0xcf, 0x4e, 0x2d, 0xd2, 0x2f, 0x33, 0x4a, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0x44, 0x11, 0xd5, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x32, 0x04, 0x9b, 0xa2, 0x07, 0x31, 0x45, 0x0f, 0x62, 0x8a, + 0x1e, 0xd4, 0x14, 0x3d, 0x14, 0xf5, 0x30, 0x53, 0xa4, 0xe4, 0x4a, 0x53, 0x0a, 0x12, 0xf5, 0x13, + 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x73, 0x33, 0xd3, 0x8b, 0x12, + 0x4b, 0x52, 0x21, 0x46, 0x4a, 0xc9, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xa5, + 0xc5, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x84, 0x92, 0x39, + 0x17, 0xb7, 0x37, 0xc8, 0x42, 0x27, 0xb0, 0x7d, 0x42, 0x1a, 0x5c, 0xdc, 0x20, 0x7d, 0xf1, 0x05, + 0x45, 0xa9, 0x69, 0x99, 0x15, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0xec, 0xbf, 0x9c, 0x58, + 0x8a, 0x98, 0x14, 0x18, 0x83, 0xb8, 0x40, 0x72, 0x01, 0x60, 0x29, 0xa7, 0xa9, 0x8c, 0x9f, 0x66, + 0xfc, 0xeb, 0x67, 0x35, 0x12, 0x32, 0x80, 0x78, 0x26, 0xb5, 0xa2, 0x24, 0x35, 0xaf, 0x18, 0x64, + 0x33, 0xd4, 0x43, 0xc5, 0x38, 0x7c, 0x64, 0xbc, 0xab, 0xe1, 0xc4, 0x45, 0x36, 0x26, 0x01, 0x46, + 0x2e, 0xfb, 0xcc, 0x7c, 0x3d, 0xb0, 0xe6, 0x82, 0xa2, 0xfc, 0x8a, 0x4a, 0x3d, 0x92, 0x03, 0xc5, + 0x49, 0x00, 0xc9, 0xe9, 0x01, 0x20, 0xef, 0x04, 0x30, 0x26, 0xb1, 0x81, 0xfd, 0x65, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0x39, 0x05, 0xdc, 0x0d, 0xaa, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.validate.go new file mode 100644 index 000000000..353741f21 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/kafka_broker/v2alpha1/kafka_broker.proto + +package envoy_config_filter_network_kafka_broker_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _kafka_broker_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on KafkaBroker with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *KafkaBroker) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return KafkaBrokerValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// KafkaBrokerValidationError is the validation error returned by +// KafkaBroker.Validate if the designated constraints aren't met. +type KafkaBrokerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e KafkaBrokerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e KafkaBrokerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e KafkaBrokerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e KafkaBrokerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e KafkaBrokerValidationError) ErrorName() string { return "KafkaBrokerValidationError" } + +// Error satisfies the builtin error interface +func (e KafkaBrokerValidationError) 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 %sKafkaBroker.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = KafkaBrokerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = KafkaBrokerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.go new file mode 100644 index 000000000..2b8483a5f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.go @@ -0,0 +1,117 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.proto + +package envoy_config_filter_network_local_rate_limit_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LocalRateLimit struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + TokenBucket *_type.TokenBucket `protobuf:"bytes,2,opt,name=token_bucket,json=tokenBucket,proto3" json:"token_bucket,omitempty"` + RuntimeEnabled *core.RuntimeFeatureFlag `protobuf:"bytes,3,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRateLimit) Reset() { *m = LocalRateLimit{} } +func (m *LocalRateLimit) String() string { return proto.CompactTextString(m) } +func (*LocalRateLimit) ProtoMessage() {} +func (*LocalRateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_984b0e5e5a865836, []int{0} +} + +func (m *LocalRateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocalRateLimit.Unmarshal(m, b) +} +func (m *LocalRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocalRateLimit.Marshal(b, m, deterministic) +} +func (m *LocalRateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRateLimit.Merge(m, src) +} +func (m *LocalRateLimit) XXX_Size() int { + return xxx_messageInfo_LocalRateLimit.Size(m) +} +func (m *LocalRateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRateLimit proto.InternalMessageInfo + +func (m *LocalRateLimit) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *LocalRateLimit) GetTokenBucket() *_type.TokenBucket { + if m != nil { + return m.TokenBucket + } + return nil +} + +func (m *LocalRateLimit) GetRuntimeEnabled() *core.RuntimeFeatureFlag { + if m != nil { + return m.RuntimeEnabled + } + return nil +} + +func init() { + proto.RegisterType((*LocalRateLimit)(nil), "envoy.config.filter.network.local_rate_limit.v2alpha.LocalRateLimit") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.proto", fileDescriptor_984b0e5e5a865836) +} + +var fileDescriptor_984b0e5e5a865836 = []byte{ + // 395 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xb1, 0x8e, 0xd3, 0x40, + 0x10, 0x86, 0xb5, 0x81, 0x3b, 0xc0, 0x41, 0xc7, 0xc9, 0x14, 0x17, 0x45, 0x80, 0x22, 0x24, 0xa4, + 0x54, 0xbb, 0x52, 0x02, 0x2f, 0xb0, 0x82, 0x6b, 0x38, 0xa1, 0xc8, 0xa2, 0xb7, 0xc6, 0xce, 0x24, + 0xac, 0xb2, 0xd9, 0x5d, 0xad, 0xc7, 0x26, 0xe9, 0xa8, 0x69, 0x68, 0xa9, 0x78, 0x10, 0x9e, 0x80, + 0x12, 0x5e, 0x85, 0xf2, 0x0a, 0x84, 0xd6, 0xbb, 0x11, 0xa0, 0x50, 0x5d, 0x67, 0xf9, 0xf3, 0xff, + 0xcd, 0xf8, 0x9f, 0xec, 0x35, 0x9a, 0xce, 0xee, 0x45, 0x6d, 0xcd, 0x4a, 0xad, 0xc5, 0x4a, 0x69, + 0x42, 0x2f, 0x0c, 0xd2, 0x7b, 0xeb, 0x37, 0x42, 0xdb, 0x1a, 0x74, 0xe9, 0x81, 0xb0, 0xd4, 0x6a, + 0xab, 0x48, 0x74, 0x33, 0xd0, 0xee, 0x1d, 0x1c, 0x01, 0xee, 0xbc, 0x25, 0x9b, 0x3f, 0xef, 0x65, + 0x3c, 0xca, 0x78, 0x94, 0xf1, 0x24, 0xe3, 0x47, 0x99, 0x24, 0x1b, 0x3f, 0x8a, 0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f, 0xd8, 0xcf, 0xcf, 0xbf, 0x3e, 0x9d, 0xbc, 0xc8, 0xe7, 0x31, 0x8e, 0x3b, + 0x42, 0xd3, 0x84, 0x4e, 0xd2, 0xa9, 0x9a, 0xff, 0xdc, 0x2a, 0x9d, 0x6a, 0xfe, 0xf5, 0xc3, 0xb7, + 0x1f, 0xa7, 0x83, 0x73, 0x96, 0x49, 0x65, 0xe3, 0x78, 0xe7, 0xed, 0x6e, 0xcf, 0x6f, 0x72, 0x71, + 0xf9, 0xf0, 0xdf, 0x66, 0x17, 0xa1, 0xf1, 0x05, 0xab, 0x4e, 0xfb, 0xea, 0xe7, 0xbf, 0x03, 0x00, + 0x00, 0xff, 0xff, 0x01, 0xdd, 0x29, 0x5f, 0x94, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.validate.go new file mode 100644 index 000000000..fff200e61 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.pb.validate.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/local_rate_limit/v2alpha/local_rate_limit.proto + +package envoy_config_filter_network_local_rate_limit_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _local_rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on LocalRateLimit with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LocalRateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return LocalRateLimitValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetTokenBucket() == nil { + return LocalRateLimitValidationError{ + field: "TokenBucket", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTokenBucket()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalRateLimitValidationError{ + field: "TokenBucket", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRuntimeEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalRateLimitValidationError{ + field: "RuntimeEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LocalRateLimitValidationError is the validation error returned by +// LocalRateLimit.Validate if the designated constraints aren't met. +type LocalRateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LocalRateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LocalRateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LocalRateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LocalRateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LocalRateLimitValidationError) ErrorName() string { return "LocalRateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e LocalRateLimitValidationError) 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 %sLocalRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LocalRateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LocalRateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.go new file mode 100644 index 000000000..6486d2a84 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.go @@ -0,0 +1,122 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.proto + +package envoy_config_filter_network_mongo_proxy_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MongoProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + Delay *v2.FaultDelay `protobuf:"bytes,3,opt,name=delay,proto3" json:"delay,omitempty"` + EmitDynamicMetadata bool `protobuf:"varint,4,opt,name=emit_dynamic_metadata,json=emitDynamicMetadata,proto3" json:"emit_dynamic_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoProxy) Reset() { *m = MongoProxy{} } +func (m *MongoProxy) String() string { return proto.CompactTextString(m) } +func (*MongoProxy) ProtoMessage() {} +func (*MongoProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_4d590dd12f767c61, []int{0} +} + +func (m *MongoProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoProxy.Unmarshal(m, b) +} +func (m *MongoProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoProxy.Marshal(b, m, deterministic) +} +func (m *MongoProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoProxy.Merge(m, src) +} +func (m *MongoProxy) XXX_Size() int { + return xxx_messageInfo_MongoProxy.Size(m) +} +func (m *MongoProxy) XXX_DiscardUnknown() { + xxx_messageInfo_MongoProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoProxy proto.InternalMessageInfo + +func (m *MongoProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *MongoProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func (m *MongoProxy) GetDelay() *v2.FaultDelay { + if m != nil { + return m.Delay + } + return nil +} + +func (m *MongoProxy) GetEmitDynamicMetadata() bool { + if m != nil { + return m.EmitDynamicMetadata + } + return false +} + +func init() { + proto.RegisterType((*MongoProxy)(nil), "envoy.config.filter.network.mongo_proxy.v2.MongoProxy") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.proto", fileDescriptor_4d590dd12f767c61) +} + +var fileDescriptor_4d590dd12f767c61 = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4a, 0xeb, 0x40, + 0x14, 0x86, 0x99, 0xde, 0xb6, 0xf7, 0x76, 0xba, 0xb8, 0x12, 0x11, 0x43, 0xa1, 0x12, 0x5c, 0x05, + 0x17, 0x19, 0x4c, 0x37, 0x2e, 0xc4,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, 0x1c, 0x63, 0x9a, 0x24, 0x4c, + 0xa9, 0xb8, 0x90, 0xb9, 0x3d, 0xd0, 0x8d, 0xd1, 0xc4, 0xfc, 0xb9, 0x92, 0xb9, 0x75, 0x81, 0x47, + 0x29, 0x2b, 0x68, 0x6b, 0xff, 0x71, 0x90, 0x3b, 0xf5, 0x5d, 0x6f, 0x57, 0x2a, 0xe6, 0x81, 0x8d, + 0xef, 0x5d, 0xea, 0x62, 0xa9, 0xfb, 0x23, 0x23, 0xb3, 0x7c, 0x7c, 0xc0, 0x4a, 0x0e, 0x71, 0xda, + 0x0a, 0x5a, 0xf2, 0x24, 0x2e, 0x19, 0xd0, 0x94, 0x02, 0xb5, 0x87, 0x0e, 0x72, 0xff, 0x45, 0xfb, + 0x1a, 0x2e, 0x0d, 0x5b, 0xf5, 0x28, 0xb8, 0x47, 0x6f, 0x8f, 0x1f, 0x0f, 0xa3, 0x53, 0x8b, 0x98, + 0x65, 0x6c, 0x03, 0x4c, 0x28, 0x1d, 0x46, 0xbf, 0x50, 0xed, 0xbe, 0xc3, 0xe2, 0xe9, 0xee, 0xf9, + 0x75, 0x3c, 0xd8, 0x43, 0xf8, 0x8c, 0x4b, 0x63, 0xd4, 0x90, 0xdf, 0x5f, 0x32, 0xf8, 0xff, 0x1d, + 0x62, 0xa8, 0x83, 0x0d, 0xd1, 0xf5, 0xb8, 0x4b, 0x78, 0xf1, 0x19, 0x00, 0x00, 0xff, 0xff, 0x2f, + 0xa2, 0xcc, 0x0e, 0x4f, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.validate.go new file mode 100644 index 000000000..7b15ca055 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.pb.validate.go @@ -0,0 +1,122 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.proto + +package envoy_config_filter_network_mongo_proxy_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mongo_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MongoProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MongoProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return MongoProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + if v, ok := interface{}(m.GetDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MongoProxyValidationError{ + field: "Delay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EmitDynamicMetadata + + return nil +} + +// MongoProxyValidationError is the validation error returned by +// MongoProxy.Validate if the designated constraints aren't met. +type MongoProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MongoProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MongoProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MongoProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MongoProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MongoProxyValidationError) ErrorName() string { return "MongoProxyValidationError" } + +// Error satisfies the builtin error interface +func (e MongoProxyValidationError) 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 %sMongoProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MongoProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MongoProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.go new file mode 100644 index 000000000..5138a2391 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.proto + +package envoy_config_filter_network_mysql_proxy_v1alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MySQLProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MySQLProxy) Reset() { *m = MySQLProxy{} } +func (m *MySQLProxy) String() string { return proto.CompactTextString(m) } +func (*MySQLProxy) ProtoMessage() {} +func (*MySQLProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_c4bac5cccef760ed, []int{0} +} + +func (m *MySQLProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MySQLProxy.Unmarshal(m, b) +} +func (m *MySQLProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MySQLProxy.Marshal(b, m, deterministic) +} +func (m *MySQLProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MySQLProxy.Merge(m, src) +} +func (m *MySQLProxy) XXX_Size() int { + return xxx_messageInfo_MySQLProxy.Size(m) +} +func (m *MySQLProxy) XXX_DiscardUnknown() { + xxx_messageInfo_MySQLProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_MySQLProxy proto.InternalMessageInfo + +func (m *MySQLProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *MySQLProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func init() { + proto.RegisterType((*MySQLProxy)(nil), "envoy.config.filter.network.mysql_proxy.v1alpha1.MySQLProxy") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.proto", fileDescriptor_c4bac5cccef760ed) +} + +var fileDescriptor_c4bac5cccef760ed = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xb1, 0x4e, 0xeb, 0x30, + 0x14, 0x86, 0xe5, 0xe8, 0xde, 0xa2, 0x9a, 0x01, 0x94, 0x85, 0xaa, 0x52, 0x51, 0xc5, 0xd4, 0xc9, + 0x26, 0xea, 0xce, 0x90, 0xb9, 0x95, 0x42, 0x11, 0x73, 0x64, 0x52, 0x27, 0x58,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, 0xcb, 0xd7, 0xd3, 0xff, 0x28, 0xe4, 0xde, 0x54, 0x36, 0x28, 0xb5, 0x75, + 0xef, 0xea, 0x6d, 0xed, 0xef, 0xba, 0xf3, 0xd7, 0xc7, 0xb7, 0xf7, 0x41, 0x70, 0x4c, 0xe8, 0x85, + 0x02, 0xd6, 0xed, 0xfa, 0xe6, 0xaf, 0x1f, 0x16, 0x1f, 0x2d, 0x5d, 0xda, 0x69, 0x25, 0xce, 0x34, + 0x21, 0x37, 0x83, 0x4e, 0x79, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x9a, 0x4d, 0xe4, 0xc2, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.validate.go new file mode 100644 index 000000000..4fd3a96c2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.pb.validate.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/mysql_proxy/v1alpha1/mysql_proxy.proto + +package envoy_config_filter_network_mysql_proxy_v1alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mysql_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MySQLProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MySQLProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return MySQLProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + return nil +} + +// MySQLProxyValidationError is the validation error returned by +// MySQLProxy.Validate if the designated constraints aren't met. +type MySQLProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MySQLProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MySQLProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MySQLProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MySQLProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MySQLProxyValidationError) ErrorName() string { return "MySQLProxyValidationError" } + +// Error satisfies the builtin error interface +func (e MySQLProxyValidationError) 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 %sMySQLProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MySQLProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MySQLProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.go new file mode 100644 index 000000000..9e4ec5d9d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.go @@ -0,0 +1,146 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/rate_limit/v2/rate_limit.proto + +package envoy_config_filter_network_rate_limit_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + ratelimit "github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Descriptors []*ratelimit.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors,proto3" json:"descriptors,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitService *v2.RateLimitServiceConfig `protobuf:"bytes,6,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_34e9a222968daa71, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetDescriptors() []*ratelimit.RateLimitDescriptor { + if m != nil { + return m.Descriptors + } + return nil +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v2.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.config.filter.network.rate_limit.v2.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/rate_limit/v2/rate_limit.proto", fileDescriptor_34e9a222968daa71) +} + +var fileDescriptor_34e9a222968daa71 = []byte{ + // 464 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x3f, 0x8f, 0xd3, 0x30, + 0x14, 0x97, 0x73, 0xd7, 0x5e, 0xcf, 0x95, 0xa0, 0x78, 0x21, 0x9c, 0x04, 0x44, 0x20, 0xa1, 0x00, + 0xc2, 0x16, 0xe9, 0x80, 0xc4, 0x18, 0x3a, 0x82, 0x54, 0x85, 0x81, 0x31, 0xf2, 0x35, 0x2f, 0x95, + 0x45, 0x62, 0x47, 0x8e, 0x13,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xef, 0x1f, 0x7f, 0xfc, 0x9c, 0x3a, 0x0b, 0x84, 0x5f, 0x08, 0x65, 0x1b, 0x2a, 0xb4, 0xda, + 0xed, 0xe9, 0xb5, 0x77, 0x37, 0xbc, 0x71, 0x68, 0x76, 0xdd, 0x84, 0xb6, 0x46, 0x97, 0xd3, 0x36, + 0xbd, 0xe5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xf8, 0x35, 0x5d, 0x3d, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.validate.go new file mode 100644 index 000000000..49b31d364 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2/rate_limit.pb.validate.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/rate_limit/v2/rate_limit.proto + +package envoy_config_filter_network_rate_limit_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return RateLimitValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetDescriptors()) < 1 { + return RateLimitValidationError{ + field: "Descriptors", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetDescriptors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: fmt.Sprintf("Descriptors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.go new file mode 100644 index 000000000..f708dba74 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.go @@ -0,0 +1,548 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/redis_proxy/v2/redis_proxy.proto + +package envoy_config_filter_network_redis_proxy_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RedisProxy_ConnPoolSettings_ReadPolicy int32 + +const ( + RedisProxy_ConnPoolSettings_MASTER RedisProxy_ConnPoolSettings_ReadPolicy = 0 + RedisProxy_ConnPoolSettings_PREFER_MASTER RedisProxy_ConnPoolSettings_ReadPolicy = 1 + RedisProxy_ConnPoolSettings_REPLICA RedisProxy_ConnPoolSettings_ReadPolicy = 2 + RedisProxy_ConnPoolSettings_PREFER_REPLICA RedisProxy_ConnPoolSettings_ReadPolicy = 3 + RedisProxy_ConnPoolSettings_ANY RedisProxy_ConnPoolSettings_ReadPolicy = 4 +) + +var RedisProxy_ConnPoolSettings_ReadPolicy_name = map[int32]string{ + 0: "MASTER", + 1: "PREFER_MASTER", + 2: "REPLICA", + 3: "PREFER_REPLICA", + 4: "ANY", +} + +var RedisProxy_ConnPoolSettings_ReadPolicy_value = map[string]int32{ + "MASTER": 0, + "PREFER_MASTER": 1, + "REPLICA": 2, + "PREFER_REPLICA": 3, + "ANY": 4, +} + +func (x RedisProxy_ConnPoolSettings_ReadPolicy) String() string { + return proto.EnumName(RedisProxy_ConnPoolSettings_ReadPolicy_name, int32(x)) +} + +func (RedisProxy_ConnPoolSettings_ReadPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0, 0, 0} +} + +type RedisProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` // Deprecated: Do not use. + Settings *RedisProxy_ConnPoolSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"` + LatencyInMicros bool `protobuf:"varint,4,opt,name=latency_in_micros,json=latencyInMicros,proto3" json:"latency_in_micros,omitempty"` + PrefixRoutes *RedisProxy_PrefixRoutes `protobuf:"bytes,5,opt,name=prefix_routes,json=prefixRoutes,proto3" json:"prefix_routes,omitempty"` + DownstreamAuthPassword *core.DataSource `protobuf:"bytes,6,opt,name=downstream_auth_password,json=downstreamAuthPassword,proto3" json:"downstream_auth_password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy) Reset() { *m = RedisProxy{} } +func (m *RedisProxy) String() string { return proto.CompactTextString(m) } +func (*RedisProxy) ProtoMessage() {} +func (*RedisProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0} +} + +func (m *RedisProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy.Unmarshal(m, b) +} +func (m *RedisProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy.Marshal(b, m, deterministic) +} +func (m *RedisProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy.Merge(m, src) +} +func (m *RedisProxy) XXX_Size() int { + return xxx_messageInfo_RedisProxy.Size(m) +} +func (m *RedisProxy) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy proto.InternalMessageInfo + +func (m *RedisProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +// Deprecated: Do not use. +func (m *RedisProxy) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *RedisProxy) GetSettings() *RedisProxy_ConnPoolSettings { + if m != nil { + return m.Settings + } + return nil +} + +func (m *RedisProxy) GetLatencyInMicros() bool { + if m != nil { + return m.LatencyInMicros + } + return false +} + +func (m *RedisProxy) GetPrefixRoutes() *RedisProxy_PrefixRoutes { + if m != nil { + return m.PrefixRoutes + } + return nil +} + +func (m *RedisProxy) GetDownstreamAuthPassword() *core.DataSource { + if m != nil { + return m.DownstreamAuthPassword + } + return nil +} + +type RedisProxy_ConnPoolSettings struct { + OpTimeout *duration.Duration `protobuf:"bytes,1,opt,name=op_timeout,json=opTimeout,proto3" json:"op_timeout,omitempty"` + EnableHashtagging bool `protobuf:"varint,2,opt,name=enable_hashtagging,json=enableHashtagging,proto3" json:"enable_hashtagging,omitempty"` + EnableRedirection bool `protobuf:"varint,3,opt,name=enable_redirection,json=enableRedirection,proto3" json:"enable_redirection,omitempty"` + MaxBufferSizeBeforeFlush uint32 `protobuf:"varint,4,opt,name=max_buffer_size_before_flush,json=maxBufferSizeBeforeFlush,proto3" json:"max_buffer_size_before_flush,omitempty"` + BufferFlushTimeout *duration.Duration `protobuf:"bytes,5,opt,name=buffer_flush_timeout,json=bufferFlushTimeout,proto3" json:"buffer_flush_timeout,omitempty"` + MaxUpstreamUnknownConnections *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=max_upstream_unknown_connections,json=maxUpstreamUnknownConnections,proto3" json:"max_upstream_unknown_connections,omitempty"` + EnableCommandStats bool `protobuf:"varint,8,opt,name=enable_command_stats,json=enableCommandStats,proto3" json:"enable_command_stats,omitempty"` + ReadPolicy RedisProxy_ConnPoolSettings_ReadPolicy `protobuf:"varint,7,opt,name=read_policy,json=readPolicy,proto3,enum=envoy.config.filter.network.redis_proxy.v2.RedisProxy_ConnPoolSettings_ReadPolicy" json:"read_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_ConnPoolSettings) Reset() { *m = RedisProxy_ConnPoolSettings{} } +func (m *RedisProxy_ConnPoolSettings) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_ConnPoolSettings) ProtoMessage() {} +func (*RedisProxy_ConnPoolSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0, 0} +} + +func (m *RedisProxy_ConnPoolSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Unmarshal(m, b) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Marshal(b, m, deterministic) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_ConnPoolSettings.Merge(m, src) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Size() int { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Size(m) +} +func (m *RedisProxy_ConnPoolSettings) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_ConnPoolSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_ConnPoolSettings proto.InternalMessageInfo + +func (m *RedisProxy_ConnPoolSettings) GetOpTimeout() *duration.Duration { + if m != nil { + return m.OpTimeout + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableHashtagging() bool { + if m != nil { + return m.EnableHashtagging + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableRedirection() bool { + if m != nil { + return m.EnableRedirection + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetMaxBufferSizeBeforeFlush() uint32 { + if m != nil { + return m.MaxBufferSizeBeforeFlush + } + return 0 +} + +func (m *RedisProxy_ConnPoolSettings) GetBufferFlushTimeout() *duration.Duration { + if m != nil { + return m.BufferFlushTimeout + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetMaxUpstreamUnknownConnections() *wrappers.UInt32Value { + if m != nil { + return m.MaxUpstreamUnknownConnections + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableCommandStats() bool { + if m != nil { + return m.EnableCommandStats + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetReadPolicy() RedisProxy_ConnPoolSettings_ReadPolicy { + if m != nil { + return m.ReadPolicy + } + return RedisProxy_ConnPoolSettings_MASTER +} + +type RedisProxy_PrefixRoutes struct { + Routes []*RedisProxy_PrefixRoutes_Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` + CaseInsensitive bool `protobuf:"varint,2,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"` + CatchAllCluster string `protobuf:"bytes,3,opt,name=catch_all_cluster,json=catchAllCluster,proto3" json:"catch_all_cluster,omitempty"` // Deprecated: Do not use. + CatchAllRoute *RedisProxy_PrefixRoutes_Route `protobuf:"bytes,4,opt,name=catch_all_route,json=catchAllRoute,proto3" json:"catch_all_route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes) Reset() { *m = RedisProxy_PrefixRoutes{} } +func (m *RedisProxy_PrefixRoutes) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_PrefixRoutes) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0, 1} +} + +func (m *RedisProxy_PrefixRoutes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Size(m) +} +func (m *RedisProxy_PrefixRoutes) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes) GetRoutes() []*RedisProxy_PrefixRoutes_Route { + if m != nil { + return m.Routes + } + return nil +} + +func (m *RedisProxy_PrefixRoutes) GetCaseInsensitive() bool { + if m != nil { + return m.CaseInsensitive + } + return false +} + +// Deprecated: Do not use. +func (m *RedisProxy_PrefixRoutes) GetCatchAllCluster() string { + if m != nil { + return m.CatchAllCluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes) GetCatchAllRoute() *RedisProxy_PrefixRoutes_Route { + if m != nil { + return m.CatchAllRoute + } + return nil +} + +type RedisProxy_PrefixRoutes_Route struct { + Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + RemovePrefix bool `protobuf:"varint,2,opt,name=remove_prefix,json=removePrefix,proto3" json:"remove_prefix,omitempty"` + Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` + RequestMirrorPolicy []*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy `protobuf:"bytes,4,rep,name=request_mirror_policy,json=requestMirrorPolicy,proto3" json:"request_mirror_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes_Route) Reset() { *m = RedisProxy_PrefixRoutes_Route{} } +func (m *RedisProxy_PrefixRoutes_Route) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_PrefixRoutes_Route) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes_Route) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0, 1, 0} +} + +func (m *RedisProxy_PrefixRoutes_Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Size(m) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes_Route proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes_Route) GetPrefix() string { + if m != nil { + return m.Prefix + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route) GetRemovePrefix() bool { + if m != nil { + return m.RemovePrefix + } + return false +} + +func (m *RedisProxy_PrefixRoutes_Route) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route) GetRequestMirrorPolicy() []*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy { + if m != nil { + return m.RequestMirrorPolicy + } + return nil +} + +type RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + RuntimeFraction *core.RuntimeFractionalPercent `protobuf:"bytes,2,opt,name=runtime_fraction,json=runtimeFraction,proto3" json:"runtime_fraction,omitempty"` + ExcludeReadCommands bool `protobuf:"varint,3,opt,name=exclude_read_commands,json=excludeReadCommands,proto3" json:"exclude_read_commands,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Reset() { + *m = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy{} +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) String() string { + return proto.CompactTextString(m) +} +func (*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{0, 1, 0, 0} +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Size(m) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetRuntimeFraction() *core.RuntimeFractionalPercent { + if m != nil { + return m.RuntimeFraction + } + return nil +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetExcludeReadCommands() bool { + if m != nil { + return m.ExcludeReadCommands + } + return false +} + +type RedisProtocolOptions struct { + AuthPassword *core.DataSource `protobuf:"bytes,1,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProtocolOptions) Reset() { *m = RedisProtocolOptions{} } +func (m *RedisProtocolOptions) String() string { return proto.CompactTextString(m) } +func (*RedisProtocolOptions) ProtoMessage() {} +func (*RedisProtocolOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_67e7179f1292d5ae, []int{1} +} + +func (m *RedisProtocolOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProtocolOptions.Unmarshal(m, b) +} +func (m *RedisProtocolOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProtocolOptions.Marshal(b, m, deterministic) +} +func (m *RedisProtocolOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProtocolOptions.Merge(m, src) +} +func (m *RedisProtocolOptions) XXX_Size() int { + return xxx_messageInfo_RedisProtocolOptions.Size(m) +} +func (m *RedisProtocolOptions) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProtocolOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProtocolOptions proto.InternalMessageInfo + +func (m *RedisProtocolOptions) GetAuthPassword() *core.DataSource { + if m != nil { + return m.AuthPassword + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.config.filter.network.redis_proxy.v2.RedisProxy_ConnPoolSettings_ReadPolicy", RedisProxy_ConnPoolSettings_ReadPolicy_name, RedisProxy_ConnPoolSettings_ReadPolicy_value) + proto.RegisterType((*RedisProxy)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProxy") + proto.RegisterType((*RedisProxy_ConnPoolSettings)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings") + proto.RegisterType((*RedisProxy_PrefixRoutes)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProxy.PrefixRoutes") + proto.RegisterType((*RedisProxy_PrefixRoutes_Route)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProxy.PrefixRoutes.Route") + proto.RegisterType((*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy") + proto.RegisterType((*RedisProtocolOptions)(nil), "envoy.config.filter.network.redis_proxy.v2.RedisProtocolOptions") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/redis_proxy/v2/redis_proxy.proto", fileDescriptor_67e7179f1292d5ae) +} + +var fileDescriptor_67e7179f1292d5ae = []byte{ + // 1096 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0x66, 0xed, 0xd8, 0x71, 0xc7, 0x71, 0xed, 0x4c, 0xd3, 0x62, 0xac, 0x04, 0x99, 0xf4, 0x62, + 0x8a, 0xd8, 0x05, 0x87, 0x03, 0x07, 0x84, 0x14, 0xbb, 0x09, 0x04, 0x08, 0x58, 0x93, 0xa6, 0x12, + 0x07, 0x34, 0x1a, 0xef, 0x8e, 0xed, 0x55, 0x77, 0x67, 0xb6, 0x33, 0xb3, 0x8e, 0x53, 0x09, 0xa9, + 0xe2, 0x58, 0x90, 0x10, 0x37, 0xfe, 0x00, 0x4e, 0x9c, 0xb8, 0x51, 0x71, 0x44, 0x1c, 0xb8, 0xc2, + 0x1f, 0xc2, 0xa1, 0xc7, 0x1e, 0x10, 0xda, 0x99, 0x59, 0xdb, 0x69, 0x52, 0x51, 0x50, 0x4e, 0xf6, + 0xcc, 0xf7, 0xde, 0xf7, 0xe6, 0xfd, 0xfa, 0x16, 0xbc, 0x47, 0xd9, 0x94, 0x9f, 0x7a, 0x3e, 0x67, + 0xa3, 0x70, 0xec, 0x8d, 0xc2, 0x48, 0x51, 0xe1, 0x31, 0xaa, 0x4e, 0xb8, 0xb8, 0xe7, 0x09, 0x1a, + 0x84, 0x12, 0x27, 0x82, 0xcf, 0x4e, 0xbd, 0x69, 0x77, 0xf9, 0xe8, 0x26, 0x82, 0x2b, 0x0e, 0x6f, + 0x69, 0x6f, 0xd7, 0x78, 0xbb, 0xc6, 0xdb, 0xb5, 0xde, 0xee, 0xb2, 0xf9, 0xb4, 0xdb, 0xda, 0x34, + 0x91, 0x48, 0x12, 0x66, 0x5c, 0x3e, 0x17, 0xd4, 0x1b, 0x12, 0x49, 0x0d, 0x53, 0xeb, 0xd5, 0x31, + 0xe7, 0xe3, 0x88, 0x7a, 0xfa, 0x34, 0x4c, 0x47, 0x5e, 0x90, 0x0a, 0xa2, 0x42, 0xce, 0x9e, 0x87, + 0x9f, 0x08, 0x92, 0x24, 0x54, 0x48, 0x8b, 0xdf, 0xb4, 0xec, 0x8c, 0x71, 0xa5, 0xfd, 0xa4, 0x17, + 0xd0, 0x44, 0x50, 0xff, 0x0c, 0x49, 0x1a, 0x24, 0xe4, 0x8c, 0x4d, 0x1c, 0x8e, 0x05, 0x51, 0xf9, + 0x23, 0xda, 0xe7, 0x70, 0x49, 0x99, 0x0c, 0x55, 0x38, 0xcd, 0x2d, 0xb6, 0xce, 0x5b, 0x28, 0xa2, + 0xd2, 0xfc, 0x15, 0x2f, 0x4f, 0x49, 0x14, 0x06, 0x44, 0x51, 0x2f, 0xff, 0x63, 0x80, 0xed, 0x87, + 0x75, 0x00, 0x50, 0x56, 0x8f, 0x41, 0x56, 0x0e, 0xd8, 0x01, 0xd5, 0xcc, 0x0f, 0x27, 0x82, 0x8e, + 0xc2, 0x59, 0xd3, 0x69, 0x3b, 0x9d, 0x2b, 0xbd, 0xd5, 0xa7, 0xbd, 0x15, 0x51, 0x68, 0x3b, 0x08, + 0x64, 0xd8, 0x40, 0x43, 0x70, 0x1b, 0xac, 0xfa, 0x51, 0x2a, 0x15, 0x15, 0xcd, 0x82, 0xb6, 0xaa, + 0x3c, 0xfe, 0xeb, 0xc9, 0x9f, 0x25, 0xa7, 0xe9, 0xa0, 0x1c, 0x80, 0x31, 0xa8, 0x48, 0xaa, 0x54, + 0xc8, 0xc6, 0xb2, 0x59, 0x6c, 0x3b, 0x9d, 0x6a, 0xf7, 0x03, 0xf7, 0xc5, 0x1b, 0xe3, 0x2e, 0xde, + 0xe5, 0xf6, 0x39, 0x63, 0x03, 0xce, 0xa3, 0x23, 0x4b, 0xd7, 0xab, 0x3c, 0xed, 0x95, 0x1e, 0x39, + 0x85, 0x86, 0x83, 0xe6, 0x21, 0xe0, 0x2d, 0xb0, 0x1e, 0x11, 0x45, 0x99, 0x7f, 0x8a, 0x43, 0x86, + 0xe3, 0xd0, 0x17, 0x5c, 0x36, 0x57, 0xda, 0x4e, 0xa7, 0x82, 0xea, 0x16, 0x38, 0x60, 0x87, 0xfa, + 0x1a, 0x4e, 0x40, 0xcd, 0xe4, 0x88, 0x05,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, 0xe3, 0x3c, 0x27, 0x9d, 0xbb, 0xa0, + 0x21, 0x52, 0x96, 0x49, 0x06, 0x1e, 0x09, 0x62, 0x94, 0xaa, 0xa0, 0x9b, 0xf5, 0xc6, 0x05, 0x62, + 0x8c, 0x8c, 0xe9, 0xbe, 0xb5, 0x24, 0xd1, 0x80, 0x0a, 0x9f, 0x32, 0x85, 0xea, 0xe2, 0x2c, 0x02, + 0xbb, 0xe0, 0x3a, 0x9d, 0xf9, 0x51, 0x1a, 0x64, 0x22, 0x48, 0x82, 0x7c, 0xcd, 0xa5, 0x95, 0xc1, + 0x6b, 0x16, 0xcc, 0x76, 0xca, 0xae, 0xb9, 0xdc, 0x1e, 0x82, 0x8d, 0xbc, 0x20, 0x8a, 0xfb, 0x3c, + 0xfa, 0x2c, 0x31, 0x62, 0xf1, 0x11, 0xa8, 0x9d, 0xfd, 0x5a, 0x38, 0xff, 0xe5, 0x6b, 0xb1, 0x46, + 0x96, 0xbe, 0x11, 0xbd, 0x6f, 0x9c, 0x27, 0xdf, 0xff, 0xfd, 0x6d, 0xe9, 0x6d, 0xe8, 0x19, 0x67, + 0x3a, 0x53, 0xd9, 0xb4, 0x73, 0x26, 0x6d, 0xab, 0xe4, 0xc5, 0xbd, 0xda, 0xf9, 0xe5, 0xe1, 0xef, + 0x7f, 0x94, 0x0b, 0x0d, 0x07, 0xbc, 0x1b, 0x72, 0x13, 0xd8, 0x20, 0x2f, 0xde, 0xed, 0x5e, 0x7d, + 0xd1, 0x6e, 0x9d, 0xe2, 0xc0, 0x19, 0x96, 0xb5, 0x78, 0xee, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, + 0x6d, 0x76, 0xa5, 0x4f, 0xe5, 0x09, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go new file mode 100644 index 000000000..415ea7c87 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go @@ -0,0 +1,621 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/redis_proxy/v2/redis_proxy.proto + +package envoy_config_filter_network_redis_proxy_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _redis_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RedisProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RedisProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return RedisProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Cluster + + if m.GetSettings() == nil { + return RedisProxyValidationError{ + field: "Settings", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetSettings()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "Settings", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for LatencyInMicros + + if v, ok := interface{}(m.GetPrefixRoutes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "PrefixRoutes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDownstreamAuthPassword()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "DownstreamAuthPassword", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProxyValidationError is the validation error returned by +// RedisProxy.Validate if the designated constraints aren't met. +type RedisProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxyValidationError) ErrorName() string { return "RedisProxyValidationError" } + +// Error satisfies the builtin error interface +func (e RedisProxyValidationError) 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 %sRedisProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxyValidationError{} + +// Validate checks the field values on RedisProtocolOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProtocolOptions) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAuthPassword()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProtocolOptionsValidationError{ + field: "AuthPassword", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProtocolOptionsValidationError is the validation error returned by +// RedisProtocolOptions.Validate if the designated constraints aren't met. +type RedisProtocolOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProtocolOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProtocolOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProtocolOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProtocolOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProtocolOptionsValidationError) ErrorName() string { + return "RedisProtocolOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProtocolOptionsValidationError) 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 %sRedisProtocolOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProtocolOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProtocolOptionsValidationError{} + +// Validate checks the field values on RedisProxy_ConnPoolSettings with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_ConnPoolSettings) Validate() error { + if m == nil { + return nil + } + + if m.GetOpTimeout() == nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "OpTimeout", + reason: "value is required", + } + } + + // no validation rules for EnableHashtagging + + // no validation rules for EnableRedirection + + // no validation rules for MaxBufferSizeBeforeFlush + + if v, ok := interface{}(m.GetBufferFlushTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "BufferFlushTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMaxUpstreamUnknownConnections()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "MaxUpstreamUnknownConnections", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableCommandStats + + if _, ok := RedisProxy_ConnPoolSettings_ReadPolicy_name[int32(m.GetReadPolicy())]; !ok { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "ReadPolicy", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// RedisProxy_ConnPoolSettingsValidationError is the validation error returned +// by RedisProxy_ConnPoolSettings.Validate if the designated constraints +// aren't met. +type RedisProxy_ConnPoolSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_ConnPoolSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_ConnPoolSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_ConnPoolSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_ConnPoolSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_ConnPoolSettingsValidationError) ErrorName() string { + return "RedisProxy_ConnPoolSettingsValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_ConnPoolSettingsValidationError) 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 %sRedisProxy_ConnPoolSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_ConnPoolSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_ConnPoolSettingsValidationError{} + +// Validate checks the field values on RedisProxy_PrefixRoutes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_PrefixRoutes) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutesValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for CaseInsensitive + + // no validation rules for CatchAllCluster + + if v, ok := interface{}(m.GetCatchAllRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutesValidationError{ + field: "CatchAllRoute", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProxy_PrefixRoutesValidationError is the validation error returned by +// RedisProxy_PrefixRoutes.Validate if the designated constraints aren't met. +type RedisProxy_PrefixRoutesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_PrefixRoutesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutesValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutesValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutesValidationError) 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 %sRedisProxy_PrefixRoutes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutesValidationError{} + +// Validate checks the field values on RedisProxy_PrefixRoutes_Route with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_PrefixRoutes_Route) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Prefix + + // no validation rules for RemovePrefix + + if len(m.GetCluster()) < 1 { + return RedisProxy_PrefixRoutes_RouteValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + for idx, item := range m.GetRequestMirrorPolicy() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutes_RouteValidationError{ + field: fmt.Sprintf("RequestMirrorPolicy[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RedisProxy_PrefixRoutes_RouteValidationError is the validation error +// returned by RedisProxy_PrefixRoutes_Route.Validate if the designated +// constraints aren't met. +type RedisProxy_PrefixRoutes_RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutes_RouteValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutes_RouteValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutes_RouteValidationError) 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 %sRedisProxy_PrefixRoutes_Route.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutes_RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutes_RouteValidationError{} + +// Validate checks the field values on +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetCluster()) < 1 { + return RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRuntimeFraction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{ + field: "RuntimeFraction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ExcludeReadCommands + + return nil +} + +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError is the +// validation error returned by +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Validate if the +// designated constraints aren't met. +type RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) 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 %sRedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.go new file mode 100644 index 000000000..459e4fee4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.go @@ -0,0 +1,493 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/thrift_proxy/v2alpha1/route.proto + +package envoy_config_filter_network_thrift_proxy_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RouteConfiguration struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteConfiguration) Reset() { *m = RouteConfiguration{} } +func (m *RouteConfiguration) String() string { return proto.CompactTextString(m) } +func (*RouteConfiguration) ProtoMessage() {} +func (*RouteConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{0} +} + +func (m *RouteConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteConfiguration.Unmarshal(m, b) +} +func (m *RouteConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteConfiguration.Marshal(b, m, deterministic) +} +func (m *RouteConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteConfiguration.Merge(m, src) +} +func (m *RouteConfiguration) XXX_Size() int { + return xxx_messageInfo_RouteConfiguration.Size(m) +} +func (m *RouteConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_RouteConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteConfiguration proto.InternalMessageInfo + +func (m *RouteConfiguration) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RouteConfiguration) GetRoutes() []*Route { + if m != nil { + return m.Routes + } + return nil +} + +type Route struct { + Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Route) Reset() { *m = Route{} } +func (m *Route) String() string { return proto.CompactTextString(m) } +func (*Route) ProtoMessage() {} +func (*Route) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{1} +} + +func (m *Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Route.Unmarshal(m, b) +} +func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Route.Marshal(b, m, deterministic) +} +func (m *Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_Route.Merge(m, src) +} +func (m *Route) XXX_Size() int { + return xxx_messageInfo_Route.Size(m) +} +func (m *Route) XXX_DiscardUnknown() { + xxx_messageInfo_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_Route proto.InternalMessageInfo + +func (m *Route) GetMatch() *RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *Route) GetRoute() *RouteAction { + if m != nil { + return m.Route + } + return nil +} + +type RouteMatch struct { + // Types that are valid to be assigned to MatchSpecifier: + // *RouteMatch_MethodName + // *RouteMatch_ServiceName + MatchSpecifier isRouteMatch_MatchSpecifier `protobuf_oneof:"match_specifier"` + Invert bool `protobuf:"varint,3,opt,name=invert,proto3" json:"invert,omitempty"` + Headers []*route.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteMatch) Reset() { *m = RouteMatch{} } +func (m *RouteMatch) String() string { return proto.CompactTextString(m) } +func (*RouteMatch) ProtoMessage() {} +func (*RouteMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{2} +} + +func (m *RouteMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteMatch.Unmarshal(m, b) +} +func (m *RouteMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteMatch.Marshal(b, m, deterministic) +} +func (m *RouteMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteMatch.Merge(m, src) +} +func (m *RouteMatch) XXX_Size() int { + return xxx_messageInfo_RouteMatch.Size(m) +} +func (m *RouteMatch) XXX_DiscardUnknown() { + xxx_messageInfo_RouteMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteMatch proto.InternalMessageInfo + +type isRouteMatch_MatchSpecifier interface { + isRouteMatch_MatchSpecifier() +} + +type RouteMatch_MethodName struct { + MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3,oneof"` +} + +type RouteMatch_ServiceName struct { + ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3,oneof"` +} + +func (*RouteMatch_MethodName) isRouteMatch_MatchSpecifier() {} + +func (*RouteMatch_ServiceName) isRouteMatch_MatchSpecifier() {} + +func (m *RouteMatch) GetMatchSpecifier() isRouteMatch_MatchSpecifier { + if m != nil { + return m.MatchSpecifier + } + return nil +} + +func (m *RouteMatch) GetMethodName() string { + if x, ok := m.GetMatchSpecifier().(*RouteMatch_MethodName); ok { + return x.MethodName + } + return "" +} + +func (m *RouteMatch) GetServiceName() string { + if x, ok := m.GetMatchSpecifier().(*RouteMatch_ServiceName); ok { + return x.ServiceName + } + return "" +} + +func (m *RouteMatch) GetInvert() bool { + if m != nil { + return m.Invert + } + return false +} + +func (m *RouteMatch) GetHeaders() []*route.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteMatch) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteMatch_MethodName)(nil), + (*RouteMatch_ServiceName)(nil), + } +} + +type RouteAction struct { + // Types that are valid to be assigned to ClusterSpecifier: + // *RouteAction_Cluster + // *RouteAction_WeightedClusters + // *RouteAction_ClusterHeader + ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` + MetadataMatch *core.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + RateLimits []*route.RateLimit `protobuf:"bytes,4,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"` + StripServiceName bool `protobuf:"varint,5,opt,name=strip_service_name,json=stripServiceName,proto3" json:"strip_service_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteAction) Reset() { *m = RouteAction{} } +func (m *RouteAction) String() string { return proto.CompactTextString(m) } +func (*RouteAction) ProtoMessage() {} +func (*RouteAction) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{3} +} + +func (m *RouteAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteAction.Unmarshal(m, b) +} +func (m *RouteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteAction.Marshal(b, m, deterministic) +} +func (m *RouteAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteAction.Merge(m, src) +} +func (m *RouteAction) XXX_Size() int { + return xxx_messageInfo_RouteAction.Size(m) +} +func (m *RouteAction) XXX_DiscardUnknown() { + xxx_messageInfo_RouteAction.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteAction proto.InternalMessageInfo + +type isRouteAction_ClusterSpecifier interface { + isRouteAction_ClusterSpecifier() +} + +type RouteAction_Cluster struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` +} + +type RouteAction_WeightedClusters struct { + WeightedClusters *WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` +} + +type RouteAction_ClusterHeader struct { + ClusterHeader string `protobuf:"bytes,6,opt,name=cluster_header,json=clusterHeader,proto3,oneof"` +} + +func (*RouteAction_Cluster) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_WeightedClusters) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_ClusterHeader) isRouteAction_ClusterSpecifier() {} + +func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier { + if m != nil { + return m.ClusterSpecifier + } + return nil +} + +func (m *RouteAction) GetCluster() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_Cluster); ok { + return x.Cluster + } + return "" +} + +func (m *RouteAction) GetWeightedClusters() *WeightedCluster { + if x, ok := m.GetClusterSpecifier().(*RouteAction_WeightedClusters); ok { + return x.WeightedClusters + } + return nil +} + +func (m *RouteAction) GetClusterHeader() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_ClusterHeader); ok { + return x.ClusterHeader + } + return "" +} + +func (m *RouteAction) GetMetadataMatch() *core.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func (m *RouteAction) GetRateLimits() []*route.RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +func (m *RouteAction) GetStripServiceName() bool { + if m != nil { + return m.StripServiceName + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteAction) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteAction_Cluster)(nil), + (*RouteAction_WeightedClusters)(nil), + (*RouteAction_ClusterHeader)(nil), + } +} + +type WeightedCluster struct { + Clusters []*WeightedCluster_ClusterWeight `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WeightedCluster) Reset() { *m = WeightedCluster{} } +func (m *WeightedCluster) String() string { return proto.CompactTextString(m) } +func (*WeightedCluster) ProtoMessage() {} +func (*WeightedCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{4} +} + +func (m *WeightedCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WeightedCluster.Unmarshal(m, b) +} +func (m *WeightedCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WeightedCluster.Marshal(b, m, deterministic) +} +func (m *WeightedCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_WeightedCluster.Merge(m, src) +} +func (m *WeightedCluster) XXX_Size() int { + return xxx_messageInfo_WeightedCluster.Size(m) +} +func (m *WeightedCluster) XXX_DiscardUnknown() { + xxx_messageInfo_WeightedCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_WeightedCluster proto.InternalMessageInfo + +func (m *WeightedCluster) GetClusters() []*WeightedCluster_ClusterWeight { + if m != nil { + return m.Clusters + } + return nil +} + +type WeightedCluster_ClusterWeight struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Weight *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` + MetadataMatch *core.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WeightedCluster_ClusterWeight) Reset() { *m = WeightedCluster_ClusterWeight{} } +func (m *WeightedCluster_ClusterWeight) String() string { return proto.CompactTextString(m) } +func (*WeightedCluster_ClusterWeight) ProtoMessage() {} +func (*WeightedCluster_ClusterWeight) Descriptor() ([]byte, []int) { + return fileDescriptor_3de6ac0eae6369f5, []int{4, 0} +} + +func (m *WeightedCluster_ClusterWeight) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Unmarshal(m, b) +} +func (m *WeightedCluster_ClusterWeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Marshal(b, m, deterministic) +} +func (m *WeightedCluster_ClusterWeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_WeightedCluster_ClusterWeight.Merge(m, src) +} +func (m *WeightedCluster_ClusterWeight) XXX_Size() int { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Size(m) +} +func (m *WeightedCluster_ClusterWeight) XXX_DiscardUnknown() { + xxx_messageInfo_WeightedCluster_ClusterWeight.DiscardUnknown(m) +} + +var xxx_messageInfo_WeightedCluster_ClusterWeight proto.InternalMessageInfo + +func (m *WeightedCluster_ClusterWeight) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *WeightedCluster_ClusterWeight) GetWeight() *wrappers.UInt32Value { + if m != nil { + return m.Weight + } + return nil +} + +func (m *WeightedCluster_ClusterWeight) GetMetadataMatch() *core.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func init() { + proto.RegisterType((*RouteConfiguration)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration") + proto.RegisterType((*Route)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.Route") + proto.RegisterType((*RouteMatch)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.RouteMatch") + proto.RegisterType((*RouteAction)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.RouteAction") + proto.RegisterType((*WeightedCluster)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster") + proto.RegisterType((*WeightedCluster_ClusterWeight)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/thrift_proxy/v2alpha1/route.proto", fileDescriptor_3de6ac0eae6369f5) +} + +var fileDescriptor_3de6ac0eae6369f5 = []byte{ + // 742 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xb1, 0x6f, 0x13, 0x3d, + 0x14, 0xaf, 0x2f, 0x4d, 0x9a, 0xcf, 0xf9, 0xda, 0xa6, 0x1e, 0xfa, 0x45, 0x69, 0xfb, 0x29, 0x4d, + 0x97, 0x80, 0x90, 0xaf, 0x4d, 0x17, 0x24, 0xd4, 0x22, 0xae, 0x4b, 0x90, 0x28, 0x8a, 0x0e, 0x01, + 0x13, 0x9c, 0xdc, 0x8b, 0x93, 0x58, 0x24, 0xe7, 0xc3, 0x76, 0x2e, 0x2d, 0x13, 0x33, 0x4b, 0x25, + 0x26, 0x76, 0xfe, 0x00, 0x76, 0x98, 0x58, 0x10, 0x2b, 0xff, 0x0a, 0x13, 0xea, 0x80, 0xd0, 0xd9, + 0xbe, 0x34, 0x29, 0x30, 0xb4, 0xb0, 0x24, 0xbe, 0xf7, 0xde, 0xef, 0xf7, 0xde, 0xfb, 0x3d, 0xfb, + 0xc1, 0x3d, 0x1a, 0x25, 0xfc, 0xc4, 0x0d, 0x79, 0xd4, 0x65, 0x3d, 0xb7, 0xcb, 0x06, 0x8a, 0x0a, + 0x37, 0xa2, 0x6a, 0xcc, 0xc5, 0x33, 0x57, 0xf5, 0x05, 0xeb, 0xaa, 0x20, 0x16, 0xfc, 0xf8, 0xc4, + 0x4d, 0x9a, 0x64, 0x10, 0xf7, 0xc9, 0x8e, 0x2b, 0xf8, 0x48, 0x51, 0x1c, 0x0b, 0xae, 0x38, 0xda, + 0xd1, 0x70, 0x6c, 0xe0, 0x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e4, 0x6f, 0x44, 0xda, 0x7d, 0xff, 0xf2, 0xf3, 0x97, + 0x82, 0x53, 0x06, 0xf0, 0x36, 0xe3, 0x26, 0xa1, 0xf1, 0x5c, 0x5a, 0x67, 0xcf, 0x2c, 0x8a, 0x76, + 0xda, 0x73, 0x1b, 0x1c, 0x15, 0x74, 0xf3, 0xbb, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x80, 0xcc, + 0xb3, 0xa5, 0xba, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.validate.go new file mode 100644 index 000000000..87fc2305a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.validate.go @@ -0,0 +1,631 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/thrift_proxy/v2alpha1/route.proto + +package envoy_config_filter_network_thrift_proxy_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _route_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RouteConfiguration with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RouteConfiguration) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteConfigurationValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on Route with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Route) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RouteValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetRoute() == nil { + return RouteValidationError{ + field: "Route", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Route", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RouteValidationError is the validation error returned by Route.Validate if +// the designated constraints aren't met. +type RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteValidationError) ErrorName() string { return "RouteValidationError" } + +// Error satisfies the builtin error interface +func (e RouteValidationError) 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 %sRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteValidationError{} + +// Validate checks the field values on RouteMatch with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RouteMatch) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Invert + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.MatchSpecifier.(type) { + + case *RouteMatch_MethodName: + // no validation rules for MethodName + + case *RouteMatch_ServiceName: + // no validation rules for ServiceName + + default: + return RouteMatchValidationError{ + field: "MatchSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// RouteMatchValidationError is the validation error returned by +// RouteMatch.Validate if the designated constraints aren't met. +type RouteMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteMatchValidationError) ErrorName() string { return "RouteMatchValidationError" } + +// Error satisfies the builtin error interface +func (e RouteMatchValidationError) 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 %sRouteMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteMatchValidationError{} + +// Validate checks the field values on RouteAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RouteAction) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteActionValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetRateLimits() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteActionValidationError{ + field: fmt.Sprintf("RateLimits[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for StripServiceName + + switch m.ClusterSpecifier.(type) { + + case *RouteAction_Cluster: + + if len(m.GetCluster()) < 1 { + return RouteActionValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + case *RouteAction_WeightedClusters: + + 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, + } + } + } + + case *RouteAction_ClusterHeader: + + if len(m.GetClusterHeader()) < 1 { + return RouteActionValidationError{ + field: "ClusterHeader", + reason: "value length must be at least 1 bytes", + } + } + + default: + return RouteActionValidationError{ + field: "ClusterSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on WeightedCluster with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WeightedCluster) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return WeightedClusterValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WeightedClusterValidationError{ + field: fmt.Sprintf("Clusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WeightedClusterValidationError is the validation error returned by +// WeightedCluster.Validate if the designated constraints aren't met. +type WeightedClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WeightedClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WeightedClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WeightedClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WeightedClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WeightedClusterValidationError) ErrorName() string { return "WeightedClusterValidationError" } + +// Error satisfies the builtin error interface +func (e WeightedClusterValidationError) 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 %sWeightedCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WeightedClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WeightedClusterValidationError{} + +// Validate checks the field values on WeightedCluster_ClusterWeight with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WeightedCluster_ClusterWeight) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return WeightedCluster_ClusterWeightValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if wrapper := m.GetWeight(); wrapper != nil { + + if wrapper.GetValue() < 1 { + return WeightedCluster_ClusterWeightValidationError{ + field: "Weight", + reason: "value must be greater than or equal to 1", + } + } + + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WeightedCluster_ClusterWeightValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WeightedCluster_ClusterWeightValidationError is the validation error +// returned by WeightedCluster_ClusterWeight.Validate if the designated +// constraints aren't met. +type WeightedCluster_ClusterWeightValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WeightedCluster_ClusterWeightValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WeightedCluster_ClusterWeightValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WeightedCluster_ClusterWeightValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WeightedCluster_ClusterWeightValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WeightedCluster_ClusterWeightValidationError) ErrorName() string { + return "WeightedCluster_ClusterWeightValidationError" +} + +// Error satisfies the builtin error interface +func (e WeightedCluster_ClusterWeightValidationError) 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 %sWeightedCluster_ClusterWeight.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WeightedCluster_ClusterWeightValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WeightedCluster_ClusterWeightValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.go new file mode 100644 index 000000000..d90396bd4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.go @@ -0,0 +1,353 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto + +package envoy_config_filter_network_thrift_proxy_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TransportType int32 + +const ( + TransportType_AUTO_TRANSPORT TransportType = 0 + TransportType_FRAMED TransportType = 1 + TransportType_UNFRAMED TransportType = 2 + TransportType_HEADER TransportType = 3 +) + +var TransportType_name = map[int32]string{ + 0: "AUTO_TRANSPORT", + 1: "FRAMED", + 2: "UNFRAMED", + 3: "HEADER", +} + +var TransportType_value = map[string]int32{ + "AUTO_TRANSPORT": 0, + "FRAMED": 1, + "UNFRAMED": 2, + "HEADER": 3, +} + +func (x TransportType) String() string { + return proto.EnumName(TransportType_name, int32(x)) +} + +func (TransportType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e8fab7646d88fc90, []int{0} +} + +type ProtocolType int32 + +const ( + ProtocolType_AUTO_PROTOCOL ProtocolType = 0 + ProtocolType_BINARY ProtocolType = 1 + ProtocolType_LAX_BINARY ProtocolType = 2 + ProtocolType_COMPACT ProtocolType = 3 + ProtocolType_TWITTER ProtocolType = 4 +) + +var ProtocolType_name = map[int32]string{ + 0: "AUTO_PROTOCOL", + 1: "BINARY", + 2: "LAX_BINARY", + 3: "COMPACT", + 4: "TWITTER", +} + +var ProtocolType_value = map[string]int32{ + "AUTO_PROTOCOL": 0, + "BINARY": 1, + "LAX_BINARY": 2, + "COMPACT": 3, + "TWITTER": 4, +} + +func (x ProtocolType) String() string { + return proto.EnumName(ProtocolType_name, int32(x)) +} + +func (ProtocolType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e8fab7646d88fc90, []int{1} +} + +type ThriftProxy struct { + Transport TransportType `protobuf:"varint,2,opt,name=transport,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType" json:"transport,omitempty"` + Protocol ProtocolType `protobuf:"varint,3,opt,name=protocol,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType" json:"protocol,omitempty"` + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + RouteConfig *RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + ThriftFilters []*ThriftFilter `protobuf:"bytes,5,rep,name=thrift_filters,json=thriftFilters,proto3" json:"thrift_filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftProxy) Reset() { *m = ThriftProxy{} } +func (m *ThriftProxy) String() string { return proto.CompactTextString(m) } +func (*ThriftProxy) ProtoMessage() {} +func (*ThriftProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_e8fab7646d88fc90, []int{0} +} + +func (m *ThriftProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftProxy.Unmarshal(m, b) +} +func (m *ThriftProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftProxy.Marshal(b, m, deterministic) +} +func (m *ThriftProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftProxy.Merge(m, src) +} +func (m *ThriftProxy) XXX_Size() int { + return xxx_messageInfo_ThriftProxy.Size(m) +} +func (m *ThriftProxy) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftProxy proto.InternalMessageInfo + +func (m *ThriftProxy) GetTransport() TransportType { + if m != nil { + return m.Transport + } + return TransportType_AUTO_TRANSPORT +} + +func (m *ThriftProxy) GetProtocol() ProtocolType { + if m != nil { + return m.Protocol + } + return ProtocolType_AUTO_PROTOCOL +} + +func (m *ThriftProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ThriftProxy) GetRouteConfig() *RouteConfiguration { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *ThriftProxy) GetThriftFilters() []*ThriftFilter { + if m != nil { + return m.ThriftFilters + } + return nil +} + +type ThriftFilter struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to ConfigType: + // *ThriftFilter_Config + // *ThriftFilter_TypedConfig + ConfigType isThriftFilter_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftFilter) Reset() { *m = ThriftFilter{} } +func (m *ThriftFilter) String() string { return proto.CompactTextString(m) } +func (*ThriftFilter) ProtoMessage() {} +func (*ThriftFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_e8fab7646d88fc90, []int{1} +} + +func (m *ThriftFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftFilter.Unmarshal(m, b) +} +func (m *ThriftFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftFilter.Marshal(b, m, deterministic) +} +func (m *ThriftFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftFilter.Merge(m, src) +} +func (m *ThriftFilter) XXX_Size() int { + return xxx_messageInfo_ThriftFilter.Size(m) +} +func (m *ThriftFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftFilter proto.InternalMessageInfo + +func (m *ThriftFilter) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isThriftFilter_ConfigType interface { + isThriftFilter_ConfigType() +} + +type ThriftFilter_Config struct { + Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"` +} + +type ThriftFilter_TypedConfig struct { + TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` +} + +func (*ThriftFilter_Config) isThriftFilter_ConfigType() {} + +func (*ThriftFilter_TypedConfig) isThriftFilter_ConfigType() {} + +func (m *ThriftFilter) GetConfigType() isThriftFilter_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +// Deprecated: Do not use. +func (m *ThriftFilter) GetConfig() *_struct.Struct { + if x, ok := m.GetConfigType().(*ThriftFilter_Config); ok { + return x.Config + } + return nil +} + +func (m *ThriftFilter) GetTypedConfig() *any.Any { + if x, ok := m.GetConfigType().(*ThriftFilter_TypedConfig); ok { + return x.TypedConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ThriftFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ThriftFilter_Config)(nil), + (*ThriftFilter_TypedConfig)(nil), + } +} + +type ThriftProtocolOptions struct { + Transport TransportType `protobuf:"varint,1,opt,name=transport,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType" json:"transport,omitempty"` + Protocol ProtocolType `protobuf:"varint,2,opt,name=protocol,proto3,enum=envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftProtocolOptions) Reset() { *m = ThriftProtocolOptions{} } +func (m *ThriftProtocolOptions) String() string { return proto.CompactTextString(m) } +func (*ThriftProtocolOptions) ProtoMessage() {} +func (*ThriftProtocolOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_e8fab7646d88fc90, []int{2} +} + +func (m *ThriftProtocolOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftProtocolOptions.Unmarshal(m, b) +} +func (m *ThriftProtocolOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftProtocolOptions.Marshal(b, m, deterministic) +} +func (m *ThriftProtocolOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftProtocolOptions.Merge(m, src) +} +func (m *ThriftProtocolOptions) XXX_Size() int { + return xxx_messageInfo_ThriftProtocolOptions.Size(m) +} +func (m *ThriftProtocolOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftProtocolOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftProtocolOptions proto.InternalMessageInfo + +func (m *ThriftProtocolOptions) GetTransport() TransportType { + if m != nil { + return m.Transport + } + return TransportType_AUTO_TRANSPORT +} + +func (m *ThriftProtocolOptions) GetProtocol() ProtocolType { + if m != nil { + return m.Protocol + } + return ProtocolType_AUTO_PROTOCOL +} + +func init() { + proto.RegisterEnum("envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType", TransportType_name, TransportType_value) + proto.RegisterEnum("envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType", ProtocolType_name, ProtocolType_value) + proto.RegisterType((*ThriftProxy)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftProxy") + proto.RegisterType((*ThriftFilter)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter") + proto.RegisterType((*ThriftProtocolOptions)(nil), "envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftProtocolOptions") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto", fileDescriptor_e8fab7646d88fc90) +} + +var fileDescriptor_e8fab7646d88fc90 = []byte{ + // 639 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x4e, 0xdb, 0x40, + 0x10, 0x66, 0x9d, 0x10, 0x60, 0x9c, 0x44, 0xee, 0xaa, 0x15, 0x29, 0xfd, 0x51, 0xc4, 0x29, 0xe2, + 0x60, 0x97, 0xa0, 0x1e, 0x7a, 0xa8, 0xa8, 0x1d, 0x82, 0x40, 0x02, 0x6c, 0x2d, 0x46, 0xb4, 0xa7, + 0x68, 0x81, 0x4d, 0x62, 0x35, 0x78, 0xad, 0xf5, 0x86, 0x92, 0x5b, 0xd5, 0x17, 0xe8, 0xa9, 0x52, + 0x1f, 0xa2, 0x4f, 0xd0, 0x27, 0xe8, 0xb5, 0xd7, 0x3e, 0x41, 0xcf, 0x3d, 0x72, 0xa8, 0x2a, 0xef, + 0x3a, 0x90, 0x80, 0x7a, 0x00, 0xa9, 0xbd, 0x79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e1, 0xcd, 0x7e, 0x40, + 0x86, 0x85, 0xc8, 0x15, 0x39, 0x66, 0x30, 0xaf, 0x56, 0x38, 0xe6, 0x83, 0x5a, 0x41, 0x0d, 0x5a, + 0xbf, 0xc3, 0xa0, 0x20, 0xa7, 0xb8, 0x36, 0xe7, 0x92, 0x1a, 0x37, 0xc0, 0xcc, 0x94, 0xe8, 0x24, + 0x82, 0x75, 0xa3, 0xf3, 0x1a, 0xaa, 0xa3, 0xc6, 0x82, 0x37, 0x77, 0xe1, 0x15, 0x85, 0x51, 0x47, + 0x04, 0x32, 0x2c, 0x50, 0x10, 0xee, 0x43, 0x59, 0x9d, 0xaa, 0xa3, 0xe7, 0xd7, 0x8a, 0x75, 0xd4, + 0x30, 0x9b, 0xed, 0x3b, 0x2c, 0x45, 0x32, 0x9a, 0x96, 0x6a, 0x18, 0x0a, 0x75, 0x0e, 0x62, 0x8a, + 0xab, 0x1c, 0xee, 0x42, 0x35, 0x6f, 0xd4, 0x74, 0x69, 0x6d, 0xb6, 0x5e, 0x68, 0x98, 0x77, 0x12, + 0x40, 0x1f, 0x6f, 0x53, 0x95, 0x92, 0x8a, 0x9c, 0x88, 0xd2, 0xe5, 0x2f, 0x08, 0xca, 0x93, 0x38, + 0x7e, 0x04, 0xc5, 0x98, 0x9e, 0xb2, 0xeb, 0x2a, 0xa8, 0x24, 0x7e, 0x0e, 0xa5, 0xfc, 0xe5, 0x86, + 0x7a, 0xf9, 0xa2, 0xad, 0x1d, 0x69, 0x8f, 0x1d, 0x69, 0xef, 0x2b, 0x47, 0x7a, 0x46, 0x0d, 0x6d, + 0xcd, 0x90, 0xbc, 0x18, 0xbf, 0x80, 0xb2, 0x1c, 0x25, 0xec, 0x64, 0x2c, 0x5b, 0x41, 0x35, 0xdf, + 0xbf, 0xd1, 0xec, 0xc6, 0xa3, 0xad, 0x19, 0x62, 0xaa, 0x5a, 0xad, 0x83, 0x57, 0x01, 0x53, 0x37, + 0x75, 0xb2, 0xec, 0xf2, 0x4f, 0x04, 0x0f, 0x2e, 0xbd, 0xa8, 0xae, 0xe7, 0x27, 0xca, 0xcb, 0xd3, + 0xae, 0x44, 0xff, 0xcb, 0x95, 0xc6, 0x3f, 0x73, 0xe5, 0xca, 0x36, 0x54, 0xa6, 0x96, 0xc1, 0x18, + 0xaa, 0xee, 0x41, 0xe8, 0x77, 0x42, 0xe2, 0xee, 0xed, 0x07, 0x3e, 0x09, 0xad, 0x19, 0x0c, 0x50, + 0xda, 0x24, 0xee, 0x6e, 0x7b, 0xc3, 0x42, 0xb8, 0x0c, 0xf3, 0x07, 0x7b, 0x79, 0x64, 0x64, 0xc8, + 0x56, 0xdb, 0xdd, 0x68, 0x13, 0xab, 0xb0, 0x72, 0x08, 0xe5, 0xc9, 0x71, 0xf8, 0x1e, 0x54, 0x14, + 0x53, 0x40, 0xfc, 0xd0, 0x6f, 0xf9, 0x3b, 0x9a, 0xc8, 0xdb, 0xde, 0x73, 0xc9, 0x1b, 0x0b, 0xe1, + 0x2a, 0xc0, 0x8e, 0xfb, 0xba, 0x93, 0xc7, 0x06, 0x36, 0x61, 0xae, 0xe5, 0xef, 0x06, 0x6e, 0x2b, + 0xb4, 0x0a, 0x59, 0x10, 0x1e, 0x6e, 0x87, 0x61, 0x9b, 0x58, 0x45, 0xef, 0x13, 0xfa, 0xf5, 0xf9, + 0xf7, 0xc7, 0xd9, 0x26, 0x7e, 0xa6, 0x05, 0x60, 0xe7, 0x92, 0xc5, 0x69, 0x76, 0x8f, 0x5c, 0x84, + 0xf4, 0x2f, 0x2a, 0xac, 0x7d, 0x7d, 0xff, 0xed, 0x7b, 0xc9, 0xb0, 0x10, 0xac, 0x47, 0x5c, 0xab, + 0xa7, 0x91, 0x5b, 0x0b, 0xe9, 0x59, 0x13, 0xff, 0x26, 0xf5, 0xca, 0x00, 0x1d, 0x95, 0x94, 0x8a, + 0x6b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x86, 0x48, 0x46, 0x08, 0x04, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.validate.go new file mode 100644 index 000000000..c0181b5f3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.pb.validate.go @@ -0,0 +1,329 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto + +package envoy_config_filter_network_thrift_proxy_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _thrift_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ThriftProxy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ThriftProxy) Validate() error { + if m == nil { + return nil + } + + if _, ok := TransportType_name[int32(m.GetTransport())]; !ok { + return ThriftProxyValidationError{ + field: "Transport", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocol())]; !ok { + return ThriftProxyValidationError{ + field: "Protocol", + reason: "value must be one of the defined enum values", + } + } + + if len(m.GetStatPrefix()) < 1 { + return ThriftProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftProxyValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetThriftFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftProxyValidationError{ + field: fmt.Sprintf("ThriftFilters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ThriftProxyValidationError is the validation error returned by +// ThriftProxy.Validate if the designated constraints aren't met. +type ThriftProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftProxyValidationError) ErrorName() string { return "ThriftProxyValidationError" } + +// Error satisfies the builtin error interface +func (e ThriftProxyValidationError) 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 %sThriftProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftProxyValidationError{} + +// Validate checks the field values on ThriftFilter with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ThriftFilter) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return ThriftFilterValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.ConfigType.(type) { + + case *ThriftFilter_Config: + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftFilterValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ThriftFilter_TypedConfig: + + if v, ok := interface{}(m.GetTypedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftFilterValidationError{ + field: "TypedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ThriftFilterValidationError is the validation error returned by +// ThriftFilter.Validate if the designated constraints aren't met. +type ThriftFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftFilterValidationError) ErrorName() string { return "ThriftFilterValidationError" } + +// Error satisfies the builtin error interface +func (e ThriftFilterValidationError) 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 %sThriftFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftFilterValidationError{} + +// Validate checks the field values on ThriftProtocolOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ThriftProtocolOptions) Validate() error { + if m == nil { + return nil + } + + if _, ok := TransportType_name[int32(m.GetTransport())]; !ok { + return ThriftProtocolOptionsValidationError{ + field: "Transport", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocol())]; !ok { + return ThriftProtocolOptionsValidationError{ + field: "Protocol", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// ThriftProtocolOptionsValidationError is the validation error returned by +// ThriftProtocolOptions.Validate if the designated constraints aren't met. +type ThriftProtocolOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftProtocolOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftProtocolOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftProtocolOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftProtocolOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftProtocolOptionsValidationError) ErrorName() string { + return "ThriftProtocolOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e ThriftProtocolOptionsValidationError) 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 %sThriftProtocolOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftProtocolOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftProtocolOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.go new file mode 100644 index 000000000..c29205e48 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.go @@ -0,0 +1,114 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.proto + +package envoy_config_filter_network_zookeeper_proxy_v1alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ZooKeeperProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + MaxPacketBytes *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=max_packet_bytes,json=maxPacketBytes,proto3" json:"max_packet_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ZooKeeperProxy) Reset() { *m = ZooKeeperProxy{} } +func (m *ZooKeeperProxy) String() string { return proto.CompactTextString(m) } +func (*ZooKeeperProxy) ProtoMessage() {} +func (*ZooKeeperProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_05247350458709ad, []int{0} +} + +func (m *ZooKeeperProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ZooKeeperProxy.Unmarshal(m, b) +} +func (m *ZooKeeperProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ZooKeeperProxy.Marshal(b, m, deterministic) +} +func (m *ZooKeeperProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZooKeeperProxy.Merge(m, src) +} +func (m *ZooKeeperProxy) XXX_Size() int { + return xxx_messageInfo_ZooKeeperProxy.Size(m) +} +func (m *ZooKeeperProxy) XXX_DiscardUnknown() { + xxx_messageInfo_ZooKeeperProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_ZooKeeperProxy proto.InternalMessageInfo + +func (m *ZooKeeperProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ZooKeeperProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func (m *ZooKeeperProxy) GetMaxPacketBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxPacketBytes + } + return nil +} + +func init() { + proto.RegisterType((*ZooKeeperProxy)(nil), "envoy.config.filter.network.zookeeper_proxy.v1alpha1.ZooKeeperProxy") +} + +func init() { + proto.RegisterFile("envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.proto", fileDescriptor_05247350458709ad) +} + +var fileDescriptor_05247350458709ad = []byte{ + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xbd, 0x8a, 0xdb, 0x40, + 0x14, 0x85, 0x19, 0x27, 0x71, 0xf0, 0x18, 0x8c, 0x51, 0x8a, 0x18, 0x13, 0x1b, 0x93, 0xca, 0xd5, + 0x0c, 0xb6, 0x92, 0x17, 0x50, 0x11, 0xc8, 0x4f, 0x21, 0x0c, 0x49, 0xe1, 0x46, 0x8c, 0xe5, 0x2b, + 0x45, 0x58, 0x9e, 0x3b, 0xcc, 0x8c, 0x6c, 0x39, 0x55, 0xde, 0x20, 0x6d, 0xaa, 0x40, 0x5e, 0x63, + 0x9f, 0x60, 0xdb, 0x7d, 0x95, 0x2d, 0xb7, 0x58, 0x16, 0xcd, 0x58, 0x8d, 0x97, 0x6d, 0xb6, 0x13, + 0xfa, 0x74, 0x3e, 0xee, 0x39, 0xa2, 0x5f, 0x40, 0x1e, 0xf0, 0xc4, 0x53, 0x94, 0x59, 0x91, 0xf3, + 0xac, 0x28, 0x2d, 0x68, 0x2e, 0xc1, 0x1e, 0x51, 0xef, 0xf8, 0x2f, 0xc4, 0x1d, 0x80, 0x02, 0x9d, + 0x28, 0x8d, 0xf5, 0x89, 0x1f, 0x16, 0xa2, 0x54, 0x3f, 0xc5, 0xe2, 0x12, 0x30, 0xa5, 0xd1, 0x62,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 0xa1, 0xb6, 0x20, 0x4d, 0x53, 0xf2, 0x3c, 0xaf, 0x79, + 0x7a, 0xdf, 0xf0, 0xea, 0xf7, 0xf5, 0x4d, 0xb7, 0x33, 0x24, 0x34, 0x2a, 0x90, 0xb9, 0xbc, 0x27, + 0xcf, 0xf9, 0x4b, 0xd1, 0x9b, 0x75, 0x4b, 0xdc, 0x54, 0x71, 0x73, 0x7d, 0x4c, 0x36, 0x5d, 0x57, + 0x23, 0x7c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x7f, 0x88, 0x1f, 0x47, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.validate.go new file mode 100644 index 000000000..8033c6af1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.validate.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.proto + +package envoy_config_filter_network_zookeeper_proxy_v1alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _zookeeper_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ZooKeeperProxy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ZooKeeperProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return ZooKeeperProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + if v, ok := interface{}(m.GetMaxPacketBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ZooKeeperProxyValidationError{ + field: "MaxPacketBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ZooKeeperProxyValidationError is the validation error returned by +// ZooKeeperProxy.Validate if the designated constraints aren't met. +type ZooKeeperProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ZooKeeperProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ZooKeeperProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ZooKeeperProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ZooKeeperProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ZooKeeperProxyValidationError) ErrorName() string { return "ZooKeeperProxyValidationError" } + +// Error satisfies the builtin error interface +func (e ZooKeeperProxyValidationError) 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 %sZooKeeperProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ZooKeeperProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ZooKeeperProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.go new file mode 100644 index 000000000..624e0915f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.proto + +package envoy_config_filter_thrift_rate_limit_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,4,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitService *v2.RateLimitServiceConfig `protobuf:"bytes,5,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_961acdee13c1bd42, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetStage() uint32 { + if m != nil { + return m.Stage + } + return 0 +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v2.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.config.filter.thrift.rate_limit.v2alpha1.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.proto", fileDescriptor_961acdee13c1bd42) +} + +var fileDescriptor_961acdee13c1bd42 = []byte{ + // 425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x31, 0x6f, 0xd4, 0x30, + 0x18, 0x86, 0xe5, 0xd0, 0xbb, 0xb6, 0x46, 0xc0, 0xe1, 0x85, 0x50, 0xa9, 0x10, 0xc1, 0x12, 0x75, + 0xb0, 0xd5, 0xbb, 0x15, 0x09, 0x29, 0xdc, 0x08, 0x52, 0x15, 0x7e, 0x40, 0xe4, 0x36, 0x5f, 0x52, + 0x8b, 0xc4, 0x8e, 0x9c,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, 0xde, 0xf6, 0xb1, 0xd5, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.validate.go new file mode 100644 index 000000000..77f5068fc --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.pb.validate.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/thrift/rate_limit/v2alpha1/rate_limit.proto + +package envoy_config_filter_thrift_rate_limit_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetStage() > 10 { + return RateLimitValidationError{ + field: "Stage", + reason: "value must be less than or equal to 10", + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.go new file mode 100644 index 000000000..9bd75b3ac --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.go @@ -0,0 +1,76 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/thrift/router/v2alpha1/router.proto + +package envoy_config_filter_thrift_router_v2alpha1 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Router struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Router) Reset() { *m = Router{} } +func (m *Router) String() string { return proto.CompactTextString(m) } +func (*Router) ProtoMessage() {} +func (*Router) Descriptor() ([]byte, []int) { + return fileDescriptor_9621417e977323f2, []int{0} +} + +func (m *Router) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Router.Unmarshal(m, b) +} +func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Router.Marshal(b, m, deterministic) +} +func (m *Router) XXX_Merge(src proto.Message) { + xxx_messageInfo_Router.Merge(m, src) +} +func (m *Router) XXX_Size() int { + return xxx_messageInfo_Router.Size(m) +} +func (m *Router) XXX_DiscardUnknown() { + xxx_messageInfo_Router.DiscardUnknown(m) +} + +var xxx_messageInfo_Router proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Router)(nil), "envoy.config.filter.thrift.router.v2alpha1.Router") +} + +func init() { + proto.RegisterFile("envoy/config/filter/thrift/router/v2alpha1/router.proto", fileDescriptor_9621417e977323f2) +} + +var fileDescriptor_9621417e977323f2 = []byte{ + // 166 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, + 0x2f, 0xc9, 0x28, 0xca, 0x4c, 0x2b, 0xd1, 0x2f, 0xca, 0x2f, 0x05, 0xf1, 0xca, 0x8c, 0x12, 0x73, + 0x0a, 0x32, 0x12, 0x0d, 0xa1, 0x7c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x2d, 0xb0, 0x46, + 0x3d, 0x88, 0x46, 0x3d, 0x88, 0x46, 0x3d, 0x88, 0x46, 0x3d, 0xa8, 0x42, 0x98, 0x46, 0x29, 0xd9, + 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, + 0xfd, 0xe2, 0x92, 0xc4, 0x92, 0xd2, 0x62, 0x88, 0x51, 0x4a, 0x1c, 0x5c, 0x6c, 0x41, 0x60, 0x1d, + 0x4e, 0x81, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe4, 0xb2, 0xc8, 0xcc, 0xd7, 0x03, + 0xdb, 0x50, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0xbc, 0x65, 0x4e, 0xdc, 0x10, 0xb3, 0x02, 0x40, + 0x46, 0x07, 0x30, 0x26, 0xb1, 0x81, 0xed, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xc2, 0xa0, + 0xcd, 0x42, 0xe9, 0x00, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.validate.go new file mode 100644 index 000000000..adbe97bfb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1/router.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/thrift/router/v2alpha1/router.proto + +package envoy_config_filter_thrift_router_v2alpha1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _router_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Router with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Router) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// 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/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.go new file mode 100644 index 000000000..3ecf28e59 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.proto + +package envoy_config_filter_udp_dns_filter_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsFilterConfig struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + ServerConfig *DnsFilterConfig_ServerContextConfig `protobuf:"bytes,2,opt,name=server_config,json=serverConfig,proto3" json:"server_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsFilterConfig) Reset() { *m = DnsFilterConfig{} } +func (m *DnsFilterConfig) String() string { return proto.CompactTextString(m) } +func (*DnsFilterConfig) ProtoMessage() {} +func (*DnsFilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5252ffc76176bc87, []int{0} +} + +func (m *DnsFilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsFilterConfig.Unmarshal(m, b) +} +func (m *DnsFilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsFilterConfig.Marshal(b, m, deterministic) +} +func (m *DnsFilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsFilterConfig.Merge(m, src) +} +func (m *DnsFilterConfig) XXX_Size() int { + return xxx_messageInfo_DnsFilterConfig.Size(m) +} +func (m *DnsFilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsFilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsFilterConfig proto.InternalMessageInfo + +func (m *DnsFilterConfig) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *DnsFilterConfig) GetServerConfig() *DnsFilterConfig_ServerContextConfig { + if m != nil { + return m.ServerConfig + } + return nil +} + +type DnsFilterConfig_ServerContextConfig struct { + // Types that are valid to be assigned to ConfigSource: + // *DnsFilterConfig_ServerContextConfig_InlineDnsTable + // *DnsFilterConfig_ServerContextConfig_ExternalDnsTable + ConfigSource isDnsFilterConfig_ServerContextConfig_ConfigSource `protobuf_oneof:"config_source"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsFilterConfig_ServerContextConfig) Reset() { *m = DnsFilterConfig_ServerContextConfig{} } +func (m *DnsFilterConfig_ServerContextConfig) String() string { return proto.CompactTextString(m) } +func (*DnsFilterConfig_ServerContextConfig) ProtoMessage() {} +func (*DnsFilterConfig_ServerContextConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5252ffc76176bc87, []int{0, 0} +} + +func (m *DnsFilterConfig_ServerContextConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Unmarshal(m, b) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Marshal(b, m, deterministic) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Merge(m, src) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Size() int { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Size(m) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsFilterConfig_ServerContextConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsFilterConfig_ServerContextConfig proto.InternalMessageInfo + +type isDnsFilterConfig_ServerContextConfig_ConfigSource interface { + isDnsFilterConfig_ServerContextConfig_ConfigSource() +} + +type DnsFilterConfig_ServerContextConfig_InlineDnsTable struct { + InlineDnsTable *v2alpha.DnsTable `protobuf:"bytes,1,opt,name=inline_dns_table,json=inlineDnsTable,proto3,oneof"` +} + +type DnsFilterConfig_ServerContextConfig_ExternalDnsTable struct { + ExternalDnsTable *core.DataSource `protobuf:"bytes,2,opt,name=external_dns_table,json=externalDnsTable,proto3,oneof"` +} + +func (*DnsFilterConfig_ServerContextConfig_InlineDnsTable) isDnsFilterConfig_ServerContextConfig_ConfigSource() { +} + +func (*DnsFilterConfig_ServerContextConfig_ExternalDnsTable) isDnsFilterConfig_ServerContextConfig_ConfigSource() { +} + +func (m *DnsFilterConfig_ServerContextConfig) GetConfigSource() isDnsFilterConfig_ServerContextConfig_ConfigSource { + if m != nil { + return m.ConfigSource + } + return nil +} + +func (m *DnsFilterConfig_ServerContextConfig) GetInlineDnsTable() *v2alpha.DnsTable { + if x, ok := m.GetConfigSource().(*DnsFilterConfig_ServerContextConfig_InlineDnsTable); ok { + return x.InlineDnsTable + } + return nil +} + +func (m *DnsFilterConfig_ServerContextConfig) GetExternalDnsTable() *core.DataSource { + if x, ok := m.GetConfigSource().(*DnsFilterConfig_ServerContextConfig_ExternalDnsTable); ok { + return x.ExternalDnsTable + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DnsFilterConfig_ServerContextConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DnsFilterConfig_ServerContextConfig_InlineDnsTable)(nil), + (*DnsFilterConfig_ServerContextConfig_ExternalDnsTable)(nil), + } +} + +func init() { + proto.RegisterType((*DnsFilterConfig)(nil), "envoy.config.filter.udp.dns_filter.v2alpha.DnsFilterConfig") + proto.RegisterType((*DnsFilterConfig_ServerContextConfig)(nil), "envoy.config.filter.udp.dns_filter.v2alpha.DnsFilterConfig.ServerContextConfig") +} + +func init() { + proto.RegisterFile("envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.proto", fileDescriptor_5252ffc76176bc87) +} + +var fileDescriptor_5252ffc76176bc87 = []byte{ + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcf, 0x8b, 0xd4, 0x30, + 0x14, 0x36, 0x55, 0x57, 0xcd, 0xb8, 0x6b, 0x89, 0x82, 0xcb, 0xe0, 0xca, 0xe0, 0x41, 0x06, 0x0f, + 0x89, 0x74, 0x2f, 0x82, 0xb7, 0xee, 0x22, 0x1e, 0x14, 0x87, 0x59, 0xef, 0xe5, 0xcd, 0x34, 0x1d, + 0x03, 0x35, 0x09, 0x49, 0x5a, 0xba, 0x37, 0xff, 0x03, 0xc1, 0x93, 0x7f, 0x8b, 0x7f, 0xc1, 0x5c, + 0xfd, 0x57, 0x3c, 0x89, 0x88, 0x48, 0x92, 0x76, 0xa8, 0xbf, 0xc0, 0x3d, 0xb5, 0x79, 0xdf, 0xfb, + 0xbe, 0xf7, 0xe5, 0x7b, 0xc1, 0x4f, 0xb9, 0x6c, 0xd5, 0x39, 0x5b, 0x2b, 0x59, 0x89, 0x0d, 0xab, + 0x44, 0xed, 0xb8, 0x61, 0x4d, 0xa9, 0x59, 0x29, 0x6d, 0xd1, 0x1f, 0xdb, 0x0c, 0x6a, 0xfd, 0x06, + 0x46, 0x25, 0xaa, 0x8d, 0x72, 0x8a, 0x3c, 0x0a,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c3, 0x78, 0xf8, + 0x6b, 0xdf, 0xf7, 0xfc, 0xd2, 0xf2, 0x20, 0x72, 0x87, 0x0a, 0x79, 0x89, 0x09, 0xef, 0x1c, 0x37, + 0x12, 0xea, 0x91, 0x5e, 0xbc, 0xe0, 0x51, 0xaf, 0x07, 0x5a, 0xd0, 0x36, 0xa3, 0x7e, 0xa9, 0xf4, + 0x14, 0x1c, 0x9c, 0xa9, 0xc6, 0xac, 0xbd, 0x58, 0x3a, 0x50, 0x07, 0xb9, 0xfc, 0x0e, 0xde, 0x8f, + 0x71, 0x14, 0x36, 0x34, 0x91, 0xcb, 0x5f, 0x73, 0x94, 0x7f, 0x40, 0x5f, 0x3e, 0xfe, 0x78, 0x7f, + 0xf5, 0x31, 0xe9, 0x05, 0x3d, 0x4d, 0x5a, 0xbf, 0xbf, 0x7f, 0xa5, 0x76, 0x1c, 0x8c, 0x7f, 0x7a, + 0xb7, 0xfd, 0xbc, 0x97, 0x5c, 0x47, 0xf1, 0x9b, 0x22, 0xfc, 0x44, 0xa8, 0x28, 0xa1, 0x8d, 0xea, + 0xce, 0x2f, 0x90, 0x7f, 0x7e, 0xb0, 0x5b, 0xc0, 0xc2, 0xbf, 0x88, 0x05, 0x5a, 0xed, 0x85, 0xa7, + 0x71, 0xfc, 0x33, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x2b, 0xdf, 0x37, 0x23, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.validate.go new file mode 100644 index 000000000..7999b4c33 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.pb.validate.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/udp/dns_filter/v2alpha/dns_filter.proto + +package envoy_config_filter_udp_dns_filter_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dns_filter_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsFilterConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DnsFilterConfig) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetStatPrefix()) < 1 { + return DnsFilterConfigValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 runes", + } + } + + if v, ok := interface{}(m.GetServerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfigValidationError{ + field: "ServerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DnsFilterConfigValidationError is the validation error returned by +// DnsFilterConfig.Validate if the designated constraints aren't met. +type DnsFilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsFilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsFilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsFilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsFilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsFilterConfigValidationError) ErrorName() string { return "DnsFilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e DnsFilterConfigValidationError) 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 %sDnsFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsFilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsFilterConfigValidationError{} + +// Validate checks the field values on DnsFilterConfig_ServerContextConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *DnsFilterConfig_ServerContextConfig) Validate() error { + if m == nil { + return nil + } + + switch m.ConfigSource.(type) { + + case *DnsFilterConfig_ServerContextConfig_InlineDnsTable: + + if v, ok := interface{}(m.GetInlineDnsTable()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "InlineDnsTable", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *DnsFilterConfig_ServerContextConfig_ExternalDnsTable: + + if v, ok := interface{}(m.GetExternalDnsTable()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "ExternalDnsTable", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "ConfigSource", + reason: "value is required", + } + + } + + return nil +} + +// DnsFilterConfig_ServerContextConfigValidationError is the validation error +// returned by DnsFilterConfig_ServerContextConfig.Validate if the designated +// constraints aren't met. +type DnsFilterConfig_ServerContextConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsFilterConfig_ServerContextConfigValidationError) ErrorName() string { + return "DnsFilterConfig_ServerContextConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsFilterConfig_ServerContextConfigValidationError) 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 %sDnsFilterConfig_ServerContextConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsFilterConfig_ServerContextConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsFilterConfig_ServerContextConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.go new file mode 100644 index 000000000..c32e975ef --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.go @@ -0,0 +1,137 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.proto + +package envoy_config_filter_udp_udp_proxy_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type UdpProxyConfig struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + // Types that are valid to be assigned to RouteSpecifier: + // *UdpProxyConfig_Cluster + RouteSpecifier isUdpProxyConfig_RouteSpecifier `protobuf_oneof:"route_specifier"` + IdleTimeout *duration.Duration `protobuf:"bytes,3,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UdpProxyConfig) Reset() { *m = UdpProxyConfig{} } +func (m *UdpProxyConfig) String() string { return proto.CompactTextString(m) } +func (*UdpProxyConfig) ProtoMessage() {} +func (*UdpProxyConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_82ee653a514c2977, []int{0} +} + +func (m *UdpProxyConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UdpProxyConfig.Unmarshal(m, b) +} +func (m *UdpProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UdpProxyConfig.Marshal(b, m, deterministic) +} +func (m *UdpProxyConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_UdpProxyConfig.Merge(m, src) +} +func (m *UdpProxyConfig) XXX_Size() int { + return xxx_messageInfo_UdpProxyConfig.Size(m) +} +func (m *UdpProxyConfig) XXX_DiscardUnknown() { + xxx_messageInfo_UdpProxyConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_UdpProxyConfig proto.InternalMessageInfo + +func (m *UdpProxyConfig) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +type isUdpProxyConfig_RouteSpecifier interface { + isUdpProxyConfig_RouteSpecifier() +} + +type UdpProxyConfig_Cluster struct { + Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3,oneof"` +} + +func (*UdpProxyConfig_Cluster) isUdpProxyConfig_RouteSpecifier() {} + +func (m *UdpProxyConfig) GetRouteSpecifier() isUdpProxyConfig_RouteSpecifier { + if m != nil { + return m.RouteSpecifier + } + return nil +} + +func (m *UdpProxyConfig) GetCluster() string { + if x, ok := m.GetRouteSpecifier().(*UdpProxyConfig_Cluster); ok { + return x.Cluster + } + return "" +} + +func (m *UdpProxyConfig) GetIdleTimeout() *duration.Duration { + if m != nil { + return m.IdleTimeout + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UdpProxyConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UdpProxyConfig_Cluster)(nil), + } +} + +func init() { + proto.RegisterType((*UdpProxyConfig)(nil), "envoy.config.filter.udp.udp_proxy.v2alpha.UdpProxyConfig") +} + +func init() { + proto.RegisterFile("envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.proto", fileDescriptor_82ee653a514c2977) +} + +var fileDescriptor_82ee653a514c2977 = []byte{ + // 316 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x3f, 0x4b, 0x73, 0x31, + 0x18, 0xc5, 0xdf, 0xb4, 0x2f, 0x2d, 0xa6, 0xfe, 0xe3, 0x0e, 0x5a, 0x0b, 0x4a, 0xd1, 0xa5, 0x2e, + 0x09, 0xd4, 0x41, 0x04, 0xa7, 0xe8, 0xe0, 0x78, 0xb9, 0xe8, 0x7c, 0x49, 0x9b, 0xdc, 0x1a, 0x88, + 0xf7, 0x09, 0xb9, 0x49, 0x69, 0x37, 0xbf, 0x94, 0x8b, 0x9f, 0xc0, 0xd5, 0x6f, 0x23, 0x4e, 0x92, + 0xa4, 0x97, 0xe2, 0xe6, 0x10, 0x08, 0xcf, 0x39, 0xbf, 0xe4, 0x39, 0x07, 0xdf, 0xc8, 0x7a, 0x09, + 0x6b, 0x3a, 0x87, 0xba, 0x52, 0x0b, 0x5a, 0x29, 0xed, 0xa4, 0xa5, 0x5e, 0x98, 0x70, 0x4a, 0x63, + 0x61, 0xb5, 0xa6, 0xcb, 0x29, 0xd7, 0xe6, 0x99, 0x6f, 0x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0x94, 0xed, 0xb5, 0xb9, 0xf3, 0xb0, 0x42, 0x8e, 0x66, 0xbd, 0xb8, 0xcb, 0xd5, 0x4f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x2f, 0xa9, 0x74, 0x8b, 0xd2, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.validate.go new file mode 100644 index 000000000..b6c86f134 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.pb.validate.go @@ -0,0 +1,138 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.proto + +package envoy_config_filter_udp_udp_proxy_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _udp_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on UdpProxyConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *UdpProxyConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return UdpProxyConfigValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetIdleTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UdpProxyConfigValidationError{ + field: "IdleTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.RouteSpecifier.(type) { + + case *UdpProxyConfig_Cluster: + + if len(m.GetCluster()) < 1 { + return UdpProxyConfigValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + default: + return UdpProxyConfigValidationError{ + field: "RouteSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// UdpProxyConfigValidationError is the validation error returned by +// UdpProxyConfig.Validate if the designated constraints aren't met. +type UdpProxyConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UdpProxyConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UdpProxyConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UdpProxyConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UdpProxyConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UdpProxyConfigValidationError) ErrorName() string { return "UdpProxyConfigValidationError" } + +// Error satisfies the builtin error interface +func (e UdpProxyConfigValidationError) 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 %sUdpProxyConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UdpProxyConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UdpProxyConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.go new file mode 100644 index 000000000..977d14da7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.go @@ -0,0 +1,97 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/grpc_credential/v2alpha/aws_iam.proto + +package envoy_config_grpc_credential_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AwsIamConfig struct { + ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` + Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AwsIamConfig) Reset() { *m = AwsIamConfig{} } +func (m *AwsIamConfig) String() string { return proto.CompactTextString(m) } +func (*AwsIamConfig) ProtoMessage() {} +func (*AwsIamConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_fb99e742622a8430, []int{0} +} + +func (m *AwsIamConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AwsIamConfig.Unmarshal(m, b) +} +func (m *AwsIamConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AwsIamConfig.Marshal(b, m, deterministic) +} +func (m *AwsIamConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwsIamConfig.Merge(m, src) +} +func (m *AwsIamConfig) XXX_Size() int { + return xxx_messageInfo_AwsIamConfig.Size(m) +} +func (m *AwsIamConfig) XXX_DiscardUnknown() { + xxx_messageInfo_AwsIamConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_AwsIamConfig proto.InternalMessageInfo + +func (m *AwsIamConfig) GetServiceName() string { + if m != nil { + return m.ServiceName + } + return "" +} + +func (m *AwsIamConfig) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func init() { + proto.RegisterType((*AwsIamConfig)(nil), "envoy.config.grpc_credential.v2alpha.AwsIamConfig") +} + +func init() { + proto.RegisterFile("envoy/config/grpc_credential/v2alpha/aws_iam.proto", fileDescriptor_fb99e742622a8430) +} + +var fileDescriptor_fb99e742622a8430 = []byte{ + // 240 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x8f, 0xb1, 0x4a, 0xc4, 0x40, + 0x10, 0x86, 0xd9, 0x20, 0x11, 0xf7, 0xae, 0x90, 0x14, 0x7a, 0x1c, 0x08, 0x87, 0x58, 0x88, 0xc5, + 0x2e, 0xc4, 0x27, 0x30, 0x56, 0x22, 0xc8, 0x91, 0x17, 0x08, 0x63, 0x32, 0xc6, 0x85, 0x64, 0x66, + 0xd9, 0xdd, 0xcb, 0x79, 0x9d, 0xcf, 0xe5, 0x13, 0xd8, 0xfa, 0x3a, 0x56, 0x92, 0x6c, 0x6c, 0xac, + 0xec, 0x66, 0xf8, 0xe7, 0xfb, 0xf9, 0x46, 0xe6, 0x48, 0x03, 0x1f, 0x74, 0xcd, 0xf4, 0x62, 0x5a, + 0xdd, 0x3a, 0x5b, 0x57, 0xb5, 0xc3, 0x06, 0x29, 0x18, 0xe8, 0xf4, 0x90, 0x43, 0x67, 0x5f, 0x41, + 0xc3, 0xde, 0x57, 0x06, 0x7a, 0x65, 0x1d, 0x07, 0xce, 0xae, 0x26, 0x46, 0x45, 0x46, 0xfd, 0x61, + 0xd4, 0xcc, 0xac, 0x2f, 0x76, 0x8d, 0x05, 0x0d, 0x44, 0x1c, 0x20, 0x18, 0x26, 0xaf, 0x7d, 0x80, + 0xb0, 0xf3, 0xb1, 0x64, 0x7d, 0x3e, 0x40, 0x67, 0x1a, 0x08, 0xa8, 0x7f, 0x87, 0x18, 0x5c, 0x96, + 0x72, 0x79, 0xb7, 0xf7, 0x0f, 0xd0, 0xdf, 0x4f, 0xfd, 0xd9, 0x8d, 0x5c, 0x7a, 0x74, 0x83, 0xa9, + 0xb1, 0x22, 0xe8, 0x71, 0x25, 0x36, 0xe2, 0xfa, 0xa4, 0x38, 0xfe, 0x2e, 0x8e, 0x5c, 0xb2, 0x11, + 0xe5, 0x62, 0x0e, 0x9f, 0xa0, 0xc7, 0xec, 0x4c, 0xa6, 0x0e, 0x5b, 0xc3, 0xb4, 0x4a, 0xc6, 0xab, + 0x72, 0xde, 0x8a, 0xc7, 0x8f, 0xf7, 0xcf, 0xaf, 0x34, 0x39, 0x15, 0x32, 0x37, 0xac, 0x26, 0x7d, + 0xeb, 0xf8, 0xed, 0xa0, 0xfe, 0xf3, 0x49, 0xb1, 0x88, 0x3e, 0xdb, 0x51, 0x6f, 0x2b, 0x9e, 0xd3, + 0xc9, 0xf3, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0x98, 0x02, 0x48, 0x79, 0x3b, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.validate.go new file mode 100644 index 000000000..5d46db289 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/aws_iam.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/grpc_credential/v2alpha/aws_iam.proto + +package envoy_config_grpc_credential_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_iam_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AwsIamConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AwsIamConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServiceName()) < 1 { + return AwsIamConfigValidationError{ + field: "ServiceName", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Region + + return nil +} + +// AwsIamConfigValidationError is the validation error returned by +// AwsIamConfig.Validate if the designated constraints aren't met. +type AwsIamConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AwsIamConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AwsIamConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AwsIamConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AwsIamConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AwsIamConfigValidationError) ErrorName() string { return "AwsIamConfigValidationError" } + +// Error satisfies the builtin error interface +func (e AwsIamConfigValidationError) 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 %sAwsIamConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AwsIamConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AwsIamConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.go new file mode 100644 index 000000000..f2655f93d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/grpc_credential/v2alpha/file_based_metadata.proto + +package envoy_config_grpc_credential_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FileBasedMetadataConfig struct { + SecretData *core.DataSource `protobuf:"bytes,1,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` + HeaderKey string `protobuf:"bytes,2,opt,name=header_key,json=headerKey,proto3" json:"header_key,omitempty"` + HeaderPrefix string `protobuf:"bytes,3,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileBasedMetadataConfig) Reset() { *m = FileBasedMetadataConfig{} } +func (m *FileBasedMetadataConfig) String() string { return proto.CompactTextString(m) } +func (*FileBasedMetadataConfig) ProtoMessage() {} +func (*FileBasedMetadataConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_0f2b21de9d357383, []int{0} +} + +func (m *FileBasedMetadataConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileBasedMetadataConfig.Unmarshal(m, b) +} +func (m *FileBasedMetadataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileBasedMetadataConfig.Marshal(b, m, deterministic) +} +func (m *FileBasedMetadataConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileBasedMetadataConfig.Merge(m, src) +} +func (m *FileBasedMetadataConfig) XXX_Size() int { + return xxx_messageInfo_FileBasedMetadataConfig.Size(m) +} +func (m *FileBasedMetadataConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FileBasedMetadataConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FileBasedMetadataConfig proto.InternalMessageInfo + +func (m *FileBasedMetadataConfig) GetSecretData() *core.DataSource { + if m != nil { + return m.SecretData + } + return nil +} + +func (m *FileBasedMetadataConfig) GetHeaderKey() string { + if m != nil { + return m.HeaderKey + } + return "" +} + +func (m *FileBasedMetadataConfig) GetHeaderPrefix() string { + if m != nil { + return m.HeaderPrefix + } + return "" +} + +func init() { + proto.RegisterType((*FileBasedMetadataConfig)(nil), "envoy.config.grpc_credential.v2alpha.FileBasedMetadataConfig") +} + +func init() { + proto.RegisterFile("envoy/config/grpc_credential/v2alpha/file_based_metadata.proto", fileDescriptor_0f2b21de9d357383) +} + +var fileDescriptor_0f2b21de9d357383 = []byte{ + // 311 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xcf, 0x4a, 0x3b, 0x31, + 0x10, 0xc7, 0x49, 0x7f, 0x50, 0x68, 0xfa, 0x13, 0x64, 0x0f, 0x5a, 0x8a, 0x85, 0xa2, 0x1e, 0x7a, + 0x4a, 0x60, 0xbd, 0x7b, 0x58, 0xa5, 0x17, 0x11, 0x4a, 0x05, 0xaf, 0xcb, 0x34, 0x3b, 0x6d, 0x83, + 0x6b, 0x12, 0x92, 0xec, 0xd2, 0xbd, 0x79, 0xf7, 0x35, 0xf4, 0x19, 0x14, 0x9f, 0xc0, 0xab, 0x6f, + 0x24, 0xd9, 0xac, 0x17, 0x7b, 0xf1, 0xfa, 0xfd, 0x33,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c, 0x8d, + 0xfe, 0xb5, 0x89, 0xff, 0x51, 0x5c, 0xb4, 0x5a, 0x76, 0xff, 0xf1, 0xf4, 0xf9, 0xd5, 0xef, 0x1d, + 0x12, 0x9a, 0x4a, 0x1d, 0x11, 0x8c, 0xd5, 0xbb, 0x86, 0xfd, 0xe5, 0x89, 0xd9, 0xd1, 0xde, 0x89, + 0x8b, 0x70, 0xfd, 0x82, 0xac, 0xfa, 0xed, 0x1b, 0x2e, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd7, + 0xd1, 0x73, 0x94, 0xcd, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.validate.go new file mode 100644 index 000000000..33d9bad06 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.validate.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/grpc_credential/v2alpha/file_based_metadata.proto + +package envoy_config_grpc_credential_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _file_based_metadata_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FileBasedMetadataConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FileBasedMetadataConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSecretData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileBasedMetadataConfigValidationError{ + field: "SecretData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for HeaderKey + + // no validation rules for HeaderPrefix + + return nil +} + +// FileBasedMetadataConfigValidationError is the validation error returned by +// FileBasedMetadataConfig.Validate if the designated constraints aren't met. +type FileBasedMetadataConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FileBasedMetadataConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FileBasedMetadataConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FileBasedMetadataConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FileBasedMetadataConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FileBasedMetadataConfigValidationError) ErrorName() string { + return "FileBasedMetadataConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e FileBasedMetadataConfigValidationError) 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 %sFileBasedMetadataConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FileBasedMetadataConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FileBasedMetadataConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.go new file mode 100644 index 000000000..8870db889 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.go @@ -0,0 +1,99 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/grpc_credential/v3/aws_iam.proto + +package envoy_config_grpc_credential_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AwsIamConfig struct { + ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` + Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AwsIamConfig) Reset() { *m = AwsIamConfig{} } +func (m *AwsIamConfig) String() string { return proto.CompactTextString(m) } +func (*AwsIamConfig) ProtoMessage() {} +func (*AwsIamConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_abde562deca54778, []int{0} +} + +func (m *AwsIamConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AwsIamConfig.Unmarshal(m, b) +} +func (m *AwsIamConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AwsIamConfig.Marshal(b, m, deterministic) +} +func (m *AwsIamConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwsIamConfig.Merge(m, src) +} +func (m *AwsIamConfig) XXX_Size() int { + return xxx_messageInfo_AwsIamConfig.Size(m) +} +func (m *AwsIamConfig) XXX_DiscardUnknown() { + xxx_messageInfo_AwsIamConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_AwsIamConfig proto.InternalMessageInfo + +func (m *AwsIamConfig) GetServiceName() string { + if m != nil { + return m.ServiceName + } + return "" +} + +func (m *AwsIamConfig) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func init() { + proto.RegisterType((*AwsIamConfig)(nil), "envoy.config.grpc_credential.v3.AwsIamConfig") +} + +func init() { + proto.RegisterFile("envoy/config/grpc_credential/v3/aws_iam.proto", fileDescriptor_abde562deca54778) +} + +var fileDescriptor_abde562deca54778 = []byte{ + // 272 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4d, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x4f, 0x2f, 0x2a, 0x48, 0x8e, 0x4f, 0x2e, + 0x4a, 0x4d, 0x49, 0xcd, 0x2b, 0xc9, 0x4c, 0xcc, 0xd1, 0x2f, 0x33, 0xd6, 0x4f, 0x2c, 0x2f, 0x8e, + 0xcf, 0x4c, 0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x07, 0x2b, 0xd7, 0x83, 0x28, + 0xd7, 0x43, 0x53, 0xae, 0x57, 0x66, 0x2c, 0x25, 0x5b, 0x9a, 0x52, 0x90, 0xa8, 0x9f, 0x98, 0x97, + 0x97, 0x5f, 0x92, 0x58, 0x92, 0x99, 0x9f, 0x57, 0xac, 0x5f, 0x5c, 0x92, 0x58, 0x52, 0x5a, 0x0c, + 0xd1, 0x2f, 0xa5, 0x88, 0x21, 0x5d, 0x96, 0x5a, 0x54, 0x9c, 0x99, 0x9f, 0x97, 0x99, 0x97, 0x0e, + 0x55, 0x22, 0x5e, 0x96, 0x98, 0x93, 0x99, 0x92, 0x58, 0x92, 0xaa, 0x0f, 0x63, 0x40, 0x24, 0x94, + 0x7a, 0x18, 0xb9, 0x78, 0x1c, 0xcb, 0x8b, 0x3d, 0x13, 0x73, 0x9d, 0xc1, 0xd6, 0x0b, 0x69, 0x71, + 0xf1, 0x14, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0xc6, 0xe7, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, + 0x30, 0x6a, 0x70, 0x3a, 0xb1, 0xff, 0x72, 0x62, 0x29, 0x62, 0x52, 0x60, 0x0c, 0xe2, 0x86, 0x4a, + 0xfa, 0x25, 0xe6, 0xa6, 0x0a, 0x89, 0x71, 0xb1, 0x15, 0xa5, 0xa6, 0x67, 0xe6, 0xe7, 0x49, 0x30, + 0x81, 0x54, 0x05, 0x41, 0x79, 0x56, 0x16, 0xb3, 0x8e, 0x76, 0xc8, 0x19, 0x73, 0x19, 0xe2, 0xf7, + 0x97, 0x51, 0x62, 0x4e, 0x41, 0x46, 0xa2, 0x1e, 0xb2, 0xed, 0x4e, 0x6e, 0xbb, 0x1a, 0x4e, 0x5c, + 0x64, 0x63, 0x12, 0x60, 0xe2, 0xd2, 0xcd, 0xcc, 0xd7, 0x03, 0xeb, 0x2f, 0x28, 0xca, 0xaf, 0xa8, + 0xd4, 0x23, 0x10, 0x44, 0x4e, 0xdc, 0x10, 0x63, 0x02, 0x40, 0x9e, 0x0a, 0x60, 0x4c, 0x62, 0x03, + 0xfb, 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x56, 0xfa, 0x96, 0x8a, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.validate.go new file mode 100644 index 000000000..995dd6f54 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/aws_iam.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/grpc_credential/v3/aws_iam.proto + +package envoy_config_grpc_credential_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_iam_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AwsIamConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AwsIamConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServiceName()) < 1 { + return AwsIamConfigValidationError{ + field: "ServiceName", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Region + + return nil +} + +// AwsIamConfigValidationError is the validation error returned by +// AwsIamConfig.Validate if the designated constraints aren't met. +type AwsIamConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AwsIamConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AwsIamConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AwsIamConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AwsIamConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AwsIamConfigValidationError) ErrorName() string { return "AwsIamConfigValidationError" } + +// Error satisfies the builtin error interface +func (e AwsIamConfigValidationError) 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 %sAwsIamConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AwsIamConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AwsIamConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.go new file mode 100644 index 000000000..42359066c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.go @@ -0,0 +1,112 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/grpc_credential/v3/file_based_metadata.proto + +package envoy_config_grpc_credential_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FileBasedMetadataConfig struct { + SecretData *v3.DataSource `protobuf:"bytes,1,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` + HeaderKey string `protobuf:"bytes,2,opt,name=header_key,json=headerKey,proto3" json:"header_key,omitempty"` + HeaderPrefix string `protobuf:"bytes,3,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileBasedMetadataConfig) Reset() { *m = FileBasedMetadataConfig{} } +func (m *FileBasedMetadataConfig) String() string { return proto.CompactTextString(m) } +func (*FileBasedMetadataConfig) ProtoMessage() {} +func (*FileBasedMetadataConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_413c1287d6760a42, []int{0} +} + +func (m *FileBasedMetadataConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileBasedMetadataConfig.Unmarshal(m, b) +} +func (m *FileBasedMetadataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileBasedMetadataConfig.Marshal(b, m, deterministic) +} +func (m *FileBasedMetadataConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileBasedMetadataConfig.Merge(m, src) +} +func (m *FileBasedMetadataConfig) XXX_Size() int { + return xxx_messageInfo_FileBasedMetadataConfig.Size(m) +} +func (m *FileBasedMetadataConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FileBasedMetadataConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FileBasedMetadataConfig proto.InternalMessageInfo + +func (m *FileBasedMetadataConfig) GetSecretData() *v3.DataSource { + if m != nil { + return m.SecretData + } + return nil +} + +func (m *FileBasedMetadataConfig) GetHeaderKey() string { + if m != nil { + return m.HeaderKey + } + return "" +} + +func (m *FileBasedMetadataConfig) GetHeaderPrefix() string { + if m != nil { + return m.HeaderPrefix + } + return "" +} + +func init() { + proto.RegisterType((*FileBasedMetadataConfig)(nil), "envoy.config.grpc_credential.v3.FileBasedMetadataConfig") +} + +func init() { + proto.RegisterFile("envoy/config/grpc_credential/v3/file_based_metadata.proto", fileDescriptor_413c1287d6760a42) +} + +var fileDescriptor_413c1287d6760a42 = []byte{ + // 337 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x51, 0x4d, 0x4a, 0xc3, 0x40, + 0x14, 0x26, 0x11, 0x0a, 0x9d, 0x2a, 0x48, 0x16, 0x5a, 0x0a, 0xb5, 0x51, 0x37, 0xdd, 0x38, 0x81, + 0x66, 0xa5, 0x88, 0x8b, 0x54, 0x04, 0x11, 0xa1, 0xd6, 0x03, 0x84, 0xd7, 0xe4, 0xb5, 0x1d, 0x8c, + 0x33, 0x61, 0x66, 0x1a, 0x9a, 0x9d, 0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x08, 0x29, + 0xca, 0xf8, 0x06, 0xcb, 0xa6, 0xeb, 0x3b, 0xdd, 0xfa, 0xb0, 0x6e, 0x91, 0x0b, 0x2c, 0xbd, 0x7d, + 0xb2, 0xb1, 0xa0, 0x73, 0x89, 0x63, 0x36, 0x6f, 0xae, 0x55, 0x8a, 0x75, 0x0b, 0x0e, 0x2a, 0xec, + 0xa8, 0xff, 0xf8, 0x76, 0xbf, 0x73, 0x42, 0x8e, 0xff, 0xde, 0xb5, 0x07, 0x59, 0x3e, 0x05, 0xfa, + 0x4b, 0xa7, 0xe8, 0xea, 0xf5, 0xee, 0xfd, 0xa3, 0xe6, 0x6e, 0xba, 0xe4, 0x80, 0x09, 0x5b, 0x25, + 0x97, 0x62, 0x5e, 0xd2, 0x7f, 0xbe, 0x15, 0x6d, 0xad, 0x24, 0x0e, 0xcc, 0x80, 0x03, 0x67, 0x54, + 0xab, 0x96, 0x0c, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x3e, 0x16, 0xed, 0x2c, 0x02, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.validate.go new file mode 100644 index 000000000..c4bd0c228 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3/file_based_metadata.pb.validate.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/grpc_credential/v3/file_based_metadata.proto + +package envoy_config_grpc_credential_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _file_based_metadata_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FileBasedMetadataConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FileBasedMetadataConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSecretData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileBasedMetadataConfigValidationError{ + field: "SecretData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for HeaderKey + + // no validation rules for HeaderPrefix + + return nil +} + +// FileBasedMetadataConfigValidationError is the validation error returned by +// FileBasedMetadataConfig.Validate if the designated constraints aren't met. +type FileBasedMetadataConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FileBasedMetadataConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FileBasedMetadataConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FileBasedMetadataConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FileBasedMetadataConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FileBasedMetadataConfigValidationError) ErrorName() string { + return "FileBasedMetadataConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e FileBasedMetadataConfigValidationError) 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 %sFileBasedMetadataConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FileBasedMetadataConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FileBasedMetadataConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.go new file mode 100644 index 000000000..88f6e0513 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.go @@ -0,0 +1,84 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/health_checker/redis/v2/redis.proto + +package envoy_config_health_checker_redis_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Redis struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Redis) Reset() { *m = Redis{} } +func (m *Redis) String() string { return proto.CompactTextString(m) } +func (*Redis) ProtoMessage() {} +func (*Redis) Descriptor() ([]byte, []int) { + return fileDescriptor_055a998fcb839d64, []int{0} +} + +func (m *Redis) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Redis.Unmarshal(m, b) +} +func (m *Redis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Redis.Marshal(b, m, deterministic) +} +func (m *Redis) XXX_Merge(src proto.Message) { + xxx_messageInfo_Redis.Merge(m, src) +} +func (m *Redis) XXX_Size() int { + return xxx_messageInfo_Redis.Size(m) +} +func (m *Redis) XXX_DiscardUnknown() { + xxx_messageInfo_Redis.DiscardUnknown(m) +} + +var xxx_messageInfo_Redis proto.InternalMessageInfo + +func (m *Redis) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func init() { + proto.RegisterType((*Redis)(nil), "envoy.config.health_checker.redis.v2.Redis") +} + +func init() { + proto.RegisterFile("envoy/config/health_checker/redis/v2/redis.proto", fileDescriptor_055a998fcb839d64) +} + +var fileDescriptor_055a998fcb839d64 = []byte{ + // 174 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0xcf, 0x48, 0x4d, 0xcc, 0x29, 0xc9, 0x88, + 0x4f, 0xce, 0x48, 0x4d, 0xce, 0x4e, 0x2d, 0xd2, 0x2f, 0x4a, 0x4d, 0xc9, 0x2c, 0xd6, 0x2f, 0x33, + 0x82, 0x30, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x54, 0xc0, 0x3a, 0xf4, 0x20, 0x3a, 0xf4, + 0x50, 0x75, 0xe8, 0x41, 0x14, 0x96, 0x19, 0x49, 0xc9, 0x96, 0xa6, 0x14, 0x24, 0xea, 0x27, 0xe6, + 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, 0x15, 0xeb, 0x17, 0x97, 0x24, 0x96, 0x94, 0x42, + 0x0d, 0x51, 0x92, 0xe4, 0x62, 0x0d, 0x02, 0x29, 0x15, 0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad, 0x94, + 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0x31, 0x9d, 0xbc, 0x76, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, + 0x24, 0xc0, 0xc8, 0x65, 0x94, 0x99, 0xaf, 0x07, 0xb6, 0xac, 0xa0, 0x28, 0xbf, 0xa2, 0x52, 0x8f, + 0x18, 0x7b, 0x9d, 0xb8, 0xc0, 0xc6, 0x06, 0x80, 0x2c, 0x09, 0x60, 0x4c, 0x62, 0x03, 0xdb, 0x66, + 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x39, 0xbb, 0xff, 0x48, 0xe6, 0x00, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.validate.go new file mode 100644 index 000000000..3a02d04e8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2/redis.pb.validate.go @@ -0,0 +1,103 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/health_checker/redis/v2/redis.proto + +package envoy_config_health_checker_redis_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _redis_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Redis with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Redis) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + return nil +} + +// RedisValidationError is the validation error returned by Redis.Validate if +// the designated constraints aren't met. +type RedisValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisValidationError) ErrorName() string { return "RedisValidationError" } + +// Error satisfies the builtin error interface +func (e RedisValidationError) 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 %sRedis.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.go new file mode 100644 index 000000000..0266f3c3f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.go @@ -0,0 +1,378 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/overload/v2alpha/overload.proto + +package envoy_config_overload_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ResourceMonitor struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to ConfigType: + // *ResourceMonitor_Config + // *ResourceMonitor_TypedConfig + ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceMonitor) Reset() { *m = ResourceMonitor{} } +func (m *ResourceMonitor) String() string { return proto.CompactTextString(m) } +func (*ResourceMonitor) ProtoMessage() {} +func (*ResourceMonitor) Descriptor() ([]byte, []int) { + return fileDescriptor_c3380c1aa89ddd52, []int{0} +} + +func (m *ResourceMonitor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceMonitor.Unmarshal(m, b) +} +func (m *ResourceMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceMonitor.Marshal(b, m, deterministic) +} +func (m *ResourceMonitor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceMonitor.Merge(m, src) +} +func (m *ResourceMonitor) XXX_Size() int { + return xxx_messageInfo_ResourceMonitor.Size(m) +} +func (m *ResourceMonitor) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceMonitor.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceMonitor proto.InternalMessageInfo + +func (m *ResourceMonitor) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isResourceMonitor_ConfigType interface { + isResourceMonitor_ConfigType() +} + +type ResourceMonitor_Config struct { + Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"` +} + +type ResourceMonitor_TypedConfig struct { + TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` +} + +func (*ResourceMonitor_Config) isResourceMonitor_ConfigType() {} + +func (*ResourceMonitor_TypedConfig) isResourceMonitor_ConfigType() {} + +func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +// Deprecated: Do not use. +func (m *ResourceMonitor) GetConfig() *_struct.Struct { + if x, ok := m.GetConfigType().(*ResourceMonitor_Config); ok { + return x.Config + } + return nil +} + +func (m *ResourceMonitor) GetTypedConfig() *any.Any { + if x, ok := m.GetConfigType().(*ResourceMonitor_TypedConfig); ok { + return x.TypedConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ResourceMonitor) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ResourceMonitor_Config)(nil), + (*ResourceMonitor_TypedConfig)(nil), + } +} + +type ThresholdTrigger struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThresholdTrigger) Reset() { *m = ThresholdTrigger{} } +func (m *ThresholdTrigger) String() string { return proto.CompactTextString(m) } +func (*ThresholdTrigger) ProtoMessage() {} +func (*ThresholdTrigger) Descriptor() ([]byte, []int) { + return fileDescriptor_c3380c1aa89ddd52, []int{1} +} + +func (m *ThresholdTrigger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThresholdTrigger.Unmarshal(m, b) +} +func (m *ThresholdTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThresholdTrigger.Marshal(b, m, deterministic) +} +func (m *ThresholdTrigger) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThresholdTrigger.Merge(m, src) +} +func (m *ThresholdTrigger) XXX_Size() int { + return xxx_messageInfo_ThresholdTrigger.Size(m) +} +func (m *ThresholdTrigger) XXX_DiscardUnknown() { + xxx_messageInfo_ThresholdTrigger.DiscardUnknown(m) +} + +var xxx_messageInfo_ThresholdTrigger proto.InternalMessageInfo + +func (m *ThresholdTrigger) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +type Trigger struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to TriggerOneof: + // *Trigger_Threshold + TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Trigger) Reset() { *m = Trigger{} } +func (m *Trigger) String() string { return proto.CompactTextString(m) } +func (*Trigger) ProtoMessage() {} +func (*Trigger) Descriptor() ([]byte, []int) { + return fileDescriptor_c3380c1aa89ddd52, []int{2} +} + +func (m *Trigger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Trigger.Unmarshal(m, b) +} +func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Trigger.Marshal(b, m, deterministic) +} +func (m *Trigger) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trigger.Merge(m, src) +} +func (m *Trigger) XXX_Size() int { + return xxx_messageInfo_Trigger.Size(m) +} +func (m *Trigger) XXX_DiscardUnknown() { + xxx_messageInfo_Trigger.DiscardUnknown(m) +} + +var xxx_messageInfo_Trigger proto.InternalMessageInfo + +func (m *Trigger) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isTrigger_TriggerOneof interface { + isTrigger_TriggerOneof() +} + +type Trigger_Threshold struct { + Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"` +} + +func (*Trigger_Threshold) isTrigger_TriggerOneof() {} + +func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof { + if m != nil { + return m.TriggerOneof + } + return nil +} + +func (m *Trigger) GetThreshold() *ThresholdTrigger { + if x, ok := m.GetTriggerOneof().(*Trigger_Threshold); ok { + return x.Threshold + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Trigger) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Trigger_Threshold)(nil), + } +} + +type OverloadAction struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OverloadAction) Reset() { *m = OverloadAction{} } +func (m *OverloadAction) String() string { return proto.CompactTextString(m) } +func (*OverloadAction) ProtoMessage() {} +func (*OverloadAction) Descriptor() ([]byte, []int) { + return fileDescriptor_c3380c1aa89ddd52, []int{3} +} + +func (m *OverloadAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OverloadAction.Unmarshal(m, b) +} +func (m *OverloadAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OverloadAction.Marshal(b, m, deterministic) +} +func (m *OverloadAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_OverloadAction.Merge(m, src) +} +func (m *OverloadAction) XXX_Size() int { + return xxx_messageInfo_OverloadAction.Size(m) +} +func (m *OverloadAction) XXX_DiscardUnknown() { + xxx_messageInfo_OverloadAction.DiscardUnknown(m) +} + +var xxx_messageInfo_OverloadAction proto.InternalMessageInfo + +func (m *OverloadAction) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *OverloadAction) GetTriggers() []*Trigger { + if m != nil { + return m.Triggers + } + return nil +} + +type OverloadManager struct { + RefreshInterval *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"` + ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"` + Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OverloadManager) Reset() { *m = OverloadManager{} } +func (m *OverloadManager) String() string { return proto.CompactTextString(m) } +func (*OverloadManager) ProtoMessage() {} +func (*OverloadManager) Descriptor() ([]byte, []int) { + return fileDescriptor_c3380c1aa89ddd52, []int{4} +} + +func (m *OverloadManager) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OverloadManager.Unmarshal(m, b) +} +func (m *OverloadManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OverloadManager.Marshal(b, m, deterministic) +} +func (m *OverloadManager) XXX_Merge(src proto.Message) { + xxx_messageInfo_OverloadManager.Merge(m, src) +} +func (m *OverloadManager) XXX_Size() int { + return xxx_messageInfo_OverloadManager.Size(m) +} +func (m *OverloadManager) XXX_DiscardUnknown() { + xxx_messageInfo_OverloadManager.DiscardUnknown(m) +} + +var xxx_messageInfo_OverloadManager proto.InternalMessageInfo + +func (m *OverloadManager) GetRefreshInterval() *duration.Duration { + if m != nil { + return m.RefreshInterval + } + return nil +} + +func (m *OverloadManager) GetResourceMonitors() []*ResourceMonitor { + if m != nil { + return m.ResourceMonitors + } + return nil +} + +func (m *OverloadManager) GetActions() []*OverloadAction { + if m != nil { + return m.Actions + } + return nil +} + +func init() { + proto.RegisterType((*ResourceMonitor)(nil), "envoy.config.overload.v2alpha.ResourceMonitor") + proto.RegisterType((*ThresholdTrigger)(nil), "envoy.config.overload.v2alpha.ThresholdTrigger") + proto.RegisterType((*Trigger)(nil), "envoy.config.overload.v2alpha.Trigger") + proto.RegisterType((*OverloadAction)(nil), "envoy.config.overload.v2alpha.OverloadAction") + proto.RegisterType((*OverloadManager)(nil), "envoy.config.overload.v2alpha.OverloadManager") +} + +func init() { + proto.RegisterFile("envoy/config/overload/v2alpha/overload.proto", fileDescriptor_c3380c1aa89ddd52) +} + +var fileDescriptor_c3380c1aa89ddd52 = []byte{ + // 525 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x4d, 0x6f, 0xd3, 0x3c, + 0x1c, 0xaf, 0xd3, 0xad, 0xed, 0xdc, 0xa7, 0x4f, 0x8b, 0x55, 0xa9, 0xed, 0x60, 0xa8, 0xca, 0x01, + 0x15, 0xc1, 0x12, 0xa9, 0x88, 0x03, 0x27, 0x54, 0x33, 0x41, 0x91, 0x98, 0x36, 0x85, 0xdd, 0x23, + 0xaf, 0x71, 0xd3, 0x48, 0x99, 0x1d, 0x39, 0x4e, 0x44, 0xc4, 0x85, 0x1b, 0x27, 0x2e, 0x7c, 0x11, + 0xee, 0x7c, 0x02, 0xae, 0x7c, 0x13, 0x8e, 0xa8, 0x27, 0x14, 0xdb, 0x29, 0xac, 0x93, 0xda, 0x9c, + 0xa2, 0xff, 0xef, 0xc5, 0xbf, 0xff, 0x0b, 0x7c, 0x4a, 0x59, 0xce, 0x0b, 0x77, 0xc1, 0xd9, 0x32, + 0x0a, 0x5d, 0x9e, 0x53, 0x11, 0x73, 0x12, 0xb8, 0xf9, 0x94, 0xc4, 0xc9, 0x8a, 0x6c, 0x0a, 0x4e, + 0x22, 0xb8, 0xe4, 0xe8, 0x44, 0xb1, 0x1d, 0xcd, 0x76, 0x36, 0xa0, 0x61, 0x1f, 0x8f, 0x42, 0xce, + 0xc3, 0x98, 0xba, 0x8a, 0x7c, 0x9d, 0x2d, 0x5d, 0xc2, 0x0a, 0xad, 0x3c, 0x7e, 0xb8, 0x0d, 0x05, + 0x99, 0x20, 0x32, 0xe2, 0xcc, 0xe0, 0x0f, 0xb6, 0xf1, 0x54, 0x8a, 0x6c, 0x21, 0x0d, 0x7a, 0x92, + 0x05, 0x09, 0x71, 0x09, 0x63, 0x5c, 0x2a, 0x51, 0xea, 0xa6, 0x92, 0xc8, 0x2c, 0x35, 0xf0, 0x20, + 0x27, 0x71, 0x14, 0x10, 0x49, 0xdd, 0xea, 0x47, 0x03, 0xf6, 0x37, 0x00, 0xbb, 0x1e, 0x4d, 0x79, + 0x26, 0x16, 0xf4, 0x9c, 0xb3, 0x48, 0x72, 0x81, 0xee, 0xc3, 0x03, 0x46, 0x6e, 0xe8, 0x10, 0x8c, + 0xc1, 0xe4, 0x08, 0x37, 0xd7, 0xf8, 0x40, 0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x07, 0xfb, 0xb3, 0x05, + 0xbb, 0xd5, 0xeb, 0xe7, 0x84, 0x91, 0x72, 0x28, 0x67, 0xb0, 0x27, 0xe8, 0xb2, 0x0c, 0xed, 0x47, + 0x4c, 0x52, 0x91, 0x93, 0x58, 0x45, 0x69, 0x4f, 0x47, 0x77, 0x36, 0x76, 0x66, 0xce, 0xd4, 0xeb, + 0x1a, 0xc9, 0x5b, 0xa3, 0x40, 0x14, 0xde, 0x13, 0xe6, 0xb4, 0xfc, 0x1b, 0x7d, 0x5b, 0x55, 0x60, + 0x67, 0x4f, 0xe0, 0xad, 0x93, 0xfc, 0x27, 0x78, 0x4f, 0xdc, 0x86, 0x52, 0xf4, 0x06, 0x36, 0x89, + 0x9a, 0x5a, 0x3a, 0xac, 0x2b, 0xf3, 0xd3, 0x3d, 0xe6, 0xb7, 0x67, 0xed, 0x55, 0x6a, 0xfc, 0xfa, + 0xfb, 0xa7, 0x1f, 0x3f, 0x1b, 0x56, 0x0f, 0xc0, 0x27, 0x11, 0xd7, 0x1e, 0x89, 0xe0, 0x1f, 0x8a, + 0xdd, 0x76, 0xb8, 0x53, 0xf9, 0x5d, 0x96, 0x23, 0xb9, 0x04, 0xd7, 0x0d, 0x35, 0x9b, 0x67, 0x7f, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x2a, 0x41, 0x8b, 0x3a, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.validate.go new file mode 100644 index 000000000..abae20d6e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha/overload.pb.validate.go @@ -0,0 +1,508 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/overload/v2alpha/overload.proto + +package envoy_config_overload_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _overload_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ResourceMonitor with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ResourceMonitor) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return ResourceMonitorValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.ConfigType.(type) { + + case *ResourceMonitor_Config: + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceMonitorValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ResourceMonitor_TypedConfig: + + if v, ok := interface{}(m.GetTypedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceMonitorValidationError{ + field: "TypedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ResourceMonitorValidationError is the validation error returned by +// ResourceMonitor.Validate if the designated constraints aren't met. +type ResourceMonitorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceMonitorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceMonitorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceMonitorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceMonitorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceMonitorValidationError) ErrorName() string { return "ResourceMonitorValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceMonitorValidationError) 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 %sResourceMonitor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceMonitorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceMonitorValidationError{} + +// Validate checks the field values on ThresholdTrigger with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ThresholdTrigger) Validate() error { + if m == nil { + return nil + } + + if val := m.GetValue(); val < 0 || val > 1 { + return ThresholdTriggerValidationError{ + field: "Value", + reason: "value must be inside range [0, 1]", + } + } + + return nil +} + +// ThresholdTriggerValidationError is the validation error returned by +// ThresholdTrigger.Validate if the designated constraints aren't met. +type ThresholdTriggerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThresholdTriggerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThresholdTriggerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThresholdTriggerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThresholdTriggerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThresholdTriggerValidationError) ErrorName() string { return "ThresholdTriggerValidationError" } + +// Error satisfies the builtin error interface +func (e ThresholdTriggerValidationError) 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 %sThresholdTrigger.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThresholdTriggerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThresholdTriggerValidationError{} + +// Validate checks the field values on Trigger with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Trigger) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return TriggerValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.TriggerOneof.(type) { + + case *Trigger_Threshold: + + if v, ok := interface{}(m.GetThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TriggerValidationError{ + field: "Threshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return TriggerValidationError{ + field: "TriggerOneof", + reason: "value is required", + } + + } + + return nil +} + +// TriggerValidationError is the validation error returned by Trigger.Validate +// if the designated constraints aren't met. +type TriggerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TriggerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TriggerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TriggerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TriggerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TriggerValidationError) ErrorName() string { return "TriggerValidationError" } + +// Error satisfies the builtin error interface +func (e TriggerValidationError) 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 %sTrigger.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TriggerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TriggerValidationError{} + +// Validate checks the field values on OverloadAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OverloadAction) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return OverloadActionValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetTriggers()) < 1 { + return OverloadActionValidationError{ + field: "Triggers", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetTriggers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadActionValidationError{ + field: fmt.Sprintf("Triggers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OverloadActionValidationError is the validation error returned by +// OverloadAction.Validate if the designated constraints aren't met. +type OverloadActionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OverloadActionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OverloadActionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OverloadActionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OverloadActionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OverloadActionValidationError) ErrorName() string { return "OverloadActionValidationError" } + +// Error satisfies the builtin error interface +func (e OverloadActionValidationError) 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 %sOverloadAction.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OverloadActionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OverloadActionValidationError{} + +// Validate checks the field values on OverloadManager with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *OverloadManager) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRefreshInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: "RefreshInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetResourceMonitors()) < 1 { + return OverloadManagerValidationError{ + field: "ResourceMonitors", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetResourceMonitors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: fmt.Sprintf("ResourceMonitors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetActions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: fmt.Sprintf("Actions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OverloadManagerValidationError is the validation error returned by +// OverloadManager.Validate if the designated constraints aren't met. +type OverloadManagerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OverloadManagerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OverloadManagerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OverloadManagerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OverloadManagerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OverloadManagerValidationError) ErrorName() string { return "OverloadManagerValidationError" } + +// Error satisfies the builtin error interface +func (e OverloadManagerValidationError) 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 %sOverloadManager.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OverloadManagerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OverloadManagerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.go new file mode 100644 index 000000000..44751d624 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.go @@ -0,0 +1,384 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/overload/v3/overload.proto + +package envoy_config_overload_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ResourceMonitor struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to ConfigType: + // *ResourceMonitor_HiddenEnvoyDeprecatedConfig + // *ResourceMonitor_TypedConfig + ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceMonitor) Reset() { *m = ResourceMonitor{} } +func (m *ResourceMonitor) String() string { return proto.CompactTextString(m) } +func (*ResourceMonitor) ProtoMessage() {} +func (*ResourceMonitor) Descriptor() ([]byte, []int) { + return fileDescriptor_1b32999822dfa297, []int{0} +} + +func (m *ResourceMonitor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceMonitor.Unmarshal(m, b) +} +func (m *ResourceMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceMonitor.Marshal(b, m, deterministic) +} +func (m *ResourceMonitor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceMonitor.Merge(m, src) +} +func (m *ResourceMonitor) XXX_Size() int { + return xxx_messageInfo_ResourceMonitor.Size(m) +} +func (m *ResourceMonitor) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceMonitor.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceMonitor proto.InternalMessageInfo + +func (m *ResourceMonitor) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isResourceMonitor_ConfigType interface { + isResourceMonitor_ConfigType() +} + +type ResourceMonitor_HiddenEnvoyDeprecatedConfig struct { + HiddenEnvoyDeprecatedConfig *_struct.Struct `protobuf:"bytes,2,opt,name=hidden_envoy_deprecated_config,json=hiddenEnvoyDeprecatedConfig,proto3,oneof"` +} + +type ResourceMonitor_TypedConfig struct { + TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` +} + +func (*ResourceMonitor_HiddenEnvoyDeprecatedConfig) isResourceMonitor_ConfigType() {} + +func (*ResourceMonitor_TypedConfig) isResourceMonitor_ConfigType() {} + +func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +// Deprecated: Do not use. +func (m *ResourceMonitor) GetHiddenEnvoyDeprecatedConfig() *_struct.Struct { + if x, ok := m.GetConfigType().(*ResourceMonitor_HiddenEnvoyDeprecatedConfig); ok { + return x.HiddenEnvoyDeprecatedConfig + } + return nil +} + +func (m *ResourceMonitor) GetTypedConfig() *any.Any { + if x, ok := m.GetConfigType().(*ResourceMonitor_TypedConfig); ok { + return x.TypedConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ResourceMonitor) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ResourceMonitor_HiddenEnvoyDeprecatedConfig)(nil), + (*ResourceMonitor_TypedConfig)(nil), + } +} + +type ThresholdTrigger struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThresholdTrigger) Reset() { *m = ThresholdTrigger{} } +func (m *ThresholdTrigger) String() string { return proto.CompactTextString(m) } +func (*ThresholdTrigger) ProtoMessage() {} +func (*ThresholdTrigger) Descriptor() ([]byte, []int) { + return fileDescriptor_1b32999822dfa297, []int{1} +} + +func (m *ThresholdTrigger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThresholdTrigger.Unmarshal(m, b) +} +func (m *ThresholdTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThresholdTrigger.Marshal(b, m, deterministic) +} +func (m *ThresholdTrigger) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThresholdTrigger.Merge(m, src) +} +func (m *ThresholdTrigger) XXX_Size() int { + return xxx_messageInfo_ThresholdTrigger.Size(m) +} +func (m *ThresholdTrigger) XXX_DiscardUnknown() { + xxx_messageInfo_ThresholdTrigger.DiscardUnknown(m) +} + +var xxx_messageInfo_ThresholdTrigger proto.InternalMessageInfo + +func (m *ThresholdTrigger) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +type Trigger struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to TriggerOneof: + // *Trigger_Threshold + TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Trigger) Reset() { *m = Trigger{} } +func (m *Trigger) String() string { return proto.CompactTextString(m) } +func (*Trigger) ProtoMessage() {} +func (*Trigger) Descriptor() ([]byte, []int) { + return fileDescriptor_1b32999822dfa297, []int{2} +} + +func (m *Trigger) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Trigger.Unmarshal(m, b) +} +func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Trigger.Marshal(b, m, deterministic) +} +func (m *Trigger) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trigger.Merge(m, src) +} +func (m *Trigger) XXX_Size() int { + return xxx_messageInfo_Trigger.Size(m) +} +func (m *Trigger) XXX_DiscardUnknown() { + xxx_messageInfo_Trigger.DiscardUnknown(m) +} + +var xxx_messageInfo_Trigger proto.InternalMessageInfo + +func (m *Trigger) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isTrigger_TriggerOneof interface { + isTrigger_TriggerOneof() +} + +type Trigger_Threshold struct { + Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"` +} + +func (*Trigger_Threshold) isTrigger_TriggerOneof() {} + +func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof { + if m != nil { + return m.TriggerOneof + } + return nil +} + +func (m *Trigger) GetThreshold() *ThresholdTrigger { + if x, ok := m.GetTriggerOneof().(*Trigger_Threshold); ok { + return x.Threshold + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Trigger) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Trigger_Threshold)(nil), + } +} + +type OverloadAction struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OverloadAction) Reset() { *m = OverloadAction{} } +func (m *OverloadAction) String() string { return proto.CompactTextString(m) } +func (*OverloadAction) ProtoMessage() {} +func (*OverloadAction) Descriptor() ([]byte, []int) { + return fileDescriptor_1b32999822dfa297, []int{3} +} + +func (m *OverloadAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OverloadAction.Unmarshal(m, b) +} +func (m *OverloadAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OverloadAction.Marshal(b, m, deterministic) +} +func (m *OverloadAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_OverloadAction.Merge(m, src) +} +func (m *OverloadAction) XXX_Size() int { + return xxx_messageInfo_OverloadAction.Size(m) +} +func (m *OverloadAction) XXX_DiscardUnknown() { + xxx_messageInfo_OverloadAction.DiscardUnknown(m) +} + +var xxx_messageInfo_OverloadAction proto.InternalMessageInfo + +func (m *OverloadAction) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *OverloadAction) GetTriggers() []*Trigger { + if m != nil { + return m.Triggers + } + return nil +} + +type OverloadManager struct { + RefreshInterval *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"` + ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"` + Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OverloadManager) Reset() { *m = OverloadManager{} } +func (m *OverloadManager) String() string { return proto.CompactTextString(m) } +func (*OverloadManager) ProtoMessage() {} +func (*OverloadManager) Descriptor() ([]byte, []int) { + return fileDescriptor_1b32999822dfa297, []int{4} +} + +func (m *OverloadManager) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OverloadManager.Unmarshal(m, b) +} +func (m *OverloadManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OverloadManager.Marshal(b, m, deterministic) +} +func (m *OverloadManager) XXX_Merge(src proto.Message) { + xxx_messageInfo_OverloadManager.Merge(m, src) +} +func (m *OverloadManager) XXX_Size() int { + return xxx_messageInfo_OverloadManager.Size(m) +} +func (m *OverloadManager) XXX_DiscardUnknown() { + xxx_messageInfo_OverloadManager.DiscardUnknown(m) +} + +var xxx_messageInfo_OverloadManager proto.InternalMessageInfo + +func (m *OverloadManager) GetRefreshInterval() *duration.Duration { + if m != nil { + return m.RefreshInterval + } + return nil +} + +func (m *OverloadManager) GetResourceMonitors() []*ResourceMonitor { + if m != nil { + return m.ResourceMonitors + } + return nil +} + +func (m *OverloadManager) GetActions() []*OverloadAction { + if m != nil { + return m.Actions + } + return nil +} + +func init() { + proto.RegisterType((*ResourceMonitor)(nil), "envoy.config.overload.v3.ResourceMonitor") + proto.RegisterType((*ThresholdTrigger)(nil), "envoy.config.overload.v3.ThresholdTrigger") + proto.RegisterType((*Trigger)(nil), "envoy.config.overload.v3.Trigger") + proto.RegisterType((*OverloadAction)(nil), "envoy.config.overload.v3.OverloadAction") + proto.RegisterType((*OverloadManager)(nil), "envoy.config.overload.v3.OverloadManager") +} + +func init() { + proto.RegisterFile("envoy/config/overload/v3/overload.proto", fileDescriptor_1b32999822dfa297) +} + +var fileDescriptor_1b32999822dfa297 = []byte{ + // 617 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x3f, 0x6f, 0xd3, 0x40, + 0x1c, 0xcd, 0x39, 0xfd, 0x7b, 0xa1, 0x34, 0x58, 0x95, 0xea, 0xb6, 0x50, 0xa5, 0x91, 0xa0, 0x29, + 0x6a, 0x6d, 0x94, 0xc0, 0x40, 0x16, 0xd4, 0xa3, 0x88, 0x82, 0x54, 0x51, 0x99, 0xee, 0xe6, 0x1a, + 0x5f, 0x1c, 0x4b, 0xee, 0x9d, 0x75, 0x3e, 0x5b, 0xcd, 0xc6, 0xc8, 0xdc, 0x91, 0xaf, 0xc0, 0x88, + 0xc4, 0xc0, 0x8e, 0xc4, 0xca, 0x37, 0x61, 0x44, 0x9d, 0x90, 0xef, 0xce, 0x89, 0xe2, 0x28, 0x01, + 0x4f, 0x27, 0xbf, 0xdf, 0x7b, 0xbf, 0xf7, 0x9e, 0xcf, 0x70, 0x9f, 0xd0, 0x8c, 0x0d, 0x9d, 0x1e, + 0xa3, 0xfd, 0x30, 0x70, 0x58, 0x46, 0x78, 0xc4, 0xb0, 0xef, 0x64, 0x9d, 0xd1, 0xd9, 0x8e, 0x39, + 0x13, 0xcc, 0xb4, 0xe4, 0xa0, 0xad, 0x06, 0xed, 0x11, 0x98, 0x75, 0xb6, 0xb7, 0x02, 0xc6, 0x82, + 0x88, 0x38, 0x72, 0xee, 0x32, 0xed, 0x3b, 0x98, 0x0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f1, 0x42, 0x2a, 0x08, 0xcf, 0x70, 0x24, 0xad, 0xd7, 0xda, 0x5b, + 0x53, 0x17, 0xef, 0x44, 0xff, 0xbd, 0xee, 0xba, 0xa6, 0xbc, 0xd1, 0x0c, 0xf3, 0x03, 0xbc, 0xc7, + 0xf5, 0xe5, 0xf2, 0xae, 0xd4, 0xed, 0x2a, 0x02, 0x1e, 0xcc, 0x0e, 0x58, 0xbe, 0x8f, 0xe3, 0xa0, + 0x75, 0x3e, 0x09, 0x25, 0x26, 0x82, 0xcb, 0x58, 0xa6, 0x48, 0xac, 0xaa, 0xd4, 0x6d, 0xcd, 0xd6, + 0x9d, 0x8c, 0xed, 0x16, 0xc4, 0xff, 0xfc, 0x4b, 0x4a, 0x0d, 0xa1, 0xe3, 0xef, 0x1f, 0x7f, 0xfe, + 0x5a, 0x32, 0xea, 0x06, 0x7c, 0x14, 0x32, 0xb5, 0x34, 0xe6, 0xec, 0x7a, 0x38, 0x73, 0x3f, 0x5a, + 0x2b, 0x24, 0xce, 0xf3, 0xe6, 0xce, 0xc1, 0xe5, 0x92, 0xac, 0xb0, 0xf3, 0x37, 0x00, 0x00, 0xff, + 0xff, 0x43, 0x57, 0x6d, 0xa2, 0x6e, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.validate.go new file mode 100644 index 000000000..62cae8092 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/overload/v3/overload.pb.validate.go @@ -0,0 +1,508 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/overload/v3/overload.proto + +package envoy_config_overload_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _overload_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ResourceMonitor with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ResourceMonitor) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return ResourceMonitorValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.ConfigType.(type) { + + case *ResourceMonitor_HiddenEnvoyDeprecatedConfig: + + if v, ok := interface{}(m.GetHiddenEnvoyDeprecatedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceMonitorValidationError{ + field: "HiddenEnvoyDeprecatedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ResourceMonitor_TypedConfig: + + if v, ok := interface{}(m.GetTypedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceMonitorValidationError{ + field: "TypedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ResourceMonitorValidationError is the validation error returned by +// ResourceMonitor.Validate if the designated constraints aren't met. +type ResourceMonitorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceMonitorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceMonitorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceMonitorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceMonitorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceMonitorValidationError) ErrorName() string { return "ResourceMonitorValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceMonitorValidationError) 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 %sResourceMonitor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceMonitorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceMonitorValidationError{} + +// Validate checks the field values on ThresholdTrigger with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ThresholdTrigger) Validate() error { + if m == nil { + return nil + } + + if val := m.GetValue(); val < 0 || val > 1 { + return ThresholdTriggerValidationError{ + field: "Value", + reason: "value must be inside range [0, 1]", + } + } + + return nil +} + +// ThresholdTriggerValidationError is the validation error returned by +// ThresholdTrigger.Validate if the designated constraints aren't met. +type ThresholdTriggerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThresholdTriggerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThresholdTriggerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThresholdTriggerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThresholdTriggerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThresholdTriggerValidationError) ErrorName() string { return "ThresholdTriggerValidationError" } + +// Error satisfies the builtin error interface +func (e ThresholdTriggerValidationError) 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 %sThresholdTrigger.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThresholdTriggerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThresholdTriggerValidationError{} + +// Validate checks the field values on Trigger with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Trigger) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return TriggerValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.TriggerOneof.(type) { + + case *Trigger_Threshold: + + if v, ok := interface{}(m.GetThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TriggerValidationError{ + field: "Threshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return TriggerValidationError{ + field: "TriggerOneof", + reason: "value is required", + } + + } + + return nil +} + +// TriggerValidationError is the validation error returned by Trigger.Validate +// if the designated constraints aren't met. +type TriggerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TriggerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TriggerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TriggerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TriggerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TriggerValidationError) ErrorName() string { return "TriggerValidationError" } + +// Error satisfies the builtin error interface +func (e TriggerValidationError) 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 %sTrigger.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TriggerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TriggerValidationError{} + +// Validate checks the field values on OverloadAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OverloadAction) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return OverloadActionValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetTriggers()) < 1 { + return OverloadActionValidationError{ + field: "Triggers", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetTriggers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadActionValidationError{ + field: fmt.Sprintf("Triggers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OverloadActionValidationError is the validation error returned by +// OverloadAction.Validate if the designated constraints aren't met. +type OverloadActionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OverloadActionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OverloadActionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OverloadActionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OverloadActionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OverloadActionValidationError) ErrorName() string { return "OverloadActionValidationError" } + +// Error satisfies the builtin error interface +func (e OverloadActionValidationError) 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 %sOverloadAction.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OverloadActionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OverloadActionValidationError{} + +// Validate checks the field values on OverloadManager with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *OverloadManager) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRefreshInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: "RefreshInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetResourceMonitors()) < 1 { + return OverloadManagerValidationError{ + field: "ResourceMonitors", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetResourceMonitors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: fmt.Sprintf("ResourceMonitors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetActions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OverloadManagerValidationError{ + field: fmt.Sprintf("Actions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OverloadManagerValidationError is the validation error returned by +// OverloadManager.Validate if the designated constraints aren't met. +type OverloadManagerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OverloadManagerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OverloadManagerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OverloadManagerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OverloadManagerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OverloadManagerValidationError) ErrorName() string { return "OverloadManagerValidationError" } + +// Error satisfies the builtin error interface +func (e OverloadManagerValidationError) 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 %sOverloadManager.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OverloadManagerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OverloadManagerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.go new file mode 100644 index 000000000..2860956c3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/ratelimit/v2/rls.proto + +package envoy_config_ratelimit_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitServiceConfig struct { + GrpcService *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitServiceConfig) Reset() { *m = RateLimitServiceConfig{} } +func (m *RateLimitServiceConfig) String() string { return proto.CompactTextString(m) } +func (*RateLimitServiceConfig) ProtoMessage() {} +func (*RateLimitServiceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_3154ecf621be8917, []int{0} +} + +func (m *RateLimitServiceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitServiceConfig.Unmarshal(m, b) +} +func (m *RateLimitServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitServiceConfig.Marshal(b, m, deterministic) +} +func (m *RateLimitServiceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitServiceConfig.Merge(m, src) +} +func (m *RateLimitServiceConfig) XXX_Size() int { + return xxx_messageInfo_RateLimitServiceConfig.Size(m) +} +func (m *RateLimitServiceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitServiceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitServiceConfig proto.InternalMessageInfo + +func (m *RateLimitServiceConfig) GetGrpcService() *core.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimitServiceConfig)(nil), "envoy.config.ratelimit.v2.RateLimitServiceConfig") +} + +func init() { + proto.RegisterFile("envoy/config/ratelimit/v2/rls.proto", fileDescriptor_3154ecf621be8917) +} + +var fileDescriptor_3154ecf621be8917 = []byte{ + // 262 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xcd, 0x4a, 0xc4, 0x30, + 0x14, 0x85, 0x49, 0xad, 0x43, 0xe9, 0xb8, 0x28, 0xb3, 0xf0, 0xa7, 0xa0, 0x88, 0x0a, 0xba, 0x4a, + 0xa0, 0xae, 0xdd, 0xd4, 0x85, 0x30, 0xba, 0x18, 0xea, 0x03, 0xc8, 0x35, 0x13, 0x4b, 0xa0, 0xe6, + 0xc6, 0xe4, 0x4e, 0x70, 0x76, 0xae, 0x7d, 0x24, 0x9f, 0xc0, 0xad, 0xaf, 0xe3, 0x4a, 0xda, 0xd4, + 0x9f, 0x8d, 0xbb, 0x90, 0x9c, 0xf3, 0x9d, 0x8f, 0xe4, 0xc7, 0xca, 0x04, 0x5c, 0x0b, 0x89, 0xe6, + 0x41, 0xb7, 0xc2, 0x01, 0xa9, 0x4e, 0x3f, 0x6a, 0x12, 0xa1, 0x12, 0xae, 0xf3, 0xdc, 0x3a, 0x24, + 0x9c, 0xed, 0x0d, 0x21, 0x1e, 0x43, 0xfc, 0x27, 0xc4, 0x43, 0x55, 0x9e, 0xc4, 0x3e, 0x58, 0xdd, + 0x57, 0x24, 0x3a, 0x25, 0x5a, 0x67, 0xe5, 0x9d, 0x57, 0x2e, 0x68, 0xa9, 0x22, 0xa0, 0xdc, 0x5f, + 0x2d, 0x2d, 0x08, 0x30, 0x06, 0x09, 0x48, 0xa3, 0xf1, 0xc2, 0x13, 0xd0, 0x6a, 0xe4, 0x97, 0x3b, + 0x01, 0x3a, 0xbd, 0x04, 0x52, 0xe2, 0xfb, 0x10, 0x1f, 0x8e, 0x9e, 0xf2, 0xed, 0x06, 0x48, 0xdd, + 0xf4, 0x6b, 0xb7, 0x91, 0x78, 0x39, 0x48, 0xcc, 0xae, 0xf3, 0xad, 0xbf, 0x3b, 0xbb, 0xc9, 0x21, + 0x3b, 0x9b, 0x56, 0x07, 0x3c, 0x9a, 0x82, 0xd5, 0x3c, 0x54, 0xbc, 0xd7, 0xe1, 0x57, 0xce, 0xca, + 0xb1, 0x5b, 0x67, 0x9f, 0xf5, 0xe6, 0x2b, 0x4b, 0x0a, 0xd6, 0x4c, 0xdb, 0xdf, 0xeb, 0x79, 0x9a, + 0xb1, 0x22, 0x99, 0xa7, 0xd9, 0x46, 0x91, 0xd6, 0x17, 0x6f, 0x2f, 0xef, 0x1f, 0x93, 0xa4, 0x60, + 0xf9, 0xa9, 0xc6, 0x88, 0xb3, 0x0e, 0x9f, 0xd7, 0xfc, 0xdf, 0x3f, 0xa8, 0xb3, 0xa6, 0xf3, 0x8b, + 0xde, 0x77, 0xc1, 0xee, 0x27, 0x83, 0xf8, 0xf9, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x37, 0x76, + 0xe2, 0x11, 0x58, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.validate.go new file mode 100644 index 000000000..89e1ff98c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2/rls.pb.validate.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/ratelimit/v2/rls.proto + +package envoy_config_ratelimit_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rls_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitServiceConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitServiceConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetGrpcService() == nil { + return RateLimitServiceConfigValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitServiceConfigValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitServiceConfigValidationError is the validation error returned by +// RateLimitServiceConfig.Validate if the designated constraints aren't met. +type RateLimitServiceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitServiceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitServiceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitServiceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitServiceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitServiceConfigValidationError) ErrorName() string { + return "RateLimitServiceConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitServiceConfigValidationError) 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 %sRateLimitServiceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitServiceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitServiceConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.go new file mode 100644 index 000000000..7a810fe6e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.go @@ -0,0 +1,93 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/ratelimit/v3/rls.proto + +package envoy_config_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitServiceConfig struct { + GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitServiceConfig) Reset() { *m = RateLimitServiceConfig{} } +func (m *RateLimitServiceConfig) String() string { return proto.CompactTextString(m) } +func (*RateLimitServiceConfig) ProtoMessage() {} +func (*RateLimitServiceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ca555cbfdc4e6f71, []int{0} +} + +func (m *RateLimitServiceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitServiceConfig.Unmarshal(m, b) +} +func (m *RateLimitServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitServiceConfig.Marshal(b, m, deterministic) +} +func (m *RateLimitServiceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitServiceConfig.Merge(m, src) +} +func (m *RateLimitServiceConfig) XXX_Size() int { + return xxx_messageInfo_RateLimitServiceConfig.Size(m) +} +func (m *RateLimitServiceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitServiceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitServiceConfig proto.InternalMessageInfo + +func (m *RateLimitServiceConfig) GetGrpcService() *v3.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimitServiceConfig)(nil), "envoy.config.ratelimit.v3.RateLimitServiceConfig") +} + +func init() { + proto.RegisterFile("envoy/config/ratelimit/v3/rls.proto", fileDescriptor_ca555cbfdc4e6f71) +} + +var fileDescriptor_ca555cbfdc4e6f71 = []byte{ + // 287 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x4a, 0x2c, 0x49, 0xcd, 0xc9, 0xcc, + 0xcd, 0x2c, 0xd1, 0x2f, 0x33, 0xd6, 0x2f, 0xca, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x92, 0x04, 0x2b, 0xd2, 0x83, 0x28, 0xd2, 0x83, 0x2b, 0xd2, 0x2b, 0x33, 0x96, 0x52, 0x47, 0xd1, + 0x9f, 0x9c, 0x5f, 0x94, 0x0a, 0xd2, 0x9a, 0x5e, 0x54, 0x90, 0x1c, 0x5f, 0x9c, 0x5a, 0x54, 0x96, + 0x99, 0x9c, 0x0a, 0x31, 0x43, 0x4a, 0xb6, 0x34, 0xa5, 0x20, 0x51, 0x3f, 0x31, 0x2f, 0x2f, 0xbf, + 0x24, 0xb1, 0x24, 0x33, 0x3f, 0xaf, 0x58, 0xbf, 0xb8, 0x24, 0xb1, 0xa4, 0x14, 0x6a, 0x85, 0x94, + 0x22, 0x86, 0x74, 0x59, 0x6a, 0x51, 0x71, 0x66, 0x7e, 0x5e, 0x66, 0x5e, 0x3a, 0x54, 0x89, 0x78, + 0x59, 0x62, 0x4e, 0x66, 0x4a, 0x62, 0x49, 0xaa, 0x3e, 0x8c, 0x01, 0x91, 0x50, 0x5a, 0xcb, 0xc8, + 0x25, 0x16, 0x94, 0x58, 0x92, 0xea, 0x03, 0x72, 0x54, 0x30, 0xc4, 0x56, 0x67, 0xb0, 0x83, 0x84, + 0xfc, 0xb8, 0x78, 0x90, 0xdd, 0x22, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4, 0xa8, 0x87, 0xe2, + 0x21, 0x90, 0xab, 0xf5, 0xca, 0x8c, 0xf5, 0xdc, 0x8b, 0x0a, 0x92, 0xa1, 0xda, 0x9d, 0x38, 0x7e, + 0x39, 0xb1, 0x76, 0x31, 0x32, 0x09, 0x30, 0x06, 0x71, 0xa7, 0x23, 0x84, 0xad, 0xcc, 0x67, 0x1d, + 0xed, 0x90, 0x33, 0xe2, 0x32, 0xc0, 0x15, 0x20, 0x46, 0x7a, 0xd8, 0x1d, 0xe2, 0xc5, 0xc2, 0xc1, + 0x28, 0xc0, 0xe4, 0xc5, 0xc2, 0xc1, 0x2c, 0xc0, 0xe2, 0x64, 0xbb, 0xab, 0xe1, 0xc4, 0x45, 0x36, + 0x26, 0x01, 0x26, 0x2e, 0xf5, 0xcc, 0x7c, 0x88, 0x53, 0x0a, 0x8a, 0xf2, 0x2b, 0x2a, 0xf5, 0x70, + 0x06, 0xb3, 0x13, 0x47, 0x50, 0x4e, 0x71, 0x00, 0xc8, 0xb3, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x5f, + 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x8c, 0x01, 0x9e, 0xbb, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.validate.go new file mode 100644 index 000000000..16a8b6bef --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3/rls.pb.validate.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/ratelimit/v3/rls.proto + +package envoy_config_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rls_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitServiceConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitServiceConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetGrpcService() == nil { + return RateLimitServiceConfigValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitServiceConfigValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitServiceConfigValidationError is the validation error returned by +// RateLimitServiceConfig.Validate if the designated constraints aren't met. +type RateLimitServiceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitServiceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitServiceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitServiceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitServiceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitServiceConfigValidationError) ErrorName() string { + return "RateLimitServiceConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitServiceConfigValidationError) 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 %sRateLimitServiceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitServiceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitServiceConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.go new file mode 100644 index 000000000..de4dedd9a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.proto + +package envoy_config_resource_monitor_fixed_heap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FixedHeapConfig struct { + MaxHeapSizeBytes uint64 `protobuf:"varint,1,opt,name=max_heap_size_bytes,json=maxHeapSizeBytes,proto3" json:"max_heap_size_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FixedHeapConfig) Reset() { *m = FixedHeapConfig{} } +func (m *FixedHeapConfig) String() string { return proto.CompactTextString(m) } +func (*FixedHeapConfig) ProtoMessage() {} +func (*FixedHeapConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_141ee15b3c15e2df, []int{0} +} + +func (m *FixedHeapConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FixedHeapConfig.Unmarshal(m, b) +} +func (m *FixedHeapConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FixedHeapConfig.Marshal(b, m, deterministic) +} +func (m *FixedHeapConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FixedHeapConfig.Merge(m, src) +} +func (m *FixedHeapConfig) XXX_Size() int { + return xxx_messageInfo_FixedHeapConfig.Size(m) +} +func (m *FixedHeapConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FixedHeapConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FixedHeapConfig proto.InternalMessageInfo + +func (m *FixedHeapConfig) GetMaxHeapSizeBytes() uint64 { + if m != nil { + return m.MaxHeapSizeBytes + } + return 0 +} + +func init() { + proto.RegisterType((*FixedHeapConfig)(nil), "envoy.config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig") +} + +func init() { + proto.RegisterFile("envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.proto", fileDescriptor_141ee15b3c15e2df) +} + +var fileDescriptor_141ee15b3c15e2df = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0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 0x5d, 0x66, 0xbe, 0x1e, 0xd8, 0x07, 0x05, + 0x45, 0xf9, 0x15, 0x95, 0x7a, 0xa4, 0x7a, 0xc6, 0x89, 0x0f, 0xee, 0xa4, 0x00, 0x90, 0x23, 0x03, + 0x18, 0x93, 0xd8, 0xc0, 0xae, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xbf, 0x4a, 0x41, + 0x5c, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.validate.go new file mode 100644 index 000000000..ee2cb0289 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/resource_monitor/fixed_heap/v2alpha/fixed_heap.proto + +package envoy_config_resource_monitor_fixed_heap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _fixed_heap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FixedHeapConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *FixedHeapConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetMaxHeapSizeBytes() <= 0 { + return FixedHeapConfigValidationError{ + field: "MaxHeapSizeBytes", + reason: "value must be greater than 0", + } + } + + return nil +} + +// FixedHeapConfigValidationError is the validation error returned by +// FixedHeapConfig.Validate if the designated constraints aren't met. +type FixedHeapConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FixedHeapConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FixedHeapConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FixedHeapConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FixedHeapConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FixedHeapConfigValidationError) ErrorName() string { return "FixedHeapConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FixedHeapConfigValidationError) 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 %sFixedHeapConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FixedHeapConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FixedHeapConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.go new file mode 100644 index 000000000..a9c192f2b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.go @@ -0,0 +1,89 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.proto + +package envoy_config_resource_monitor_injected_resource_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type InjectedResourceConfig struct { + Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InjectedResourceConfig) Reset() { *m = InjectedResourceConfig{} } +func (m *InjectedResourceConfig) String() string { return proto.CompactTextString(m) } +func (*InjectedResourceConfig) ProtoMessage() {} +func (*InjectedResourceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_de2fb4e1cfb2f415, []int{0} +} + +func (m *InjectedResourceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InjectedResourceConfig.Unmarshal(m, b) +} +func (m *InjectedResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InjectedResourceConfig.Marshal(b, m, deterministic) +} +func (m *InjectedResourceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_InjectedResourceConfig.Merge(m, src) +} +func (m *InjectedResourceConfig) XXX_Size() int { + return xxx_messageInfo_InjectedResourceConfig.Size(m) +} +func (m *InjectedResourceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_InjectedResourceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_InjectedResourceConfig proto.InternalMessageInfo + +func (m *InjectedResourceConfig) GetFilename() string { + if m != nil { + return m.Filename + } + return "" +} + +func init() { + proto.RegisterType((*InjectedResourceConfig)(nil), "envoy.config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig") +} + +func init() { + proto.RegisterFile("envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.proto", fileDescriptor_de2fb4e1cfb2f415) +} + +var fileDescriptor_de2fb4e1cfb2f415 = []byte{ + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xf2, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, + 0x4e, 0x8d, 0xcf, 0xcd, 0xcf, 0xcb, 0x2c, 0xc9, 0x2f, 0xd2, 0xcf, 0xcc, 0xcb, 0x4a, 0x4d, 0x2e, + 0x49, 0x4d, 0x89, 0x87, 0xc9, 0xe8, 0x97, 0x19, 0x25, 0xe6, 0x14, 0x64, 0x24, 0x62, 0xca, 0xe8, + 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x99, 0x83, 0x0d, 0xd4, 0x83, 0x18, 0xa8, 0x87, 0x6e, 0xa0, + 0x1e, 0xa6, 0x36, 0xa8, 0x81, 0x52, 0xb2, 0xa5, 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, + 0x25, 0x89, 0x25, 0x99, 0xf9, 0x79, 0xc5, 0xfa, 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x73, + 0xa5, 0xc4, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x84, 0x92, + 0x2d, 0x97, 0x98, 0x27, 0xd4, 0xd0, 0x20, 0xa8, 0x99, 0xce, 0x60, 0xcb, 0x85, 0x94, 0xb9, 0x38, + 0xd2, 0x32, 0x73, 0x52, 0xf3, 0x12, 0x73, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0xd8, + 0x7f, 0x39, 0xb1, 0x14, 0x31, 0x29, 0x30, 0x06, 0xc1, 0x25, 0x9c, 0x32, 0x76, 0x35, 0x9c, 0xb8, + 0xc8, 0xc6, 0x24, 0xc0, 0xc8, 0xe5, 0x9a, 0x99, 0xaf, 0x07, 0x76, 0x7c, 0x41, 0x51, 0x7e, 0x45, + 0xa5, 0x1e, 0x99, 0xfe, 0x70, 0x12, 0x45, 0x77, 0x4d, 0x00, 0xc8, 0x99, 0x01, 0x8c, 0x49, 0x6c, + 0x60, 0xf7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x20, 0x29, 0x27, 0xc8, 0x73, 0x01, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.validate.go new file mode 100644 index 000000000..9b7e313ae --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/resource_monitor/injected_resource/v2alpha/injected_resource.proto + +package envoy_config_resource_monitor_injected_resource_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _injected_resource_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on InjectedResourceConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *InjectedResourceConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetFilename()) < 1 { + return InjectedResourceConfigValidationError{ + field: "Filename", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// InjectedResourceConfigValidationError is the validation error returned by +// InjectedResourceConfig.Validate if the designated constraints aren't met. +type InjectedResourceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e InjectedResourceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e InjectedResourceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e InjectedResourceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e InjectedResourceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e InjectedResourceConfigValidationError) ErrorName() string { + return "InjectedResourceConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e InjectedResourceConfigValidationError) 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 %sInjectedResourceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = InjectedResourceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = InjectedResourceConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.go new file mode 100644 index 000000000..cc68e7bf8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.go @@ -0,0 +1,77 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.proto + +package envoy_config_retry_omit_canary_hosts_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OmitCanaryHostsPredicate struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OmitCanaryHostsPredicate) Reset() { *m = OmitCanaryHostsPredicate{} } +func (m *OmitCanaryHostsPredicate) String() string { return proto.CompactTextString(m) } +func (*OmitCanaryHostsPredicate) ProtoMessage() {} +func (*OmitCanaryHostsPredicate) Descriptor() ([]byte, []int) { + return fileDescriptor_08501cb61947b43e, []int{0} +} + +func (m *OmitCanaryHostsPredicate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OmitCanaryHostsPredicate.Unmarshal(m, b) +} +func (m *OmitCanaryHostsPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OmitCanaryHostsPredicate.Marshal(b, m, deterministic) +} +func (m *OmitCanaryHostsPredicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_OmitCanaryHostsPredicate.Merge(m, src) +} +func (m *OmitCanaryHostsPredicate) XXX_Size() int { + return xxx_messageInfo_OmitCanaryHostsPredicate.Size(m) +} +func (m *OmitCanaryHostsPredicate) XXX_DiscardUnknown() { + xxx_messageInfo_OmitCanaryHostsPredicate.DiscardUnknown(m) +} + +var xxx_messageInfo_OmitCanaryHostsPredicate proto.InternalMessageInfo + +func init() { + proto.RegisterType((*OmitCanaryHostsPredicate)(nil), "envoy.config.retry.omit_canary_hosts.v2.OmitCanaryHostsPredicate") +} + +func init() { + proto.RegisterFile("envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.proto", fileDescriptor_08501cb61947b43e) +} + +var fileDescriptor_08501cb61947b43e = []byte{ + // 178 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x4a, 0x2d, 0x29, 0xaa, 0xd4, 0xcf, + 0xcf, 0xcd, 0x2c, 0x89, 0x4f, 0x4e, 0xcc, 0x4b, 0x2c, 0xaa, 0x8c, 0xcf, 0xc8, 0x2f, 0x2e, 0x29, + 0xd6, 0x2f, 0x33, 0xc2, 0x14, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x07, 0x1b, 0xa0, + 0x07, 0x31, 0x40, 0x0f, 0x6c, 0x80, 0x1e, 0xa6, 0xda, 0x32, 0x23, 0x29, 0xd9, 0xd2, 0x94, 0x82, + 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xfd, 0xe2, 0x92, + 0xc4, 0x92, 0x52, 0xa8, 0x39, 0x4a, 0x52, 0x5c, 0x12, 0xfe, 0xb9, 0x99, 0x25, 0xce, 0x60, 0x5d, + 0x1e, 0x20, 0x4d, 0x01, 0x45, 0xa9, 0x29, 0x99, 0xc9, 0x89, 0x25, 0xa9, 0x4e, 0xe1, 0xbb, 0x1a, + 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe4, 0x32, 0xcd, 0xcc, 0xd7, 0x03, 0x5b, 0x58, 0x50, 0x94, + 0x5f, 0x51, 0xa9, 0x47, 0xa4, 0xdd, 0x4e, 0x22, 0x18, 0x46, 0xe7, 0x97, 0xe4, 0x07, 0x30, 0x26, + 0xb1, 0x81, 0xed, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x33, 0x95, 0xaa, 0x11, 0x06, 0x01, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.validate.go new file mode 100644 index 000000000..c567795ae --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.pb.validate.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/retry/omit_canary_hosts/v2/omit_canary_hosts.proto + +package envoy_config_retry_omit_canary_hosts_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _omit_canary_hosts_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OmitCanaryHostsPredicate with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OmitCanaryHostsPredicate) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OmitCanaryHostsPredicateValidationError is the validation error returned by +// OmitCanaryHostsPredicate.Validate if the designated constraints aren't met. +type OmitCanaryHostsPredicateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OmitCanaryHostsPredicateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OmitCanaryHostsPredicateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OmitCanaryHostsPredicateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OmitCanaryHostsPredicateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OmitCanaryHostsPredicateValidationError) ErrorName() string { + return "OmitCanaryHostsPredicateValidationError" +} + +// Error satisfies the builtin error interface +func (e OmitCanaryHostsPredicateValidationError) 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 %sOmitCanaryHostsPredicate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OmitCanaryHostsPredicateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OmitCanaryHostsPredicateValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.go new file mode 100644 index 000000000..98b284da2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.proto + +package envoy_config_retry_omit_host_metadata_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OmitHostMetadataConfig struct { + MetadataMatch *core.Metadata `protobuf:"bytes,1,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OmitHostMetadataConfig) Reset() { *m = OmitHostMetadataConfig{} } +func (m *OmitHostMetadataConfig) String() string { return proto.CompactTextString(m) } +func (*OmitHostMetadataConfig) ProtoMessage() {} +func (*OmitHostMetadataConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_94b8638ad6beee65, []int{0} +} + +func (m *OmitHostMetadataConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OmitHostMetadataConfig.Unmarshal(m, b) +} +func (m *OmitHostMetadataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OmitHostMetadataConfig.Marshal(b, m, deterministic) +} +func (m *OmitHostMetadataConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_OmitHostMetadataConfig.Merge(m, src) +} +func (m *OmitHostMetadataConfig) XXX_Size() int { + return xxx_messageInfo_OmitHostMetadataConfig.Size(m) +} +func (m *OmitHostMetadataConfig) XXX_DiscardUnknown() { + xxx_messageInfo_OmitHostMetadataConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_OmitHostMetadataConfig proto.InternalMessageInfo + +func (m *OmitHostMetadataConfig) GetMetadataMatch() *core.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func init() { + proto.RegisterType((*OmitHostMetadataConfig)(nil), "envoy.config.retry.omit_host_metadata.v2.OmitHostMetadataConfig") +} + +func init() { + proto.RegisterFile("envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.proto", fileDescriptor_94b8638ad6beee65) +} + +var fileDescriptor_94b8638ad6beee65 = []byte{ + // 275 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 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, 0xb2, 0xe9, 0x49, 0x36, 0xe1, + 0x71, 0x39, 0x58, 0xc5, 0xeb, 0x8c, 0x87, 0x3d, 0xbc, 0x47, 0x9f, 0x4f, 0x7b, 0x64, 0x1e, 0x88, + 0x62, 0xcf, 0xbe, 0xf7, 0x3f, 0xef, 0xc7, 0x79, 0x7a, 0x1f, 0x19, 0xb9, 0x23, 0x69, 0x7c, 0x58, + 0xd1, 0x19, 0x07, 0xd9, 0x41, 0xed, 0xfc, 0xe3, 0xed, 0xf3, 0x6b, 0x74, 0x74, 0xce, 0x92, 0x07, + 0x85, 0xb1, 0xd1, 0x3a, 0xdc, 0x35, 0xfc, 0xbf, 0xdf, 0x56, 0x4c, 0x86, 0xbd, 0x16, 0x41, 0x7b, + 0xc1, 0x96, 0xa3, 0xd6, 0x3f, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x3f, 0xbf, 0x66, 0xd2, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.validate.go new file mode 100644 index 000000000..8582c15b2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.pb.validate.go @@ -0,0 +1,114 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.proto + +package envoy_config_retry_omit_host_metadata_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _omit_host_metadata_config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OmitHostMetadataConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OmitHostMetadataConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OmitHostMetadataConfigValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// OmitHostMetadataConfigValidationError is the validation error returned by +// OmitHostMetadataConfig.Validate if the designated constraints aren't met. +type OmitHostMetadataConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OmitHostMetadataConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OmitHostMetadataConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OmitHostMetadataConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OmitHostMetadataConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OmitHostMetadataConfigValidationError) ErrorName() string { + return "OmitHostMetadataConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e OmitHostMetadataConfigValidationError) 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 %sOmitHostMetadataConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OmitHostMetadataConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OmitHostMetadataConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.go new file mode 100644 index 000000000..3def3ccf2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.go @@ -0,0 +1,76 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/retry/previous_hosts/v2/previous_hosts.proto + +package envoy_config_retry_previous_hosts_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PreviousHostsPredicate struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PreviousHostsPredicate) Reset() { *m = PreviousHostsPredicate{} } +func (m *PreviousHostsPredicate) String() string { return proto.CompactTextString(m) } +func (*PreviousHostsPredicate) ProtoMessage() {} +func (*PreviousHostsPredicate) Descriptor() ([]byte, []int) { + return fileDescriptor_e4d889d3482108fe, []int{0} +} + +func (m *PreviousHostsPredicate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PreviousHostsPredicate.Unmarshal(m, b) +} +func (m *PreviousHostsPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PreviousHostsPredicate.Marshal(b, m, deterministic) +} +func (m *PreviousHostsPredicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PreviousHostsPredicate.Merge(m, src) +} +func (m *PreviousHostsPredicate) XXX_Size() int { + return xxx_messageInfo_PreviousHostsPredicate.Size(m) +} +func (m *PreviousHostsPredicate) XXX_DiscardUnknown() { + xxx_messageInfo_PreviousHostsPredicate.DiscardUnknown(m) +} + +var xxx_messageInfo_PreviousHostsPredicate proto.InternalMessageInfo + +func init() { + proto.RegisterType((*PreviousHostsPredicate)(nil), "envoy.config.retry.previous_hosts.v2.PreviousHostsPredicate") +} + +func init() { + proto.RegisterFile("envoy/config/retry/previous_hosts/v2/previous_hosts.proto", fileDescriptor_e4d889d3482108fe) +} + +var fileDescriptor_e4d889d3482108fe = []byte{ + // 171 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x4a, 0x2d, 0x29, 0xaa, 0xd4, 0x2f, + 0x28, 0x4a, 0x2d, 0xcb, 0xcc, 0x2f, 0x2d, 0x8e, 0xcf, 0xc8, 0x2f, 0x2e, 0x29, 0xd6, 0x2f, 0x33, + 0x42, 0x13, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x01, 0x6b, 0xd5, 0x83, 0x68, 0xd5, + 0x03, 0x6b, 0xd5, 0x43, 0x53, 0x58, 0x66, 0x24, 0x25, 0x5b, 0x9a, 0x52, 0x90, 0xa8, 0x9f, 0x98, + 0x97, 0x97, 0x5f, 0x92, 0x58, 0x92, 0x99, 0x9f, 0x57, 0xac, 0x5f, 0x5c, 0x92, 0x58, 0x52, 0x0a, + 0x35, 0x44, 0x49, 0x82, 0x4b, 0x2c, 0x00, 0xaa, 0xc7, 0x03, 0xa4, 0x25, 0xa0, 0x28, 0x35, 0x25, + 0x33, 0x39, 0xb1, 0x24, 0xd5, 0x29, 0x68, 0x57, 0xc3, 0x89, 0x8b, 0x6c, 0x4c, 0x02, 0x8c, 0x5c, + 0x46, 0x99, 0xf9, 0x7a, 0x60, 0xbb, 0x0a, 0x8a, 0xf2, 0x2b, 0x2a, 0xf5, 0x88, 0xb1, 0xd6, 0x49, + 0x08, 0xcd, 0xd4, 0xfc, 0x92, 0xfc, 0x00, 0xc6, 0x24, 0x36, 0xb0, 0xa5, 0xc6, 0x80, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xe5, 0x04, 0xaf, 0x0a, 0xf6, 0x00, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.validate.go new file mode 100644 index 000000000..c51c69792 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2/previous_hosts.pb.validate.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/retry/previous_hosts/v2/previous_hosts.proto + +package envoy_config_retry_previous_hosts_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _previous_hosts_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on PreviousHostsPredicate with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PreviousHostsPredicate) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// PreviousHostsPredicateValidationError is the validation error returned by +// PreviousHostsPredicate.Validate if the designated constraints aren't met. +type PreviousHostsPredicateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PreviousHostsPredicateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PreviousHostsPredicateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PreviousHostsPredicateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PreviousHostsPredicateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PreviousHostsPredicateValidationError) ErrorName() string { + return "PreviousHostsPredicateValidationError" +} + +// Error satisfies the builtin error interface +func (e PreviousHostsPredicateValidationError) 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 %sPreviousHostsPredicate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PreviousHostsPredicateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PreviousHostsPredicateValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.go new file mode 100644 index 000000000..00efde071 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.go @@ -0,0 +1,88 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/retry/previous_priorities/previous_priorities_config.proto + +package envoy_config_retry_previous_priorities + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PreviousPrioritiesConfig struct { + UpdateFrequency int32 `protobuf:"varint,1,opt,name=update_frequency,json=updateFrequency,proto3" json:"update_frequency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PreviousPrioritiesConfig) Reset() { *m = PreviousPrioritiesConfig{} } +func (m *PreviousPrioritiesConfig) String() string { return proto.CompactTextString(m) } +func (*PreviousPrioritiesConfig) ProtoMessage() {} +func (*PreviousPrioritiesConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_763b66cb0fac7d2f, []int{0} +} + +func (m *PreviousPrioritiesConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PreviousPrioritiesConfig.Unmarshal(m, b) +} +func (m *PreviousPrioritiesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PreviousPrioritiesConfig.Marshal(b, m, deterministic) +} +func (m *PreviousPrioritiesConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PreviousPrioritiesConfig.Merge(m, src) +} +func (m *PreviousPrioritiesConfig) XXX_Size() int { + return xxx_messageInfo_PreviousPrioritiesConfig.Size(m) +} +func (m *PreviousPrioritiesConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PreviousPrioritiesConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PreviousPrioritiesConfig proto.InternalMessageInfo + +func (m *PreviousPrioritiesConfig) GetUpdateFrequency() int32 { + if m != nil { + return m.UpdateFrequency + } + return 0 +} + +func init() { + proto.RegisterType((*PreviousPrioritiesConfig)(nil), "envoy.config.retry.previous_priorities.PreviousPrioritiesConfig") +} + +func init() { + proto.RegisterFile("envoy/config/retry/previous_priorities/previous_priorities_config.proto", fileDescriptor_763b66cb0fac7d2f) +} + +var fileDescriptor_763b66cb0fac7d2f = []byte{ + // 224 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x4a, 0x2d, 0x29, 0xaa, 0xd4, 0x2f, + 0x28, 0x4a, 0x2d, 0xcb, 0xcc, 0x2f, 0x2d, 0x8e, 0x2f, 0x28, 0xca, 0xcc, 0x2f, 0xca, 0x2c, 0xc9, + 0x4c, 0x2d, 0xc6, 0x26, 0x16, 0x0f, 0xd1, 0xa4, 0x57, 0x50, 0x94, 0x5f, 0x92, 0x2f, 0xa4, 0x06, + 0x36, 0x48, 0x0f, 0x2a, 0x06, 0x36, 0x48, 0x0f, 0x8b, 0x26, 0x29, 0xd9, 0xd2, 0x94, 0x82, 0x44, + 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xfd, 0xe2, 0x92, 0xc4, + 0x92, 0xd2, 0x62, 0x88, 0x31, 0x52, 0xe2, 0x65, 0x89, 0x39, 0x99, 0x29, 0x89, 0x25, 0xa9, 0xfa, + 0x30, 0x06, 0x44, 0x42, 0xc9, 0x8f, 0x4b, 0x22, 0x00, 0x6a, 0x5c, 0x00, 0xdc, 0x34, 0x67, 0xb0, + 0x6d, 0x42, 0x46, 0x5c, 0x02, 0xa5, 0x05, 0x20, 0xb5, 0xf1, 0x69, 0x45, 0xa9, 0x85, 0xa5, 0xa9, + 0x79, 0xc9, 0x95, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xac, 0x4e, 0xec, 0xbf, 0x9c, 0x58, 0xa4, 0x98, + 0x14, 0x18, 0x82, 0xf8, 0x21, 0x0a, 0xdc, 0x60, 0xf2, 0x4e, 0xf1, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, + 0x63, 0x12, 0x60, 0xe4, 0x32, 0xc9, 0xcc, 0xd7, 0x03, 0x3b, 0xbe, 0xa0, 0x28, 0xbf, 0xa2, 0x52, + 0x8f, 0x38, 0x7f, 0x38, 0xc9, 0xe2, 0x72, 0x4d, 0x00, 0xc8, 0xb9, 0x01, 0x8c, 0x49, 0x6c, 0x60, + 0x77, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x44, 0xe5, 0xd9, 0x62, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.validate.go new file mode 100644 index 000000000..3729eb675 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities/previous_priorities_config.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/retry/previous_priorities/previous_priorities_config.proto + +package envoy_config_retry_previous_priorities + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _previous_priorities_config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on PreviousPrioritiesConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PreviousPrioritiesConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetUpdateFrequency() <= 0 { + return PreviousPrioritiesConfigValidationError{ + field: "UpdateFrequency", + reason: "value must be greater than 0", + } + } + + return nil +} + +// PreviousPrioritiesConfigValidationError is the validation error returned by +// PreviousPrioritiesConfig.Validate if the designated constraints aren't met. +type PreviousPrioritiesConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PreviousPrioritiesConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PreviousPrioritiesConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PreviousPrioritiesConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PreviousPrioritiesConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PreviousPrioritiesConfigValidationError) ErrorName() string { + return "PreviousPrioritiesConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e PreviousPrioritiesConfigValidationError) 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 %sPreviousPrioritiesConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PreviousPrioritiesConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PreviousPrioritiesConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.go new file mode 100644 index 000000000..bca7a7a4b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.go @@ -0,0 +1,737 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/tap/v3/common.proto + +package envoy_config_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OutputSink_Format int32 + +const ( + OutputSink_JSON_BODY_AS_BYTES OutputSink_Format = 0 + OutputSink_JSON_BODY_AS_STRING OutputSink_Format = 1 + OutputSink_PROTO_BINARY OutputSink_Format = 2 + OutputSink_PROTO_BINARY_LENGTH_DELIMITED OutputSink_Format = 3 + OutputSink_PROTO_TEXT OutputSink_Format = 4 +) + +var OutputSink_Format_name = map[int32]string{ + 0: "JSON_BODY_AS_BYTES", + 1: "JSON_BODY_AS_STRING", + 2: "PROTO_BINARY", + 3: "PROTO_BINARY_LENGTH_DELIMITED", + 4: "PROTO_TEXT", +} + +var OutputSink_Format_value = map[string]int32{ + "JSON_BODY_AS_BYTES": 0, + "JSON_BODY_AS_STRING": 1, + "PROTO_BINARY": 2, + "PROTO_BINARY_LENGTH_DELIMITED": 3, + "PROTO_TEXT": 4, +} + +func (x OutputSink_Format) String() string { + return proto.EnumName(OutputSink_Format_name, int32(x)) +} + +func (OutputSink_Format) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{4, 0} +} + +type TapConfig struct { + MatchConfig *MatchPredicate `protobuf:"bytes,1,opt,name=match_config,json=matchConfig,proto3" json:"match_config,omitempty"` + OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` + TapEnabled *v3.RuntimeFractionalPercent `protobuf:"bytes,3,opt,name=tap_enabled,json=tapEnabled,proto3" json:"tap_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapConfig) Reset() { *m = TapConfig{} } +func (m *TapConfig) String() string { return proto.CompactTextString(m) } +func (*TapConfig) ProtoMessage() {} +func (*TapConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{0} +} + +func (m *TapConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapConfig.Unmarshal(m, b) +} +func (m *TapConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapConfig.Marshal(b, m, deterministic) +} +func (m *TapConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapConfig.Merge(m, src) +} +func (m *TapConfig) XXX_Size() int { + return xxx_messageInfo_TapConfig.Size(m) +} +func (m *TapConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TapConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TapConfig proto.InternalMessageInfo + +func (m *TapConfig) GetMatchConfig() *MatchPredicate { + if m != nil { + return m.MatchConfig + } + return nil +} + +func (m *TapConfig) GetOutputConfig() *OutputConfig { + if m != nil { + return m.OutputConfig + } + return nil +} + +func (m *TapConfig) GetTapEnabled() *v3.RuntimeFractionalPercent { + if m != nil { + return m.TapEnabled + } + return nil +} + +type MatchPredicate struct { + // Types that are valid to be assigned to Rule: + // *MatchPredicate_OrMatch + // *MatchPredicate_AndMatch + // *MatchPredicate_NotMatch + // *MatchPredicate_AnyMatch + // *MatchPredicate_HttpRequestHeadersMatch + // *MatchPredicate_HttpRequestTrailersMatch + // *MatchPredicate_HttpResponseHeadersMatch + // *MatchPredicate_HttpResponseTrailersMatch + Rule isMatchPredicate_Rule `protobuf_oneof:"rule"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchPredicate) Reset() { *m = MatchPredicate{} } +func (m *MatchPredicate) String() string { return proto.CompactTextString(m) } +func (*MatchPredicate) ProtoMessage() {} +func (*MatchPredicate) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{1} +} + +func (m *MatchPredicate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchPredicate.Unmarshal(m, b) +} +func (m *MatchPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchPredicate.Marshal(b, m, deterministic) +} +func (m *MatchPredicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchPredicate.Merge(m, src) +} +func (m *MatchPredicate) XXX_Size() int { + return xxx_messageInfo_MatchPredicate.Size(m) +} +func (m *MatchPredicate) XXX_DiscardUnknown() { + xxx_messageInfo_MatchPredicate.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchPredicate proto.InternalMessageInfo + +type isMatchPredicate_Rule interface { + isMatchPredicate_Rule() +} + +type MatchPredicate_OrMatch struct { + OrMatch *MatchPredicate_MatchSet `protobuf:"bytes,1,opt,name=or_match,json=orMatch,proto3,oneof"` +} + +type MatchPredicate_AndMatch struct { + AndMatch *MatchPredicate_MatchSet `protobuf:"bytes,2,opt,name=and_match,json=andMatch,proto3,oneof"` +} + +type MatchPredicate_NotMatch struct { + NotMatch *MatchPredicate `protobuf:"bytes,3,opt,name=not_match,json=notMatch,proto3,oneof"` +} + +type MatchPredicate_AnyMatch struct { + AnyMatch bool `protobuf:"varint,4,opt,name=any_match,json=anyMatch,proto3,oneof"` +} + +type MatchPredicate_HttpRequestHeadersMatch struct { + HttpRequestHeadersMatch *HttpHeadersMatch `protobuf:"bytes,5,opt,name=http_request_headers_match,json=httpRequestHeadersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpRequestTrailersMatch struct { + HttpRequestTrailersMatch *HttpHeadersMatch `protobuf:"bytes,6,opt,name=http_request_trailers_match,json=httpRequestTrailersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpResponseHeadersMatch struct { + HttpResponseHeadersMatch *HttpHeadersMatch `protobuf:"bytes,7,opt,name=http_response_headers_match,json=httpResponseHeadersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpResponseTrailersMatch struct { + HttpResponseTrailersMatch *HttpHeadersMatch `protobuf:"bytes,8,opt,name=http_response_trailers_match,json=httpResponseTrailersMatch,proto3,oneof"` +} + +func (*MatchPredicate_OrMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_AndMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_NotMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_AnyMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpRequestHeadersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpRequestTrailersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpResponseHeadersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpResponseTrailersMatch) isMatchPredicate_Rule() {} + +func (m *MatchPredicate) GetRule() isMatchPredicate_Rule { + if m != nil { + return m.Rule + } + return nil +} + +func (m *MatchPredicate) GetOrMatch() *MatchPredicate_MatchSet { + if x, ok := m.GetRule().(*MatchPredicate_OrMatch); ok { + return x.OrMatch + } + return nil +} + +func (m *MatchPredicate) GetAndMatch() *MatchPredicate_MatchSet { + if x, ok := m.GetRule().(*MatchPredicate_AndMatch); ok { + return x.AndMatch + } + return nil +} + +func (m *MatchPredicate) GetNotMatch() *MatchPredicate { + if x, ok := m.GetRule().(*MatchPredicate_NotMatch); ok { + return x.NotMatch + } + return nil +} + +func (m *MatchPredicate) GetAnyMatch() bool { + if x, ok := m.GetRule().(*MatchPredicate_AnyMatch); ok { + return x.AnyMatch + } + return false +} + +func (m *MatchPredicate) GetHttpRequestHeadersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpRequestHeadersMatch); ok { + return x.HttpRequestHeadersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpRequestTrailersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpRequestTrailersMatch); ok { + return x.HttpRequestTrailersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpResponseHeadersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpResponseHeadersMatch); ok { + return x.HttpResponseHeadersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpResponseTrailersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpResponseTrailersMatch); ok { + return x.HttpResponseTrailersMatch + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MatchPredicate) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MatchPredicate_OrMatch)(nil), + (*MatchPredicate_AndMatch)(nil), + (*MatchPredicate_NotMatch)(nil), + (*MatchPredicate_AnyMatch)(nil), + (*MatchPredicate_HttpRequestHeadersMatch)(nil), + (*MatchPredicate_HttpRequestTrailersMatch)(nil), + (*MatchPredicate_HttpResponseHeadersMatch)(nil), + (*MatchPredicate_HttpResponseTrailersMatch)(nil), + } +} + +type MatchPredicate_MatchSet struct { + Rules []*MatchPredicate `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchPredicate_MatchSet) Reset() { *m = MatchPredicate_MatchSet{} } +func (m *MatchPredicate_MatchSet) String() string { return proto.CompactTextString(m) } +func (*MatchPredicate_MatchSet) ProtoMessage() {} +func (*MatchPredicate_MatchSet) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{1, 0} +} + +func (m *MatchPredicate_MatchSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchPredicate_MatchSet.Unmarshal(m, b) +} +func (m *MatchPredicate_MatchSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchPredicate_MatchSet.Marshal(b, m, deterministic) +} +func (m *MatchPredicate_MatchSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchPredicate_MatchSet.Merge(m, src) +} +func (m *MatchPredicate_MatchSet) XXX_Size() int { + return xxx_messageInfo_MatchPredicate_MatchSet.Size(m) +} +func (m *MatchPredicate_MatchSet) XXX_DiscardUnknown() { + xxx_messageInfo_MatchPredicate_MatchSet.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchPredicate_MatchSet proto.InternalMessageInfo + +func (m *MatchPredicate_MatchSet) GetRules() []*MatchPredicate { + if m != nil { + return m.Rules + } + return nil +} + +type HttpHeadersMatch struct { + Headers []*v31.HeaderMatcher `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpHeadersMatch) Reset() { *m = HttpHeadersMatch{} } +func (m *HttpHeadersMatch) String() string { return proto.CompactTextString(m) } +func (*HttpHeadersMatch) ProtoMessage() {} +func (*HttpHeadersMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{2} +} + +func (m *HttpHeadersMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpHeadersMatch.Unmarshal(m, b) +} +func (m *HttpHeadersMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpHeadersMatch.Marshal(b, m, deterministic) +} +func (m *HttpHeadersMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpHeadersMatch.Merge(m, src) +} +func (m *HttpHeadersMatch) XXX_Size() int { + return xxx_messageInfo_HttpHeadersMatch.Size(m) +} +func (m *HttpHeadersMatch) XXX_DiscardUnknown() { + xxx_messageInfo_HttpHeadersMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpHeadersMatch proto.InternalMessageInfo + +func (m *HttpHeadersMatch) GetHeaders() []*v31.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +type OutputConfig struct { + Sinks []*OutputSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"` + MaxBufferedRxBytes *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=max_buffered_rx_bytes,json=maxBufferedRxBytes,proto3" json:"max_buffered_rx_bytes,omitempty"` + MaxBufferedTxBytes *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=max_buffered_tx_bytes,json=maxBufferedTxBytes,proto3" json:"max_buffered_tx_bytes,omitempty"` + Streaming bool `protobuf:"varint,4,opt,name=streaming,proto3" json:"streaming,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputConfig) Reset() { *m = OutputConfig{} } +func (m *OutputConfig) String() string { return proto.CompactTextString(m) } +func (*OutputConfig) ProtoMessage() {} +func (*OutputConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{3} +} + +func (m *OutputConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputConfig.Unmarshal(m, b) +} +func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic) +} +func (m *OutputConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputConfig.Merge(m, src) +} +func (m *OutputConfig) XXX_Size() int { + return xxx_messageInfo_OutputConfig.Size(m) +} +func (m *OutputConfig) XXX_DiscardUnknown() { + xxx_messageInfo_OutputConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputConfig proto.InternalMessageInfo + +func (m *OutputConfig) GetSinks() []*OutputSink { + if m != nil { + return m.Sinks + } + return nil +} + +func (m *OutputConfig) GetMaxBufferedRxBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxBufferedRxBytes + } + return nil +} + +func (m *OutputConfig) GetMaxBufferedTxBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxBufferedTxBytes + } + return nil +} + +func (m *OutputConfig) GetStreaming() bool { + if m != nil { + return m.Streaming + } + return false +} + +type OutputSink struct { + Format OutputSink_Format `protobuf:"varint,1,opt,name=format,proto3,enum=envoy.config.tap.v3.OutputSink_Format" json:"format,omitempty"` + // Types that are valid to be assigned to OutputSinkType: + // *OutputSink_StreamingAdmin + // *OutputSink_FilePerTap + // *OutputSink_StreamingGrpc + OutputSinkType isOutputSink_OutputSinkType `protobuf_oneof:"output_sink_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputSink) Reset() { *m = OutputSink{} } +func (m *OutputSink) String() string { return proto.CompactTextString(m) } +func (*OutputSink) ProtoMessage() {} +func (*OutputSink) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{4} +} + +func (m *OutputSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputSink.Unmarshal(m, b) +} +func (m *OutputSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputSink.Marshal(b, m, deterministic) +} +func (m *OutputSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputSink.Merge(m, src) +} +func (m *OutputSink) XXX_Size() int { + return xxx_messageInfo_OutputSink.Size(m) +} +func (m *OutputSink) XXX_DiscardUnknown() { + xxx_messageInfo_OutputSink.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputSink proto.InternalMessageInfo + +func (m *OutputSink) GetFormat() OutputSink_Format { + if m != nil { + return m.Format + } + return OutputSink_JSON_BODY_AS_BYTES +} + +type isOutputSink_OutputSinkType interface { + isOutputSink_OutputSinkType() +} + +type OutputSink_StreamingAdmin struct { + StreamingAdmin *StreamingAdminSink `protobuf:"bytes,2,opt,name=streaming_admin,json=streamingAdmin,proto3,oneof"` +} + +type OutputSink_FilePerTap struct { + FilePerTap *FilePerTapSink `protobuf:"bytes,3,opt,name=file_per_tap,json=filePerTap,proto3,oneof"` +} + +type OutputSink_StreamingGrpc struct { + StreamingGrpc *StreamingGrpcSink `protobuf:"bytes,4,opt,name=streaming_grpc,json=streamingGrpc,proto3,oneof"` +} + +func (*OutputSink_StreamingAdmin) isOutputSink_OutputSinkType() {} + +func (*OutputSink_FilePerTap) isOutputSink_OutputSinkType() {} + +func (*OutputSink_StreamingGrpc) isOutputSink_OutputSinkType() {} + +func (m *OutputSink) GetOutputSinkType() isOutputSink_OutputSinkType { + if m != nil { + return m.OutputSinkType + } + return nil +} + +func (m *OutputSink) GetStreamingAdmin() *StreamingAdminSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_StreamingAdmin); ok { + return x.StreamingAdmin + } + return nil +} + +func (m *OutputSink) GetFilePerTap() *FilePerTapSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_FilePerTap); ok { + return x.FilePerTap + } + return nil +} + +func (m *OutputSink) GetStreamingGrpc() *StreamingGrpcSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_StreamingGrpc); ok { + return x.StreamingGrpc + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*OutputSink) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*OutputSink_StreamingAdmin)(nil), + (*OutputSink_FilePerTap)(nil), + (*OutputSink_StreamingGrpc)(nil), + } +} + +type StreamingAdminSink struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingAdminSink) Reset() { *m = StreamingAdminSink{} } +func (m *StreamingAdminSink) String() string { return proto.CompactTextString(m) } +func (*StreamingAdminSink) ProtoMessage() {} +func (*StreamingAdminSink) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{5} +} + +func (m *StreamingAdminSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingAdminSink.Unmarshal(m, b) +} +func (m *StreamingAdminSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingAdminSink.Marshal(b, m, deterministic) +} +func (m *StreamingAdminSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingAdminSink.Merge(m, src) +} +func (m *StreamingAdminSink) XXX_Size() int { + return xxx_messageInfo_StreamingAdminSink.Size(m) +} +func (m *StreamingAdminSink) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingAdminSink.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingAdminSink proto.InternalMessageInfo + +type FilePerTapSink struct { + PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilePerTapSink) Reset() { *m = FilePerTapSink{} } +func (m *FilePerTapSink) String() string { return proto.CompactTextString(m) } +func (*FilePerTapSink) ProtoMessage() {} +func (*FilePerTapSink) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{6} +} + +func (m *FilePerTapSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilePerTapSink.Unmarshal(m, b) +} +func (m *FilePerTapSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilePerTapSink.Marshal(b, m, deterministic) +} +func (m *FilePerTapSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilePerTapSink.Merge(m, src) +} +func (m *FilePerTapSink) XXX_Size() int { + return xxx_messageInfo_FilePerTapSink.Size(m) +} +func (m *FilePerTapSink) XXX_DiscardUnknown() { + xxx_messageInfo_FilePerTapSink.DiscardUnknown(m) +} + +var xxx_messageInfo_FilePerTapSink proto.InternalMessageInfo + +func (m *FilePerTapSink) GetPathPrefix() string { + if m != nil { + return m.PathPrefix + } + return "" +} + +type StreamingGrpcSink struct { + TapId string `protobuf:"bytes,1,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"` + GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingGrpcSink) Reset() { *m = StreamingGrpcSink{} } +func (m *StreamingGrpcSink) String() string { return proto.CompactTextString(m) } +func (*StreamingGrpcSink) ProtoMessage() {} +func (*StreamingGrpcSink) Descriptor() ([]byte, []int) { + return fileDescriptor_accadd4ee8324475, []int{7} +} + +func (m *StreamingGrpcSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingGrpcSink.Unmarshal(m, b) +} +func (m *StreamingGrpcSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingGrpcSink.Marshal(b, m, deterministic) +} +func (m *StreamingGrpcSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingGrpcSink.Merge(m, src) +} +func (m *StreamingGrpcSink) XXX_Size() int { + return xxx_messageInfo_StreamingGrpcSink.Size(m) +} +func (m *StreamingGrpcSink) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingGrpcSink.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingGrpcSink proto.InternalMessageInfo + +func (m *StreamingGrpcSink) GetTapId() string { + if m != nil { + return m.TapId + } + return "" +} + +func (m *StreamingGrpcSink) GetGrpcService() *v3.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.config.tap.v3.OutputSink_Format", OutputSink_Format_name, OutputSink_Format_value) + proto.RegisterType((*TapConfig)(nil), "envoy.config.tap.v3.TapConfig") + proto.RegisterType((*MatchPredicate)(nil), "envoy.config.tap.v3.MatchPredicate") + proto.RegisterType((*MatchPredicate_MatchSet)(nil), "envoy.config.tap.v3.MatchPredicate.MatchSet") + proto.RegisterType((*HttpHeadersMatch)(nil), "envoy.config.tap.v3.HttpHeadersMatch") + proto.RegisterType((*OutputConfig)(nil), "envoy.config.tap.v3.OutputConfig") + proto.RegisterType((*OutputSink)(nil), "envoy.config.tap.v3.OutputSink") + proto.RegisterType((*StreamingAdminSink)(nil), "envoy.config.tap.v3.StreamingAdminSink") + proto.RegisterType((*FilePerTapSink)(nil), "envoy.config.tap.v3.FilePerTapSink") + proto.RegisterType((*StreamingGrpcSink)(nil), "envoy.config.tap.v3.StreamingGrpcSink") +} + +func init() { proto.RegisterFile("envoy/config/tap/v3/common.proto", fileDescriptor_accadd4ee8324475) } + +var fileDescriptor_accadd4ee8324475 = []byte{ + // 1147 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xc7, 0xb3, 0x1b, 0xc7, 0x71, 0x1e, 0xbb, 0xc1, 0x4c, 0x55, 0x12, 0x42, 0x5f, 0x12, 0xb7, + 0x4d, 0xa3, 0x36, 0x5d, 0xab, 0xf1, 0x05, 0xf9, 0x80, 0x94, 0x6d, 0xdd, 0xd8, 0xd0, 0xc6, 0xd6, + 0xda, 0x20, 0x7a, 0x5a, 0x8d, 0xbd, 0x63, 0x7b, 0xa9, 0xbd, 0x33, 0xcc, 0x8e, 0x8d, 0x7d, 0x41, + 0x08, 0x09, 0x09, 0x7a, 0xec, 0x91, 0xcf, 0x80, 0xf8, 0x00, 0x9c, 0xb8, 0x20, 0x71, 0xe5, 0xdb, + 0xa0, 0x1e, 0x10, 0x9a, 0x99, 0xdd, 0xc4, 0x9b, 0xd8, 0x6d, 0xd2, 0xdb, 0xee, 0xcc, 0xff, 0xf9, + 0x3d, 0x6f, 0xb3, 0xcf, 0x0e, 0x6c, 0x93, 0x60, 0x4c, 0xa7, 0xc5, 0x0e, 0x0d, 0xba, 0x7e, 0xaf, + 0x28, 0x30, 0x2b, 0x8e, 0x4b, 0xc5, 0x0e, 0x1d, 0x0e, 0x69, 0x60, 0x31, 0x4e, 0x05, 0x45, 0x57, + 0x95, 0xc2, 0xd2, 0x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, 0x74, 0xe1, 0x77, 0x03, 0x3e, 0x3c, 0xd7, 0x24, 0x74, 0x0d, 0xd2, 0xf2, + 0x8e, 0xe2, 0x7b, 0xda, 0x97, 0xb3, 0x22, 0x30, 0xab, 0x79, 0xe8, 0x18, 0x72, 0xb3, 0x77, 0xc5, + 0xf9, 0x77, 0xa1, 0xf8, 0xee, 0xa2, 0x60, 0x5a, 0x38, 0x7b, 0xb9, 0xea, 0x9d, 0x2e, 0x97, 0x0f, + 0x64, 0xb4, 0x0f, 0xe1, 0xc1, 0x05, 0xca, 0x13, 0x87, 0x66, 0x97, 0xff, 0xf8, 0xe1, 0xef, 0x7f, + 0xd2, 0x66, 0xde, 0x84, 0x1d, 0x9f, 0x6a, 0xcf, 0x8c, 0xd3, 0xc9, 0x74, 0xde, 0xf1, 0xb3, 0xb3, + 0x8f, 0xd5, 0x9d, 0xb9, 0x21, 0xe7, 0x43, 0xc3, 0x68, 0xa7, 0xd5, 0xa0, 0x28, 0xfd, 0x1f, 0x00, + 0x00, 0xff, 0xff, 0xf1, 0x15, 0x48, 0xa7, 0x5f, 0x0b, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.validate.go new file mode 100644 index 000000000..f4c790422 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/tap/v3/common.pb.validate.go @@ -0,0 +1,933 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/tap/v3/common.proto + +package envoy_config_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TapConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetMatchConfig() == nil { + return TapConfigValidationError{ + field: "MatchConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatchConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "MatchConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetOutputConfig() == nil { + return TapConfigValidationError{ + field: "OutputConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetOutputConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "OutputConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTapEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "TapEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapConfigValidationError is the validation error returned by +// TapConfig.Validate if the designated constraints aren't met. +type TapConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapConfigValidationError) ErrorName() string { return "TapConfigValidationError" } + +// Error satisfies the builtin error interface +func (e TapConfigValidationError) 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 %sTapConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapConfigValidationError{} + +// Validate checks the field values on MatchPredicate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *MatchPredicate) Validate() error { + if m == nil { + return nil + } + + switch m.Rule.(type) { + + case *MatchPredicate_OrMatch: + + if v, ok := interface{}(m.GetOrMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "OrMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_AndMatch: + + if v, ok := interface{}(m.GetAndMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "AndMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_NotMatch: + + if v, ok := interface{}(m.GetNotMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "NotMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_AnyMatch: + + if m.GetAnyMatch() != true { + return MatchPredicateValidationError{ + field: "AnyMatch", + reason: "value must equal true", + } + } + + case *MatchPredicate_HttpRequestHeadersMatch: + + if v, ok := interface{}(m.GetHttpRequestHeadersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpRequestHeadersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpRequestTrailersMatch: + + if v, ok := interface{}(m.GetHttpRequestTrailersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpRequestTrailersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpResponseHeadersMatch: + + if v, ok := interface{}(m.GetHttpResponseHeadersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpResponseHeadersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpResponseTrailersMatch: + + if v, ok := interface{}(m.GetHttpResponseTrailersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpResponseTrailersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return MatchPredicateValidationError{ + field: "Rule", + reason: "value is required", + } + + } + + return nil +} + +// MatchPredicateValidationError is the validation error returned by +// MatchPredicate.Validate if the designated constraints aren't met. +type MatchPredicateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchPredicateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchPredicateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchPredicateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchPredicateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchPredicateValidationError) ErrorName() string { return "MatchPredicateValidationError" } + +// Error satisfies the builtin error interface +func (e MatchPredicateValidationError) 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 %sMatchPredicate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchPredicateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchPredicateValidationError{} + +// Validate checks the field values on HttpHeadersMatch with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HttpHeadersMatch) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpHeadersMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpHeadersMatchValidationError is the validation error returned by +// HttpHeadersMatch.Validate if the designated constraints aren't met. +type HttpHeadersMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpHeadersMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpHeadersMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpHeadersMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpHeadersMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpHeadersMatchValidationError) ErrorName() string { return "HttpHeadersMatchValidationError" } + +// Error satisfies the builtin error interface +func (e HttpHeadersMatchValidationError) 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 %sHttpHeadersMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpHeadersMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpHeadersMatchValidationError{} + +// Validate checks the field values on OutputConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OutputConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetSinks()) != 1 { + return OutputConfigValidationError{ + field: "Sinks", + reason: "value must contain exactly 1 item(s)", + } + } + + for idx, item := range m.GetSinks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: fmt.Sprintf("Sinks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMaxBufferedRxBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: "MaxBufferedRxBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMaxBufferedTxBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: "MaxBufferedTxBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Streaming + + return nil +} + +// OutputConfigValidationError is the validation error returned by +// OutputConfig.Validate if the designated constraints aren't met. +type OutputConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputConfigValidationError) ErrorName() string { return "OutputConfigValidationError" } + +// Error satisfies the builtin error interface +func (e OutputConfigValidationError) 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 %sOutputConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputConfigValidationError{} + +// Validate checks the field values on OutputSink with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *OutputSink) Validate() error { + if m == nil { + return nil + } + + if _, ok := OutputSink_Format_name[int32(m.GetFormat())]; !ok { + return OutputSinkValidationError{ + field: "Format", + reason: "value must be one of the defined enum values", + } + } + + switch m.OutputSinkType.(type) { + + case *OutputSink_StreamingAdmin: + + if v, ok := interface{}(m.GetStreamingAdmin()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "StreamingAdmin", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutputSink_FilePerTap: + + if v, ok := interface{}(m.GetFilePerTap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "FilePerTap", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutputSink_StreamingGrpc: + + if v, ok := interface{}(m.GetStreamingGrpc()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "StreamingGrpc", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return OutputSinkValidationError{ + field: "OutputSinkType", + reason: "value is required", + } + + } + + return nil +} + +// OutputSinkValidationError is the validation error returned by +// OutputSink.Validate if the designated constraints aren't met. +type OutputSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputSinkValidationError) ErrorName() string { return "OutputSinkValidationError" } + +// Error satisfies the builtin error interface +func (e OutputSinkValidationError) 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 %sOutputSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputSinkValidationError{} + +// Validate checks the field values on StreamingAdminSink with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamingAdminSink) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamingAdminSinkValidationError is the validation error returned by +// StreamingAdminSink.Validate if the designated constraints aren't met. +type StreamingAdminSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamingAdminSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamingAdminSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamingAdminSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamingAdminSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamingAdminSinkValidationError) ErrorName() string { + return "StreamingAdminSinkValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamingAdminSinkValidationError) 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 %sStreamingAdminSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamingAdminSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamingAdminSinkValidationError{} + +// Validate checks the field values on FilePerTapSink with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilePerTapSink) Validate() error { + if m == nil { + return nil + } + + if len(m.GetPathPrefix()) < 1 { + return FilePerTapSinkValidationError{ + field: "PathPrefix", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// FilePerTapSinkValidationError is the validation error returned by +// FilePerTapSink.Validate if the designated constraints aren't met. +type FilePerTapSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilePerTapSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilePerTapSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilePerTapSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilePerTapSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilePerTapSinkValidationError) ErrorName() string { return "FilePerTapSinkValidationError" } + +// Error satisfies the builtin error interface +func (e FilePerTapSinkValidationError) 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 %sFilePerTapSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilePerTapSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilePerTapSinkValidationError{} + +// Validate checks the field values on StreamingGrpcSink with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StreamingGrpcSink) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TapId + + if m.GetGrpcService() == nil { + return StreamingGrpcSinkValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamingGrpcSinkValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamingGrpcSinkValidationError is the validation error returned by +// StreamingGrpcSink.Validate if the designated constraints aren't met. +type StreamingGrpcSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamingGrpcSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamingGrpcSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamingGrpcSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamingGrpcSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamingGrpcSinkValidationError) ErrorName() string { + return "StreamingGrpcSinkValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamingGrpcSinkValidationError) 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 %sStreamingGrpcSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamingGrpcSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamingGrpcSinkValidationError{} + +// Validate checks the field values on MatchPredicate_MatchSet with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *MatchPredicate_MatchSet) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRules()) < 2 { + return MatchPredicate_MatchSetValidationError{ + field: "Rules", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicate_MatchSetValidationError{ + field: fmt.Sprintf("Rules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MatchPredicate_MatchSetValidationError is the validation error returned by +// MatchPredicate_MatchSet.Validate if the designated constraints aren't met. +type MatchPredicate_MatchSetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchPredicate_MatchSetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchPredicate_MatchSetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchPredicate_MatchSetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchPredicate_MatchSetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchPredicate_MatchSetValidationError) ErrorName() string { + return "MatchPredicate_MatchSetValidationError" +} + +// Error satisfies the builtin error interface +func (e MatchPredicate_MatchSetValidationError) 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 %sMatchPredicate_MatchSet.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchPredicate_MatchSetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchPredicate_MatchSetValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.go new file mode 100644 index 000000000..9e77fdf24 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.go @@ -0,0 +1,112 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/trace/v2alpha/xray.proto + +package envoy_config_trace_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type XRayConfig struct { + DaemonEndpoint *core.SocketAddress `protobuf:"bytes,1,opt,name=daemon_endpoint,json=daemonEndpoint,proto3" json:"daemon_endpoint,omitempty"` + SegmentName string `protobuf:"bytes,2,opt,name=segment_name,json=segmentName,proto3" json:"segment_name,omitempty"` + SamplingRuleManifest *core.DataSource `protobuf:"bytes,3,opt,name=sampling_rule_manifest,json=samplingRuleManifest,proto3" json:"sampling_rule_manifest,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *XRayConfig) Reset() { *m = XRayConfig{} } +func (m *XRayConfig) String() string { return proto.CompactTextString(m) } +func (*XRayConfig) ProtoMessage() {} +func (*XRayConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c272343b96f21fb4, []int{0} +} + +func (m *XRayConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_XRayConfig.Unmarshal(m, b) +} +func (m *XRayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_XRayConfig.Marshal(b, m, deterministic) +} +func (m *XRayConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_XRayConfig.Merge(m, src) +} +func (m *XRayConfig) XXX_Size() int { + return xxx_messageInfo_XRayConfig.Size(m) +} +func (m *XRayConfig) XXX_DiscardUnknown() { + xxx_messageInfo_XRayConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_XRayConfig proto.InternalMessageInfo + +func (m *XRayConfig) GetDaemonEndpoint() *core.SocketAddress { + if m != nil { + return m.DaemonEndpoint + } + return nil +} + +func (m *XRayConfig) GetSegmentName() string { + if m != nil { + return m.SegmentName + } + return "" +} + +func (m *XRayConfig) GetSamplingRuleManifest() *core.DataSource { + if m != nil { + return m.SamplingRuleManifest + } + return nil +} + +func init() { + proto.RegisterType((*XRayConfig)(nil), "envoy.config.trace.v2alpha.XRayConfig") +} + +func init() { + proto.RegisterFile("envoy/config/trace/v2alpha/xray.proto", fileDescriptor_c272343b96f21fb4) +} + +var fileDescriptor_c272343b96f21fb4 = []byte{ + // 331 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4a, 0xeb, 0x40, + 0x14, 0x86, 0x99, 0xde, 0x4b, 0xa5, 0x53, 0xd1, 0x12, 0x44, 0x4b, 0xb1, 0x58, 0x04, 0xa1, 0xb8, + 0x98, 0x81, 0xf8, 0x00, 0x62, 0xd4, 0x85, 0x0b, 0xa5, 0xa4, 0x9b, 0xee, 0xc2, 0x69, 0x72, 0x5a, + 0x07, 0x93, 0x99, 0x61, 0x66, 0x12, 0x9a, 0x9d, 0xcf, 0xe5, 0x13, 0xb8, 0x75, 0xe7, 0xb3, 0xb8, + 0x92, 0x66, 0xd2, 0x95, 0xba, 0x1b, 0x38, 0xdf, 0x77, 0xfe, 0x9f, 0x33, 0xf4, 0x02, 0x65, 0xa5, + 0x6a, 0x9e, 0x2a, 0xb9, 0x12, 0x6b, 0xee, 0x0c, 0xa4, 0xc8, 0xab, 0x10, 0x72, 0xfd, 0x0c, 0x7c, + 0x63, 0xa0, 0x66, 0xda, 0x28, 0xa7, 0x82, 0x51, 0x83, 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+ 0x8f, 0x6e, 0x67, 0x40, 0xe8, 0x54, 0x28, 0xbf, 0x40, 0x1b, 0xb5, 0xa9, 0xd9, 0xdf, 0xbf, 0x10, + 0xf5, 0x16, 0x06, 0xea, 0xd9, 0xf6, 0x32, 0x33, 0xb2, 0xec, 0x36, 0x27, 0xba, 0xfa, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0xbb, 0x5a, 0x39, 0xd6, 0xde, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.validate.go new file mode 100644 index 000000000..78a2c8961 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha/xray.pb.validate.go @@ -0,0 +1,128 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/trace/v2alpha/xray.proto + +package envoy_config_trace_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _xray_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on XRayConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *XRayConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDaemonEndpoint()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return XRayConfigValidationError{ + field: "DaemonEndpoint", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if utf8.RuneCountInString(m.GetSegmentName()) < 1 { + return XRayConfigValidationError{ + field: "SegmentName", + reason: "value length must be at least 1 runes", + } + } + + if v, ok := interface{}(m.GetSamplingRuleManifest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return XRayConfigValidationError{ + field: "SamplingRuleManifest", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// XRayConfigValidationError is the validation error returned by +// XRayConfig.Validate if the designated constraints aren't met. +type XRayConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e XRayConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e XRayConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e XRayConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e XRayConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e XRayConfigValidationError) ErrorName() string { return "XRayConfigValidationError" } + +// Error satisfies the builtin error interface +func (e XRayConfigValidationError) 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 %sXRayConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = XRayConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = XRayConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.go new file mode 100644 index 000000000..bf7476e2b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/transport_socket/alts/v2alpha/alts.proto + +package envoy_config_transport_socket_alts_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Alts struct { + HandshakerService string `protobuf:"bytes,1,opt,name=handshaker_service,json=handshakerService,proto3" json:"handshaker_service,omitempty"` + PeerServiceAccounts []string `protobuf:"bytes,2,rep,name=peer_service_accounts,json=peerServiceAccounts,proto3" json:"peer_service_accounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Alts) Reset() { *m = Alts{} } +func (m *Alts) String() string { return proto.CompactTextString(m) } +func (*Alts) ProtoMessage() {} +func (*Alts) Descriptor() ([]byte, []int) { + return fileDescriptor_6f3e17a21d207b38, []int{0} +} + +func (m *Alts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Alts.Unmarshal(m, b) +} +func (m *Alts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Alts.Marshal(b, m, deterministic) +} +func (m *Alts) XXX_Merge(src proto.Message) { + xxx_messageInfo_Alts.Merge(m, src) +} +func (m *Alts) XXX_Size() int { + return xxx_messageInfo_Alts.Size(m) +} +func (m *Alts) XXX_DiscardUnknown() { + xxx_messageInfo_Alts.DiscardUnknown(m) +} + +var xxx_messageInfo_Alts proto.InternalMessageInfo + +func (m *Alts) GetHandshakerService() string { + if m != nil { + return m.HandshakerService + } + return "" +} + +func (m *Alts) GetPeerServiceAccounts() []string { + if m != nil { + return m.PeerServiceAccounts + } + return nil +} + +func init() { + proto.RegisterType((*Alts)(nil), "envoy.config.transport_socket.alts.v2alpha.Alts") +} + +func init() { + proto.RegisterFile("envoy/config/transport_socket/alts/v2alpha/alts.proto", fileDescriptor_6f3e17a21d207b38) +} + +var fileDescriptor_6f3e17a21d207b38 = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xcf, 0x4a, 0xf3, 0x40, + 0x14, 0xc5, 0x99, 0x7c, 0xfd, 0x2a, 0xc9, 0x4a, 0x23, 0x62, 0x09, 0x28, 0xc1, 0x55, 0x11, 0x99, + 0x81, 0x16, 0xc5, 0x6d, 0xf3, 0x04, 0xa5, 0x3e, 0x40, 0xb8, 0x26, 0x63, 0x33, 0x34, 0xce, 0x0c, + 0x73, 0x6f, 0x42, 0xbb, 0xd3, 0x27, 0x70, 0xeb, 0xb3, 0xf8, 0x04, 0x6e, 0x7d, 0x15, 0x97, 0x2e, + 0x44, 0xf2, 0xa7, 0x14, 0xec, 0xc6, 0xdd, 0x0c, 0xe7, 0xfc, 0xee, 0xbd, 0xe7, 0x04, 0xd7, 0x52, + 0xd7, 0x66, 0x23, 0x32, 0xa3, 0x1f, 0xd4, 0x52, 0x90, 0x03, 0x8d, 0xd6, 0x38, 0x4a, 0xd1, 0x64, + 0x2b, 0x49, 0x02, 0x4a, 0x42, 0x51, 0x4f, 0xa0, 0xb4, 0x05, 0xb4, 0x1f, 0x6e, 0x9d, 0x21, 0x13, + 0x5e, 0xb6, 0x18, 0xef, 0x30, 0xfe, 0x1b, 0xe3, 0xad, 0xb3, 0xc7, 0xa2, 0xf3, 0x2a, 0xb7, 0x20, + 0x40, 0x6b, 0x43, 0x40, 0xca, 0x68, 0x14, 0x8f, 0x6a, 0xe9, 0x80, 0x64, 0x37, 0x2b, 0x3a, 0xdb, + 0xd3, 0x91, 0x80, 0xaa, 0x7e, 0x55, 0x74, 0x5a, 0x43, 0xa9, 0x72, 0x20, 0x29, 0xb6, 0x8f, 0x4e, + 0xb8, 0x70, 0xc1, 0x60, 0x56, 0x12, 0x86, 0x37, 0x41, 0x58, 0x80, 0xce, 0xb1, 0x80, 0x95, 0x74, + 0x29, 0x4a, 0x57, 0xab, 0x4c, 0x8e, 0x58, 0xcc, 0xc6, 0x7e, 0x72, 0xf0, 0x95, 0x0c, 0x9c, 0x17, + 0xb3, 0xc5, 0xd1, 0xce, 0x72, 0xd7, 0x39, 0xc2, 0x49, 0x70, 0x62, 0xe5, 0x8e, 0x48, 0x21, 0xcb, + 0x4c, 0xa5, 0x09, 0x47, 0x5e, 0xfc, 0x6f, 0xec, 0x2f, 0x8e, 0x1b, 0xb1, 0xf7, 0xce, 0x7a, 0x29, + 0x79, 0x66, 0x9f, 0xaf, 0xdf, 0x2f, 0xff, 0xaf, 0xb6, 0x05, 0xc8, 0x35, 0x49, 0x8d, 0xcd, 0xd1, + 0x7b, 0x25, 0x60, 0xdf, 0xc2, 0xf4, 0xed, 0xe9, 0xfd, 0x63, 0xe8, 0x1d, 0xb2, 0xe0, 0x56, 0x19, + 0xde, 0x62, 0xd6, 0x99, 0xf5, 0x86, 0xff, 0xbd, 0xc2, 0xc4, 0x6f, 0x82, 0xce, 0x9b, 0xd4, 0x73, + 0x76, 0x3f, 0x6c, 0xe3, 0x4f, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x96, 0x5b, 0x54, 0xbb, + 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.validate.go new file mode 100644 index 000000000..9e10aadb9 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha/alts.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/transport_socket/alts/v2alpha/alts.proto + +package envoy_config_transport_socket_alts_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _alts_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Alts with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Alts) Validate() error { + if m == nil { + return nil + } + + if len(m.GetHandshakerService()) < 1 { + return AltsValidationError{ + field: "HandshakerService", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// AltsValidationError is the validation error returned by Alts.Validate if the +// designated constraints aren't met. +type AltsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AltsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AltsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AltsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AltsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AltsValidationError) ErrorName() string { return "AltsValidationError" } + +// Error satisfies the builtin error interface +func (e AltsValidationError) 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 %sAlts.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AltsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AltsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.go new file mode 100644 index 000000000..26c200e5f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/transport_socket/raw_buffer/v2/raw_buffer.proto + +package envoy_config_transport_socket_raw_buffer_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RawBuffer struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBuffer) Reset() { *m = RawBuffer{} } +func (m *RawBuffer) String() string { return proto.CompactTextString(m) } +func (*RawBuffer) ProtoMessage() {} +func (*RawBuffer) Descriptor() ([]byte, []int) { + return fileDescriptor_7d9b219af9f95c92, []int{0} +} + +func (m *RawBuffer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawBuffer.Unmarshal(m, b) +} +func (m *RawBuffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawBuffer.Marshal(b, m, deterministic) +} +func (m *RawBuffer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBuffer.Merge(m, src) +} +func (m *RawBuffer) XXX_Size() int { + return xxx_messageInfo_RawBuffer.Size(m) +} +func (m *RawBuffer) XXX_DiscardUnknown() { + xxx_messageInfo_RawBuffer.DiscardUnknown(m) +} + +var xxx_messageInfo_RawBuffer proto.InternalMessageInfo + +func init() { + proto.RegisterType((*RawBuffer)(nil), "envoy.config.transport_socket.raw_buffer.v2.RawBuffer") +} + +func init() { + proto.RegisterFile("envoy/config/transport_socket/raw_buffer/v2/raw_buffer.proto", fileDescriptor_7d9b219af9f95c92) +} + +var fileDescriptor_7d9b219af9f95c92 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2f, 0x29, 0x4a, 0xcc, 0x2b, 0x2e, 0xc8, + 0x2f, 0x2a, 0x89, 0x2f, 0xce, 0x4f, 0xce, 0x4e, 0x2d, 0xd1, 0x2f, 0x4a, 0x2c, 0x8f, 0x4f, 0x2a, + 0x4d, 0x4b, 0x4b, 0x2d, 0xd2, 0x2f, 0x33, 0x42, 0xe2, 0xe9, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, + 0x69, 0x83, 0x75, 0xeb, 0x41, 0x74, 0xeb, 0xa1, 0xeb, 0xd6, 0x43, 0x52, 0x5f, 0x66, 0x24, 0x25, + 0x57, 0x9a, 0x52, 0x90, 0xa8, 0x9f, 0x98, 0x97, 0x97, 0x5f, 0x92, 0x58, 0x92, 0x99, 0x9f, 0x57, + 0xac, 0x9f, 0x9b, 0x99, 0x5e, 0x94, 0x58, 0x92, 0x0a, 0x31, 0x4c, 0x4a, 0x16, 0x43, 0xbe, 0xb8, + 0x24, 0xb1, 0xa4, 0xb4, 0x18, 0x22, 0xad, 0xc4, 0xcd, 0xc5, 0x19, 0x94, 0x58, 0xee, 0x04, 0x36, + 0xce, 0xa9, 0x97, 0xf1, 0xd3, 0x8c, 0x7f, 0xfd, 0xac, 0x46, 0x42, 0x06, 0x10, 0x17, 0xa4, 0x56, + 0x94, 0xa4, 0xe6, 0x15, 0x83, 0x34, 0x61, 0xb8, 0xa2, 0x18, 0xc5, 0x19, 0xc6, 0xbb, 0x1a, 0x4e, + 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe4, 0xb2, 0xcc, 0xcc, 0xd7, 0x03, 0x6b, 0x2e, 0x28, 0xca, 0xaf, + 0xa8, 0xd4, 0x23, 0xc1, 0x27, 0x4e, 0x7c, 0x70, 0x87, 0x04, 0x80, 0x9c, 0x16, 0xc0, 0x98, 0xc4, + 0x06, 0x76, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x5f, 0x41, 0xae, 0x4f, 0x01, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.validate.go new file mode 100644 index 000000000..ac3bf8a02 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2/raw_buffer.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/transport_socket/raw_buffer/v2/raw_buffer.proto + +package envoy_config_transport_socket_raw_buffer_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _raw_buffer_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RawBuffer with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RawBuffer) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RawBufferValidationError is the validation error returned by +// RawBuffer.Validate if the designated constraints aren't met. +type RawBufferValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RawBufferValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RawBufferValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RawBufferValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RawBufferValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RawBufferValidationError) ErrorName() string { return "RawBufferValidationError" } + +// Error satisfies the builtin error interface +func (e RawBufferValidationError) 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 %sRawBuffer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RawBufferValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RawBufferValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.go new file mode 100644 index 000000000..c9f7761cb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/transport_socket/tap/v2alpha/tap.proto + +package envoy_config_transport_socket_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Tap struct { + CommonConfig *v2alpha.CommonExtensionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + TransportSocket *core.TransportSocket `protobuf:"bytes,2,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Tap) Reset() { *m = Tap{} } +func (m *Tap) String() string { return proto.CompactTextString(m) } +func (*Tap) ProtoMessage() {} +func (*Tap) Descriptor() ([]byte, []int) { + return fileDescriptor_07cb8c0b42756e40, []int{0} +} + +func (m *Tap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tap.Unmarshal(m, b) +} +func (m *Tap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tap.Marshal(b, m, deterministic) +} +func (m *Tap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tap.Merge(m, src) +} +func (m *Tap) XXX_Size() int { + return xxx_messageInfo_Tap.Size(m) +} +func (m *Tap) XXX_DiscardUnknown() { + xxx_messageInfo_Tap.DiscardUnknown(m) +} + +var xxx_messageInfo_Tap proto.InternalMessageInfo + +func (m *Tap) GetCommonConfig() *v2alpha.CommonExtensionConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func (m *Tap) GetTransportSocket() *core.TransportSocket { + if m != nil { + return m.TransportSocket + } + return nil +} + +func init() { + proto.RegisterType((*Tap)(nil), "envoy.config.transport_socket.tap.v2alpha.Tap") +} + +func init() { + proto.RegisterFile("envoy/config/transport_socket/tap/v2alpha/tap.proto", fileDescriptor_07cb8c0b42756e40) +} + +var fileDescriptor_07cb8c0b42756e40 = []byte{ + // 336 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x31, 0x4b, 0x33, 0x41, + 0x10, 0x65, 0xf3, 0x91, 0x10, 0xee, 0x53, 0x0c, 0x69, 0x0c, 0x41, 0x45, 0x52, 0x29, 0xca, 0x2e, + 0x5c, 0x40, 0xfb, 0x04, 0xfb, 0xa0, 0x01, 0xcb, 0x30, 0xb9, 0xac, 0x71, 0x31, 0xd9, 0x59, 0x6e, + 0x27, 0x47, 0xd2, 0x59, 0x59, 0xd8, 0xd8, 0xfa, 0x5b, 0xec, 0x05, 0x5b, 0xff, 0x8a, 0xa5, 0x85, + 0xc8, 0xdd, 0xdc, 0x41, 0x72, 0x69, 0xac, 0x76, 0x99, 0x79, 0x6f, 0xde, 0x9b, 0x37, 0x41, 0x57, + 0xdb, 0x04, 0x57, 0x2a, 0x42, 0x7b, 0x67, 0xa6, 0x8a, 0x62, 0xb0, 0xde, 0x61, 0x4c, 0x23, 0x8f, + 0xd1, 0x83, 0x26, 0x45, 0xe0, 0x54, 0x12, 0xc2, 0xcc, 0xdd, 0x43, 0xfa, 0x97, 0x2e, 0x46, 0xc2, + 0xe6, 0x69, 0x46, 0x92, 0x4c, 0x92, 0x65, 0x92, 0x4c, 0x81, 0x39, 0xa9, 0x7d, 0xc0, 0xf3, 0xc1, + 0x19, 0x95, 0x84, 0x2a, 0xc2, 0x58, 0xab, 0x31, 0x78, 0xcd, 0x83, 0xda, 0xe7, 0x1b, 0xea, 0x11, + 0xce, 0xe7, 0x68, 0x37, 0x34, 0xb9, 0x94, 0xa3, 0x8f, 0x16, 0x13, 0x07, 0x0a, 0xac, 0x45, 0x02, + 0x32, 0x68, 0xbd, 0x9a, 0x9b, 0x69, 0x0c, 0x54, 0x4c, 0x3b, 0xdc, 0xea, 0x7b, 0x02, 0x5a, 0xf8, + 0xbc, 0xbd, 0x9f, 0xc0, 0xcc, 0x4c, 0x80, 0xb4, 0x2a, 0x3e, 0xdc, 0xe8, 0xbc, 0x8b, 0xe0, 0xdf, + 0x10, 0x5c, 0x53, 0x07, 0xbb, 0xac, 0x37, 0x62, 0x43, 0x2d, 0x71, 0x2c, 0x4e, 0xfe, 0x87, 0x17, + 0x72, 0x63, 0xdd, 0xdc, 0xd2, 0xda, 0x92, 0xb2, 0x9f, 0x95, 0xae, 0x96, 0xa4, 0xad, 0x37, 0x68, + 0xfb, 0x19, 0xb0, 0x57, 0xff, 0xee, 0x55, 0x9f, 0x45, 0xa5, 0x21, 0xae, 0x77, 0x98, 0xc3, 0xf5, + 0xe6, 0x6d, 0xd0, 0x28, 0x47, 0xd6, 0xaa, 0x64, 0x4a, 0x9d, 0x5c, 0x09, 0x9c, 0x91, 0x49, 0x28, + 0xd3, 0xb4, 0xe4, 0xb0, 0x80, 0xde, 0x64, 0xc8, 0xb5, 0xa9, 0x7b, 0x54, 0x6a, 0x3d, 0x89, 0xaf, + 0xd7, 0x9f, 0x97, 0xea, 0x59, 0x71, 0x1f, 0x5d, 0x18, 0xf2, 0x5b, 0x37, 0xf2, 0xec, 0xbf, 0xfb, + 0xf6, 0xf8, 0xf1, 0x59, 0xab, 0xd4, 0x05, 0xbf, 0x0d, 0x11, 0x5c, 0x1a, 0x64, 0x13, 0x2e, 0xc6, + 0xe5, 0x4a, 0xfe, 0xf9, 0xd0, 0xbd, 0xfa, 0x10, 0xdc, 0x20, 0x8d, 0x73, 0x20, 0xc6, 0xb5, 0x2c, + 0xd7, 0xee, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xae, 0x2b, 0x76, 0x5d, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.validate.go new file mode 100644 index 000000000..681971e2d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha/tap.pb.validate.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/transport_socket/tap/v2alpha/tap.proto + +package envoy_config_transport_socket_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Tap with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tap) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TapValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetTransportSocket() == nil { + return TapValidationError{ + field: "TransportSocket", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTransportSocket()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "TransportSocket", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapValidationError is the validation error returned by Tap.Validate if the +// designated constraints aren't met. +type TapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapValidationError) ErrorName() string { return "TapValidationError" } + +// Error satisfies the builtin error interface +func (e TapValidationError) 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 %sTap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.go new file mode 100644 index 000000000..773fd04e0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.go @@ -0,0 +1,278 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/config/wasm/v2alpha/wasm.proto + +package envoy_config_wasm_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type VmConfig struct { + VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` + Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + Code *core.AsyncDataSource `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` + Configuration *any.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"` + AllowPrecompiled bool `protobuf:"varint,5,opt,name=allow_precompiled,json=allowPrecompiled,proto3" json:"allow_precompiled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VmConfig) Reset() { *m = VmConfig{} } +func (m *VmConfig) String() string { return proto.CompactTextString(m) } +func (*VmConfig) ProtoMessage() {} +func (*VmConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c998f9bead5e7045, []int{0} +} + +func (m *VmConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VmConfig.Unmarshal(m, b) +} +func (m *VmConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VmConfig.Marshal(b, m, deterministic) +} +func (m *VmConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VmConfig.Merge(m, src) +} +func (m *VmConfig) XXX_Size() int { + return xxx_messageInfo_VmConfig.Size(m) +} +func (m *VmConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VmConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VmConfig proto.InternalMessageInfo + +func (m *VmConfig) GetVmId() string { + if m != nil { + return m.VmId + } + return "" +} + +func (m *VmConfig) GetRuntime() string { + if m != nil { + return m.Runtime + } + return "" +} + +func (m *VmConfig) GetCode() *core.AsyncDataSource { + if m != nil { + return m.Code + } + return nil +} + +func (m *VmConfig) GetConfiguration() *any.Any { + if m != nil { + return m.Configuration + } + return nil +} + +func (m *VmConfig) GetAllowPrecompiled() bool { + if m != nil { + return m.AllowPrecompiled + } + return false +} + +type PluginConfig struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + // Types that are valid to be assigned to VmConfig: + // *PluginConfig_InlineVmConfig + VmConfig isPluginConfig_VmConfig `protobuf_oneof:"vm_config"` + Configuration *any.Any `protobuf:"bytes,5,opt,name=configuration,proto3" json:"configuration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PluginConfig) Reset() { *m = PluginConfig{} } +func (m *PluginConfig) String() string { return proto.CompactTextString(m) } +func (*PluginConfig) ProtoMessage() {} +func (*PluginConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c998f9bead5e7045, []int{1} +} + +func (m *PluginConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PluginConfig.Unmarshal(m, b) +} +func (m *PluginConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PluginConfig.Marshal(b, m, deterministic) +} +func (m *PluginConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PluginConfig.Merge(m, src) +} +func (m *PluginConfig) XXX_Size() int { + return xxx_messageInfo_PluginConfig.Size(m) +} +func (m *PluginConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PluginConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PluginConfig proto.InternalMessageInfo + +func (m *PluginConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *PluginConfig) GetGroupName() string { + if m != nil { + return m.GroupName + } + return "" +} + +type isPluginConfig_VmConfig interface { + isPluginConfig_VmConfig() +} + +type PluginConfig_InlineVmConfig struct { + InlineVmConfig *VmConfig `protobuf:"bytes,3,opt,name=inline_vm_config,json=inlineVmConfig,proto3,oneof"` +} + +func (*PluginConfig_InlineVmConfig) isPluginConfig_VmConfig() {} + +func (m *PluginConfig) GetVmConfig() isPluginConfig_VmConfig { + if m != nil { + return m.VmConfig + } + return nil +} + +func (m *PluginConfig) GetInlineVmConfig() *VmConfig { + if x, ok := m.GetVmConfig().(*PluginConfig_InlineVmConfig); ok { + return x.InlineVmConfig + } + return nil +} + +func (m *PluginConfig) GetConfiguration() *any.Any { + if m != nil { + return m.Configuration + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PluginConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PluginConfig_InlineVmConfig)(nil), + } +} + +type WasmService struct { + Config *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + Singleton bool `protobuf:"varint,2,opt,name=singleton,proto3" json:"singleton,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WasmService) Reset() { *m = WasmService{} } +func (m *WasmService) String() string { return proto.CompactTextString(m) } +func (*WasmService) ProtoMessage() {} +func (*WasmService) Descriptor() ([]byte, []int) { + return fileDescriptor_c998f9bead5e7045, []int{2} +} + +func (m *WasmService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WasmService.Unmarshal(m, b) +} +func (m *WasmService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WasmService.Marshal(b, m, deterministic) +} +func (m *WasmService) XXX_Merge(src proto.Message) { + xxx_messageInfo_WasmService.Merge(m, src) +} +func (m *WasmService) XXX_Size() int { + return xxx_messageInfo_WasmService.Size(m) +} +func (m *WasmService) XXX_DiscardUnknown() { + xxx_messageInfo_WasmService.DiscardUnknown(m) +} + +var xxx_messageInfo_WasmService proto.InternalMessageInfo + +func (m *WasmService) GetConfig() *PluginConfig { + if m != nil { + return m.Config + } + return nil +} + +func (m *WasmService) GetSingleton() bool { + if m != nil { + return m.Singleton + } + return false +} + +func init() { + proto.RegisterType((*VmConfig)(nil), "envoy.config.wasm.v2alpha.VmConfig") + proto.RegisterType((*PluginConfig)(nil), "envoy.config.wasm.v2alpha.PluginConfig") + proto.RegisterType((*WasmService)(nil), "envoy.config.wasm.v2alpha.WasmService") +} + +func init() { + proto.RegisterFile("envoy/config/wasm/v2alpha/wasm.proto", fileDescriptor_c998f9bead5e7045) +} + +var fileDescriptor_c998f9bead5e7045 = []byte{ + // 503 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6e, 0xd4, 0x3c, + 0x14, 0xc5, 0x3f, 0xcf, 0x37, 0x33, 0x9d, 0x78, 0x00, 0x0d, 0x06, 0x89, 0x74, 0xd4, 0xa2, 0x61, + 0x40, 0xea, 0x48, 0x48, 0xb6, 0x34, 0x95, 0x58, 0xb0, 0x41, 0x0d, 0x2c, 0x60, 0x03, 0xa3, 0x54, + 0x82, 0x1d, 0x91, 0x27, 0x71, 0x83, 0x25, 0xff, 0x89, 0x1c, 0x27, 0x6d, 0x76, 0xbc, 0x01, 0x5b, + 0x9e, 0x85, 0x27, 0x60, 0xcb, 0x9a, 0x25, 0x6f, 0xc0, 0x92, 0x05, 0x42, 0xb1, 0x93, 0x16, 0x54, + 0x15, 0xb1, 0xb3, 0xef, 0xb9, 0xf7, 0xe6, 0xfc, 0x4e, 0x0c, 0x1f, 0x30, 0x55, 0xeb, 0x86, 0xa4, + 0x5a, 0x9d, 0xf0, 0x9c, 0x9c, 0xd2, 0x52, 0x92, 0x7a, 0x4d, 0x45, 0xf1, 0x8e, 0xba, 0x0b, 0x2e, + 0x8c, 0xb6, 0x1a, 0xed, 0xba, 0x2e, 0xec, 0xbb, 0xb0, 0x13, 0xba, 0xae, 0xf9, 0x9e, 0x5f, 0x40, + 0x0b, 0x4e, 0xea, 0x35, 0x49, 0xb5, 0x61, 0x64, 0x4b, 0x4b, 0xe6, 0x07, 0xe7, 0xbb, 0xb9, 0xd6, + 0xb9, 0x60, 0xc4, 0xdd, 0xb6, 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0xce, 0x55, 0x47, 0x8a, 0xe0, 0x50, + 0x51, 0xc9, 0x7a, 0xd0, 0xf6, 0x8c, 0xf6, 0x21, 0xcc, 0x8d, 0xae, 0x8a, 0xc4, 0x29, 0x8e, 0x35, + 0x0e, 0x5c, 0xe5, 0x65, 0x2b, 0xbf, 0x82, 0x33, 0xae, 0x04, 0x57, 0x2c, 0xa9, 0x65, 0xe2, 0xbd, + 0x74, 0xc0, 0xf7, 0xf1, 0x95, 0x3f, 0x1c, 0xf7, 0xd9, 0x3e, 0xff, 0x2f, 0xbe, 0xe1, 0xc7, 0xcf, + 0xd3, 0xbe, 0x44, 0x3f, 0xfa, 0x67, 0xfa, 0x68, 0x0a, 0x83, 0x73, 0x17, 0x4b, 0x01, 0xa7, 0x6f, + 0x68, 0x29, 0x8f, 0x99, 0xa9, 0x79, 0xca, 0xd0, 0x13, 0x38, 0xee, 0xec, 0x01, 0xb7, 0xf0, 0xe0, + 0x2f, 0xf6, 0x7e, 0x0f, 0x25, 0xee, 0xc6, 0xd0, 0x1e, 0x0c, 0x4a, 0xae, 0x72, 0xc1, 0xac, 0x56, + 0x2e, 0x87, 0x49, 0x7c, 0x51, 0x88, 0xde, 0x7e, 0xff, 0xf8, 0xf3, 0xc3, 0x68, 0x8e, 0x42, 0xbf, + 0x95, 0x9d, 0x59, 0xa6, 0xca, 0xf6, 0xc5, 0x75, 0x9b, 0x0f, 0x3f, 0xbd, 0xff, 0xfc, 0x65, 0x3c, + 0x98, 0x01, 0x78, 0xc0, 0xb5, 0xff, 0x74, 0x61, 0xf4, 0x59, 0x73, 0xb5, 0x8b, 0x28, 0x68, 0xed, + 0x6f, 0x5a, 0xdc, 0x0d, 0xd8, 0x8e, 0x1d, 0xf7, 0xe1, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc2, + 0xc3, 0x3e, 0x74, 0x6c, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.validate.go new file mode 100644 index 000000000..609be2ec4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha/wasm.pb.validate.go @@ -0,0 +1,304 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/config/wasm/v2alpha/wasm.proto + +package envoy_config_wasm_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _wasm_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on VmConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *VmConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VmId + + if len(m.GetRuntime()) < 1 { + return VmConfigValidationError{ + field: "Runtime", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetCode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VmConfigValidationError{ + field: "Code", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VmConfigValidationError{ + field: "Configuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for AllowPrecompiled + + return nil +} + +// VmConfigValidationError is the validation error returned by +// VmConfig.Validate if the designated constraints aren't met. +type VmConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VmConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VmConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VmConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VmConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VmConfigValidationError) ErrorName() string { return "VmConfigValidationError" } + +// Error satisfies the builtin error interface +func (e VmConfigValidationError) 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 %sVmConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VmConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VmConfigValidationError{} + +// Validate checks the field values on PluginConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PluginConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for GroupName + + if v, ok := interface{}(m.GetConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PluginConfigValidationError{ + field: "Configuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.VmConfig.(type) { + + case *PluginConfig_InlineVmConfig: + + if v, ok := interface{}(m.GetInlineVmConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PluginConfigValidationError{ + field: "InlineVmConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PluginConfigValidationError is the validation error returned by +// PluginConfig.Validate if the designated constraints aren't met. +type PluginConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PluginConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PluginConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PluginConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PluginConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PluginConfigValidationError) ErrorName() string { return "PluginConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PluginConfigValidationError) 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 %sPluginConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PluginConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PluginConfigValidationError{} + +// Validate checks the field values on WasmService with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WasmService) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WasmServiceValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Singleton + + return nil +} + +// WasmServiceValidationError is the validation error returned by +// WasmService.Validate if the designated constraints aren't met. +type WasmServiceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WasmServiceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WasmServiceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WasmServiceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WasmServiceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WasmServiceValidationError) ErrorName() string { return "WasmServiceValidationError" } + +// Error satisfies the builtin error interface +func (e WasmServiceValidationError) 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 %sWasmService.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WasmServiceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WasmServiceValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.go new file mode 100644 index 000000000..cc5adafb6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.go @@ -0,0 +1,1292 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/accesslog/v2/accesslog.proto + +package envoy_data_accesslog_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HTTPAccessLogEntry_HTTPVersion int32 + +const ( + HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED HTTPAccessLogEntry_HTTPVersion = 0 + HTTPAccessLogEntry_HTTP10 HTTPAccessLogEntry_HTTPVersion = 1 + HTTPAccessLogEntry_HTTP11 HTTPAccessLogEntry_HTTPVersion = 2 + HTTPAccessLogEntry_HTTP2 HTTPAccessLogEntry_HTTPVersion = 3 + HTTPAccessLogEntry_HTTP3 HTTPAccessLogEntry_HTTPVersion = 4 +) + +var HTTPAccessLogEntry_HTTPVersion_name = map[int32]string{ + 0: "PROTOCOL_UNSPECIFIED", + 1: "HTTP10", + 2: "HTTP11", + 3: "HTTP2", + 4: "HTTP3", +} + +var HTTPAccessLogEntry_HTTPVersion_value = map[string]int32{ + "PROTOCOL_UNSPECIFIED": 0, + "HTTP10": 1, + "HTTP11": 2, + "HTTP2": 3, + "HTTP3": 4, +} + +func (x HTTPAccessLogEntry_HTTPVersion) String() string { + return proto.EnumName(HTTPAccessLogEntry_HTTPVersion_name, int32(x)) +} + +func (HTTPAccessLogEntry_HTTPVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{1, 0} +} + +type ResponseFlags_Unauthorized_Reason int32 + +const ( + ResponseFlags_Unauthorized_REASON_UNSPECIFIED ResponseFlags_Unauthorized_Reason = 0 + ResponseFlags_Unauthorized_EXTERNAL_SERVICE ResponseFlags_Unauthorized_Reason = 1 +) + +var ResponseFlags_Unauthorized_Reason_name = map[int32]string{ + 0: "REASON_UNSPECIFIED", + 1: "EXTERNAL_SERVICE", +} + +var ResponseFlags_Unauthorized_Reason_value = map[string]int32{ + "REASON_UNSPECIFIED": 0, + "EXTERNAL_SERVICE": 1, +} + +func (x ResponseFlags_Unauthorized_Reason) String() string { + return proto.EnumName(ResponseFlags_Unauthorized_Reason_name, int32(x)) +} + +func (ResponseFlags_Unauthorized_Reason) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{4, 0, 0} +} + +type TLSProperties_TLSVersion int32 + +const ( + TLSProperties_VERSION_UNSPECIFIED TLSProperties_TLSVersion = 0 + TLSProperties_TLSv1 TLSProperties_TLSVersion = 1 + TLSProperties_TLSv1_1 TLSProperties_TLSVersion = 2 + TLSProperties_TLSv1_2 TLSProperties_TLSVersion = 3 + TLSProperties_TLSv1_3 TLSProperties_TLSVersion = 4 +) + +var TLSProperties_TLSVersion_name = map[int32]string{ + 0: "VERSION_UNSPECIFIED", + 1: "TLSv1", + 2: "TLSv1_1", + 3: "TLSv1_2", + 4: "TLSv1_3", +} + +var TLSProperties_TLSVersion_value = map[string]int32{ + "VERSION_UNSPECIFIED": 0, + "TLSv1": 1, + "TLSv1_1": 2, + "TLSv1_2": 3, + "TLSv1_3": 4, +} + +func (x TLSProperties_TLSVersion) String() string { + return proto.EnumName(TLSProperties_TLSVersion_name, int32(x)) +} + +func (TLSProperties_TLSVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{5, 0} +} + +type TCPAccessLogEntry struct { + CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"` + ConnectionProperties *ConnectionProperties `protobuf:"bytes,2,opt,name=connection_properties,json=connectionProperties,proto3" json:"connection_properties,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TCPAccessLogEntry) Reset() { *m = TCPAccessLogEntry{} } +func (m *TCPAccessLogEntry) String() string { return proto.CompactTextString(m) } +func (*TCPAccessLogEntry) ProtoMessage() {} +func (*TCPAccessLogEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{0} +} + +func (m *TCPAccessLogEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TCPAccessLogEntry.Unmarshal(m, b) +} +func (m *TCPAccessLogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TCPAccessLogEntry.Marshal(b, m, deterministic) +} +func (m *TCPAccessLogEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_TCPAccessLogEntry.Merge(m, src) +} +func (m *TCPAccessLogEntry) XXX_Size() int { + return xxx_messageInfo_TCPAccessLogEntry.Size(m) +} +func (m *TCPAccessLogEntry) XXX_DiscardUnknown() { + xxx_messageInfo_TCPAccessLogEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_TCPAccessLogEntry proto.InternalMessageInfo + +func (m *TCPAccessLogEntry) GetCommonProperties() *AccessLogCommon { + if m != nil { + return m.CommonProperties + } + return nil +} + +func (m *TCPAccessLogEntry) GetConnectionProperties() *ConnectionProperties { + if m != nil { + return m.ConnectionProperties + } + return nil +} + +type HTTPAccessLogEntry struct { + CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"` + ProtocolVersion HTTPAccessLogEntry_HTTPVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=envoy.data.accesslog.v2.HTTPAccessLogEntry_HTTPVersion" json:"protocol_version,omitempty"` + Request *HTTPRequestProperties `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + Response *HTTPResponseProperties `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPAccessLogEntry) Reset() { *m = HTTPAccessLogEntry{} } +func (m *HTTPAccessLogEntry) String() string { return proto.CompactTextString(m) } +func (*HTTPAccessLogEntry) ProtoMessage() {} +func (*HTTPAccessLogEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{1} +} + +func (m *HTTPAccessLogEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPAccessLogEntry.Unmarshal(m, b) +} +func (m *HTTPAccessLogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPAccessLogEntry.Marshal(b, m, deterministic) +} +func (m *HTTPAccessLogEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPAccessLogEntry.Merge(m, src) +} +func (m *HTTPAccessLogEntry) XXX_Size() int { + return xxx_messageInfo_HTTPAccessLogEntry.Size(m) +} +func (m *HTTPAccessLogEntry) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPAccessLogEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPAccessLogEntry proto.InternalMessageInfo + +func (m *HTTPAccessLogEntry) GetCommonProperties() *AccessLogCommon { + if m != nil { + return m.CommonProperties + } + return nil +} + +func (m *HTTPAccessLogEntry) GetProtocolVersion() HTTPAccessLogEntry_HTTPVersion { + if m != nil { + return m.ProtocolVersion + } + return HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED +} + +func (m *HTTPAccessLogEntry) GetRequest() *HTTPRequestProperties { + if m != nil { + return m.Request + } + return nil +} + +func (m *HTTPAccessLogEntry) GetResponse() *HTTPResponseProperties { + if m != nil { + return m.Response + } + return nil +} + +type ConnectionProperties struct { + ReceivedBytes uint64 `protobuf:"varint,1,opt,name=received_bytes,json=receivedBytes,proto3" json:"received_bytes,omitempty"` + SentBytes uint64 `protobuf:"varint,2,opt,name=sent_bytes,json=sentBytes,proto3" json:"sent_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionProperties) Reset() { *m = ConnectionProperties{} } +func (m *ConnectionProperties) String() string { return proto.CompactTextString(m) } +func (*ConnectionProperties) ProtoMessage() {} +func (*ConnectionProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{2} +} + +func (m *ConnectionProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionProperties.Unmarshal(m, b) +} +func (m *ConnectionProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionProperties.Marshal(b, m, deterministic) +} +func (m *ConnectionProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionProperties.Merge(m, src) +} +func (m *ConnectionProperties) XXX_Size() int { + return xxx_messageInfo_ConnectionProperties.Size(m) +} +func (m *ConnectionProperties) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionProperties proto.InternalMessageInfo + +func (m *ConnectionProperties) GetReceivedBytes() uint64 { + if m != nil { + return m.ReceivedBytes + } + return 0 +} + +func (m *ConnectionProperties) GetSentBytes() uint64 { + if m != nil { + return m.SentBytes + } + return 0 +} + +type AccessLogCommon struct { + SampleRate float64 `protobuf:"fixed64,1,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` + DownstreamRemoteAddress *core.Address `protobuf:"bytes,2,opt,name=downstream_remote_address,json=downstreamRemoteAddress,proto3" json:"downstream_remote_address,omitempty"` + DownstreamLocalAddress *core.Address `protobuf:"bytes,3,opt,name=downstream_local_address,json=downstreamLocalAddress,proto3" json:"downstream_local_address,omitempty"` + TlsProperties *TLSProperties `protobuf:"bytes,4,opt,name=tls_properties,json=tlsProperties,proto3" json:"tls_properties,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + TimeToLastRxByte *duration.Duration `protobuf:"bytes,6,opt,name=time_to_last_rx_byte,json=timeToLastRxByte,proto3" json:"time_to_last_rx_byte,omitempty"` + TimeToFirstUpstreamTxByte *duration.Duration `protobuf:"bytes,7,opt,name=time_to_first_upstream_tx_byte,json=timeToFirstUpstreamTxByte,proto3" json:"time_to_first_upstream_tx_byte,omitempty"` + TimeToLastUpstreamTxByte *duration.Duration `protobuf:"bytes,8,opt,name=time_to_last_upstream_tx_byte,json=timeToLastUpstreamTxByte,proto3" json:"time_to_last_upstream_tx_byte,omitempty"` + TimeToFirstUpstreamRxByte *duration.Duration `protobuf:"bytes,9,opt,name=time_to_first_upstream_rx_byte,json=timeToFirstUpstreamRxByte,proto3" json:"time_to_first_upstream_rx_byte,omitempty"` + TimeToLastUpstreamRxByte *duration.Duration `protobuf:"bytes,10,opt,name=time_to_last_upstream_rx_byte,json=timeToLastUpstreamRxByte,proto3" json:"time_to_last_upstream_rx_byte,omitempty"` + TimeToFirstDownstreamTxByte *duration.Duration `protobuf:"bytes,11,opt,name=time_to_first_downstream_tx_byte,json=timeToFirstDownstreamTxByte,proto3" json:"time_to_first_downstream_tx_byte,omitempty"` + TimeToLastDownstreamTxByte *duration.Duration `protobuf:"bytes,12,opt,name=time_to_last_downstream_tx_byte,json=timeToLastDownstreamTxByte,proto3" json:"time_to_last_downstream_tx_byte,omitempty"` + UpstreamRemoteAddress *core.Address `protobuf:"bytes,13,opt,name=upstream_remote_address,json=upstreamRemoteAddress,proto3" json:"upstream_remote_address,omitempty"` + UpstreamLocalAddress *core.Address `protobuf:"bytes,14,opt,name=upstream_local_address,json=upstreamLocalAddress,proto3" json:"upstream_local_address,omitempty"` + UpstreamCluster string `protobuf:"bytes,15,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` + ResponseFlags *ResponseFlags `protobuf:"bytes,16,opt,name=response_flags,json=responseFlags,proto3" json:"response_flags,omitempty"` + Metadata *core.Metadata `protobuf:"bytes,17,opt,name=metadata,proto3" json:"metadata,omitempty"` + UpstreamTransportFailureReason string `protobuf:"bytes,18,opt,name=upstream_transport_failure_reason,json=upstreamTransportFailureReason,proto3" json:"upstream_transport_failure_reason,omitempty"` + RouteName string `protobuf:"bytes,19,opt,name=route_name,json=routeName,proto3" json:"route_name,omitempty"` + DownstreamDirectRemoteAddress *core.Address `protobuf:"bytes,20,opt,name=downstream_direct_remote_address,json=downstreamDirectRemoteAddress,proto3" json:"downstream_direct_remote_address,omitempty"` + FilterStateObjects map[string]*any.Any `protobuf:"bytes,21,rep,name=filter_state_objects,json=filterStateObjects,proto3" json:"filter_state_objects,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AccessLogCommon) Reset() { *m = AccessLogCommon{} } +func (m *AccessLogCommon) String() string { return proto.CompactTextString(m) } +func (*AccessLogCommon) ProtoMessage() {} +func (*AccessLogCommon) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{3} +} + +func (m *AccessLogCommon) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccessLogCommon.Unmarshal(m, b) +} +func (m *AccessLogCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccessLogCommon.Marshal(b, m, deterministic) +} +func (m *AccessLogCommon) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessLogCommon.Merge(m, src) +} +func (m *AccessLogCommon) XXX_Size() int { + return xxx_messageInfo_AccessLogCommon.Size(m) +} +func (m *AccessLogCommon) XXX_DiscardUnknown() { + xxx_messageInfo_AccessLogCommon.DiscardUnknown(m) +} + +var xxx_messageInfo_AccessLogCommon proto.InternalMessageInfo + +func (m *AccessLogCommon) GetSampleRate() float64 { + if m != nil { + return m.SampleRate + } + return 0 +} + +func (m *AccessLogCommon) GetDownstreamRemoteAddress() *core.Address { + if m != nil { + return m.DownstreamRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetDownstreamLocalAddress() *core.Address { + if m != nil { + return m.DownstreamLocalAddress + } + return nil +} + +func (m *AccessLogCommon) GetTlsProperties() *TLSProperties { + if m != nil { + return m.TlsProperties + } + return nil +} + +func (m *AccessLogCommon) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastRxByte() *duration.Duration { + if m != nil { + return m.TimeToLastRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstUpstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstUpstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastUpstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToLastUpstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstUpstreamRxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstUpstreamRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastUpstreamRxByte() *duration.Duration { + if m != nil { + return m.TimeToLastUpstreamRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstDownstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstDownstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastDownstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToLastDownstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamRemoteAddress() *core.Address { + if m != nil { + return m.UpstreamRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamLocalAddress() *core.Address { + if m != nil { + return m.UpstreamLocalAddress + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamCluster() string { + if m != nil { + return m.UpstreamCluster + } + return "" +} + +func (m *AccessLogCommon) GetResponseFlags() *ResponseFlags { + if m != nil { + return m.ResponseFlags + } + return nil +} + +func (m *AccessLogCommon) GetMetadata() *core.Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamTransportFailureReason() string { + if m != nil { + return m.UpstreamTransportFailureReason + } + return "" +} + +func (m *AccessLogCommon) GetRouteName() string { + if m != nil { + return m.RouteName + } + return "" +} + +func (m *AccessLogCommon) GetDownstreamDirectRemoteAddress() *core.Address { + if m != nil { + return m.DownstreamDirectRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetFilterStateObjects() map[string]*any.Any { + if m != nil { + return m.FilterStateObjects + } + return nil +} + +type ResponseFlags struct { + FailedLocalHealthcheck bool `protobuf:"varint,1,opt,name=failed_local_healthcheck,json=failedLocalHealthcheck,proto3" json:"failed_local_healthcheck,omitempty"` + NoHealthyUpstream bool `protobuf:"varint,2,opt,name=no_healthy_upstream,json=noHealthyUpstream,proto3" json:"no_healthy_upstream,omitempty"` + UpstreamRequestTimeout bool `protobuf:"varint,3,opt,name=upstream_request_timeout,json=upstreamRequestTimeout,proto3" json:"upstream_request_timeout,omitempty"` + LocalReset bool `protobuf:"varint,4,opt,name=local_reset,json=localReset,proto3" json:"local_reset,omitempty"` + UpstreamRemoteReset bool `protobuf:"varint,5,opt,name=upstream_remote_reset,json=upstreamRemoteReset,proto3" json:"upstream_remote_reset,omitempty"` + UpstreamConnectionFailure bool `protobuf:"varint,6,opt,name=upstream_connection_failure,json=upstreamConnectionFailure,proto3" json:"upstream_connection_failure,omitempty"` + UpstreamConnectionTermination bool `protobuf:"varint,7,opt,name=upstream_connection_termination,json=upstreamConnectionTermination,proto3" json:"upstream_connection_termination,omitempty"` + UpstreamOverflow bool `protobuf:"varint,8,opt,name=upstream_overflow,json=upstreamOverflow,proto3" json:"upstream_overflow,omitempty"` + NoRouteFound bool `protobuf:"varint,9,opt,name=no_route_found,json=noRouteFound,proto3" json:"no_route_found,omitempty"` + DelayInjected bool `protobuf:"varint,10,opt,name=delay_injected,json=delayInjected,proto3" json:"delay_injected,omitempty"` + FaultInjected bool `protobuf:"varint,11,opt,name=fault_injected,json=faultInjected,proto3" json:"fault_injected,omitempty"` + RateLimited bool `protobuf:"varint,12,opt,name=rate_limited,json=rateLimited,proto3" json:"rate_limited,omitempty"` + UnauthorizedDetails *ResponseFlags_Unauthorized `protobuf:"bytes,13,opt,name=unauthorized_details,json=unauthorizedDetails,proto3" json:"unauthorized_details,omitempty"` + RateLimitServiceError bool `protobuf:"varint,14,opt,name=rate_limit_service_error,json=rateLimitServiceError,proto3" json:"rate_limit_service_error,omitempty"` + DownstreamConnectionTermination bool `protobuf:"varint,15,opt,name=downstream_connection_termination,json=downstreamConnectionTermination,proto3" json:"downstream_connection_termination,omitempty"` + UpstreamRetryLimitExceeded bool `protobuf:"varint,16,opt,name=upstream_retry_limit_exceeded,json=upstreamRetryLimitExceeded,proto3" json:"upstream_retry_limit_exceeded,omitempty"` + StreamIdleTimeout bool `protobuf:"varint,17,opt,name=stream_idle_timeout,json=streamIdleTimeout,proto3" json:"stream_idle_timeout,omitempty"` + InvalidEnvoyRequestHeaders bool `protobuf:"varint,18,opt,name=invalid_envoy_request_headers,json=invalidEnvoyRequestHeaders,proto3" json:"invalid_envoy_request_headers,omitempty"` + DownstreamProtocolError bool `protobuf:"varint,19,opt,name=downstream_protocol_error,json=downstreamProtocolError,proto3" json:"downstream_protocol_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseFlags) Reset() { *m = ResponseFlags{} } +func (m *ResponseFlags) String() string { return proto.CompactTextString(m) } +func (*ResponseFlags) ProtoMessage() {} +func (*ResponseFlags) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{4} +} + +func (m *ResponseFlags) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseFlags.Unmarshal(m, b) +} +func (m *ResponseFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseFlags.Marshal(b, m, deterministic) +} +func (m *ResponseFlags) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseFlags.Merge(m, src) +} +func (m *ResponseFlags) XXX_Size() int { + return xxx_messageInfo_ResponseFlags.Size(m) +} +func (m *ResponseFlags) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseFlags.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseFlags proto.InternalMessageInfo + +func (m *ResponseFlags) GetFailedLocalHealthcheck() bool { + if m != nil { + return m.FailedLocalHealthcheck + } + return false +} + +func (m *ResponseFlags) GetNoHealthyUpstream() bool { + if m != nil { + return m.NoHealthyUpstream + } + return false +} + +func (m *ResponseFlags) GetUpstreamRequestTimeout() bool { + if m != nil { + return m.UpstreamRequestTimeout + } + return false +} + +func (m *ResponseFlags) GetLocalReset() bool { + if m != nil { + return m.LocalReset + } + return false +} + +func (m *ResponseFlags) GetUpstreamRemoteReset() bool { + if m != nil { + return m.UpstreamRemoteReset + } + return false +} + +func (m *ResponseFlags) GetUpstreamConnectionFailure() bool { + if m != nil { + return m.UpstreamConnectionFailure + } + return false +} + +func (m *ResponseFlags) GetUpstreamConnectionTermination() bool { + if m != nil { + return m.UpstreamConnectionTermination + } + return false +} + +func (m *ResponseFlags) GetUpstreamOverflow() bool { + if m != nil { + return m.UpstreamOverflow + } + return false +} + +func (m *ResponseFlags) GetNoRouteFound() bool { + if m != nil { + return m.NoRouteFound + } + return false +} + +func (m *ResponseFlags) GetDelayInjected() bool { + if m != nil { + return m.DelayInjected + } + return false +} + +func (m *ResponseFlags) GetFaultInjected() bool { + if m != nil { + return m.FaultInjected + } + return false +} + +func (m *ResponseFlags) GetRateLimited() bool { + if m != nil { + return m.RateLimited + } + return false +} + +func (m *ResponseFlags) GetUnauthorizedDetails() *ResponseFlags_Unauthorized { + if m != nil { + return m.UnauthorizedDetails + } + return nil +} + +func (m *ResponseFlags) GetRateLimitServiceError() bool { + if m != nil { + return m.RateLimitServiceError + } + return false +} + +func (m *ResponseFlags) GetDownstreamConnectionTermination() bool { + if m != nil { + return m.DownstreamConnectionTermination + } + return false +} + +func (m *ResponseFlags) GetUpstreamRetryLimitExceeded() bool { + if m != nil { + return m.UpstreamRetryLimitExceeded + } + return false +} + +func (m *ResponseFlags) GetStreamIdleTimeout() bool { + if m != nil { + return m.StreamIdleTimeout + } + return false +} + +func (m *ResponseFlags) GetInvalidEnvoyRequestHeaders() bool { + if m != nil { + return m.InvalidEnvoyRequestHeaders + } + return false +} + +func (m *ResponseFlags) GetDownstreamProtocolError() bool { + if m != nil { + return m.DownstreamProtocolError + } + return false +} + +type ResponseFlags_Unauthorized struct { + Reason ResponseFlags_Unauthorized_Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=envoy.data.accesslog.v2.ResponseFlags_Unauthorized_Reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseFlags_Unauthorized) Reset() { *m = ResponseFlags_Unauthorized{} } +func (m *ResponseFlags_Unauthorized) String() string { return proto.CompactTextString(m) } +func (*ResponseFlags_Unauthorized) ProtoMessage() {} +func (*ResponseFlags_Unauthorized) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{4, 0} +} + +func (m *ResponseFlags_Unauthorized) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseFlags_Unauthorized.Unmarshal(m, b) +} +func (m *ResponseFlags_Unauthorized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseFlags_Unauthorized.Marshal(b, m, deterministic) +} +func (m *ResponseFlags_Unauthorized) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseFlags_Unauthorized.Merge(m, src) +} +func (m *ResponseFlags_Unauthorized) XXX_Size() int { + return xxx_messageInfo_ResponseFlags_Unauthorized.Size(m) +} +func (m *ResponseFlags_Unauthorized) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseFlags_Unauthorized.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseFlags_Unauthorized proto.InternalMessageInfo + +func (m *ResponseFlags_Unauthorized) GetReason() ResponseFlags_Unauthorized_Reason { + if m != nil { + return m.Reason + } + return ResponseFlags_Unauthorized_REASON_UNSPECIFIED +} + +type TLSProperties struct { + TlsVersion TLSProperties_TLSVersion `protobuf:"varint,1,opt,name=tls_version,json=tlsVersion,proto3,enum=envoy.data.accesslog.v2.TLSProperties_TLSVersion" json:"tls_version,omitempty"` + TlsCipherSuite *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=tls_cipher_suite,json=tlsCipherSuite,proto3" json:"tls_cipher_suite,omitempty"` + TlsSniHostname string `protobuf:"bytes,3,opt,name=tls_sni_hostname,json=tlsSniHostname,proto3" json:"tls_sni_hostname,omitempty"` + LocalCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,4,opt,name=local_certificate_properties,json=localCertificateProperties,proto3" json:"local_certificate_properties,omitempty"` + PeerCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,5,opt,name=peer_certificate_properties,json=peerCertificateProperties,proto3" json:"peer_certificate_properties,omitempty"` + TlsSessionId string `protobuf:"bytes,6,opt,name=tls_session_id,json=tlsSessionId,proto3" json:"tls_session_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties) Reset() { *m = TLSProperties{} } +func (m *TLSProperties) String() string { return proto.CompactTextString(m) } +func (*TLSProperties) ProtoMessage() {} +func (*TLSProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{5} +} + +func (m *TLSProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties.Unmarshal(m, b) +} +func (m *TLSProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties.Marshal(b, m, deterministic) +} +func (m *TLSProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties.Merge(m, src) +} +func (m *TLSProperties) XXX_Size() int { + return xxx_messageInfo_TLSProperties.Size(m) +} +func (m *TLSProperties) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties proto.InternalMessageInfo + +func (m *TLSProperties) GetTlsVersion() TLSProperties_TLSVersion { + if m != nil { + return m.TlsVersion + } + return TLSProperties_VERSION_UNSPECIFIED +} + +func (m *TLSProperties) GetTlsCipherSuite() *wrappers.UInt32Value { + if m != nil { + return m.TlsCipherSuite + } + return nil +} + +func (m *TLSProperties) GetTlsSniHostname() string { + if m != nil { + return m.TlsSniHostname + } + return "" +} + +func (m *TLSProperties) GetLocalCertificateProperties() *TLSProperties_CertificateProperties { + if m != nil { + return m.LocalCertificateProperties + } + return nil +} + +func (m *TLSProperties) GetPeerCertificateProperties() *TLSProperties_CertificateProperties { + if m != nil { + return m.PeerCertificateProperties + } + return nil +} + +func (m *TLSProperties) GetTlsSessionId() string { + if m != nil { + return m.TlsSessionId + } + return "" +} + +type TLSProperties_CertificateProperties struct { + SubjectAltName []*TLSProperties_CertificateProperties_SubjectAltName `protobuf:"bytes,1,rep,name=subject_alt_name,json=subjectAltName,proto3" json:"subject_alt_name,omitempty"` + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties_CertificateProperties) Reset() { *m = TLSProperties_CertificateProperties{} } +func (m *TLSProperties_CertificateProperties) String() string { return proto.CompactTextString(m) } +func (*TLSProperties_CertificateProperties) ProtoMessage() {} +func (*TLSProperties_CertificateProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{5, 0} +} + +func (m *TLSProperties_CertificateProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties_CertificateProperties.Unmarshal(m, b) +} +func (m *TLSProperties_CertificateProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties_CertificateProperties.Marshal(b, m, deterministic) +} +func (m *TLSProperties_CertificateProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties_CertificateProperties.Merge(m, src) +} +func (m *TLSProperties_CertificateProperties) XXX_Size() int { + return xxx_messageInfo_TLSProperties_CertificateProperties.Size(m) +} +func (m *TLSProperties_CertificateProperties) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties_CertificateProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties_CertificateProperties proto.InternalMessageInfo + +func (m *TLSProperties_CertificateProperties) GetSubjectAltName() []*TLSProperties_CertificateProperties_SubjectAltName { + if m != nil { + return m.SubjectAltName + } + return nil +} + +func (m *TLSProperties_CertificateProperties) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +type TLSProperties_CertificateProperties_SubjectAltName struct { + // Types that are valid to be assigned to San: + // *TLSProperties_CertificateProperties_SubjectAltName_Uri + // *TLSProperties_CertificateProperties_SubjectAltName_Dns + San isTLSProperties_CertificateProperties_SubjectAltName_San `protobuf_oneof:"san"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) Reset() { + *m = TLSProperties_CertificateProperties_SubjectAltName{} +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) String() string { + return proto.CompactTextString(m) +} +func (*TLSProperties_CertificateProperties_SubjectAltName) ProtoMessage() {} +func (*TLSProperties_CertificateProperties_SubjectAltName) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{5, 0, 0} +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Unmarshal(m, b) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Marshal(b, m, deterministic) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Merge(m, src) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Size() int { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Size(m) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName proto.InternalMessageInfo + +type isTLSProperties_CertificateProperties_SubjectAltName_San interface { + isTLSProperties_CertificateProperties_SubjectAltName_San() +} + +type TLSProperties_CertificateProperties_SubjectAltName_Uri struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"` +} + +type TLSProperties_CertificateProperties_SubjectAltName_Dns struct { + Dns string `protobuf:"bytes,2,opt,name=dns,proto3,oneof"` +} + +func (*TLSProperties_CertificateProperties_SubjectAltName_Uri) isTLSProperties_CertificateProperties_SubjectAltName_San() { +} + +func (*TLSProperties_CertificateProperties_SubjectAltName_Dns) isTLSProperties_CertificateProperties_SubjectAltName_San() { +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetSan() isTLSProperties_CertificateProperties_SubjectAltName_San { + if m != nil { + return m.San + } + return nil +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetUri() string { + if x, ok := m.GetSan().(*TLSProperties_CertificateProperties_SubjectAltName_Uri); ok { + return x.Uri + } + return "" +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetDns() string { + if x, ok := m.GetSan().(*TLSProperties_CertificateProperties_SubjectAltName_Dns); ok { + return x.Dns + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TLSProperties_CertificateProperties_SubjectAltName) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TLSProperties_CertificateProperties_SubjectAltName_Uri)(nil), + (*TLSProperties_CertificateProperties_SubjectAltName_Dns)(nil), + } +} + +type HTTPRequestProperties struct { + RequestMethod core.RequestMethod `protobuf:"varint,1,opt,name=request_method,json=requestMethod,proto3,enum=envoy.api.v2.core.RequestMethod" json:"request_method,omitempty"` + Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"` + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` + Port *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` + Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` + Referer string `protobuf:"bytes,7,opt,name=referer,proto3" json:"referer,omitempty"` + ForwardedFor string `protobuf:"bytes,8,opt,name=forwarded_for,json=forwardedFor,proto3" json:"forwarded_for,omitempty"` + RequestId string `protobuf:"bytes,9,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + OriginalPath string `protobuf:"bytes,10,opt,name=original_path,json=originalPath,proto3" json:"original_path,omitempty"` + RequestHeadersBytes uint64 `protobuf:"varint,11,opt,name=request_headers_bytes,json=requestHeadersBytes,proto3" json:"request_headers_bytes,omitempty"` + RequestBodyBytes uint64 `protobuf:"varint,12,opt,name=request_body_bytes,json=requestBodyBytes,proto3" json:"request_body_bytes,omitempty"` + RequestHeaders map[string]string `protobuf:"bytes,13,rep,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPRequestProperties) Reset() { *m = HTTPRequestProperties{} } +func (m *HTTPRequestProperties) String() string { return proto.CompactTextString(m) } +func (*HTTPRequestProperties) ProtoMessage() {} +func (*HTTPRequestProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{6} +} + +func (m *HTTPRequestProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPRequestProperties.Unmarshal(m, b) +} +func (m *HTTPRequestProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPRequestProperties.Marshal(b, m, deterministic) +} +func (m *HTTPRequestProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRequestProperties.Merge(m, src) +} +func (m *HTTPRequestProperties) XXX_Size() int { + return xxx_messageInfo_HTTPRequestProperties.Size(m) +} +func (m *HTTPRequestProperties) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRequestProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRequestProperties proto.InternalMessageInfo + +func (m *HTTPRequestProperties) GetRequestMethod() core.RequestMethod { + if m != nil { + return m.RequestMethod + } + return core.RequestMethod_METHOD_UNSPECIFIED +} + +func (m *HTTPRequestProperties) GetScheme() string { + if m != nil { + return m.Scheme + } + return "" +} + +func (m *HTTPRequestProperties) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *HTTPRequestProperties) GetPort() *wrappers.UInt32Value { + if m != nil { + return m.Port + } + return nil +} + +func (m *HTTPRequestProperties) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *HTTPRequestProperties) GetUserAgent() string { + if m != nil { + return m.UserAgent + } + return "" +} + +func (m *HTTPRequestProperties) GetReferer() string { + if m != nil { + return m.Referer + } + return "" +} + +func (m *HTTPRequestProperties) GetForwardedFor() string { + if m != nil { + return m.ForwardedFor + } + return "" +} + +func (m *HTTPRequestProperties) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *HTTPRequestProperties) GetOriginalPath() string { + if m != nil { + return m.OriginalPath + } + return "" +} + +func (m *HTTPRequestProperties) GetRequestHeadersBytes() uint64 { + if m != nil { + return m.RequestHeadersBytes + } + return 0 +} + +func (m *HTTPRequestProperties) GetRequestBodyBytes() uint64 { + if m != nil { + return m.RequestBodyBytes + } + return 0 +} + +func (m *HTTPRequestProperties) GetRequestHeaders() map[string]string { + if m != nil { + return m.RequestHeaders + } + return nil +} + +type HTTPResponseProperties struct { + ResponseCode *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` + ResponseHeadersBytes uint64 `protobuf:"varint,2,opt,name=response_headers_bytes,json=responseHeadersBytes,proto3" json:"response_headers_bytes,omitempty"` + ResponseBodyBytes uint64 `protobuf:"varint,3,opt,name=response_body_bytes,json=responseBodyBytes,proto3" json:"response_body_bytes,omitempty"` + ResponseHeaders map[string]string `protobuf:"bytes,4,rep,name=response_headers,json=responseHeaders,proto3" json:"response_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResponseTrailers map[string]string `protobuf:"bytes,5,rep,name=response_trailers,json=responseTrailers,proto3" json:"response_trailers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResponseCodeDetails string `protobuf:"bytes,6,opt,name=response_code_details,json=responseCodeDetails,proto3" json:"response_code_details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPResponseProperties) Reset() { *m = HTTPResponseProperties{} } +func (m *HTTPResponseProperties) String() string { return proto.CompactTextString(m) } +func (*HTTPResponseProperties) ProtoMessage() {} +func (*HTTPResponseProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_ca1a3c8f3c17c754, []int{7} +} + +func (m *HTTPResponseProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPResponseProperties.Unmarshal(m, b) +} +func (m *HTTPResponseProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPResponseProperties.Marshal(b, m, deterministic) +} +func (m *HTTPResponseProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPResponseProperties.Merge(m, src) +} +func (m *HTTPResponseProperties) XXX_Size() int { + return xxx_messageInfo_HTTPResponseProperties.Size(m) +} +func (m *HTTPResponseProperties) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPResponseProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPResponseProperties proto.InternalMessageInfo + +func (m *HTTPResponseProperties) GetResponseCode() *wrappers.UInt32Value { + if m != nil { + return m.ResponseCode + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseHeadersBytes() uint64 { + if m != nil { + return m.ResponseHeadersBytes + } + return 0 +} + +func (m *HTTPResponseProperties) GetResponseBodyBytes() uint64 { + if m != nil { + return m.ResponseBodyBytes + } + return 0 +} + +func (m *HTTPResponseProperties) GetResponseHeaders() map[string]string { + if m != nil { + return m.ResponseHeaders + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseTrailers() map[string]string { + if m != nil { + return m.ResponseTrailers + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseCodeDetails() string { + if m != nil { + return m.ResponseCodeDetails + } + return "" +} + +func init() { + proto.RegisterEnum("envoy.data.accesslog.v2.HTTPAccessLogEntry_HTTPVersion", HTTPAccessLogEntry_HTTPVersion_name, HTTPAccessLogEntry_HTTPVersion_value) + proto.RegisterEnum("envoy.data.accesslog.v2.ResponseFlags_Unauthorized_Reason", ResponseFlags_Unauthorized_Reason_name, ResponseFlags_Unauthorized_Reason_value) + proto.RegisterEnum("envoy.data.accesslog.v2.TLSProperties_TLSVersion", TLSProperties_TLSVersion_name, TLSProperties_TLSVersion_value) + proto.RegisterType((*TCPAccessLogEntry)(nil), "envoy.data.accesslog.v2.TCPAccessLogEntry") + proto.RegisterType((*HTTPAccessLogEntry)(nil), "envoy.data.accesslog.v2.HTTPAccessLogEntry") + proto.RegisterType((*ConnectionProperties)(nil), "envoy.data.accesslog.v2.ConnectionProperties") + proto.RegisterType((*AccessLogCommon)(nil), "envoy.data.accesslog.v2.AccessLogCommon") + proto.RegisterMapType((map[string]*any.Any)(nil), "envoy.data.accesslog.v2.AccessLogCommon.FilterStateObjectsEntry") + proto.RegisterType((*ResponseFlags)(nil), "envoy.data.accesslog.v2.ResponseFlags") + proto.RegisterType((*ResponseFlags_Unauthorized)(nil), "envoy.data.accesslog.v2.ResponseFlags.Unauthorized") + proto.RegisterType((*TLSProperties)(nil), "envoy.data.accesslog.v2.TLSProperties") + proto.RegisterType((*TLSProperties_CertificateProperties)(nil), "envoy.data.accesslog.v2.TLSProperties.CertificateProperties") + proto.RegisterType((*TLSProperties_CertificateProperties_SubjectAltName)(nil), "envoy.data.accesslog.v2.TLSProperties.CertificateProperties.SubjectAltName") + proto.RegisterType((*HTTPRequestProperties)(nil), "envoy.data.accesslog.v2.HTTPRequestProperties") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v2.HTTPRequestProperties.RequestHeadersEntry") + proto.RegisterType((*HTTPResponseProperties)(nil), "envoy.data.accesslog.v2.HTTPResponseProperties") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry") +} + +func init() { + proto.RegisterFile("envoy/data/accesslog/v2/accesslog.proto", fileDescriptor_ca1a3c8f3c17c754) +} + +var fileDescriptor_ca1a3c8f3c17c754 = []byte{ + // 2208 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5b, 0x73, 0x1b, 0x4b, + 0x11, 0x8e, 0x7c, 0x8b, 0xd4, 0xf2, 0x45, 0x1e, 0xcb, 0xb6, 0xac, 0xc4, 0xb1, 0x63, 0xce, 0x81, + 0x70, 0x93, 0x4f, 0x1c, 0x8a, 0x84, 0x14, 0xc5, 0x41, 0x92, 0xe5, 0xb2, 0x38, 0x4e, 0x6c, 0x46, + 0xb2, 0xa1, 0xe0, 0x14, 0xcb, 0x78, 0x77, 0x64, 0x2f, 0x59, 0xed, 0x88, 0x99, 0x91, 0x13, 0x51, + 0x14, 0x45, 0xf1, 0x33, 0xce, 0x4f, 0xa1, 0x0a, 0x9e, 0x79, 0xa2, 0xe0, 0x37, 0xf0, 0xc4, 0x1b, + 0xcf, 0xa7, 0x8a, 0x2a, 0x6a, 0x2e, 0x7b, 0xd1, 0xc5, 0x51, 0x12, 0x28, 0xf4, 0xb4, 0xdb, 0xfd, + 0xf5, 0x37, 0xad, 0x9e, 0xee, 0x9e, 0x9e, 0x85, 0xaf, 0xd1, 0xf0, 0x86, 0x0d, 0xf6, 0x3d, 0x22, + 0xc9, 0x3e, 0x71, 0x5d, 0x2a, 0x44, 0xc0, 0xae, 0xf6, 0x6f, 0x0e, 0x92, 0x97, 0x4a, 0x8f, 0x33, + 0xc9, 0xd0, 0xa6, 0x06, 0x56, 0x14, 0xb0, 0x92, 0xe8, 0x6e, 0x0e, 0xca, 0x3b, 0x86, 0x81, 0xf4, + 0x7c, 0x65, 0xe6, 0x32, 0x4e, 0xf7, 0x89, 0xe7, 0x71, 0x2a, 0x84, 0xb1, 0x2c, 0xdf, 0x1f, 0x07, + 0x5c, 0x12, 0x41, 0xad, 0x76, 0xeb, 0x8a, 0xb1, 0xab, 0x80, 0xee, 0xeb, 0xb7, 0xcb, 0x7e, 0x67, + 0x9f, 0x84, 0x03, 0xab, 0x7a, 0x30, 0xaa, 0xf2, 0xfa, 0x9c, 0x48, 0x9f, 0x85, 0x56, 0xbf, 0x33, + 0xaa, 0x97, 0x7e, 0x97, 0x0a, 0x49, 0xba, 0xbd, 0xdb, 0x08, 0x5e, 0x73, 0xd2, 0xeb, 0x51, 0x1e, + 0x79, 0xb6, 0xdd, 0xf7, 0x7a, 0x64, 0x9f, 0x84, 0x21, 0x93, 0x9a, 0x57, 0xec, 0x0b, 0x49, 0x64, + 0x3f, 0x52, 0x6f, 0xde, 0x90, 0xc0, 0xf7, 0x88, 0xa4, 0xfb, 0xd1, 0x83, 0x51, 0xec, 0xfd, 0x35, + 0x03, 0xab, 0xed, 0xfa, 0x59, 0x55, 0x87, 0xe1, 0x84, 0x5d, 0x35, 0x42, 0xc9, 0x07, 0xe8, 0x1c, + 0x56, 0x5d, 0xd6, 0xed, 0xb2, 0xd0, 0xe9, 0x71, 0xd6, 0xa3, 0x5c, 0xfa, 0x54, 0x94, 0x32, 0xbb, + 0x99, 0x47, 0xf9, 0x83, 0x47, 0x95, 0x5b, 0xa2, 0x57, 0x89, 0x39, 0xea, 0xda, 0x14, 0x17, 0x0c, + 0xc5, 0x59, 0xcc, 0x80, 0x2e, 0x61, 0xdd, 0x65, 0x61, 0x48, 0x5d, 0xe5, 0x61, 0x9a, 0x7a, 0x46, + 0x53, 0x7f, 0xfb, 0x56, 0xea, 0x7a, 0x6c, 0x95, 0xb0, 0xe1, 0xa2, 0x3b, 0x41, 0xba, 0xf7, 0xa7, + 0x59, 0x40, 0xc7, 0xed, 0xf6, 0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e9, 0xf6, 0x02, 0xea, 0x70, 0x22, + 0xa9, 0xa6, 0xcd, 0xd4, 0x36, 0xbf, 0xac, 0x15, 0x11, 0xda, 0xba, 0xa3, 0x7f, 0xff, 0xfa, 0xf4, + 0xe1, 0x1d, 0xfb, 0xc3, 0x60, 0xb0, 0x98, 0x48, 0x8a, 0x2e, 0x60, 0xcb, 0x63, 0xaf, 0x43, 0x21, + 0x39, 0x25, 0x5d, 0x87, 0xd3, 0x2e, 0x93, 0xd4, 0xb1, 0x1d, 0xc3, 0xe6, 0x74, 0xd9, 0x06, 0x98, + 0xf4, 0x7c, 0x15, 0x55, 0xd5, 0x32, 0x2a, 0x55, 0x83, 0xc0, 0x9b, 0x89, 0x31, 0xd6, 0xb6, 0x56, + 0x81, 0xda, 0x50, 0x4a, 0xf1, 0x06, 0xcc, 0x25, 0x41, 0x4c, 0x3b, 0x3b, 0x95, 0x76, 0x23, 0xb1, + 0x3d, 0x51, 0xa6, 0x11, 0xeb, 0x0b, 0x58, 0x96, 0x81, 0x48, 0xe7, 0xbf, 0xc9, 0x81, 0xaf, 0xde, + 0x9a, 0x03, 0xed, 0x93, 0x56, 0x6a, 0xeb, 0x97, 0x64, 0x20, 0x52, 0x1b, 0xf2, 0x3d, 0x00, 0x21, + 0x09, 0x97, 0x8e, 0x6a, 0x55, 0xa5, 0x79, 0xeb, 0x96, 0x69, 0x53, 0x95, 0xa8, 0x4d, 0x55, 0xda, + 0x51, 0x1f, 0xc3, 0x39, 0x8d, 0x56, 0xef, 0xa8, 0x09, 0x45, 0x65, 0xe4, 0x48, 0xe6, 0x04, 0x44, + 0x48, 0x87, 0xbf, 0xd1, 0xfb, 0x55, 0x5a, 0xd0, 0x24, 0x5b, 0x63, 0x24, 0x87, 0xb6, 0x59, 0xe2, + 0x82, 0x32, 0x6b, 0xb3, 0x13, 0x22, 0x24, 0x7e, 0xa3, 0x76, 0x14, 0x7d, 0x0e, 0x0f, 0x22, 0xaa, + 0x8e, 0xcf, 0x85, 0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x38, 0x06, 0xa3, 0x26, 0x3c, 0x4c, 0x6a, 0x84, + 0x93, 0x50, 0xf4, 0x18, 0x97, 0x4e, 0x87, 0xf8, 0x41, 0x9f, 0x53, 0x87, 0x53, 0x22, 0x58, 0x58, + 0x42, 0xfa, 0x3f, 0x3c, 0x88, 0x80, 0xed, 0x08, 0x77, 0x64, 0x60, 0x58, 0xa3, 0x54, 0x27, 0xe7, + 0xac, 0x2f, 0xa9, 0x13, 0x92, 0x2e, 0x2d, 0xad, 0x69, 0x9b, 0x9c, 0x96, 0xbc, 0x24, 0x5d, 0x8a, + 0x5c, 0xd8, 0x4d, 0x65, 0x85, 0xe7, 0x73, 0xea, 0xca, 0xd1, 0xbd, 0x2c, 0x4e, 0x0d, 0xfc, 0x76, + 0xc2, 0x71, 0xa8, 0x29, 0x86, 0xf7, 0x94, 0x43, 0xb1, 0xe3, 0x07, 0x92, 0x72, 0x47, 0x4d, 0x53, + 0xd4, 0x61, 0x97, 0xbf, 0xa2, 0xae, 0x14, 0xa5, 0xf5, 0xdd, 0xd9, 0x47, 0xf9, 0x83, 0x1f, 0xbe, + 0xeb, 0xe0, 0x50, 0x39, 0xd2, 0x24, 0x2d, 0xc5, 0x71, 0x6a, 0x28, 0xf4, 0xb9, 0x8f, 0x51, 0x67, + 0x4c, 0x51, 0xfe, 0x39, 0x6c, 0xde, 0x02, 0x47, 0x05, 0x98, 0x7d, 0x45, 0x07, 0xfa, 0x84, 0xca, + 0x61, 0xf5, 0x88, 0xbe, 0x01, 0xf3, 0x37, 0x24, 0xe8, 0x53, 0x7b, 0xda, 0x14, 0xc7, 0xca, 0xa1, + 0x1a, 0x0e, 0xb0, 0x81, 0x3c, 0x9f, 0x79, 0x96, 0xd9, 0xfb, 0x5b, 0x0e, 0x96, 0x86, 0x76, 0x1e, + 0x3d, 0x83, 0x92, 0xda, 0x1e, 0xea, 0xd9, 0xa4, 0xbd, 0xa6, 0x24, 0x90, 0xd7, 0xee, 0x35, 0x75, + 0x5f, 0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f, 0xf4, 0x3e, 0x09, 0x52, 0xae, 0xc3, 0xfa, 0x44, 0x17, 0xdf, 0x87, 0xa4, 0x56, 0xfd, 0xe3, + 0xef, 0xff, 0xf2, 0xf7, 0x85, 0x99, 0x42, 0x06, 0x3e, 0xf6, 0x99, 0x89, 0x50, 0x8f, 0xb3, 0x37, + 0x83, 0xdb, 0x82, 0x55, 0x5b, 0xae, 0x46, 0x6f, 0x7a, 0x52, 0x3a, 0xcb, 0x5c, 0x2e, 0xe8, 0x74, + 0x7b, 0xf2, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x34, 0x84, 0x91, 0x6b, 0x86, 0x18, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.validate.go new file mode 100644 index 000000000..ed397c6ec --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2/accesslog.pb.validate.go @@ -0,0 +1,1198 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/accesslog/v2/accesslog.proto + +package envoy_data_accesslog_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = core.RequestMethod(0) +) + +// define the regex for a UUID once up-front +var _accesslog_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TCPAccessLogEntry with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TCPAccessLogEntry) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCommonProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TCPAccessLogEntryValidationError{ + field: "CommonProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConnectionProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TCPAccessLogEntryValidationError{ + field: "ConnectionProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TCPAccessLogEntryValidationError is the validation error returned by +// TCPAccessLogEntry.Validate if the designated constraints aren't met. +type TCPAccessLogEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TCPAccessLogEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TCPAccessLogEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TCPAccessLogEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TCPAccessLogEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TCPAccessLogEntryValidationError) ErrorName() string { + return "TCPAccessLogEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e TCPAccessLogEntryValidationError) 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 %sTCPAccessLogEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TCPAccessLogEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TCPAccessLogEntryValidationError{} + +// Validate checks the field values on HTTPAccessLogEntry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPAccessLogEntry) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCommonProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "CommonProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProtocolVersion + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HTTPAccessLogEntryValidationError is the validation error returned by +// HTTPAccessLogEntry.Validate if the designated constraints aren't met. +type HTTPAccessLogEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPAccessLogEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPAccessLogEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPAccessLogEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPAccessLogEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPAccessLogEntryValidationError) ErrorName() string { + return "HTTPAccessLogEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPAccessLogEntryValidationError) 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 %sHTTPAccessLogEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPAccessLogEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPAccessLogEntryValidationError{} + +// Validate checks the field values on ConnectionProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConnectionProperties) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ReceivedBytes + + // no validation rules for SentBytes + + return nil +} + +// ConnectionPropertiesValidationError is the validation error returned by +// ConnectionProperties.Validate if the designated constraints aren't met. +type ConnectionPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionPropertiesValidationError) ErrorName() string { + return "ConnectionPropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e ConnectionPropertiesValidationError) 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 %sConnectionProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionPropertiesValidationError{} + +// Validate checks the field values on AccessLogCommon with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AccessLogCommon) Validate() error { + if m == nil { + return nil + } + + if val := m.GetSampleRate(); val <= 0 || val > 1 { + return AccessLogCommonValidationError{ + field: "SampleRate", + reason: "value must be inside range (0, 1]", + } + } + + if v, ok := interface{}(m.GetDownstreamRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDownstreamLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamLocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTlsProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TlsProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStartTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "StartTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstUpstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstUpstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastUpstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastUpstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstUpstreamRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstUpstreamRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastUpstreamRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastUpstreamRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstDownstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstDownstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastDownstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastDownstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "UpstreamRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "UpstreamLocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamCluster + + if v, ok := interface{}(m.GetResponseFlags()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "ResponseFlags", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamTransportFailureReason + + // no validation rules for RouteName + + if v, ok := interface{}(m.GetDownstreamDirectRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamDirectRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetFilterStateObjects() { + _ = val + + // no validation rules for FilterStateObjects[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: fmt.Sprintf("FilterStateObjects[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AccessLogCommonValidationError is the validation error returned by +// AccessLogCommon.Validate if the designated constraints aren't met. +type AccessLogCommonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AccessLogCommonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AccessLogCommonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AccessLogCommonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AccessLogCommonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AccessLogCommonValidationError) ErrorName() string { return "AccessLogCommonValidationError" } + +// Error satisfies the builtin error interface +func (e AccessLogCommonValidationError) 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 %sAccessLogCommon.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AccessLogCommonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AccessLogCommonValidationError{} + +// Validate checks the field values on ResponseFlags with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ResponseFlags) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedLocalHealthcheck + + // no validation rules for NoHealthyUpstream + + // no validation rules for UpstreamRequestTimeout + + // no validation rules for LocalReset + + // no validation rules for UpstreamRemoteReset + + // no validation rules for UpstreamConnectionFailure + + // no validation rules for UpstreamConnectionTermination + + // no validation rules for UpstreamOverflow + + // no validation rules for NoRouteFound + + // no validation rules for DelayInjected + + // no validation rules for FaultInjected + + // no validation rules for RateLimited + + if v, ok := interface{}(m.GetUnauthorizedDetails()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResponseFlagsValidationError{ + field: "UnauthorizedDetails", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RateLimitServiceError + + // no validation rules for DownstreamConnectionTermination + + // no validation rules for UpstreamRetryLimitExceeded + + // no validation rules for StreamIdleTimeout + + // no validation rules for InvalidEnvoyRequestHeaders + + // no validation rules for DownstreamProtocolError + + return nil +} + +// ResponseFlagsValidationError is the validation error returned by +// ResponseFlags.Validate if the designated constraints aren't met. +type ResponseFlagsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResponseFlagsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResponseFlagsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResponseFlagsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResponseFlagsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResponseFlagsValidationError) ErrorName() string { return "ResponseFlagsValidationError" } + +// Error satisfies the builtin error interface +func (e ResponseFlagsValidationError) 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 %sResponseFlags.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResponseFlagsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResponseFlagsValidationError{} + +// Validate checks the field values on TLSProperties with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TLSProperties) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TlsVersion + + if v, ok := interface{}(m.GetTlsCipherSuite()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "TlsCipherSuite", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TlsSniHostname + + if v, ok := interface{}(m.GetLocalCertificateProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "LocalCertificateProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPeerCertificateProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "PeerCertificateProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TlsSessionId + + return nil +} + +// TLSPropertiesValidationError is the validation error returned by +// TLSProperties.Validate if the designated constraints aren't met. +type TLSPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TLSPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TLSPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TLSPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSPropertiesValidationError) ErrorName() string { return "TLSPropertiesValidationError" } + +// Error satisfies the builtin error interface +func (e TLSPropertiesValidationError) 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 %sTLSProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSPropertiesValidationError{} + +// Validate checks the field values on HTTPRequestProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPRequestProperties) Validate() error { + if m == nil { + return nil + } + + if _, ok := core.RequestMethod_name[int32(m.GetRequestMethod())]; !ok { + return HTTPRequestPropertiesValidationError{ + field: "RequestMethod", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for Scheme + + // no validation rules for Authority + + if v, ok := interface{}(m.GetPort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPRequestPropertiesValidationError{ + field: "Port", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Path + + // no validation rules for UserAgent + + // no validation rules for Referer + + // no validation rules for ForwardedFor + + // no validation rules for RequestId + + // no validation rules for OriginalPath + + // no validation rules for RequestHeadersBytes + + // no validation rules for RequestBodyBytes + + // no validation rules for RequestHeaders + + return nil +} + +// HTTPRequestPropertiesValidationError is the validation error returned by +// HTTPRequestProperties.Validate if the designated constraints aren't met. +type HTTPRequestPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPRequestPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPRequestPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPRequestPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPRequestPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPRequestPropertiesValidationError) ErrorName() string { + return "HTTPRequestPropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPRequestPropertiesValidationError) 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 %sHTTPRequestProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPRequestPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPRequestPropertiesValidationError{} + +// Validate checks the field values on HTTPResponseProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPResponseProperties) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResponseCode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPResponsePropertiesValidationError{ + field: "ResponseCode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ResponseHeadersBytes + + // no validation rules for ResponseBodyBytes + + // no validation rules for ResponseHeaders + + // no validation rules for ResponseTrailers + + // no validation rules for ResponseCodeDetails + + return nil +} + +// HTTPResponsePropertiesValidationError is the validation error returned by +// HTTPResponseProperties.Validate if the designated constraints aren't met. +type HTTPResponsePropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPResponsePropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPResponsePropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPResponsePropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPResponsePropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPResponsePropertiesValidationError) ErrorName() string { + return "HTTPResponsePropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPResponsePropertiesValidationError) 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 %sHTTPResponseProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPResponsePropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPResponsePropertiesValidationError{} + +// Validate checks the field values on ResponseFlags_Unauthorized with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ResponseFlags_Unauthorized) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Reason + + return nil +} + +// ResponseFlags_UnauthorizedValidationError is the validation error returned +// by ResponseFlags_Unauthorized.Validate if the designated constraints aren't met. +type ResponseFlags_UnauthorizedValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResponseFlags_UnauthorizedValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResponseFlags_UnauthorizedValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResponseFlags_UnauthorizedValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResponseFlags_UnauthorizedValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResponseFlags_UnauthorizedValidationError) ErrorName() string { + return "ResponseFlags_UnauthorizedValidationError" +} + +// Error satisfies the builtin error interface +func (e ResponseFlags_UnauthorizedValidationError) 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 %sResponseFlags_Unauthorized.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResponseFlags_UnauthorizedValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResponseFlags_UnauthorizedValidationError{} + +// Validate checks the field values on TLSProperties_CertificateProperties with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *TLSProperties_CertificateProperties) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetSubjectAltName() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSProperties_CertificatePropertiesValidationError{ + field: fmt.Sprintf("SubjectAltName[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Subject + + return nil +} + +// TLSProperties_CertificatePropertiesValidationError is the validation error +// returned by TLSProperties_CertificateProperties.Validate if the designated +// constraints aren't met. +type TLSProperties_CertificatePropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSProperties_CertificatePropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TLSProperties_CertificatePropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TLSProperties_CertificatePropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TLSProperties_CertificatePropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSProperties_CertificatePropertiesValidationError) ErrorName() string { + return "TLSProperties_CertificatePropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e TLSProperties_CertificatePropertiesValidationError) 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 %sTLSProperties_CertificateProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSProperties_CertificatePropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSProperties_CertificatePropertiesValidationError{} + +// Validate checks the field values on +// TLSProperties_CertificateProperties_SubjectAltName with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TLSProperties_CertificateProperties_SubjectAltName) Validate() error { + if m == nil { + return nil + } + + switch m.San.(type) { + + case *TLSProperties_CertificateProperties_SubjectAltName_Uri: + // no validation rules for Uri + + case *TLSProperties_CertificateProperties_SubjectAltName_Dns: + // no validation rules for Dns + + } + + return nil +} + +// TLSProperties_CertificateProperties_SubjectAltNameValidationError is the +// validation error returned by +// TLSProperties_CertificateProperties_SubjectAltName.Validate if the +// designated constraints aren't met. +type TLSProperties_CertificateProperties_SubjectAltNameValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) ErrorName() string { + return "TLSProperties_CertificateProperties_SubjectAltNameValidationError" +} + +// Error satisfies the builtin error interface +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) 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 %sTLSProperties_CertificateProperties_SubjectAltName.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSProperties_CertificateProperties_SubjectAltNameValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSProperties_CertificateProperties_SubjectAltNameValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.go new file mode 100644 index 000000000..ec15ce8b8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.go @@ -0,0 +1,1302 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/accesslog/v3/accesslog.proto + +package envoy_data_accesslog_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HTTPAccessLogEntry_HTTPVersion int32 + +const ( + HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED HTTPAccessLogEntry_HTTPVersion = 0 + HTTPAccessLogEntry_HTTP10 HTTPAccessLogEntry_HTTPVersion = 1 + HTTPAccessLogEntry_HTTP11 HTTPAccessLogEntry_HTTPVersion = 2 + HTTPAccessLogEntry_HTTP2 HTTPAccessLogEntry_HTTPVersion = 3 + HTTPAccessLogEntry_HTTP3 HTTPAccessLogEntry_HTTPVersion = 4 +) + +var HTTPAccessLogEntry_HTTPVersion_name = map[int32]string{ + 0: "PROTOCOL_UNSPECIFIED", + 1: "HTTP10", + 2: "HTTP11", + 3: "HTTP2", + 4: "HTTP3", +} + +var HTTPAccessLogEntry_HTTPVersion_value = map[string]int32{ + "PROTOCOL_UNSPECIFIED": 0, + "HTTP10": 1, + "HTTP11": 2, + "HTTP2": 3, + "HTTP3": 4, +} + +func (x HTTPAccessLogEntry_HTTPVersion) String() string { + return proto.EnumName(HTTPAccessLogEntry_HTTPVersion_name, int32(x)) +} + +func (HTTPAccessLogEntry_HTTPVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{1, 0} +} + +type ResponseFlags_Unauthorized_Reason int32 + +const ( + ResponseFlags_Unauthorized_REASON_UNSPECIFIED ResponseFlags_Unauthorized_Reason = 0 + ResponseFlags_Unauthorized_EXTERNAL_SERVICE ResponseFlags_Unauthorized_Reason = 1 +) + +var ResponseFlags_Unauthorized_Reason_name = map[int32]string{ + 0: "REASON_UNSPECIFIED", + 1: "EXTERNAL_SERVICE", +} + +var ResponseFlags_Unauthorized_Reason_value = map[string]int32{ + "REASON_UNSPECIFIED": 0, + "EXTERNAL_SERVICE": 1, +} + +func (x ResponseFlags_Unauthorized_Reason) String() string { + return proto.EnumName(ResponseFlags_Unauthorized_Reason_name, int32(x)) +} + +func (ResponseFlags_Unauthorized_Reason) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{4, 0, 0} +} + +type TLSProperties_TLSVersion int32 + +const ( + TLSProperties_VERSION_UNSPECIFIED TLSProperties_TLSVersion = 0 + TLSProperties_TLSv1 TLSProperties_TLSVersion = 1 + TLSProperties_TLSv1_1 TLSProperties_TLSVersion = 2 + TLSProperties_TLSv1_2 TLSProperties_TLSVersion = 3 + TLSProperties_TLSv1_3 TLSProperties_TLSVersion = 4 +) + +var TLSProperties_TLSVersion_name = map[int32]string{ + 0: "VERSION_UNSPECIFIED", + 1: "TLSv1", + 2: "TLSv1_1", + 3: "TLSv1_2", + 4: "TLSv1_3", +} + +var TLSProperties_TLSVersion_value = map[string]int32{ + "VERSION_UNSPECIFIED": 0, + "TLSv1": 1, + "TLSv1_1": 2, + "TLSv1_2": 3, + "TLSv1_3": 4, +} + +func (x TLSProperties_TLSVersion) String() string { + return proto.EnumName(TLSProperties_TLSVersion_name, int32(x)) +} + +func (TLSProperties_TLSVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{5, 0} +} + +type TCPAccessLogEntry struct { + CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"` + ConnectionProperties *ConnectionProperties `protobuf:"bytes,2,opt,name=connection_properties,json=connectionProperties,proto3" json:"connection_properties,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TCPAccessLogEntry) Reset() { *m = TCPAccessLogEntry{} } +func (m *TCPAccessLogEntry) String() string { return proto.CompactTextString(m) } +func (*TCPAccessLogEntry) ProtoMessage() {} +func (*TCPAccessLogEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{0} +} + +func (m *TCPAccessLogEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TCPAccessLogEntry.Unmarshal(m, b) +} +func (m *TCPAccessLogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TCPAccessLogEntry.Marshal(b, m, deterministic) +} +func (m *TCPAccessLogEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_TCPAccessLogEntry.Merge(m, src) +} +func (m *TCPAccessLogEntry) XXX_Size() int { + return xxx_messageInfo_TCPAccessLogEntry.Size(m) +} +func (m *TCPAccessLogEntry) XXX_DiscardUnknown() { + xxx_messageInfo_TCPAccessLogEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_TCPAccessLogEntry proto.InternalMessageInfo + +func (m *TCPAccessLogEntry) GetCommonProperties() *AccessLogCommon { + if m != nil { + return m.CommonProperties + } + return nil +} + +func (m *TCPAccessLogEntry) GetConnectionProperties() *ConnectionProperties { + if m != nil { + return m.ConnectionProperties + } + return nil +} + +type HTTPAccessLogEntry struct { + CommonProperties *AccessLogCommon `protobuf:"bytes,1,opt,name=common_properties,json=commonProperties,proto3" json:"common_properties,omitempty"` + ProtocolVersion HTTPAccessLogEntry_HTTPVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=envoy.data.accesslog.v3.HTTPAccessLogEntry_HTTPVersion" json:"protocol_version,omitempty"` + Request *HTTPRequestProperties `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + Response *HTTPResponseProperties `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPAccessLogEntry) Reset() { *m = HTTPAccessLogEntry{} } +func (m *HTTPAccessLogEntry) String() string { return proto.CompactTextString(m) } +func (*HTTPAccessLogEntry) ProtoMessage() {} +func (*HTTPAccessLogEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{1} +} + +func (m *HTTPAccessLogEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPAccessLogEntry.Unmarshal(m, b) +} +func (m *HTTPAccessLogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPAccessLogEntry.Marshal(b, m, deterministic) +} +func (m *HTTPAccessLogEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPAccessLogEntry.Merge(m, src) +} +func (m *HTTPAccessLogEntry) XXX_Size() int { + return xxx_messageInfo_HTTPAccessLogEntry.Size(m) +} +func (m *HTTPAccessLogEntry) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPAccessLogEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPAccessLogEntry proto.InternalMessageInfo + +func (m *HTTPAccessLogEntry) GetCommonProperties() *AccessLogCommon { + if m != nil { + return m.CommonProperties + } + return nil +} + +func (m *HTTPAccessLogEntry) GetProtocolVersion() HTTPAccessLogEntry_HTTPVersion { + if m != nil { + return m.ProtocolVersion + } + return HTTPAccessLogEntry_PROTOCOL_UNSPECIFIED +} + +func (m *HTTPAccessLogEntry) GetRequest() *HTTPRequestProperties { + if m != nil { + return m.Request + } + return nil +} + +func (m *HTTPAccessLogEntry) GetResponse() *HTTPResponseProperties { + if m != nil { + return m.Response + } + return nil +} + +type ConnectionProperties struct { + ReceivedBytes uint64 `protobuf:"varint,1,opt,name=received_bytes,json=receivedBytes,proto3" json:"received_bytes,omitempty"` + SentBytes uint64 `protobuf:"varint,2,opt,name=sent_bytes,json=sentBytes,proto3" json:"sent_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionProperties) Reset() { *m = ConnectionProperties{} } +func (m *ConnectionProperties) String() string { return proto.CompactTextString(m) } +func (*ConnectionProperties) ProtoMessage() {} +func (*ConnectionProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{2} +} + +func (m *ConnectionProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionProperties.Unmarshal(m, b) +} +func (m *ConnectionProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionProperties.Marshal(b, m, deterministic) +} +func (m *ConnectionProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionProperties.Merge(m, src) +} +func (m *ConnectionProperties) XXX_Size() int { + return xxx_messageInfo_ConnectionProperties.Size(m) +} +func (m *ConnectionProperties) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionProperties proto.InternalMessageInfo + +func (m *ConnectionProperties) GetReceivedBytes() uint64 { + if m != nil { + return m.ReceivedBytes + } + return 0 +} + +func (m *ConnectionProperties) GetSentBytes() uint64 { + if m != nil { + return m.SentBytes + } + return 0 +} + +type AccessLogCommon struct { + SampleRate float64 `protobuf:"fixed64,1,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` + DownstreamRemoteAddress *v3.Address `protobuf:"bytes,2,opt,name=downstream_remote_address,json=downstreamRemoteAddress,proto3" json:"downstream_remote_address,omitempty"` + DownstreamLocalAddress *v3.Address `protobuf:"bytes,3,opt,name=downstream_local_address,json=downstreamLocalAddress,proto3" json:"downstream_local_address,omitempty"` + TlsProperties *TLSProperties `protobuf:"bytes,4,opt,name=tls_properties,json=tlsProperties,proto3" json:"tls_properties,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + TimeToLastRxByte *duration.Duration `protobuf:"bytes,6,opt,name=time_to_last_rx_byte,json=timeToLastRxByte,proto3" json:"time_to_last_rx_byte,omitempty"` + TimeToFirstUpstreamTxByte *duration.Duration `protobuf:"bytes,7,opt,name=time_to_first_upstream_tx_byte,json=timeToFirstUpstreamTxByte,proto3" json:"time_to_first_upstream_tx_byte,omitempty"` + TimeToLastUpstreamTxByte *duration.Duration `protobuf:"bytes,8,opt,name=time_to_last_upstream_tx_byte,json=timeToLastUpstreamTxByte,proto3" json:"time_to_last_upstream_tx_byte,omitempty"` + TimeToFirstUpstreamRxByte *duration.Duration `protobuf:"bytes,9,opt,name=time_to_first_upstream_rx_byte,json=timeToFirstUpstreamRxByte,proto3" json:"time_to_first_upstream_rx_byte,omitempty"` + TimeToLastUpstreamRxByte *duration.Duration `protobuf:"bytes,10,opt,name=time_to_last_upstream_rx_byte,json=timeToLastUpstreamRxByte,proto3" json:"time_to_last_upstream_rx_byte,omitempty"` + TimeToFirstDownstreamTxByte *duration.Duration `protobuf:"bytes,11,opt,name=time_to_first_downstream_tx_byte,json=timeToFirstDownstreamTxByte,proto3" json:"time_to_first_downstream_tx_byte,omitempty"` + TimeToLastDownstreamTxByte *duration.Duration `protobuf:"bytes,12,opt,name=time_to_last_downstream_tx_byte,json=timeToLastDownstreamTxByte,proto3" json:"time_to_last_downstream_tx_byte,omitempty"` + UpstreamRemoteAddress *v3.Address `protobuf:"bytes,13,opt,name=upstream_remote_address,json=upstreamRemoteAddress,proto3" json:"upstream_remote_address,omitempty"` + UpstreamLocalAddress *v3.Address `protobuf:"bytes,14,opt,name=upstream_local_address,json=upstreamLocalAddress,proto3" json:"upstream_local_address,omitempty"` + UpstreamCluster string `protobuf:"bytes,15,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` + ResponseFlags *ResponseFlags `protobuf:"bytes,16,opt,name=response_flags,json=responseFlags,proto3" json:"response_flags,omitempty"` + Metadata *v3.Metadata `protobuf:"bytes,17,opt,name=metadata,proto3" json:"metadata,omitempty"` + UpstreamTransportFailureReason string `protobuf:"bytes,18,opt,name=upstream_transport_failure_reason,json=upstreamTransportFailureReason,proto3" json:"upstream_transport_failure_reason,omitempty"` + RouteName string `protobuf:"bytes,19,opt,name=route_name,json=routeName,proto3" json:"route_name,omitempty"` + DownstreamDirectRemoteAddress *v3.Address `protobuf:"bytes,20,opt,name=downstream_direct_remote_address,json=downstreamDirectRemoteAddress,proto3" json:"downstream_direct_remote_address,omitempty"` + FilterStateObjects map[string]*any.Any `protobuf:"bytes,21,rep,name=filter_state_objects,json=filterStateObjects,proto3" json:"filter_state_objects,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AccessLogCommon) Reset() { *m = AccessLogCommon{} } +func (m *AccessLogCommon) String() string { return proto.CompactTextString(m) } +func (*AccessLogCommon) ProtoMessage() {} +func (*AccessLogCommon) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{3} +} + +func (m *AccessLogCommon) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccessLogCommon.Unmarshal(m, b) +} +func (m *AccessLogCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccessLogCommon.Marshal(b, m, deterministic) +} +func (m *AccessLogCommon) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessLogCommon.Merge(m, src) +} +func (m *AccessLogCommon) XXX_Size() int { + return xxx_messageInfo_AccessLogCommon.Size(m) +} +func (m *AccessLogCommon) XXX_DiscardUnknown() { + xxx_messageInfo_AccessLogCommon.DiscardUnknown(m) +} + +var xxx_messageInfo_AccessLogCommon proto.InternalMessageInfo + +func (m *AccessLogCommon) GetSampleRate() float64 { + if m != nil { + return m.SampleRate + } + return 0 +} + +func (m *AccessLogCommon) GetDownstreamRemoteAddress() *v3.Address { + if m != nil { + return m.DownstreamRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetDownstreamLocalAddress() *v3.Address { + if m != nil { + return m.DownstreamLocalAddress + } + return nil +} + +func (m *AccessLogCommon) GetTlsProperties() *TLSProperties { + if m != nil { + return m.TlsProperties + } + return nil +} + +func (m *AccessLogCommon) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastRxByte() *duration.Duration { + if m != nil { + return m.TimeToLastRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstUpstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstUpstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastUpstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToLastUpstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstUpstreamRxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstUpstreamRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastUpstreamRxByte() *duration.Duration { + if m != nil { + return m.TimeToLastUpstreamRxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToFirstDownstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToFirstDownstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetTimeToLastDownstreamTxByte() *duration.Duration { + if m != nil { + return m.TimeToLastDownstreamTxByte + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamRemoteAddress() *v3.Address { + if m != nil { + return m.UpstreamRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamLocalAddress() *v3.Address { + if m != nil { + return m.UpstreamLocalAddress + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamCluster() string { + if m != nil { + return m.UpstreamCluster + } + return "" +} + +func (m *AccessLogCommon) GetResponseFlags() *ResponseFlags { + if m != nil { + return m.ResponseFlags + } + return nil +} + +func (m *AccessLogCommon) GetMetadata() *v3.Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *AccessLogCommon) GetUpstreamTransportFailureReason() string { + if m != nil { + return m.UpstreamTransportFailureReason + } + return "" +} + +func (m *AccessLogCommon) GetRouteName() string { + if m != nil { + return m.RouteName + } + return "" +} + +func (m *AccessLogCommon) GetDownstreamDirectRemoteAddress() *v3.Address { + if m != nil { + return m.DownstreamDirectRemoteAddress + } + return nil +} + +func (m *AccessLogCommon) GetFilterStateObjects() map[string]*any.Any { + if m != nil { + return m.FilterStateObjects + } + return nil +} + +type ResponseFlags struct { + FailedLocalHealthcheck bool `protobuf:"varint,1,opt,name=failed_local_healthcheck,json=failedLocalHealthcheck,proto3" json:"failed_local_healthcheck,omitempty"` + NoHealthyUpstream bool `protobuf:"varint,2,opt,name=no_healthy_upstream,json=noHealthyUpstream,proto3" json:"no_healthy_upstream,omitempty"` + UpstreamRequestTimeout bool `protobuf:"varint,3,opt,name=upstream_request_timeout,json=upstreamRequestTimeout,proto3" json:"upstream_request_timeout,omitempty"` + LocalReset bool `protobuf:"varint,4,opt,name=local_reset,json=localReset,proto3" json:"local_reset,omitempty"` + UpstreamRemoteReset bool `protobuf:"varint,5,opt,name=upstream_remote_reset,json=upstreamRemoteReset,proto3" json:"upstream_remote_reset,omitempty"` + UpstreamConnectionFailure bool `protobuf:"varint,6,opt,name=upstream_connection_failure,json=upstreamConnectionFailure,proto3" json:"upstream_connection_failure,omitempty"` + UpstreamConnectionTermination bool `protobuf:"varint,7,opt,name=upstream_connection_termination,json=upstreamConnectionTermination,proto3" json:"upstream_connection_termination,omitempty"` + UpstreamOverflow bool `protobuf:"varint,8,opt,name=upstream_overflow,json=upstreamOverflow,proto3" json:"upstream_overflow,omitempty"` + NoRouteFound bool `protobuf:"varint,9,opt,name=no_route_found,json=noRouteFound,proto3" json:"no_route_found,omitempty"` + DelayInjected bool `protobuf:"varint,10,opt,name=delay_injected,json=delayInjected,proto3" json:"delay_injected,omitempty"` + FaultInjected bool `protobuf:"varint,11,opt,name=fault_injected,json=faultInjected,proto3" json:"fault_injected,omitempty"` + RateLimited bool `protobuf:"varint,12,opt,name=rate_limited,json=rateLimited,proto3" json:"rate_limited,omitempty"` + UnauthorizedDetails *ResponseFlags_Unauthorized `protobuf:"bytes,13,opt,name=unauthorized_details,json=unauthorizedDetails,proto3" json:"unauthorized_details,omitempty"` + RateLimitServiceError bool `protobuf:"varint,14,opt,name=rate_limit_service_error,json=rateLimitServiceError,proto3" json:"rate_limit_service_error,omitempty"` + DownstreamConnectionTermination bool `protobuf:"varint,15,opt,name=downstream_connection_termination,json=downstreamConnectionTermination,proto3" json:"downstream_connection_termination,omitempty"` + UpstreamRetryLimitExceeded bool `protobuf:"varint,16,opt,name=upstream_retry_limit_exceeded,json=upstreamRetryLimitExceeded,proto3" json:"upstream_retry_limit_exceeded,omitempty"` + StreamIdleTimeout bool `protobuf:"varint,17,opt,name=stream_idle_timeout,json=streamIdleTimeout,proto3" json:"stream_idle_timeout,omitempty"` + InvalidEnvoyRequestHeaders bool `protobuf:"varint,18,opt,name=invalid_envoy_request_headers,json=invalidEnvoyRequestHeaders,proto3" json:"invalid_envoy_request_headers,omitempty"` + DownstreamProtocolError bool `protobuf:"varint,19,opt,name=downstream_protocol_error,json=downstreamProtocolError,proto3" json:"downstream_protocol_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseFlags) Reset() { *m = ResponseFlags{} } +func (m *ResponseFlags) String() string { return proto.CompactTextString(m) } +func (*ResponseFlags) ProtoMessage() {} +func (*ResponseFlags) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{4} +} + +func (m *ResponseFlags) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseFlags.Unmarshal(m, b) +} +func (m *ResponseFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseFlags.Marshal(b, m, deterministic) +} +func (m *ResponseFlags) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseFlags.Merge(m, src) +} +func (m *ResponseFlags) XXX_Size() int { + return xxx_messageInfo_ResponseFlags.Size(m) +} +func (m *ResponseFlags) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseFlags.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseFlags proto.InternalMessageInfo + +func (m *ResponseFlags) GetFailedLocalHealthcheck() bool { + if m != nil { + return m.FailedLocalHealthcheck + } + return false +} + +func (m *ResponseFlags) GetNoHealthyUpstream() bool { + if m != nil { + return m.NoHealthyUpstream + } + return false +} + +func (m *ResponseFlags) GetUpstreamRequestTimeout() bool { + if m != nil { + return m.UpstreamRequestTimeout + } + return false +} + +func (m *ResponseFlags) GetLocalReset() bool { + if m != nil { + return m.LocalReset + } + return false +} + +func (m *ResponseFlags) GetUpstreamRemoteReset() bool { + if m != nil { + return m.UpstreamRemoteReset + } + return false +} + +func (m *ResponseFlags) GetUpstreamConnectionFailure() bool { + if m != nil { + return m.UpstreamConnectionFailure + } + return false +} + +func (m *ResponseFlags) GetUpstreamConnectionTermination() bool { + if m != nil { + return m.UpstreamConnectionTermination + } + return false +} + +func (m *ResponseFlags) GetUpstreamOverflow() bool { + if m != nil { + return m.UpstreamOverflow + } + return false +} + +func (m *ResponseFlags) GetNoRouteFound() bool { + if m != nil { + return m.NoRouteFound + } + return false +} + +func (m *ResponseFlags) GetDelayInjected() bool { + if m != nil { + return m.DelayInjected + } + return false +} + +func (m *ResponseFlags) GetFaultInjected() bool { + if m != nil { + return m.FaultInjected + } + return false +} + +func (m *ResponseFlags) GetRateLimited() bool { + if m != nil { + return m.RateLimited + } + return false +} + +func (m *ResponseFlags) GetUnauthorizedDetails() *ResponseFlags_Unauthorized { + if m != nil { + return m.UnauthorizedDetails + } + return nil +} + +func (m *ResponseFlags) GetRateLimitServiceError() bool { + if m != nil { + return m.RateLimitServiceError + } + return false +} + +func (m *ResponseFlags) GetDownstreamConnectionTermination() bool { + if m != nil { + return m.DownstreamConnectionTermination + } + return false +} + +func (m *ResponseFlags) GetUpstreamRetryLimitExceeded() bool { + if m != nil { + return m.UpstreamRetryLimitExceeded + } + return false +} + +func (m *ResponseFlags) GetStreamIdleTimeout() bool { + if m != nil { + return m.StreamIdleTimeout + } + return false +} + +func (m *ResponseFlags) GetInvalidEnvoyRequestHeaders() bool { + if m != nil { + return m.InvalidEnvoyRequestHeaders + } + return false +} + +func (m *ResponseFlags) GetDownstreamProtocolError() bool { + if m != nil { + return m.DownstreamProtocolError + } + return false +} + +type ResponseFlags_Unauthorized struct { + Reason ResponseFlags_Unauthorized_Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=envoy.data.accesslog.v3.ResponseFlags_Unauthorized_Reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseFlags_Unauthorized) Reset() { *m = ResponseFlags_Unauthorized{} } +func (m *ResponseFlags_Unauthorized) String() string { return proto.CompactTextString(m) } +func (*ResponseFlags_Unauthorized) ProtoMessage() {} +func (*ResponseFlags_Unauthorized) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{4, 0} +} + +func (m *ResponseFlags_Unauthorized) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseFlags_Unauthorized.Unmarshal(m, b) +} +func (m *ResponseFlags_Unauthorized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseFlags_Unauthorized.Marshal(b, m, deterministic) +} +func (m *ResponseFlags_Unauthorized) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseFlags_Unauthorized.Merge(m, src) +} +func (m *ResponseFlags_Unauthorized) XXX_Size() int { + return xxx_messageInfo_ResponseFlags_Unauthorized.Size(m) +} +func (m *ResponseFlags_Unauthorized) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseFlags_Unauthorized.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseFlags_Unauthorized proto.InternalMessageInfo + +func (m *ResponseFlags_Unauthorized) GetReason() ResponseFlags_Unauthorized_Reason { + if m != nil { + return m.Reason + } + return ResponseFlags_Unauthorized_REASON_UNSPECIFIED +} + +type TLSProperties struct { + TlsVersion TLSProperties_TLSVersion `protobuf:"varint,1,opt,name=tls_version,json=tlsVersion,proto3,enum=envoy.data.accesslog.v3.TLSProperties_TLSVersion" json:"tls_version,omitempty"` + TlsCipherSuite *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=tls_cipher_suite,json=tlsCipherSuite,proto3" json:"tls_cipher_suite,omitempty"` + TlsSniHostname string `protobuf:"bytes,3,opt,name=tls_sni_hostname,json=tlsSniHostname,proto3" json:"tls_sni_hostname,omitempty"` + LocalCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,4,opt,name=local_certificate_properties,json=localCertificateProperties,proto3" json:"local_certificate_properties,omitempty"` + PeerCertificateProperties *TLSProperties_CertificateProperties `protobuf:"bytes,5,opt,name=peer_certificate_properties,json=peerCertificateProperties,proto3" json:"peer_certificate_properties,omitempty"` + TlsSessionId string `protobuf:"bytes,6,opt,name=tls_session_id,json=tlsSessionId,proto3" json:"tls_session_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties) Reset() { *m = TLSProperties{} } +func (m *TLSProperties) String() string { return proto.CompactTextString(m) } +func (*TLSProperties) ProtoMessage() {} +func (*TLSProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{5} +} + +func (m *TLSProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties.Unmarshal(m, b) +} +func (m *TLSProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties.Marshal(b, m, deterministic) +} +func (m *TLSProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties.Merge(m, src) +} +func (m *TLSProperties) XXX_Size() int { + return xxx_messageInfo_TLSProperties.Size(m) +} +func (m *TLSProperties) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties proto.InternalMessageInfo + +func (m *TLSProperties) GetTlsVersion() TLSProperties_TLSVersion { + if m != nil { + return m.TlsVersion + } + return TLSProperties_VERSION_UNSPECIFIED +} + +func (m *TLSProperties) GetTlsCipherSuite() *wrappers.UInt32Value { + if m != nil { + return m.TlsCipherSuite + } + return nil +} + +func (m *TLSProperties) GetTlsSniHostname() string { + if m != nil { + return m.TlsSniHostname + } + return "" +} + +func (m *TLSProperties) GetLocalCertificateProperties() *TLSProperties_CertificateProperties { + if m != nil { + return m.LocalCertificateProperties + } + return nil +} + +func (m *TLSProperties) GetPeerCertificateProperties() *TLSProperties_CertificateProperties { + if m != nil { + return m.PeerCertificateProperties + } + return nil +} + +func (m *TLSProperties) GetTlsSessionId() string { + if m != nil { + return m.TlsSessionId + } + return "" +} + +type TLSProperties_CertificateProperties struct { + SubjectAltName []*TLSProperties_CertificateProperties_SubjectAltName `protobuf:"bytes,1,rep,name=subject_alt_name,json=subjectAltName,proto3" json:"subject_alt_name,omitempty"` + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties_CertificateProperties) Reset() { *m = TLSProperties_CertificateProperties{} } +func (m *TLSProperties_CertificateProperties) String() string { return proto.CompactTextString(m) } +func (*TLSProperties_CertificateProperties) ProtoMessage() {} +func (*TLSProperties_CertificateProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{5, 0} +} + +func (m *TLSProperties_CertificateProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties_CertificateProperties.Unmarshal(m, b) +} +func (m *TLSProperties_CertificateProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties_CertificateProperties.Marshal(b, m, deterministic) +} +func (m *TLSProperties_CertificateProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties_CertificateProperties.Merge(m, src) +} +func (m *TLSProperties_CertificateProperties) XXX_Size() int { + return xxx_messageInfo_TLSProperties_CertificateProperties.Size(m) +} +func (m *TLSProperties_CertificateProperties) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties_CertificateProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties_CertificateProperties proto.InternalMessageInfo + +func (m *TLSProperties_CertificateProperties) GetSubjectAltName() []*TLSProperties_CertificateProperties_SubjectAltName { + if m != nil { + return m.SubjectAltName + } + return nil +} + +func (m *TLSProperties_CertificateProperties) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +type TLSProperties_CertificateProperties_SubjectAltName struct { + // Types that are valid to be assigned to San: + // *TLSProperties_CertificateProperties_SubjectAltName_Uri + // *TLSProperties_CertificateProperties_SubjectAltName_Dns + San isTLSProperties_CertificateProperties_SubjectAltName_San `protobuf_oneof:"san"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) Reset() { + *m = TLSProperties_CertificateProperties_SubjectAltName{} +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) String() string { + return proto.CompactTextString(m) +} +func (*TLSProperties_CertificateProperties_SubjectAltName) ProtoMessage() {} +func (*TLSProperties_CertificateProperties_SubjectAltName) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{5, 0, 0} +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Unmarshal(m, b) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Marshal(b, m, deterministic) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Merge(m, src) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_Size() int { + return xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.Size(m) +} +func (m *TLSProperties_CertificateProperties_SubjectAltName) XXX_DiscardUnknown() { + xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSProperties_CertificateProperties_SubjectAltName proto.InternalMessageInfo + +type isTLSProperties_CertificateProperties_SubjectAltName_San interface { + isTLSProperties_CertificateProperties_SubjectAltName_San() +} + +type TLSProperties_CertificateProperties_SubjectAltName_Uri struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"` +} + +type TLSProperties_CertificateProperties_SubjectAltName_Dns struct { + Dns string `protobuf:"bytes,2,opt,name=dns,proto3,oneof"` +} + +func (*TLSProperties_CertificateProperties_SubjectAltName_Uri) isTLSProperties_CertificateProperties_SubjectAltName_San() { +} + +func (*TLSProperties_CertificateProperties_SubjectAltName_Dns) isTLSProperties_CertificateProperties_SubjectAltName_San() { +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetSan() isTLSProperties_CertificateProperties_SubjectAltName_San { + if m != nil { + return m.San + } + return nil +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetUri() string { + if x, ok := m.GetSan().(*TLSProperties_CertificateProperties_SubjectAltName_Uri); ok { + return x.Uri + } + return "" +} + +func (m *TLSProperties_CertificateProperties_SubjectAltName) GetDns() string { + if x, ok := m.GetSan().(*TLSProperties_CertificateProperties_SubjectAltName_Dns); ok { + return x.Dns + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TLSProperties_CertificateProperties_SubjectAltName) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TLSProperties_CertificateProperties_SubjectAltName_Uri)(nil), + (*TLSProperties_CertificateProperties_SubjectAltName_Dns)(nil), + } +} + +type HTTPRequestProperties struct { + RequestMethod v3.RequestMethod `protobuf:"varint,1,opt,name=request_method,json=requestMethod,proto3,enum=envoy.config.core.v3.RequestMethod" json:"request_method,omitempty"` + Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"` + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` + Port *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` + Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` + Referer string `protobuf:"bytes,7,opt,name=referer,proto3" json:"referer,omitempty"` + ForwardedFor string `protobuf:"bytes,8,opt,name=forwarded_for,json=forwardedFor,proto3" json:"forwarded_for,omitempty"` + RequestId string `protobuf:"bytes,9,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + OriginalPath string `protobuf:"bytes,10,opt,name=original_path,json=originalPath,proto3" json:"original_path,omitempty"` + RequestHeadersBytes uint64 `protobuf:"varint,11,opt,name=request_headers_bytes,json=requestHeadersBytes,proto3" json:"request_headers_bytes,omitempty"` + RequestBodyBytes uint64 `protobuf:"varint,12,opt,name=request_body_bytes,json=requestBodyBytes,proto3" json:"request_body_bytes,omitempty"` + RequestHeaders map[string]string `protobuf:"bytes,13,rep,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPRequestProperties) Reset() { *m = HTTPRequestProperties{} } +func (m *HTTPRequestProperties) String() string { return proto.CompactTextString(m) } +func (*HTTPRequestProperties) ProtoMessage() {} +func (*HTTPRequestProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{6} +} + +func (m *HTTPRequestProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPRequestProperties.Unmarshal(m, b) +} +func (m *HTTPRequestProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPRequestProperties.Marshal(b, m, deterministic) +} +func (m *HTTPRequestProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRequestProperties.Merge(m, src) +} +func (m *HTTPRequestProperties) XXX_Size() int { + return xxx_messageInfo_HTTPRequestProperties.Size(m) +} +func (m *HTTPRequestProperties) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRequestProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRequestProperties proto.InternalMessageInfo + +func (m *HTTPRequestProperties) GetRequestMethod() v3.RequestMethod { + if m != nil { + return m.RequestMethod + } + return v3.RequestMethod_METHOD_UNSPECIFIED +} + +func (m *HTTPRequestProperties) GetScheme() string { + if m != nil { + return m.Scheme + } + return "" +} + +func (m *HTTPRequestProperties) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *HTTPRequestProperties) GetPort() *wrappers.UInt32Value { + if m != nil { + return m.Port + } + return nil +} + +func (m *HTTPRequestProperties) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *HTTPRequestProperties) GetUserAgent() string { + if m != nil { + return m.UserAgent + } + return "" +} + +func (m *HTTPRequestProperties) GetReferer() string { + if m != nil { + return m.Referer + } + return "" +} + +func (m *HTTPRequestProperties) GetForwardedFor() string { + if m != nil { + return m.ForwardedFor + } + return "" +} + +func (m *HTTPRequestProperties) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *HTTPRequestProperties) GetOriginalPath() string { + if m != nil { + return m.OriginalPath + } + return "" +} + +func (m *HTTPRequestProperties) GetRequestHeadersBytes() uint64 { + if m != nil { + return m.RequestHeadersBytes + } + return 0 +} + +func (m *HTTPRequestProperties) GetRequestBodyBytes() uint64 { + if m != nil { + return m.RequestBodyBytes + } + return 0 +} + +func (m *HTTPRequestProperties) GetRequestHeaders() map[string]string { + if m != nil { + return m.RequestHeaders + } + return nil +} + +type HTTPResponseProperties struct { + ResponseCode *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` + ResponseHeadersBytes uint64 `protobuf:"varint,2,opt,name=response_headers_bytes,json=responseHeadersBytes,proto3" json:"response_headers_bytes,omitempty"` + ResponseBodyBytes uint64 `protobuf:"varint,3,opt,name=response_body_bytes,json=responseBodyBytes,proto3" json:"response_body_bytes,omitempty"` + ResponseHeaders map[string]string `protobuf:"bytes,4,rep,name=response_headers,json=responseHeaders,proto3" json:"response_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResponseTrailers map[string]string `protobuf:"bytes,5,rep,name=response_trailers,json=responseTrailers,proto3" json:"response_trailers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResponseCodeDetails string `protobuf:"bytes,6,opt,name=response_code_details,json=responseCodeDetails,proto3" json:"response_code_details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPResponseProperties) Reset() { *m = HTTPResponseProperties{} } +func (m *HTTPResponseProperties) String() string { return proto.CompactTextString(m) } +func (*HTTPResponseProperties) ProtoMessage() {} +func (*HTTPResponseProperties) Descriptor() ([]byte, []int) { + return fileDescriptor_3b7ad135421afa12, []int{7} +} + +func (m *HTTPResponseProperties) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPResponseProperties.Unmarshal(m, b) +} +func (m *HTTPResponseProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPResponseProperties.Marshal(b, m, deterministic) +} +func (m *HTTPResponseProperties) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPResponseProperties.Merge(m, src) +} +func (m *HTTPResponseProperties) XXX_Size() int { + return xxx_messageInfo_HTTPResponseProperties.Size(m) +} +func (m *HTTPResponseProperties) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPResponseProperties.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPResponseProperties proto.InternalMessageInfo + +func (m *HTTPResponseProperties) GetResponseCode() *wrappers.UInt32Value { + if m != nil { + return m.ResponseCode + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseHeadersBytes() uint64 { + if m != nil { + return m.ResponseHeadersBytes + } + return 0 +} + +func (m *HTTPResponseProperties) GetResponseBodyBytes() uint64 { + if m != nil { + return m.ResponseBodyBytes + } + return 0 +} + +func (m *HTTPResponseProperties) GetResponseHeaders() map[string]string { + if m != nil { + return m.ResponseHeaders + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseTrailers() map[string]string { + if m != nil { + return m.ResponseTrailers + } + return nil +} + +func (m *HTTPResponseProperties) GetResponseCodeDetails() string { + if m != nil { + return m.ResponseCodeDetails + } + return "" +} + +func init() { + proto.RegisterEnum("envoy.data.accesslog.v3.HTTPAccessLogEntry_HTTPVersion", HTTPAccessLogEntry_HTTPVersion_name, HTTPAccessLogEntry_HTTPVersion_value) + proto.RegisterEnum("envoy.data.accesslog.v3.ResponseFlags_Unauthorized_Reason", ResponseFlags_Unauthorized_Reason_name, ResponseFlags_Unauthorized_Reason_value) + proto.RegisterEnum("envoy.data.accesslog.v3.TLSProperties_TLSVersion", TLSProperties_TLSVersion_name, TLSProperties_TLSVersion_value) + proto.RegisterType((*TCPAccessLogEntry)(nil), "envoy.data.accesslog.v3.TCPAccessLogEntry") + proto.RegisterType((*HTTPAccessLogEntry)(nil), "envoy.data.accesslog.v3.HTTPAccessLogEntry") + proto.RegisterType((*ConnectionProperties)(nil), "envoy.data.accesslog.v3.ConnectionProperties") + proto.RegisterType((*AccessLogCommon)(nil), "envoy.data.accesslog.v3.AccessLogCommon") + proto.RegisterMapType((map[string]*any.Any)(nil), "envoy.data.accesslog.v3.AccessLogCommon.FilterStateObjectsEntry") + proto.RegisterType((*ResponseFlags)(nil), "envoy.data.accesslog.v3.ResponseFlags") + proto.RegisterType((*ResponseFlags_Unauthorized)(nil), "envoy.data.accesslog.v3.ResponseFlags.Unauthorized") + proto.RegisterType((*TLSProperties)(nil), "envoy.data.accesslog.v3.TLSProperties") + proto.RegisterType((*TLSProperties_CertificateProperties)(nil), "envoy.data.accesslog.v3.TLSProperties.CertificateProperties") + proto.RegisterType((*TLSProperties_CertificateProperties_SubjectAltName)(nil), "envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName") + proto.RegisterType((*HTTPRequestProperties)(nil), "envoy.data.accesslog.v3.HTTPRequestProperties") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v3.HTTPRequestProperties.RequestHeadersEntry") + proto.RegisterType((*HTTPResponseProperties)(nil), "envoy.data.accesslog.v3.HTTPResponseProperties") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v3.HTTPResponseProperties.ResponseHeadersEntry") + proto.RegisterMapType((map[string]string)(nil), "envoy.data.accesslog.v3.HTTPResponseProperties.ResponseTrailersEntry") +} + +func init() { + proto.RegisterFile("envoy/data/accesslog/v3/accesslog.proto", fileDescriptor_3b7ad135421afa12) +} + +var fileDescriptor_3b7ad135421afa12 = []byte{ + // 2354 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x49, 0x73, 0x1b, 0xc7, + 0x15, 0x16, 0x08, 0x92, 0x02, 0x1e, 0xb7, 0x61, 0x13, 0x24, 0x41, 0x48, 0xd4, 0x02, 0x5b, 0xb1, + 0x64, 0xcb, 0xa0, 0x48, 0x2a, 0xb1, 0x8c, 0xac, 0x00, 0x08, 0x16, 0x61, 0x53, 0x22, 0xd3, 0x00, + 0xe5, 0x6c, 0x95, 0xc9, 0x70, 0xa6, 0x41, 0x4e, 0x34, 0x98, 0x46, 0x7a, 0x1a, 0x94, 0x90, 0x4a, + 0xa5, 0x9c, 0x54, 0x0e, 0xb9, 0x26, 0x47, 0xff, 0x93, 0xe4, 0x92, 0x53, 0xaa, 0x72, 0x4d, 0xa5, + 0xf2, 0x3f, 0x7c, 0xf6, 0x29, 0xd5, 0xcb, 0x2c, 0xd8, 0x44, 0x4a, 0x4e, 0x19, 0x27, 0xf4, 0x5b, + 0xbe, 0x7e, 0xf3, 0xfa, 0x6d, 0xdd, 0xf0, 0x1e, 0xf1, 0x2f, 0x68, 0x7f, 0xcb, 0xb1, 0xb8, 0xb5, + 0x65, 0xd9, 0x36, 0x09, 0x02, 0x8f, 0x9e, 0x6d, 0x5d, 0xec, 0xc6, 0x8b, 0x52, 0x97, 0x51, 0x4e, + 0xd1, 0xba, 0x14, 0x2c, 0x09, 0xc1, 0x52, 0xcc, 0xbb, 0xd8, 0x2d, 0x14, 0x15, 0x82, 0x4d, 0xfd, + 0xb6, 0x7b, 0xb6, 0x65, 0x53, 0x46, 0xa4, 0xba, 0xe3, 0x30, 0x12, 0x04, 0x4a, 0xb9, 0x70, 0x7b, + 0xac, 0xcc, 0xa9, 0x15, 0x10, 0x2d, 0xb0, 0x71, 0x46, 0xe9, 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, 0x83, 0x56, 0xeb, 0x1b, 0xf3, 0x81, 0x21, 0x3d, 0x6f, 0x53, 0xcf, 0xd4, 0xc7, 0x24, 0x3f, + 0x7f, 0x71, 0xe7, 0xa3, 0x89, 0xa8, 0xa3, 0xd6, 0x49, 0xd2, 0x73, 0xa5, 0x8e, 0x97, 0x42, 0x40, + 0x4d, 0x40, 0x07, 0x70, 0x9d, 0x91, 0xdf, 0xf4, 0x48, 0xc0, 0xf3, 0x69, 0x69, 0x70, 0xe9, 0xb5, + 0xd0, 0x58, 0xc9, 0x26, 0x5c, 0x1b, 0xaa, 0xa3, 0x4f, 0x21, 0xc3, 0x48, 0xd0, 0xa5, 0x7e, 0x40, + 0xf2, 0xd3, 0x12, 0x6a, 0xeb, 0x12, 0x28, 0x25, 0x9c, 0xc0, 0x8a, 0x00, 0x8a, 0x27, 0x30, 0x97, + 0x30, 0x1b, 0xe5, 0x21, 0x77, 0x8c, 0x8f, 0x5a, 0x47, 0xb5, 0xa3, 0x43, 0xf3, 0xe4, 0x59, 0xf3, + 0xb8, 0x5e, 0x6b, 0xec, 0x37, 0xea, 0x7b, 0xc6, 0x35, 0x04, 0x30, 0x2b, 0x04, 0xb7, 0x1f, 0x19, + 0xa9, 0xe8, 0xff, 0xb6, 0x31, 0x85, 0xb2, 0x30, 0x23, 0xfe, 0xef, 0x18, 0xe9, 0xf0, 0xef, 0xae, + 0x31, 0x5d, 0xde, 0x16, 0x27, 0xfe, 0x10, 0xde, 0x9f, 0x74, 0xe2, 0xa3, 0xde, 0x2b, 0xfe, 0x25, + 0x05, 0xb9, 0x71, 0x31, 0x85, 0xee, 0xc1, 0x22, 0x23, 0x36, 0x71, 0x2f, 0x88, 0x63, 0x9e, 0xf6, + 0xb9, 0x3e, 0xf1, 0x69, 0xbc, 0x10, 0x52, 0xab, 0x82, 0x88, 0x36, 0x01, 0x02, 0xe2, 0x73, 0x2d, + 0x32, 0x25, 0x45, 0xb2, 0x82, 0x22, 0xd9, 0xe5, 0x5d,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 0xea, 0x5a, 0x42, 0xa4, 0x8e, 0x06, + 0x70, 0x1d, 0x8f, 0x44, 0x59, 0xb0, 0xac, 0x52, 0x47, 0xb1, 0x1a, 0x8e, 0x47, 0xc2, 0x04, 0xa8, + 0xc0, 0xa6, 0xeb, 0xcb, 0x6b, 0xa9, 0x29, 0x5d, 0x19, 0xe5, 0xcf, 0x39, 0xb1, 0x1c, 0xc2, 0x02, + 0x59, 0x85, 0x33, 0xb8, 0xa0, 0x85, 0xea, 0x42, 0x46, 0xe7, 0xd0, 0x81, 0x92, 0x40, 0xe5, 0x81, + 0x69, 0x37, 0xba, 0x5f, 0x29, 0xdf, 0xad, 0x48, 0xf5, 0xc4, 0x38, 0x7b, 0xac, 0xf9, 0xd2, 0x7b, + 0x85, 0xff, 0xa6, 0x60, 0x3e, 0x79, 0x38, 0x08, 0xc3, 0xac, 0x2e, 0xff, 0x29, 0x79, 0x2f, 0x2b, + 0xbf, 0xc5, 0x09, 0x97, 0x54, 0x6b, 0xc0, 0x1a, 0xa9, 0xf8, 0x1d, 0x98, 0xd5, 0xcd, 0x62, 0x0d, + 0x10, 0xae, 0x57, 0x9a, 0x47, 0xcf, 0x86, 0xee, 0x3c, 0x39, 0x30, 0xea, 0x3f, 0x69, 0xd5, 0xf1, + 0xb3, 0xca, 0xa1, 0xd9, 0xac, 0xe3, 0xe7, 0x8d, 0x5a, 0xdd, 0x48, 0x95, 0x3f, 0x16, 0x25, 0xf0, + 0x31, 0xec, 0x4c, 0x2a, 0x81, 0x93, 0x2d, 0x28, 0x3f, 0x14, 0xaa, 0xef, 0xc1, 0xbd, 0x2b, 0xa9, + 0x16, 0xff, 0x94, 0x81, 0x85, 0x81, 0x69, 0x1a, 0x61, 0x98, 0x13, 0xd3, 0x78, 0x78, 0x47, 0x55, + 0xbe, 0xd8, 0xbe, 0xda, 0x28, 0x2e, 0x56, 0xe1, 0xed, 0x14, 0xb8, 0x17, 0x84, 0x57, 0xbe, 0x7d, + 0x30, 0x04, 0xa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08, 0x33, 0xad, + 0x33, 0xe2, 0x73, 0x9d, 0x18, 0x59, 0x41, 0xa9, 0x08, 0x82, 0x08, 0x42, 0x46, 0xda, 0x84, 0x11, + 0x26, 0x47, 0x9d, 0x2c, 0x0e, 0x97, 0xe8, 0x1d, 0x58, 0x68, 0x53, 0xf6, 0xd2, 0x62, 0x0e, 0x71, + 0xcc, 0x36, 0x65, 0x72, 0xa0, 0xc9, 0xe2, 0xf9, 0x88, 0xb8, 0x4f, 0x99, 0xbc, 0x14, 0x68, 0x7f, + 0xb9, 0x6a, 0x90, 0x11, 0x97, 0x02, 0x45, 0x69, 0x38, 0x02, 0x83, 0x32, 0xf7, 0xcc, 0xf5, 0x2d, + 0xcf, 0x94, 0x96, 0x81, 0xc2, 0x08, 0x89, 0xc7, 0xc2, 0xc2, 0x1d, 0x58, 0x1d, 0xea, 0x85, 0xfa, + 0xc5, 0x69, 0x4e, 0xbe, 0x38, 0xad, 0xb0, 0x81, 0x2e, 0xa8, 0x9e, 0xa6, 0x1e, 0x02, 0x0a, 0x75, + 0x4e, 0xa9, 0xd3, 0xd7, 0x0a, 0xf3, 0x52, 0xc1, 0xd0, 0x9c, 0x2a, 0x75, 0xfa, 0x4a, 0xfa, 0x05, + 0x2c, 0x0d, 0x77, 0xdb, 0x05, 0x99, 0xdf, 0xd5, 0x37, 0x7b, 0x31, 0x2c, 0x0d, 0x36, 0x64, 0x75, + 0x61, 0x58, 0x1c, 0xb4, 0xaf, 0x50, 0x81, 0x95, 0x31, 0x62, 0x63, 0x2e, 0x0a, 0xb9, 0xe4, 0x45, + 0x21, 0x9b, 0xbc, 0x12, 0x3c, 0x16, 0xd1, 0xbc, 0x05, 0x1f, 0xbe, 0xee, 0xad, 0x6f, 0xc4, 0xb8, + 0xe2, 0x17, 0x33, 0xb0, 0x36, 0xfe, 0x75, 0x12, 0x55, 0x20, 0xba, 0x53, 0x9a, 0x36, 0x75, 0x88, + 0x7e, 0xe1, 0x7d, 0x7d, 0x4c, 0xcd, 0x87, 0x2a, 0x35, 0xea, 0x10, 0xf4, 0x18, 0xd6, 0x22, 0x88, + 0xc1, 0x63, 0x52, 0x0f, 0x83, 0xb9, 0x90, 0x3b, 0x70, 0x4e, 0x25, 0x58, 0x89, 0xb4, 0x12, 0x07, + 0x95, 0x96, 0x2a, 0xcb, 0x21, 0x2b, 0x3e, 0x29, 0x0a, 0xc6, 0xf0, 0x2e, 0xf9, 0x69, 0x79, 0x54, + 0x7b, 0x6f, 0xf8, 0x22, 0x1b, 0x75, 0xfe, 0x81, 0xc3, 0x5a, 0x1a, 0xb2, 0x12, 0x31, 0x88, 0xac, + 0x10, 0x17, 0x64, 0xd7, 0x13, 0x3b, 0xce, 0xc8, 0x1d, 0xeb, 0x6f, 0xbb, 0x63, 0x4b, 0xe3, 0xa8, + 0x2d, 0xa3, 0x0f, 0x0a, 0xc9, 0x2a, 0xe0, 0x13, 0xa7, 0x11, 0xcd, 0xda, 0x2a, 0x3b, 0x57, 0x92, + 0x7e, 0xd7, 0x63, 0x73, 0xa1, 0x0a, 0xb9, 0x71, 0x1f, 0xf4, 0x26, 0x61, 0x55, 0xa8, 0xc1, 0xea, + 0x58, 0x13, 0xdf, 0x28, 0x36, 0xbf, 0x2d, 0x62, 0xf3, 0x11, 0x94, 0x5e, 0x1f, 0x9b, 0xc3, 0xbe, + 0xa9, 0x56, 0xfe, 0xfe, 0xf9, 0xbf, 0xfe, 0x3d, 0x3b, 0x65, 0x4c, 0xc1, 0x3d, 0x97, 0x2a, 0xe5, + 0x2e, 0xa3, 0xaf, 0xfa, 0x93, 0x7c, 0x5c, 0x5d, 0xac, 0x84, 0x2b, 0x39, 0xc8, 0x1e, 0xa7, 0x4e, + 0x67, 0x65, 0x94, 0xee, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xe8, 0xb8, 0x27, 0x2b, 0x1b, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.validate.go new file mode 100644 index 000000000..f1bdeca96 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3/accesslog.pb.validate.go @@ -0,0 +1,1198 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/accesslog/v3/accesslog.proto + +package envoy_data_accesslog_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = v3.RequestMethod(0) +) + +// define the regex for a UUID once up-front +var _accesslog_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TCPAccessLogEntry with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TCPAccessLogEntry) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCommonProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TCPAccessLogEntryValidationError{ + field: "CommonProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConnectionProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TCPAccessLogEntryValidationError{ + field: "ConnectionProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TCPAccessLogEntryValidationError is the validation error returned by +// TCPAccessLogEntry.Validate if the designated constraints aren't met. +type TCPAccessLogEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TCPAccessLogEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TCPAccessLogEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TCPAccessLogEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TCPAccessLogEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TCPAccessLogEntryValidationError) ErrorName() string { + return "TCPAccessLogEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e TCPAccessLogEntryValidationError) 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 %sTCPAccessLogEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TCPAccessLogEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TCPAccessLogEntryValidationError{} + +// Validate checks the field values on HTTPAccessLogEntry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPAccessLogEntry) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCommonProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "CommonProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProtocolVersion + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPAccessLogEntryValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HTTPAccessLogEntryValidationError is the validation error returned by +// HTTPAccessLogEntry.Validate if the designated constraints aren't met. +type HTTPAccessLogEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPAccessLogEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPAccessLogEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPAccessLogEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPAccessLogEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPAccessLogEntryValidationError) ErrorName() string { + return "HTTPAccessLogEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPAccessLogEntryValidationError) 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 %sHTTPAccessLogEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPAccessLogEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPAccessLogEntryValidationError{} + +// Validate checks the field values on ConnectionProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConnectionProperties) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ReceivedBytes + + // no validation rules for SentBytes + + return nil +} + +// ConnectionPropertiesValidationError is the validation error returned by +// ConnectionProperties.Validate if the designated constraints aren't met. +type ConnectionPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionPropertiesValidationError) ErrorName() string { + return "ConnectionPropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e ConnectionPropertiesValidationError) 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 %sConnectionProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionPropertiesValidationError{} + +// Validate checks the field values on AccessLogCommon with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AccessLogCommon) Validate() error { + if m == nil { + return nil + } + + if val := m.GetSampleRate(); val <= 0 || val > 1 { + return AccessLogCommonValidationError{ + field: "SampleRate", + reason: "value must be inside range (0, 1]", + } + } + + if v, ok := interface{}(m.GetDownstreamRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDownstreamLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamLocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTlsProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TlsProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStartTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "StartTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstUpstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstUpstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastUpstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastUpstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstUpstreamRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstUpstreamRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastUpstreamRxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastUpstreamRxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToFirstDownstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToFirstDownstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeToLastDownstreamTxByte()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "TimeToLastDownstreamTxByte", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "UpstreamRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpstreamLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "UpstreamLocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamCluster + + if v, ok := interface{}(m.GetResponseFlags()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "ResponseFlags", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamTransportFailureReason + + // no validation rules for RouteName + + if v, ok := interface{}(m.GetDownstreamDirectRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: "DownstreamDirectRemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetFilterStateObjects() { + _ = val + + // no validation rules for FilterStateObjects[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AccessLogCommonValidationError{ + field: fmt.Sprintf("FilterStateObjects[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AccessLogCommonValidationError is the validation error returned by +// AccessLogCommon.Validate if the designated constraints aren't met. +type AccessLogCommonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AccessLogCommonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AccessLogCommonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AccessLogCommonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AccessLogCommonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AccessLogCommonValidationError) ErrorName() string { return "AccessLogCommonValidationError" } + +// Error satisfies the builtin error interface +func (e AccessLogCommonValidationError) 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 %sAccessLogCommon.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AccessLogCommonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AccessLogCommonValidationError{} + +// Validate checks the field values on ResponseFlags with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ResponseFlags) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedLocalHealthcheck + + // no validation rules for NoHealthyUpstream + + // no validation rules for UpstreamRequestTimeout + + // no validation rules for LocalReset + + // no validation rules for UpstreamRemoteReset + + // no validation rules for UpstreamConnectionFailure + + // no validation rules for UpstreamConnectionTermination + + // no validation rules for UpstreamOverflow + + // no validation rules for NoRouteFound + + // no validation rules for DelayInjected + + // no validation rules for FaultInjected + + // no validation rules for RateLimited + + if v, ok := interface{}(m.GetUnauthorizedDetails()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResponseFlagsValidationError{ + field: "UnauthorizedDetails", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RateLimitServiceError + + // no validation rules for DownstreamConnectionTermination + + // no validation rules for UpstreamRetryLimitExceeded + + // no validation rules for StreamIdleTimeout + + // no validation rules for InvalidEnvoyRequestHeaders + + // no validation rules for DownstreamProtocolError + + return nil +} + +// ResponseFlagsValidationError is the validation error returned by +// ResponseFlags.Validate if the designated constraints aren't met. +type ResponseFlagsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResponseFlagsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResponseFlagsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResponseFlagsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResponseFlagsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResponseFlagsValidationError) ErrorName() string { return "ResponseFlagsValidationError" } + +// Error satisfies the builtin error interface +func (e ResponseFlagsValidationError) 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 %sResponseFlags.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResponseFlagsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResponseFlagsValidationError{} + +// Validate checks the field values on TLSProperties with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TLSProperties) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TlsVersion + + if v, ok := interface{}(m.GetTlsCipherSuite()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "TlsCipherSuite", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TlsSniHostname + + if v, ok := interface{}(m.GetLocalCertificateProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "LocalCertificateProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPeerCertificateProperties()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSPropertiesValidationError{ + field: "PeerCertificateProperties", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TlsSessionId + + return nil +} + +// TLSPropertiesValidationError is the validation error returned by +// TLSProperties.Validate if the designated constraints aren't met. +type TLSPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TLSPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TLSPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TLSPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSPropertiesValidationError) ErrorName() string { return "TLSPropertiesValidationError" } + +// Error satisfies the builtin error interface +func (e TLSPropertiesValidationError) 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 %sTLSProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSPropertiesValidationError{} + +// Validate checks the field values on HTTPRequestProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPRequestProperties) Validate() error { + if m == nil { + return nil + } + + if _, ok := v3.RequestMethod_name[int32(m.GetRequestMethod())]; !ok { + return HTTPRequestPropertiesValidationError{ + field: "RequestMethod", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for Scheme + + // no validation rules for Authority + + if v, ok := interface{}(m.GetPort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPRequestPropertiesValidationError{ + field: "Port", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Path + + // no validation rules for UserAgent + + // no validation rules for Referer + + // no validation rules for ForwardedFor + + // no validation rules for RequestId + + // no validation rules for OriginalPath + + // no validation rules for RequestHeadersBytes + + // no validation rules for RequestBodyBytes + + // no validation rules for RequestHeaders + + return nil +} + +// HTTPRequestPropertiesValidationError is the validation error returned by +// HTTPRequestProperties.Validate if the designated constraints aren't met. +type HTTPRequestPropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPRequestPropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPRequestPropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPRequestPropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPRequestPropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPRequestPropertiesValidationError) ErrorName() string { + return "HTTPRequestPropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPRequestPropertiesValidationError) 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 %sHTTPRequestProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPRequestPropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPRequestPropertiesValidationError{} + +// Validate checks the field values on HTTPResponseProperties with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HTTPResponseProperties) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResponseCode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPResponsePropertiesValidationError{ + field: "ResponseCode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ResponseHeadersBytes + + // no validation rules for ResponseBodyBytes + + // no validation rules for ResponseHeaders + + // no validation rules for ResponseTrailers + + // no validation rules for ResponseCodeDetails + + return nil +} + +// HTTPResponsePropertiesValidationError is the validation error returned by +// HTTPResponseProperties.Validate if the designated constraints aren't met. +type HTTPResponsePropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPResponsePropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPResponsePropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPResponsePropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPResponsePropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPResponsePropertiesValidationError) ErrorName() string { + return "HTTPResponsePropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e HTTPResponsePropertiesValidationError) 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 %sHTTPResponseProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPResponsePropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPResponsePropertiesValidationError{} + +// Validate checks the field values on ResponseFlags_Unauthorized with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ResponseFlags_Unauthorized) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Reason + + return nil +} + +// ResponseFlags_UnauthorizedValidationError is the validation error returned +// by ResponseFlags_Unauthorized.Validate if the designated constraints aren't met. +type ResponseFlags_UnauthorizedValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResponseFlags_UnauthorizedValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResponseFlags_UnauthorizedValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResponseFlags_UnauthorizedValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResponseFlags_UnauthorizedValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResponseFlags_UnauthorizedValidationError) ErrorName() string { + return "ResponseFlags_UnauthorizedValidationError" +} + +// Error satisfies the builtin error interface +func (e ResponseFlags_UnauthorizedValidationError) 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 %sResponseFlags_Unauthorized.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResponseFlags_UnauthorizedValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResponseFlags_UnauthorizedValidationError{} + +// Validate checks the field values on TLSProperties_CertificateProperties with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *TLSProperties_CertificateProperties) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetSubjectAltName() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TLSProperties_CertificatePropertiesValidationError{ + field: fmt.Sprintf("SubjectAltName[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Subject + + return nil +} + +// TLSProperties_CertificatePropertiesValidationError is the validation error +// returned by TLSProperties_CertificateProperties.Validate if the designated +// constraints aren't met. +type TLSProperties_CertificatePropertiesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSProperties_CertificatePropertiesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TLSProperties_CertificatePropertiesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TLSProperties_CertificatePropertiesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TLSProperties_CertificatePropertiesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSProperties_CertificatePropertiesValidationError) ErrorName() string { + return "TLSProperties_CertificatePropertiesValidationError" +} + +// Error satisfies the builtin error interface +func (e TLSProperties_CertificatePropertiesValidationError) 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 %sTLSProperties_CertificateProperties.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSProperties_CertificatePropertiesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSProperties_CertificatePropertiesValidationError{} + +// Validate checks the field values on +// TLSProperties_CertificateProperties_SubjectAltName with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TLSProperties_CertificateProperties_SubjectAltName) Validate() error { + if m == nil { + return nil + } + + switch m.San.(type) { + + case *TLSProperties_CertificateProperties_SubjectAltName_Uri: + // no validation rules for Uri + + case *TLSProperties_CertificateProperties_SubjectAltName_Dns: + // no validation rules for Dns + + } + + return nil +} + +// TLSProperties_CertificateProperties_SubjectAltNameValidationError is the +// validation error returned by +// TLSProperties_CertificateProperties_SubjectAltName.Validate if the +// designated constraints aren't met. +type TLSProperties_CertificateProperties_SubjectAltNameValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) ErrorName() string { + return "TLSProperties_CertificateProperties_SubjectAltNameValidationError" +} + +// Error satisfies the builtin error interface +func (e TLSProperties_CertificateProperties_SubjectAltNameValidationError) 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 %sTLSProperties_CertificateProperties_SubjectAltName.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TLSProperties_CertificateProperties_SubjectAltNameValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TLSProperties_CertificateProperties_SubjectAltNameValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.go new file mode 100644 index 000000000..da4b9ce68 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.go @@ -0,0 +1,444 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/cluster/v2alpha/outlier_detection_event.proto + +package envoy_data_cluster_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OutlierEjectionType int32 + +const ( + OutlierEjectionType_CONSECUTIVE_5XX OutlierEjectionType = 0 + OutlierEjectionType_CONSECUTIVE_GATEWAY_FAILURE OutlierEjectionType = 1 + OutlierEjectionType_SUCCESS_RATE OutlierEjectionType = 2 + OutlierEjectionType_CONSECUTIVE_LOCAL_ORIGIN_FAILURE OutlierEjectionType = 3 + OutlierEjectionType_SUCCESS_RATE_LOCAL_ORIGIN OutlierEjectionType = 4 + OutlierEjectionType_FAILURE_PERCENTAGE OutlierEjectionType = 5 + OutlierEjectionType_FAILURE_PERCENTAGE_LOCAL_ORIGIN OutlierEjectionType = 6 +) + +var OutlierEjectionType_name = map[int32]string{ + 0: "CONSECUTIVE_5XX", + 1: "CONSECUTIVE_GATEWAY_FAILURE", + 2: "SUCCESS_RATE", + 3: "CONSECUTIVE_LOCAL_ORIGIN_FAILURE", + 4: "SUCCESS_RATE_LOCAL_ORIGIN", + 5: "FAILURE_PERCENTAGE", + 6: "FAILURE_PERCENTAGE_LOCAL_ORIGIN", +} + +var OutlierEjectionType_value = map[string]int32{ + "CONSECUTIVE_5XX": 0, + "CONSECUTIVE_GATEWAY_FAILURE": 1, + "SUCCESS_RATE": 2, + "CONSECUTIVE_LOCAL_ORIGIN_FAILURE": 3, + "SUCCESS_RATE_LOCAL_ORIGIN": 4, + "FAILURE_PERCENTAGE": 5, + "FAILURE_PERCENTAGE_LOCAL_ORIGIN": 6, +} + +func (x OutlierEjectionType) String() string { + return proto.EnumName(OutlierEjectionType_name, int32(x)) +} + +func (OutlierEjectionType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{0} +} + +type Action int32 + +const ( + Action_EJECT Action = 0 + Action_UNEJECT Action = 1 +) + +var Action_name = map[int32]string{ + 0: "EJECT", + 1: "UNEJECT", +} + +var Action_value = map[string]int32{ + "EJECT": 0, + "UNEJECT": 1, +} + +func (x Action) String() string { + return proto.EnumName(Action_name, int32(x)) +} + +func (Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{1} +} + +type OutlierDetectionEvent struct { + Type OutlierEjectionType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.data.cluster.v2alpha.OutlierEjectionType" json:"type,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + SecsSinceLastAction *wrappers.UInt64Value `protobuf:"bytes,3,opt,name=secs_since_last_action,json=secsSinceLastAction,proto3" json:"secs_since_last_action,omitempty"` + ClusterName string `protobuf:"bytes,4,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + UpstreamUrl string `protobuf:"bytes,5,opt,name=upstream_url,json=upstreamUrl,proto3" json:"upstream_url,omitempty"` + Action Action `protobuf:"varint,6,opt,name=action,proto3,enum=envoy.data.cluster.v2alpha.Action" json:"action,omitempty"` + NumEjections uint32 `protobuf:"varint,7,opt,name=num_ejections,json=numEjections,proto3" json:"num_ejections,omitempty"` + Enforced bool `protobuf:"varint,8,opt,name=enforced,proto3" json:"enforced,omitempty"` + // Types that are valid to be assigned to Event: + // *OutlierDetectionEvent_EjectSuccessRateEvent + // *OutlierDetectionEvent_EjectConsecutiveEvent + // *OutlierDetectionEvent_EjectFailurePercentageEvent + Event isOutlierDetectionEvent_Event `protobuf_oneof:"event"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierDetectionEvent) Reset() { *m = OutlierDetectionEvent{} } +func (m *OutlierDetectionEvent) String() string { return proto.CompactTextString(m) } +func (*OutlierDetectionEvent) ProtoMessage() {} +func (*OutlierDetectionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{0} +} + +func (m *OutlierDetectionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierDetectionEvent.Unmarshal(m, b) +} +func (m *OutlierDetectionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierDetectionEvent.Marshal(b, m, deterministic) +} +func (m *OutlierDetectionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierDetectionEvent.Merge(m, src) +} +func (m *OutlierDetectionEvent) XXX_Size() int { + return xxx_messageInfo_OutlierDetectionEvent.Size(m) +} +func (m *OutlierDetectionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierDetectionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierDetectionEvent proto.InternalMessageInfo + +func (m *OutlierDetectionEvent) GetType() OutlierEjectionType { + if m != nil { + return m.Type + } + return OutlierEjectionType_CONSECUTIVE_5XX +} + +func (m *OutlierDetectionEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +func (m *OutlierDetectionEvent) GetSecsSinceLastAction() *wrappers.UInt64Value { + if m != nil { + return m.SecsSinceLastAction + } + return nil +} + +func (m *OutlierDetectionEvent) GetClusterName() string { + if m != nil { + return m.ClusterName + } + return "" +} + +func (m *OutlierDetectionEvent) GetUpstreamUrl() string { + if m != nil { + return m.UpstreamUrl + } + return "" +} + +func (m *OutlierDetectionEvent) GetAction() Action { + if m != nil { + return m.Action + } + return Action_EJECT +} + +func (m *OutlierDetectionEvent) GetNumEjections() uint32 { + if m != nil { + return m.NumEjections + } + return 0 +} + +func (m *OutlierDetectionEvent) GetEnforced() bool { + if m != nil { + return m.Enforced + } + return false +} + +type isOutlierDetectionEvent_Event interface { + isOutlierDetectionEvent_Event() +} + +type OutlierDetectionEvent_EjectSuccessRateEvent struct { + EjectSuccessRateEvent *OutlierEjectSuccessRate `protobuf:"bytes,9,opt,name=eject_success_rate_event,json=ejectSuccessRateEvent,proto3,oneof"` +} + +type OutlierDetectionEvent_EjectConsecutiveEvent struct { + EjectConsecutiveEvent *OutlierEjectConsecutive `protobuf:"bytes,10,opt,name=eject_consecutive_event,json=ejectConsecutiveEvent,proto3,oneof"` +} + +type OutlierDetectionEvent_EjectFailurePercentageEvent struct { + EjectFailurePercentageEvent *OutlierEjectFailurePercentage `protobuf:"bytes,11,opt,name=eject_failure_percentage_event,json=ejectFailurePercentageEvent,proto3,oneof"` +} + +func (*OutlierDetectionEvent_EjectSuccessRateEvent) isOutlierDetectionEvent_Event() {} + +func (*OutlierDetectionEvent_EjectConsecutiveEvent) isOutlierDetectionEvent_Event() {} + +func (*OutlierDetectionEvent_EjectFailurePercentageEvent) isOutlierDetectionEvent_Event() {} + +func (m *OutlierDetectionEvent) GetEvent() isOutlierDetectionEvent_Event { + if m != nil { + return m.Event + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectSuccessRateEvent() *OutlierEjectSuccessRate { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectSuccessRateEvent); ok { + return x.EjectSuccessRateEvent + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectConsecutiveEvent() *OutlierEjectConsecutive { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectConsecutiveEvent); ok { + return x.EjectConsecutiveEvent + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectFailurePercentageEvent() *OutlierEjectFailurePercentage { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectFailurePercentageEvent); ok { + return x.EjectFailurePercentageEvent + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*OutlierDetectionEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*OutlierDetectionEvent_EjectSuccessRateEvent)(nil), + (*OutlierDetectionEvent_EjectConsecutiveEvent)(nil), + (*OutlierDetectionEvent_EjectFailurePercentageEvent)(nil), + } +} + +type OutlierEjectSuccessRate struct { + HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"` + ClusterAverageSuccessRate uint32 `protobuf:"varint,2,opt,name=cluster_average_success_rate,json=clusterAverageSuccessRate,proto3" json:"cluster_average_success_rate,omitempty"` + ClusterSuccessRateEjectionThreshold uint32 `protobuf:"varint,3,opt,name=cluster_success_rate_ejection_threshold,json=clusterSuccessRateEjectionThreshold,proto3" json:"cluster_success_rate_ejection_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectSuccessRate) Reset() { *m = OutlierEjectSuccessRate{} } +func (m *OutlierEjectSuccessRate) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectSuccessRate) ProtoMessage() {} +func (*OutlierEjectSuccessRate) Descriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{1} +} + +func (m *OutlierEjectSuccessRate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectSuccessRate.Unmarshal(m, b) +} +func (m *OutlierEjectSuccessRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectSuccessRate.Marshal(b, m, deterministic) +} +func (m *OutlierEjectSuccessRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectSuccessRate.Merge(m, src) +} +func (m *OutlierEjectSuccessRate) XXX_Size() int { + return xxx_messageInfo_OutlierEjectSuccessRate.Size(m) +} +func (m *OutlierEjectSuccessRate) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectSuccessRate.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectSuccessRate proto.InternalMessageInfo + +func (m *OutlierEjectSuccessRate) GetHostSuccessRate() uint32 { + if m != nil { + return m.HostSuccessRate + } + return 0 +} + +func (m *OutlierEjectSuccessRate) GetClusterAverageSuccessRate() uint32 { + if m != nil { + return m.ClusterAverageSuccessRate + } + return 0 +} + +func (m *OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold() uint32 { + if m != nil { + return m.ClusterSuccessRateEjectionThreshold + } + return 0 +} + +type OutlierEjectConsecutive struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectConsecutive) Reset() { *m = OutlierEjectConsecutive{} } +func (m *OutlierEjectConsecutive) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectConsecutive) ProtoMessage() {} +func (*OutlierEjectConsecutive) Descriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{2} +} + +func (m *OutlierEjectConsecutive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectConsecutive.Unmarshal(m, b) +} +func (m *OutlierEjectConsecutive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectConsecutive.Marshal(b, m, deterministic) +} +func (m *OutlierEjectConsecutive) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectConsecutive.Merge(m, src) +} +func (m *OutlierEjectConsecutive) XXX_Size() int { + return xxx_messageInfo_OutlierEjectConsecutive.Size(m) +} +func (m *OutlierEjectConsecutive) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectConsecutive.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectConsecutive proto.InternalMessageInfo + +type OutlierEjectFailurePercentage struct { + HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectFailurePercentage) Reset() { *m = OutlierEjectFailurePercentage{} } +func (m *OutlierEjectFailurePercentage) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectFailurePercentage) ProtoMessage() {} +func (*OutlierEjectFailurePercentage) Descriptor() ([]byte, []int) { + return fileDescriptor_5e03c92c55863094, []int{3} +} + +func (m *OutlierEjectFailurePercentage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectFailurePercentage.Unmarshal(m, b) +} +func (m *OutlierEjectFailurePercentage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectFailurePercentage.Marshal(b, m, deterministic) +} +func (m *OutlierEjectFailurePercentage) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectFailurePercentage.Merge(m, src) +} +func (m *OutlierEjectFailurePercentage) XXX_Size() int { + return xxx_messageInfo_OutlierEjectFailurePercentage.Size(m) +} +func (m *OutlierEjectFailurePercentage) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectFailurePercentage.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectFailurePercentage proto.InternalMessageInfo + +func (m *OutlierEjectFailurePercentage) GetHostSuccessRate() uint32 { + if m != nil { + return m.HostSuccessRate + } + return 0 +} + +func init() { + proto.RegisterEnum("envoy.data.cluster.v2alpha.OutlierEjectionType", OutlierEjectionType_name, OutlierEjectionType_value) + proto.RegisterEnum("envoy.data.cluster.v2alpha.Action", Action_name, Action_value) + proto.RegisterType((*OutlierDetectionEvent)(nil), "envoy.data.cluster.v2alpha.OutlierDetectionEvent") + proto.RegisterType((*OutlierEjectSuccessRate)(nil), "envoy.data.cluster.v2alpha.OutlierEjectSuccessRate") + proto.RegisterType((*OutlierEjectConsecutive)(nil), "envoy.data.cluster.v2alpha.OutlierEjectConsecutive") + proto.RegisterType((*OutlierEjectFailurePercentage)(nil), "envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage") +} + +func init() { + proto.RegisterFile("envoy/data/cluster/v2alpha/outlier_detection_event.proto", fileDescriptor_5e03c92c55863094) +} + +var fileDescriptor_5e03c92c55863094 = []byte{ + // 835 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0x33, 0x4e, 0xec, 0x24, 0x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x1b, 0xc5, 0x2b, 0xb5, 0x8a, 0xeb, 0xce, 0x17, 0x4e, 0xdf, 0x33, 0x16, 0xc8, 0x1a, 0x5e, 0x1e, + 0x0f, 0xf5, 0x07, 0xea, 0x45, 0x7f, 0xfe, 0xfc, 0xcf, 0x4f, 0xf5, 0x6d, 0xb2, 0x75, 0xd7, 0x74, + 0x1f, 0xfd, 0xf2, 0xfa, 0xb7, 0xdf, 0x1b, 0x35, 0x03, 0xe1, 0x4e, 0x90, 0xe8, 0xf9, 0x4f, 0x79, + 0xf2, 0xc3, 0xf5, 0x3d, 0x57, 0xa1, 0xd7, 0xbc, 0xf3, 0x1f, 0xe0, 0x3c, 0x7f, 0x4e, 0xcf, 0xd1, + 0xab, 0x86, 0x7a, 0x57, 0x8f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x88, 0xaf, 0x69, 0x81, 0x1a, + 0x07, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go new file mode 100644 index 000000000..26f1908bd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/cluster/v2alpha/outlier_detection_event.proto + +package envoy_data_cluster_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _outlier_detection_event_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OutlierDetectionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierDetectionEvent) Validate() error { + if m == nil { + return nil + } + + if _, ok := OutlierEjectionType_name[int32(m.GetType())]; !ok { + return OutlierDetectionEventValidationError{ + field: "Type", + reason: "value must be one of the defined enum values", + } + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecsSinceLastAction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "SecsSinceLastAction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetClusterName()) < 1 { + return OutlierDetectionEventValidationError{ + field: "ClusterName", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetUpstreamUrl()) < 1 { + return OutlierDetectionEventValidationError{ + field: "UpstreamUrl", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := Action_name[int32(m.GetAction())]; !ok { + return OutlierDetectionEventValidationError{ + field: "Action", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for NumEjections + + // no validation rules for Enforced + + switch m.Event.(type) { + + case *OutlierDetectionEvent_EjectSuccessRateEvent: + + if v, ok := interface{}(m.GetEjectSuccessRateEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectSuccessRateEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutlierDetectionEvent_EjectConsecutiveEvent: + + if v, ok := interface{}(m.GetEjectConsecutiveEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectConsecutiveEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutlierDetectionEvent_EjectFailurePercentageEvent: + + if v, ok := interface{}(m.GetEjectFailurePercentageEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectFailurePercentageEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return OutlierDetectionEventValidationError{ + field: "Event", + reason: "value is required", + } + + } + + return nil +} + +// OutlierDetectionEventValidationError is the validation error returned by +// OutlierDetectionEvent.Validate if the designated constraints aren't met. +type OutlierDetectionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierDetectionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierDetectionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierDetectionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierDetectionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierDetectionEventValidationError) ErrorName() string { + return "OutlierDetectionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierDetectionEventValidationError) 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 %sOutlierDetectionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierDetectionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierDetectionEventValidationError{} + +// Validate checks the field values on OutlierEjectSuccessRate with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectSuccessRate) Validate() error { + if m == nil { + return nil + } + + if m.GetHostSuccessRate() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "HostSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + if m.GetClusterAverageSuccessRate() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "ClusterAverageSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + if m.GetClusterSuccessRateEjectionThreshold() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "ClusterSuccessRateEjectionThreshold", + reason: "value must be less than or equal to 100", + } + } + + return nil +} + +// OutlierEjectSuccessRateValidationError is the validation error returned by +// OutlierEjectSuccessRate.Validate if the designated constraints aren't met. +type OutlierEjectSuccessRateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectSuccessRateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectSuccessRateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectSuccessRateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectSuccessRateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectSuccessRateValidationError) ErrorName() string { + return "OutlierEjectSuccessRateValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectSuccessRateValidationError) 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 %sOutlierEjectSuccessRate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectSuccessRateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectSuccessRateValidationError{} + +// Validate checks the field values on OutlierEjectConsecutive with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectConsecutive) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OutlierEjectConsecutiveValidationError is the validation error returned by +// OutlierEjectConsecutive.Validate if the designated constraints aren't met. +type OutlierEjectConsecutiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectConsecutiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectConsecutiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectConsecutiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectConsecutiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectConsecutiveValidationError) ErrorName() string { + return "OutlierEjectConsecutiveValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectConsecutiveValidationError) 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 %sOutlierEjectConsecutive.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectConsecutiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectConsecutiveValidationError{} + +// Validate checks the field values on OutlierEjectFailurePercentage with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectFailurePercentage) Validate() error { + if m == nil { + return nil + } + + if m.GetHostSuccessRate() > 100 { + return OutlierEjectFailurePercentageValidationError{ + field: "HostSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + return nil +} + +// OutlierEjectFailurePercentageValidationError is the validation error +// returned by OutlierEjectFailurePercentage.Validate if the designated +// constraints aren't met. +type OutlierEjectFailurePercentageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectFailurePercentageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectFailurePercentageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectFailurePercentageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectFailurePercentageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectFailurePercentageValidationError) ErrorName() string { + return "OutlierEjectFailurePercentageValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectFailurePercentageValidationError) 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 %sOutlierEjectFailurePercentage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectFailurePercentageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectFailurePercentageValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.go new file mode 100644 index 000000000..2eb504984 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.go @@ -0,0 +1,446 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/cluster/v3/outlier_detection_event.proto + +package envoy_data_cluster_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OutlierEjectionType int32 + +const ( + OutlierEjectionType_CONSECUTIVE_5XX OutlierEjectionType = 0 + OutlierEjectionType_CONSECUTIVE_GATEWAY_FAILURE OutlierEjectionType = 1 + OutlierEjectionType_SUCCESS_RATE OutlierEjectionType = 2 + OutlierEjectionType_CONSECUTIVE_LOCAL_ORIGIN_FAILURE OutlierEjectionType = 3 + OutlierEjectionType_SUCCESS_RATE_LOCAL_ORIGIN OutlierEjectionType = 4 + OutlierEjectionType_FAILURE_PERCENTAGE OutlierEjectionType = 5 + OutlierEjectionType_FAILURE_PERCENTAGE_LOCAL_ORIGIN OutlierEjectionType = 6 +) + +var OutlierEjectionType_name = map[int32]string{ + 0: "CONSECUTIVE_5XX", + 1: "CONSECUTIVE_GATEWAY_FAILURE", + 2: "SUCCESS_RATE", + 3: "CONSECUTIVE_LOCAL_ORIGIN_FAILURE", + 4: "SUCCESS_RATE_LOCAL_ORIGIN", + 5: "FAILURE_PERCENTAGE", + 6: "FAILURE_PERCENTAGE_LOCAL_ORIGIN", +} + +var OutlierEjectionType_value = map[string]int32{ + "CONSECUTIVE_5XX": 0, + "CONSECUTIVE_GATEWAY_FAILURE": 1, + "SUCCESS_RATE": 2, + "CONSECUTIVE_LOCAL_ORIGIN_FAILURE": 3, + "SUCCESS_RATE_LOCAL_ORIGIN": 4, + "FAILURE_PERCENTAGE": 5, + "FAILURE_PERCENTAGE_LOCAL_ORIGIN": 6, +} + +func (x OutlierEjectionType) String() string { + return proto.EnumName(OutlierEjectionType_name, int32(x)) +} + +func (OutlierEjectionType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{0} +} + +type Action int32 + +const ( + Action_EJECT Action = 0 + Action_UNEJECT Action = 1 +) + +var Action_name = map[int32]string{ + 0: "EJECT", + 1: "UNEJECT", +} + +var Action_value = map[string]int32{ + "EJECT": 0, + "UNEJECT": 1, +} + +func (x Action) String() string { + return proto.EnumName(Action_name, int32(x)) +} + +func (Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{1} +} + +type OutlierDetectionEvent struct { + Type OutlierEjectionType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.data.cluster.v3.OutlierEjectionType" json:"type,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + SecsSinceLastAction *wrappers.UInt64Value `protobuf:"bytes,3,opt,name=secs_since_last_action,json=secsSinceLastAction,proto3" json:"secs_since_last_action,omitempty"` + ClusterName string `protobuf:"bytes,4,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + UpstreamUrl string `protobuf:"bytes,5,opt,name=upstream_url,json=upstreamUrl,proto3" json:"upstream_url,omitempty"` + Action Action `protobuf:"varint,6,opt,name=action,proto3,enum=envoy.data.cluster.v3.Action" json:"action,omitempty"` + NumEjections uint32 `protobuf:"varint,7,opt,name=num_ejections,json=numEjections,proto3" json:"num_ejections,omitempty"` + Enforced bool `protobuf:"varint,8,opt,name=enforced,proto3" json:"enforced,omitempty"` + // Types that are valid to be assigned to Event: + // *OutlierDetectionEvent_EjectSuccessRateEvent + // *OutlierDetectionEvent_EjectConsecutiveEvent + // *OutlierDetectionEvent_EjectFailurePercentageEvent + Event isOutlierDetectionEvent_Event `protobuf_oneof:"event"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierDetectionEvent) Reset() { *m = OutlierDetectionEvent{} } +func (m *OutlierDetectionEvent) String() string { return proto.CompactTextString(m) } +func (*OutlierDetectionEvent) ProtoMessage() {} +func (*OutlierDetectionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{0} +} + +func (m *OutlierDetectionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierDetectionEvent.Unmarshal(m, b) +} +func (m *OutlierDetectionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierDetectionEvent.Marshal(b, m, deterministic) +} +func (m *OutlierDetectionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierDetectionEvent.Merge(m, src) +} +func (m *OutlierDetectionEvent) XXX_Size() int { + return xxx_messageInfo_OutlierDetectionEvent.Size(m) +} +func (m *OutlierDetectionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierDetectionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierDetectionEvent proto.InternalMessageInfo + +func (m *OutlierDetectionEvent) GetType() OutlierEjectionType { + if m != nil { + return m.Type + } + return OutlierEjectionType_CONSECUTIVE_5XX +} + +func (m *OutlierDetectionEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +func (m *OutlierDetectionEvent) GetSecsSinceLastAction() *wrappers.UInt64Value { + if m != nil { + return m.SecsSinceLastAction + } + return nil +} + +func (m *OutlierDetectionEvent) GetClusterName() string { + if m != nil { + return m.ClusterName + } + return "" +} + +func (m *OutlierDetectionEvent) GetUpstreamUrl() string { + if m != nil { + return m.UpstreamUrl + } + return "" +} + +func (m *OutlierDetectionEvent) GetAction() Action { + if m != nil { + return m.Action + } + return Action_EJECT +} + +func (m *OutlierDetectionEvent) GetNumEjections() uint32 { + if m != nil { + return m.NumEjections + } + return 0 +} + +func (m *OutlierDetectionEvent) GetEnforced() bool { + if m != nil { + return m.Enforced + } + return false +} + +type isOutlierDetectionEvent_Event interface { + isOutlierDetectionEvent_Event() +} + +type OutlierDetectionEvent_EjectSuccessRateEvent struct { + EjectSuccessRateEvent *OutlierEjectSuccessRate `protobuf:"bytes,9,opt,name=eject_success_rate_event,json=ejectSuccessRateEvent,proto3,oneof"` +} + +type OutlierDetectionEvent_EjectConsecutiveEvent struct { + EjectConsecutiveEvent *OutlierEjectConsecutive `protobuf:"bytes,10,opt,name=eject_consecutive_event,json=ejectConsecutiveEvent,proto3,oneof"` +} + +type OutlierDetectionEvent_EjectFailurePercentageEvent struct { + EjectFailurePercentageEvent *OutlierEjectFailurePercentage `protobuf:"bytes,11,opt,name=eject_failure_percentage_event,json=ejectFailurePercentageEvent,proto3,oneof"` +} + +func (*OutlierDetectionEvent_EjectSuccessRateEvent) isOutlierDetectionEvent_Event() {} + +func (*OutlierDetectionEvent_EjectConsecutiveEvent) isOutlierDetectionEvent_Event() {} + +func (*OutlierDetectionEvent_EjectFailurePercentageEvent) isOutlierDetectionEvent_Event() {} + +func (m *OutlierDetectionEvent) GetEvent() isOutlierDetectionEvent_Event { + if m != nil { + return m.Event + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectSuccessRateEvent() *OutlierEjectSuccessRate { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectSuccessRateEvent); ok { + return x.EjectSuccessRateEvent + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectConsecutiveEvent() *OutlierEjectConsecutive { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectConsecutiveEvent); ok { + return x.EjectConsecutiveEvent + } + return nil +} + +func (m *OutlierDetectionEvent) GetEjectFailurePercentageEvent() *OutlierEjectFailurePercentage { + if x, ok := m.GetEvent().(*OutlierDetectionEvent_EjectFailurePercentageEvent); ok { + return x.EjectFailurePercentageEvent + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*OutlierDetectionEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*OutlierDetectionEvent_EjectSuccessRateEvent)(nil), + (*OutlierDetectionEvent_EjectConsecutiveEvent)(nil), + (*OutlierDetectionEvent_EjectFailurePercentageEvent)(nil), + } +} + +type OutlierEjectSuccessRate struct { + HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"` + ClusterAverageSuccessRate uint32 `protobuf:"varint,2,opt,name=cluster_average_success_rate,json=clusterAverageSuccessRate,proto3" json:"cluster_average_success_rate,omitempty"` + ClusterSuccessRateEjectionThreshold uint32 `protobuf:"varint,3,opt,name=cluster_success_rate_ejection_threshold,json=clusterSuccessRateEjectionThreshold,proto3" json:"cluster_success_rate_ejection_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectSuccessRate) Reset() { *m = OutlierEjectSuccessRate{} } +func (m *OutlierEjectSuccessRate) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectSuccessRate) ProtoMessage() {} +func (*OutlierEjectSuccessRate) Descriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{1} +} + +func (m *OutlierEjectSuccessRate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectSuccessRate.Unmarshal(m, b) +} +func (m *OutlierEjectSuccessRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectSuccessRate.Marshal(b, m, deterministic) +} +func (m *OutlierEjectSuccessRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectSuccessRate.Merge(m, src) +} +func (m *OutlierEjectSuccessRate) XXX_Size() int { + return xxx_messageInfo_OutlierEjectSuccessRate.Size(m) +} +func (m *OutlierEjectSuccessRate) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectSuccessRate.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectSuccessRate proto.InternalMessageInfo + +func (m *OutlierEjectSuccessRate) GetHostSuccessRate() uint32 { + if m != nil { + return m.HostSuccessRate + } + return 0 +} + +func (m *OutlierEjectSuccessRate) GetClusterAverageSuccessRate() uint32 { + if m != nil { + return m.ClusterAverageSuccessRate + } + return 0 +} + +func (m *OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold() uint32 { + if m != nil { + return m.ClusterSuccessRateEjectionThreshold + } + return 0 +} + +type OutlierEjectConsecutive struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectConsecutive) Reset() { *m = OutlierEjectConsecutive{} } +func (m *OutlierEjectConsecutive) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectConsecutive) ProtoMessage() {} +func (*OutlierEjectConsecutive) Descriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{2} +} + +func (m *OutlierEjectConsecutive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectConsecutive.Unmarshal(m, b) +} +func (m *OutlierEjectConsecutive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectConsecutive.Marshal(b, m, deterministic) +} +func (m *OutlierEjectConsecutive) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectConsecutive.Merge(m, src) +} +func (m *OutlierEjectConsecutive) XXX_Size() int { + return xxx_messageInfo_OutlierEjectConsecutive.Size(m) +} +func (m *OutlierEjectConsecutive) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectConsecutive.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectConsecutive proto.InternalMessageInfo + +type OutlierEjectFailurePercentage struct { + HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutlierEjectFailurePercentage) Reset() { *m = OutlierEjectFailurePercentage{} } +func (m *OutlierEjectFailurePercentage) String() string { return proto.CompactTextString(m) } +func (*OutlierEjectFailurePercentage) ProtoMessage() {} +func (*OutlierEjectFailurePercentage) Descriptor() ([]byte, []int) { + return fileDescriptor_5b64fc638e24bdcb, []int{3} +} + +func (m *OutlierEjectFailurePercentage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutlierEjectFailurePercentage.Unmarshal(m, b) +} +func (m *OutlierEjectFailurePercentage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutlierEjectFailurePercentage.Marshal(b, m, deterministic) +} +func (m *OutlierEjectFailurePercentage) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutlierEjectFailurePercentage.Merge(m, src) +} +func (m *OutlierEjectFailurePercentage) XXX_Size() int { + return xxx_messageInfo_OutlierEjectFailurePercentage.Size(m) +} +func (m *OutlierEjectFailurePercentage) XXX_DiscardUnknown() { + xxx_messageInfo_OutlierEjectFailurePercentage.DiscardUnknown(m) +} + +var xxx_messageInfo_OutlierEjectFailurePercentage proto.InternalMessageInfo + +func (m *OutlierEjectFailurePercentage) GetHostSuccessRate() uint32 { + if m != nil { + return m.HostSuccessRate + } + return 0 +} + +func init() { + proto.RegisterEnum("envoy.data.cluster.v3.OutlierEjectionType", OutlierEjectionType_name, OutlierEjectionType_value) + proto.RegisterEnum("envoy.data.cluster.v3.Action", Action_name, Action_value) + proto.RegisterType((*OutlierDetectionEvent)(nil), "envoy.data.cluster.v3.OutlierDetectionEvent") + proto.RegisterType((*OutlierEjectSuccessRate)(nil), "envoy.data.cluster.v3.OutlierEjectSuccessRate") + proto.RegisterType((*OutlierEjectConsecutive)(nil), "envoy.data.cluster.v3.OutlierEjectConsecutive") + proto.RegisterType((*OutlierEjectFailurePercentage)(nil), "envoy.data.cluster.v3.OutlierEjectFailurePercentage") +} + +func init() { + proto.RegisterFile("envoy/data/cluster/v3/outlier_detection_event.proto", fileDescriptor_5b64fc638e24bdcb) +} + +var fileDescriptor_5b64fc638e24bdcb = []byte{ + // 874 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xaf, 0xdd, 0x36, 0x6d, 0x5f, 0x5b, 0xd6, 0x4c, 0xd5, 0xad, 0x37, 0xbb, 0x6d, 0x43, 0x8b, + 0x44, 0x94, 0x83, 0x8d, 0x92, 0x02, 0x4b, 0x2f, 0xab, 0x24, 0x78, 0xdb, 0x40, 0x95, 0x16, 0x27, + 0x59, 0x96, 0x03, 0x1a, 0xcd, 0x3a, 0xaf, 0x8d, 0x91, 0x63, 0x5b, 0x33, 0xe3, 0x40, 0xc5, 0x05, + 0x71, 0xe2, 0x0b, 0x70, 0xe1, 0x63, 0x70, 0xe4, 0x8e, 0xc4, 0x95, 0x4f, 0x80, 0xf8, 0x16, 0x68, + 0x4f, 0xc8, 0xff, 0xb2, 0x4e, 0x9b, 0x85, 0xb2, 0xb7, 0x64, 0xde, 0xef, 0xf7, 0x7e, 0xef, 0xfd, + 0xe6, 0xbd, 0x31, 0x34, 0xd0, 0x9f, 0x04, 0xd7, 0xe6, 0x90, 0x49, 0x66, 0x3a, 0x5e, 0x24, 0x24, + 0x72, 0x73, 0xd2, 0x30, 0x83, 0x48, 0x7a, 0x2e, 0x72, 0x3a, 0x44, 0x89, 0x8e, 0x74, 0x03, 0x9f, + 0xe2, 0x04, 0x7d, 0x69, 0x84, 0x3c, 0x90, 0x01, 0xd9, 0x4e, 0x48, 0x46, 0x4c, 0x32, 0x32, 0x92, + 0x31, 0x69, 0x94, 0xf7, 0xaf, 0x82, 0xe0, 0xca, 0x43, 0x33, 0x01, 0xbd, 0x88, 0x2e, 0x4d, 0xe9, + 0x8e, 0x51, 0x48, 0x36, 0x0e, 0x53, 0x5e, 0x79, 0xef, 0x26, 0xe0, 0x1b, 0xce, 0xc2, 0x10, 0xb9, + 0xc8, 0xe2, 0xbb, 0xd1, 0x30, 0x64, 0x26, 0xf3, 0xfd, 0x40, 0xb2, 0x58, 0x54, 0x98, 0x42, 0x32, + 0x19, 0xe5, 0xe1, 0x77, 0x6e, 0x85, 0x27, 0xc8, 0x85, 0x1b, 0xf8, 0xae, 0x7f, 0x95, 0x41, 0x76, + 0x26, 0xcc, 0x73, 0x87, 0x4c, 0xa2, 0x99, 0xff, 0x48, 0x03, 0x07, 0x7f, 0x95, 0x60, 0xfb, 0x3c, + 0x6d, 0xea, 0x93, 0xbc, 0x27, 0x2b, 0x6e, 0x89, 0x9c, 0xc2, 0x92, 0xbc, 0x0e, 0x51, 0x57, 0x2a, + 0x4a, 0xf5, 0xad, 0x7a, 0xcd, 0x98, 0xdb, 0x9b, 0x91, 0x71, 0xad, 0xaf, 0x53, 0x6a, 0xff, 0x3a, + 0xc4,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02, 0xa5, 0xec, 0x05, 0x5e, 0x83, 0x65, 0xeb, 0x53, 0xab, 0xdd, 0xd7, 0x16, 0xc8, + 0x3a, 0xac, 0x0c, 0xba, 0xe9, 0x1f, 0xa5, 0xf5, 0xd9, 0xaf, 0xdf, 0xff, 0xfe, 0x47, 0x49, 0xd5, + 0x54, 0x38, 0x74, 0x83, 0x74, 0x9d, 0x43, 0x1e, 0x7c, 0x7b, 0x3d, 0x7f, 0xb3, 0x5b, 0xe5, 0xb9, + 0xab, 0x77, 0x11, 0x7f, 0x08, 0x2e, 0x94, 0x17, 0xa5, 0xe4, 0x8b, 0xd0, 0xf8, 0x27, 0x00, 0x00, + 0xff, 0xff, 0xa1, 0xa0, 0x15, 0x66, 0xc8, 0x07, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.validate.go new file mode 100644 index 000000000..4af7f5c6c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3/outlier_detection_event.pb.validate.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/cluster/v3/outlier_detection_event.proto + +package envoy_data_cluster_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _outlier_detection_event_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OutlierDetectionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierDetectionEvent) Validate() error { + if m == nil { + return nil + } + + if _, ok := OutlierEjectionType_name[int32(m.GetType())]; !ok { + return OutlierDetectionEventValidationError{ + field: "Type", + reason: "value must be one of the defined enum values", + } + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecsSinceLastAction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "SecsSinceLastAction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetClusterName()) < 1 { + return OutlierDetectionEventValidationError{ + field: "ClusterName", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetUpstreamUrl()) < 1 { + return OutlierDetectionEventValidationError{ + field: "UpstreamUrl", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := Action_name[int32(m.GetAction())]; !ok { + return OutlierDetectionEventValidationError{ + field: "Action", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for NumEjections + + // no validation rules for Enforced + + switch m.Event.(type) { + + case *OutlierDetectionEvent_EjectSuccessRateEvent: + + if v, ok := interface{}(m.GetEjectSuccessRateEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectSuccessRateEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutlierDetectionEvent_EjectConsecutiveEvent: + + if v, ok := interface{}(m.GetEjectConsecutiveEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectConsecutiveEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutlierDetectionEvent_EjectFailurePercentageEvent: + + if v, ok := interface{}(m.GetEjectFailurePercentageEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutlierDetectionEventValidationError{ + field: "EjectFailurePercentageEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return OutlierDetectionEventValidationError{ + field: "Event", + reason: "value is required", + } + + } + + return nil +} + +// OutlierDetectionEventValidationError is the validation error returned by +// OutlierDetectionEvent.Validate if the designated constraints aren't met. +type OutlierDetectionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierDetectionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierDetectionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierDetectionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierDetectionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierDetectionEventValidationError) ErrorName() string { + return "OutlierDetectionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierDetectionEventValidationError) 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 %sOutlierDetectionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierDetectionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierDetectionEventValidationError{} + +// Validate checks the field values on OutlierEjectSuccessRate with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectSuccessRate) Validate() error { + if m == nil { + return nil + } + + if m.GetHostSuccessRate() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "HostSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + if m.GetClusterAverageSuccessRate() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "ClusterAverageSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + if m.GetClusterSuccessRateEjectionThreshold() > 100 { + return OutlierEjectSuccessRateValidationError{ + field: "ClusterSuccessRateEjectionThreshold", + reason: "value must be less than or equal to 100", + } + } + + return nil +} + +// OutlierEjectSuccessRateValidationError is the validation error returned by +// OutlierEjectSuccessRate.Validate if the designated constraints aren't met. +type OutlierEjectSuccessRateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectSuccessRateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectSuccessRateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectSuccessRateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectSuccessRateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectSuccessRateValidationError) ErrorName() string { + return "OutlierEjectSuccessRateValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectSuccessRateValidationError) 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 %sOutlierEjectSuccessRate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectSuccessRateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectSuccessRateValidationError{} + +// Validate checks the field values on OutlierEjectConsecutive with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectConsecutive) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OutlierEjectConsecutiveValidationError is the validation error returned by +// OutlierEjectConsecutive.Validate if the designated constraints aren't met. +type OutlierEjectConsecutiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectConsecutiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectConsecutiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectConsecutiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectConsecutiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectConsecutiveValidationError) ErrorName() string { + return "OutlierEjectConsecutiveValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectConsecutiveValidationError) 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 %sOutlierEjectConsecutive.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectConsecutiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectConsecutiveValidationError{} + +// Validate checks the field values on OutlierEjectFailurePercentage with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OutlierEjectFailurePercentage) Validate() error { + if m == nil { + return nil + } + + if m.GetHostSuccessRate() > 100 { + return OutlierEjectFailurePercentageValidationError{ + field: "HostSuccessRate", + reason: "value must be less than or equal to 100", + } + } + + return nil +} + +// OutlierEjectFailurePercentageValidationError is the validation error +// returned by OutlierEjectFailurePercentage.Validate if the designated +// constraints aren't met. +type OutlierEjectFailurePercentageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutlierEjectFailurePercentageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutlierEjectFailurePercentageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutlierEjectFailurePercentageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutlierEjectFailurePercentageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutlierEjectFailurePercentageValidationError) ErrorName() string { + return "OutlierEjectFailurePercentageValidationError" +} + +// Error satisfies the builtin error interface +func (e OutlierEjectFailurePercentageValidationError) 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 %sOutlierEjectFailurePercentage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutlierEjectFailurePercentageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutlierEjectFailurePercentageValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.go new file mode 100644 index 000000000..7b3b9a1f0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.go @@ -0,0 +1,490 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/core/v2alpha/health_check_event.proto + +package envoy_data_core_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HealthCheckFailureType int32 + +const ( + HealthCheckFailureType_ACTIVE HealthCheckFailureType = 0 + HealthCheckFailureType_PASSIVE HealthCheckFailureType = 1 + HealthCheckFailureType_NETWORK HealthCheckFailureType = 2 +) + +var HealthCheckFailureType_name = map[int32]string{ + 0: "ACTIVE", + 1: "PASSIVE", + 2: "NETWORK", +} + +var HealthCheckFailureType_value = map[string]int32{ + "ACTIVE": 0, + "PASSIVE": 1, + "NETWORK": 2, +} + +func (x HealthCheckFailureType) String() string { + return proto.EnumName(HealthCheckFailureType_name, int32(x)) +} + +func (HealthCheckFailureType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{0} +} + +type HealthCheckerType int32 + +const ( + HealthCheckerType_HTTP HealthCheckerType = 0 + HealthCheckerType_TCP HealthCheckerType = 1 + HealthCheckerType_GRPC HealthCheckerType = 2 + HealthCheckerType_REDIS HealthCheckerType = 3 +) + +var HealthCheckerType_name = map[int32]string{ + 0: "HTTP", + 1: "TCP", + 2: "GRPC", + 3: "REDIS", +} + +var HealthCheckerType_value = map[string]int32{ + "HTTP": 0, + "TCP": 1, + "GRPC": 2, + "REDIS": 3, +} + +func (x HealthCheckerType) String() string { + return proto.EnumName(HealthCheckerType_name, int32(x)) +} + +func (HealthCheckerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{1} +} + +type HealthCheckEvent struct { + HealthCheckerType HealthCheckerType `protobuf:"varint,1,opt,name=health_checker_type,json=healthCheckerType,proto3,enum=envoy.data.core.v2alpha.HealthCheckerType" json:"health_checker_type,omitempty"` + Host *core.Address `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + // Types that are valid to be assigned to Event: + // *HealthCheckEvent_EjectUnhealthyEvent + // *HealthCheckEvent_AddHealthyEvent + // *HealthCheckEvent_HealthCheckFailureEvent + // *HealthCheckEvent_DegradedHealthyHost + // *HealthCheckEvent_NoLongerDegradedHost + Event isHealthCheckEvent_Event `protobuf_oneof:"event"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckEvent) Reset() { *m = HealthCheckEvent{} } +func (m *HealthCheckEvent) String() string { return proto.CompactTextString(m) } +func (*HealthCheckEvent) ProtoMessage() {} +func (*HealthCheckEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{0} +} + +func (m *HealthCheckEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckEvent.Unmarshal(m, b) +} +func (m *HealthCheckEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckEvent.Marshal(b, m, deterministic) +} +func (m *HealthCheckEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckEvent.Merge(m, src) +} +func (m *HealthCheckEvent) XXX_Size() int { + return xxx_messageInfo_HealthCheckEvent.Size(m) +} +func (m *HealthCheckEvent) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckEvent proto.InternalMessageInfo + +func (m *HealthCheckEvent) GetHealthCheckerType() HealthCheckerType { + if m != nil { + return m.HealthCheckerType + } + return HealthCheckerType_HTTP +} + +func (m *HealthCheckEvent) GetHost() *core.Address { + if m != nil { + return m.Host + } + return nil +} + +func (m *HealthCheckEvent) GetClusterName() string { + if m != nil { + return m.ClusterName + } + return "" +} + +type isHealthCheckEvent_Event interface { + isHealthCheckEvent_Event() +} + +type HealthCheckEvent_EjectUnhealthyEvent struct { + EjectUnhealthyEvent *HealthCheckEjectUnhealthy `protobuf:"bytes,4,opt,name=eject_unhealthy_event,json=ejectUnhealthyEvent,proto3,oneof"` +} + +type HealthCheckEvent_AddHealthyEvent struct { + AddHealthyEvent *HealthCheckAddHealthy `protobuf:"bytes,5,opt,name=add_healthy_event,json=addHealthyEvent,proto3,oneof"` +} + +type HealthCheckEvent_HealthCheckFailureEvent struct { + HealthCheckFailureEvent *HealthCheckFailure `protobuf:"bytes,7,opt,name=health_check_failure_event,json=healthCheckFailureEvent,proto3,oneof"` +} + +type HealthCheckEvent_DegradedHealthyHost struct { + DegradedHealthyHost *DegradedHealthyHost `protobuf:"bytes,8,opt,name=degraded_healthy_host,json=degradedHealthyHost,proto3,oneof"` +} + +type HealthCheckEvent_NoLongerDegradedHost struct { + NoLongerDegradedHost *NoLongerDegradedHost `protobuf:"bytes,9,opt,name=no_longer_degraded_host,json=noLongerDegradedHost,proto3,oneof"` +} + +func (*HealthCheckEvent_EjectUnhealthyEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_AddHealthyEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_HealthCheckFailureEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_DegradedHealthyHost) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_NoLongerDegradedHost) isHealthCheckEvent_Event() {} + +func (m *HealthCheckEvent) GetEvent() isHealthCheckEvent_Event { + if m != nil { + return m.Event + } + return nil +} + +func (m *HealthCheckEvent) GetEjectUnhealthyEvent() *HealthCheckEjectUnhealthy { + if x, ok := m.GetEvent().(*HealthCheckEvent_EjectUnhealthyEvent); ok { + return x.EjectUnhealthyEvent + } + return nil +} + +func (m *HealthCheckEvent) GetAddHealthyEvent() *HealthCheckAddHealthy { + if x, ok := m.GetEvent().(*HealthCheckEvent_AddHealthyEvent); ok { + return x.AddHealthyEvent + } + return nil +} + +func (m *HealthCheckEvent) GetHealthCheckFailureEvent() *HealthCheckFailure { + if x, ok := m.GetEvent().(*HealthCheckEvent_HealthCheckFailureEvent); ok { + return x.HealthCheckFailureEvent + } + return nil +} + +func (m *HealthCheckEvent) GetDegradedHealthyHost() *DegradedHealthyHost { + if x, ok := m.GetEvent().(*HealthCheckEvent_DegradedHealthyHost); ok { + return x.DegradedHealthyHost + } + return nil +} + +func (m *HealthCheckEvent) GetNoLongerDegradedHost() *NoLongerDegradedHost { + if x, ok := m.GetEvent().(*HealthCheckEvent_NoLongerDegradedHost); ok { + return x.NoLongerDegradedHost + } + return nil +} + +func (m *HealthCheckEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HealthCheckEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HealthCheckEvent_EjectUnhealthyEvent)(nil), + (*HealthCheckEvent_AddHealthyEvent)(nil), + (*HealthCheckEvent_HealthCheckFailureEvent)(nil), + (*HealthCheckEvent_DegradedHealthyHost)(nil), + (*HealthCheckEvent_NoLongerDegradedHost)(nil), + } +} + +type HealthCheckEjectUnhealthy struct { + FailureType HealthCheckFailureType `protobuf:"varint,1,opt,name=failure_type,json=failureType,proto3,enum=envoy.data.core.v2alpha.HealthCheckFailureType" json:"failure_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckEjectUnhealthy) Reset() { *m = HealthCheckEjectUnhealthy{} } +func (m *HealthCheckEjectUnhealthy) String() string { return proto.CompactTextString(m) } +func (*HealthCheckEjectUnhealthy) ProtoMessage() {} +func (*HealthCheckEjectUnhealthy) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{1} +} + +func (m *HealthCheckEjectUnhealthy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Unmarshal(m, b) +} +func (m *HealthCheckEjectUnhealthy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Marshal(b, m, deterministic) +} +func (m *HealthCheckEjectUnhealthy) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckEjectUnhealthy.Merge(m, src) +} +func (m *HealthCheckEjectUnhealthy) XXX_Size() int { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Size(m) +} +func (m *HealthCheckEjectUnhealthy) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckEjectUnhealthy.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckEjectUnhealthy proto.InternalMessageInfo + +func (m *HealthCheckEjectUnhealthy) GetFailureType() HealthCheckFailureType { + if m != nil { + return m.FailureType + } + return HealthCheckFailureType_ACTIVE +} + +type HealthCheckAddHealthy struct { + FirstCheck bool `protobuf:"varint,1,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckAddHealthy) Reset() { *m = HealthCheckAddHealthy{} } +func (m *HealthCheckAddHealthy) String() string { return proto.CompactTextString(m) } +func (*HealthCheckAddHealthy) ProtoMessage() {} +func (*HealthCheckAddHealthy) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{2} +} + +func (m *HealthCheckAddHealthy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckAddHealthy.Unmarshal(m, b) +} +func (m *HealthCheckAddHealthy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckAddHealthy.Marshal(b, m, deterministic) +} +func (m *HealthCheckAddHealthy) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckAddHealthy.Merge(m, src) +} +func (m *HealthCheckAddHealthy) XXX_Size() int { + return xxx_messageInfo_HealthCheckAddHealthy.Size(m) +} +func (m *HealthCheckAddHealthy) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckAddHealthy.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckAddHealthy proto.InternalMessageInfo + +func (m *HealthCheckAddHealthy) GetFirstCheck() bool { + if m != nil { + return m.FirstCheck + } + return false +} + +type HealthCheckFailure struct { + FailureType HealthCheckFailureType `protobuf:"varint,1,opt,name=failure_type,json=failureType,proto3,enum=envoy.data.core.v2alpha.HealthCheckFailureType" json:"failure_type,omitempty"` + FirstCheck bool `protobuf:"varint,2,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckFailure) Reset() { *m = HealthCheckFailure{} } +func (m *HealthCheckFailure) String() string { return proto.CompactTextString(m) } +func (*HealthCheckFailure) ProtoMessage() {} +func (*HealthCheckFailure) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{3} +} + +func (m *HealthCheckFailure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckFailure.Unmarshal(m, b) +} +func (m *HealthCheckFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckFailure.Marshal(b, m, deterministic) +} +func (m *HealthCheckFailure) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckFailure.Merge(m, src) +} +func (m *HealthCheckFailure) XXX_Size() int { + return xxx_messageInfo_HealthCheckFailure.Size(m) +} +func (m *HealthCheckFailure) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckFailure.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckFailure proto.InternalMessageInfo + +func (m *HealthCheckFailure) GetFailureType() HealthCheckFailureType { + if m != nil { + return m.FailureType + } + return HealthCheckFailureType_ACTIVE +} + +func (m *HealthCheckFailure) GetFirstCheck() bool { + if m != nil { + return m.FirstCheck + } + return false +} + +type DegradedHealthyHost struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DegradedHealthyHost) Reset() { *m = DegradedHealthyHost{} } +func (m *DegradedHealthyHost) String() string { return proto.CompactTextString(m) } +func (*DegradedHealthyHost) ProtoMessage() {} +func (*DegradedHealthyHost) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{4} +} + +func (m *DegradedHealthyHost) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DegradedHealthyHost.Unmarshal(m, b) +} +func (m *DegradedHealthyHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DegradedHealthyHost.Marshal(b, m, deterministic) +} +func (m *DegradedHealthyHost) XXX_Merge(src proto.Message) { + xxx_messageInfo_DegradedHealthyHost.Merge(m, src) +} +func (m *DegradedHealthyHost) XXX_Size() int { + return xxx_messageInfo_DegradedHealthyHost.Size(m) +} +func (m *DegradedHealthyHost) XXX_DiscardUnknown() { + xxx_messageInfo_DegradedHealthyHost.DiscardUnknown(m) +} + +var xxx_messageInfo_DegradedHealthyHost proto.InternalMessageInfo + +type NoLongerDegradedHost struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NoLongerDegradedHost) Reset() { *m = NoLongerDegradedHost{} } +func (m *NoLongerDegradedHost) String() string { return proto.CompactTextString(m) } +func (*NoLongerDegradedHost) ProtoMessage() {} +func (*NoLongerDegradedHost) Descriptor() ([]byte, []int) { + return fileDescriptor_e866c90440508830, []int{5} +} + +func (m *NoLongerDegradedHost) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NoLongerDegradedHost.Unmarshal(m, b) +} +func (m *NoLongerDegradedHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NoLongerDegradedHost.Marshal(b, m, deterministic) +} +func (m *NoLongerDegradedHost) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoLongerDegradedHost.Merge(m, src) +} +func (m *NoLongerDegradedHost) XXX_Size() int { + return xxx_messageInfo_NoLongerDegradedHost.Size(m) +} +func (m *NoLongerDegradedHost) XXX_DiscardUnknown() { + xxx_messageInfo_NoLongerDegradedHost.DiscardUnknown(m) +} + +var xxx_messageInfo_NoLongerDegradedHost proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.data.core.v2alpha.HealthCheckFailureType", HealthCheckFailureType_name, HealthCheckFailureType_value) + proto.RegisterEnum("envoy.data.core.v2alpha.HealthCheckerType", HealthCheckerType_name, HealthCheckerType_value) + proto.RegisterType((*HealthCheckEvent)(nil), "envoy.data.core.v2alpha.HealthCheckEvent") + proto.RegisterType((*HealthCheckEjectUnhealthy)(nil), "envoy.data.core.v2alpha.HealthCheckEjectUnhealthy") + proto.RegisterType((*HealthCheckAddHealthy)(nil), "envoy.data.core.v2alpha.HealthCheckAddHealthy") + proto.RegisterType((*HealthCheckFailure)(nil), "envoy.data.core.v2alpha.HealthCheckFailure") + proto.RegisterType((*DegradedHealthyHost)(nil), "envoy.data.core.v2alpha.DegradedHealthyHost") + proto.RegisterType((*NoLongerDegradedHost)(nil), "envoy.data.core.v2alpha.NoLongerDegradedHost") +} + +func init() { + proto.RegisterFile("envoy/data/core/v2alpha/health_check_event.proto", fileDescriptor_e866c90440508830) +} + +var fileDescriptor_e866c90440508830 = []byte{ + // 677 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcd, 0x6a, 0xdb, 0x4a, + 0x14, 0xc7, 0x2d, 0xf9, 0xfb, 0x38, 0xdc, 0xab, 0x4c, 0xe2, 0xd8, 0xd7, 0x70, 0x89, 0x31, 0x5c, + 0x08, 0xbe, 0xad, 0x54, 0xdc, 0x4d, 0xa0, 0x50, 0xb0, 0x1c, 0xb7, 0x0e, 0x2d, 0xa9, 0x51, 0xd4, + 0x76, 0x13, 0x10, 0x13, 0x6b, 0x6c, 0x29, 0x95, 0x35, 0x42, 0x1a, 0x9b, 0x7a, 0x57, 0xfa, 0x0a, + 0xdd, 0xf6, 0x49, 0xfa, 0x04, 0xdd, 0xf6, 0x6d, 0x4a, 0x56, 0x45, 0x33, 0x92, 0x9d, 0xf8, 0x03, + 0xd2, 0x45, 0x77, 0x9a, 0x33, 0xf3, 0x3f, 0xbf, 0xf3, 0x29, 0x78, 0x42, 0xfc, 0x39, 0x5d, 0x68, + 0x36, 0x66, 0x58, 0x1b, 0xd1, 0x90, 0x68, 0xf3, 0x0e, 0xf6, 0x02, 0x07, 0x6b, 0x0e, 0xc1, 0x1e, + 0x73, 0xac, 0x91, 0x43, 0x46, 0x1f, 0x2c, 0x32,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x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x63, 0xcb, + 0xd1, 0x2d, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.validate.go new file mode 100644 index 000000000..c46355fb2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha/health_check_event.pb.validate.go @@ -0,0 +1,559 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/core/v2alpha/health_check_event.proto + +package envoy_data_core_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _health_check_event_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HealthCheckEvent with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HealthCheckEvent) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckerType_name[int32(m.GetHealthCheckerType())]; !ok { + return HealthCheckEventValidationError{ + field: "HealthCheckerType", + reason: "value must be one of the defined enum values", + } + } + + if v, ok := interface{}(m.GetHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "Host", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetClusterName()) < 1 { + return HealthCheckEventValidationError{ + field: "ClusterName", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Event.(type) { + + case *HealthCheckEvent_EjectUnhealthyEvent: + + if v, ok := interface{}(m.GetEjectUnhealthyEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "EjectUnhealthyEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_AddHealthyEvent: + + if v, ok := interface{}(m.GetAddHealthyEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "AddHealthyEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_HealthCheckFailureEvent: + + if v, ok := interface{}(m.GetHealthCheckFailureEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "HealthCheckFailureEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_DegradedHealthyHost: + + if v, ok := interface{}(m.GetDegradedHealthyHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "DegradedHealthyHost", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_NoLongerDegradedHost: + + if v, ok := interface{}(m.GetNoLongerDegradedHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "NoLongerDegradedHost", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return HealthCheckEventValidationError{ + field: "Event", + reason: "value is required", + } + + } + + return nil +} + +// HealthCheckEventValidationError is the validation error returned by +// HealthCheckEvent.Validate if the designated constraints aren't met. +type HealthCheckEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckEventValidationError) ErrorName() string { return "HealthCheckEventValidationError" } + +// Error satisfies the builtin error interface +func (e HealthCheckEventValidationError) 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 %sHealthCheckEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckEventValidationError{} + +// Validate checks the field values on HealthCheckEjectUnhealthy with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckEjectUnhealthy) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { + return HealthCheckEjectUnhealthyValidationError{ + field: "FailureType", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// HealthCheckEjectUnhealthyValidationError is the validation error returned by +// HealthCheckEjectUnhealthy.Validate if the designated constraints aren't met. +type HealthCheckEjectUnhealthyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckEjectUnhealthyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckEjectUnhealthyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckEjectUnhealthyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckEjectUnhealthyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckEjectUnhealthyValidationError) ErrorName() string { + return "HealthCheckEjectUnhealthyValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckEjectUnhealthyValidationError) 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 %sHealthCheckEjectUnhealthy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckEjectUnhealthyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckEjectUnhealthyValidationError{} + +// Validate checks the field values on HealthCheckAddHealthy with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckAddHealthy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FirstCheck + + return nil +} + +// HealthCheckAddHealthyValidationError is the validation error returned by +// HealthCheckAddHealthy.Validate if the designated constraints aren't met. +type HealthCheckAddHealthyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckAddHealthyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckAddHealthyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckAddHealthyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckAddHealthyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckAddHealthyValidationError) ErrorName() string { + return "HealthCheckAddHealthyValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckAddHealthyValidationError) 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 %sHealthCheckAddHealthy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckAddHealthyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckAddHealthyValidationError{} + +// Validate checks the field values on HealthCheckFailure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckFailure) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { + return HealthCheckFailureValidationError{ + field: "FailureType", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for FirstCheck + + return nil +} + +// HealthCheckFailureValidationError is the validation error returned by +// HealthCheckFailure.Validate if the designated constraints aren't met. +type HealthCheckFailureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckFailureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckFailureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckFailureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckFailureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckFailureValidationError) ErrorName() string { + return "HealthCheckFailureValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckFailureValidationError) 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 %sHealthCheckFailure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckFailureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckFailureValidationError{} + +// Validate checks the field values on DegradedHealthyHost with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DegradedHealthyHost) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DegradedHealthyHostValidationError is the validation error returned by +// DegradedHealthyHost.Validate if the designated constraints aren't met. +type DegradedHealthyHostValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DegradedHealthyHostValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DegradedHealthyHostValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DegradedHealthyHostValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DegradedHealthyHostValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DegradedHealthyHostValidationError) ErrorName() string { + return "DegradedHealthyHostValidationError" +} + +// Error satisfies the builtin error interface +func (e DegradedHealthyHostValidationError) 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 %sDegradedHealthyHost.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DegradedHealthyHostValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DegradedHealthyHostValidationError{} + +// Validate checks the field values on NoLongerDegradedHost with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NoLongerDegradedHost) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NoLongerDegradedHostValidationError is the validation error returned by +// NoLongerDegradedHost.Validate if the designated constraints aren't met. +type NoLongerDegradedHostValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NoLongerDegradedHostValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NoLongerDegradedHostValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NoLongerDegradedHostValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NoLongerDegradedHostValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NoLongerDegradedHostValidationError) ErrorName() string { + return "NoLongerDegradedHostValidationError" +} + +// Error satisfies the builtin error interface +func (e NoLongerDegradedHostValidationError) 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 %sNoLongerDegradedHost.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NoLongerDegradedHostValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NoLongerDegradedHostValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.go new file mode 100644 index 000000000..4b9df986e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.go @@ -0,0 +1,495 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/core/v3/health_check_event.proto + +package envoy_data_core_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HealthCheckFailureType int32 + +const ( + HealthCheckFailureType_ACTIVE HealthCheckFailureType = 0 + HealthCheckFailureType_PASSIVE HealthCheckFailureType = 1 + HealthCheckFailureType_NETWORK HealthCheckFailureType = 2 +) + +var HealthCheckFailureType_name = map[int32]string{ + 0: "ACTIVE", + 1: "PASSIVE", + 2: "NETWORK", +} + +var HealthCheckFailureType_value = map[string]int32{ + "ACTIVE": 0, + "PASSIVE": 1, + "NETWORK": 2, +} + +func (x HealthCheckFailureType) String() string { + return proto.EnumName(HealthCheckFailureType_name, int32(x)) +} + +func (HealthCheckFailureType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{0} +} + +type HealthCheckerType int32 + +const ( + HealthCheckerType_HTTP HealthCheckerType = 0 + HealthCheckerType_TCP HealthCheckerType = 1 + HealthCheckerType_GRPC HealthCheckerType = 2 + HealthCheckerType_REDIS HealthCheckerType = 3 +) + +var HealthCheckerType_name = map[int32]string{ + 0: "HTTP", + 1: "TCP", + 2: "GRPC", + 3: "REDIS", +} + +var HealthCheckerType_value = map[string]int32{ + "HTTP": 0, + "TCP": 1, + "GRPC": 2, + "REDIS": 3, +} + +func (x HealthCheckerType) String() string { + return proto.EnumName(HealthCheckerType_name, int32(x)) +} + +func (HealthCheckerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{1} +} + +type HealthCheckEvent struct { + HealthCheckerType HealthCheckerType `protobuf:"varint,1,opt,name=health_checker_type,json=healthCheckerType,proto3,enum=envoy.data.core.v3.HealthCheckerType" json:"health_checker_type,omitempty"` + Host *v3.Address `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + // Types that are valid to be assigned to Event: + // *HealthCheckEvent_EjectUnhealthyEvent + // *HealthCheckEvent_AddHealthyEvent + // *HealthCheckEvent_HealthCheckFailureEvent + // *HealthCheckEvent_DegradedHealthyHost + // *HealthCheckEvent_NoLongerDegradedHost + Event isHealthCheckEvent_Event `protobuf_oneof:"event"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckEvent) Reset() { *m = HealthCheckEvent{} } +func (m *HealthCheckEvent) String() string { return proto.CompactTextString(m) } +func (*HealthCheckEvent) ProtoMessage() {} +func (*HealthCheckEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{0} +} + +func (m *HealthCheckEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckEvent.Unmarshal(m, b) +} +func (m *HealthCheckEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckEvent.Marshal(b, m, deterministic) +} +func (m *HealthCheckEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckEvent.Merge(m, src) +} +func (m *HealthCheckEvent) XXX_Size() int { + return xxx_messageInfo_HealthCheckEvent.Size(m) +} +func (m *HealthCheckEvent) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckEvent proto.InternalMessageInfo + +func (m *HealthCheckEvent) GetHealthCheckerType() HealthCheckerType { + if m != nil { + return m.HealthCheckerType + } + return HealthCheckerType_HTTP +} + +func (m *HealthCheckEvent) GetHost() *v3.Address { + if m != nil { + return m.Host + } + return nil +} + +func (m *HealthCheckEvent) GetClusterName() string { + if m != nil { + return m.ClusterName + } + return "" +} + +type isHealthCheckEvent_Event interface { + isHealthCheckEvent_Event() +} + +type HealthCheckEvent_EjectUnhealthyEvent struct { + EjectUnhealthyEvent *HealthCheckEjectUnhealthy `protobuf:"bytes,4,opt,name=eject_unhealthy_event,json=ejectUnhealthyEvent,proto3,oneof"` +} + +type HealthCheckEvent_AddHealthyEvent struct { + AddHealthyEvent *HealthCheckAddHealthy `protobuf:"bytes,5,opt,name=add_healthy_event,json=addHealthyEvent,proto3,oneof"` +} + +type HealthCheckEvent_HealthCheckFailureEvent struct { + HealthCheckFailureEvent *HealthCheckFailure `protobuf:"bytes,7,opt,name=health_check_failure_event,json=healthCheckFailureEvent,proto3,oneof"` +} + +type HealthCheckEvent_DegradedHealthyHost struct { + DegradedHealthyHost *DegradedHealthyHost `protobuf:"bytes,8,opt,name=degraded_healthy_host,json=degradedHealthyHost,proto3,oneof"` +} + +type HealthCheckEvent_NoLongerDegradedHost struct { + NoLongerDegradedHost *NoLongerDegradedHost `protobuf:"bytes,9,opt,name=no_longer_degraded_host,json=noLongerDegradedHost,proto3,oneof"` +} + +func (*HealthCheckEvent_EjectUnhealthyEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_AddHealthyEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_HealthCheckFailureEvent) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_DegradedHealthyHost) isHealthCheckEvent_Event() {} + +func (*HealthCheckEvent_NoLongerDegradedHost) isHealthCheckEvent_Event() {} + +func (m *HealthCheckEvent) GetEvent() isHealthCheckEvent_Event { + if m != nil { + return m.Event + } + return nil +} + +func (m *HealthCheckEvent) GetEjectUnhealthyEvent() *HealthCheckEjectUnhealthy { + if x, ok := m.GetEvent().(*HealthCheckEvent_EjectUnhealthyEvent); ok { + return x.EjectUnhealthyEvent + } + return nil +} + +func (m *HealthCheckEvent) GetAddHealthyEvent() *HealthCheckAddHealthy { + if x, ok := m.GetEvent().(*HealthCheckEvent_AddHealthyEvent); ok { + return x.AddHealthyEvent + } + return nil +} + +func (m *HealthCheckEvent) GetHealthCheckFailureEvent() *HealthCheckFailure { + if x, ok := m.GetEvent().(*HealthCheckEvent_HealthCheckFailureEvent); ok { + return x.HealthCheckFailureEvent + } + return nil +} + +func (m *HealthCheckEvent) GetDegradedHealthyHost() *DegradedHealthyHost { + if x, ok := m.GetEvent().(*HealthCheckEvent_DegradedHealthyHost); ok { + return x.DegradedHealthyHost + } + return nil +} + +func (m *HealthCheckEvent) GetNoLongerDegradedHost() *NoLongerDegradedHost { + if x, ok := m.GetEvent().(*HealthCheckEvent_NoLongerDegradedHost); ok { + return x.NoLongerDegradedHost + } + return nil +} + +func (m *HealthCheckEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HealthCheckEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HealthCheckEvent_EjectUnhealthyEvent)(nil), + (*HealthCheckEvent_AddHealthyEvent)(nil), + (*HealthCheckEvent_HealthCheckFailureEvent)(nil), + (*HealthCheckEvent_DegradedHealthyHost)(nil), + (*HealthCheckEvent_NoLongerDegradedHost)(nil), + } +} + +type HealthCheckEjectUnhealthy struct { + FailureType HealthCheckFailureType `protobuf:"varint,1,opt,name=failure_type,json=failureType,proto3,enum=envoy.data.core.v3.HealthCheckFailureType" json:"failure_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckEjectUnhealthy) Reset() { *m = HealthCheckEjectUnhealthy{} } +func (m *HealthCheckEjectUnhealthy) String() string { return proto.CompactTextString(m) } +func (*HealthCheckEjectUnhealthy) ProtoMessage() {} +func (*HealthCheckEjectUnhealthy) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{1} +} + +func (m *HealthCheckEjectUnhealthy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Unmarshal(m, b) +} +func (m *HealthCheckEjectUnhealthy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Marshal(b, m, deterministic) +} +func (m *HealthCheckEjectUnhealthy) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckEjectUnhealthy.Merge(m, src) +} +func (m *HealthCheckEjectUnhealthy) XXX_Size() int { + return xxx_messageInfo_HealthCheckEjectUnhealthy.Size(m) +} +func (m *HealthCheckEjectUnhealthy) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckEjectUnhealthy.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckEjectUnhealthy proto.InternalMessageInfo + +func (m *HealthCheckEjectUnhealthy) GetFailureType() HealthCheckFailureType { + if m != nil { + return m.FailureType + } + return HealthCheckFailureType_ACTIVE +} + +type HealthCheckAddHealthy struct { + FirstCheck bool `protobuf:"varint,1,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckAddHealthy) Reset() { *m = HealthCheckAddHealthy{} } +func (m *HealthCheckAddHealthy) String() string { return proto.CompactTextString(m) } +func (*HealthCheckAddHealthy) ProtoMessage() {} +func (*HealthCheckAddHealthy) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{2} +} + +func (m *HealthCheckAddHealthy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckAddHealthy.Unmarshal(m, b) +} +func (m *HealthCheckAddHealthy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckAddHealthy.Marshal(b, m, deterministic) +} +func (m *HealthCheckAddHealthy) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckAddHealthy.Merge(m, src) +} +func (m *HealthCheckAddHealthy) XXX_Size() int { + return xxx_messageInfo_HealthCheckAddHealthy.Size(m) +} +func (m *HealthCheckAddHealthy) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckAddHealthy.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckAddHealthy proto.InternalMessageInfo + +func (m *HealthCheckAddHealthy) GetFirstCheck() bool { + if m != nil { + return m.FirstCheck + } + return false +} + +type HealthCheckFailure struct { + FailureType HealthCheckFailureType `protobuf:"varint,1,opt,name=failure_type,json=failureType,proto3,enum=envoy.data.core.v3.HealthCheckFailureType" json:"failure_type,omitempty"` + FirstCheck bool `protobuf:"varint,2,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckFailure) Reset() { *m = HealthCheckFailure{} } +func (m *HealthCheckFailure) String() string { return proto.CompactTextString(m) } +func (*HealthCheckFailure) ProtoMessage() {} +func (*HealthCheckFailure) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{3} +} + +func (m *HealthCheckFailure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckFailure.Unmarshal(m, b) +} +func (m *HealthCheckFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckFailure.Marshal(b, m, deterministic) +} +func (m *HealthCheckFailure) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckFailure.Merge(m, src) +} +func (m *HealthCheckFailure) XXX_Size() int { + return xxx_messageInfo_HealthCheckFailure.Size(m) +} +func (m *HealthCheckFailure) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckFailure.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckFailure proto.InternalMessageInfo + +func (m *HealthCheckFailure) GetFailureType() HealthCheckFailureType { + if m != nil { + return m.FailureType + } + return HealthCheckFailureType_ACTIVE +} + +func (m *HealthCheckFailure) GetFirstCheck() bool { + if m != nil { + return m.FirstCheck + } + return false +} + +type DegradedHealthyHost struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DegradedHealthyHost) Reset() { *m = DegradedHealthyHost{} } +func (m *DegradedHealthyHost) String() string { return proto.CompactTextString(m) } +func (*DegradedHealthyHost) ProtoMessage() {} +func (*DegradedHealthyHost) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{4} +} + +func (m *DegradedHealthyHost) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DegradedHealthyHost.Unmarshal(m, b) +} +func (m *DegradedHealthyHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DegradedHealthyHost.Marshal(b, m, deterministic) +} +func (m *DegradedHealthyHost) XXX_Merge(src proto.Message) { + xxx_messageInfo_DegradedHealthyHost.Merge(m, src) +} +func (m *DegradedHealthyHost) XXX_Size() int { + return xxx_messageInfo_DegradedHealthyHost.Size(m) +} +func (m *DegradedHealthyHost) XXX_DiscardUnknown() { + xxx_messageInfo_DegradedHealthyHost.DiscardUnknown(m) +} + +var xxx_messageInfo_DegradedHealthyHost proto.InternalMessageInfo + +type NoLongerDegradedHost struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NoLongerDegradedHost) Reset() { *m = NoLongerDegradedHost{} } +func (m *NoLongerDegradedHost) String() string { return proto.CompactTextString(m) } +func (*NoLongerDegradedHost) ProtoMessage() {} +func (*NoLongerDegradedHost) Descriptor() ([]byte, []int) { + return fileDescriptor_b418bf0decf4b3ef, []int{5} +} + +func (m *NoLongerDegradedHost) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NoLongerDegradedHost.Unmarshal(m, b) +} +func (m *NoLongerDegradedHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NoLongerDegradedHost.Marshal(b, m, deterministic) +} +func (m *NoLongerDegradedHost) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoLongerDegradedHost.Merge(m, src) +} +func (m *NoLongerDegradedHost) XXX_Size() int { + return xxx_messageInfo_NoLongerDegradedHost.Size(m) +} +func (m *NoLongerDegradedHost) XXX_DiscardUnknown() { + xxx_messageInfo_NoLongerDegradedHost.DiscardUnknown(m) +} + +var xxx_messageInfo_NoLongerDegradedHost proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.data.core.v3.HealthCheckFailureType", HealthCheckFailureType_name, HealthCheckFailureType_value) + proto.RegisterEnum("envoy.data.core.v3.HealthCheckerType", HealthCheckerType_name, HealthCheckerType_value) + proto.RegisterType((*HealthCheckEvent)(nil), "envoy.data.core.v3.HealthCheckEvent") + proto.RegisterType((*HealthCheckEjectUnhealthy)(nil), "envoy.data.core.v3.HealthCheckEjectUnhealthy") + proto.RegisterType((*HealthCheckAddHealthy)(nil), "envoy.data.core.v3.HealthCheckAddHealthy") + proto.RegisterType((*HealthCheckFailure)(nil), "envoy.data.core.v3.HealthCheckFailure") + proto.RegisterType((*DegradedHealthyHost)(nil), "envoy.data.core.v3.DegradedHealthyHost") + proto.RegisterType((*NoLongerDegradedHost)(nil), "envoy.data.core.v3.NoLongerDegradedHost") +} + +func init() { + proto.RegisterFile("envoy/data/core/v3/health_check_event.proto", fileDescriptor_b418bf0decf4b3ef) +} + +var fileDescriptor_b418bf0decf4b3ef = []byte{ + // 765 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4d, 0x6f, 0xe2, 0x46, + 0x18, 0xc6, 0xe6, 0xfb, 0x25, 0x6a, 0x9d, 0x49, 0x68, 0x28, 0x52, 0x1a, 0x8a, 0xd4, 0x96, 0xd2, + 0xc4, 0x56, 0xa0, 0x87, 0x88, 0x4a, 0x95, 0x30, 0xa1, 0x25, 0x4a, 0x95, 0x22, 0x87, 0x36, 0xa7, + 0xca, 0x9a, 0xe0, 0x01, 0xdc, 0x82, 0x07, 0xd9, 0x03, 0x2a, 0xb7, 0xaa, 0xa7, 0xfe, 0x86, 0xfe, + 0x88, 0x3d, 0xec, 0x71, 0x6f, 0x7b, 0x58, 0x69, 0xaf, 0xfb, 0x6f, 0x56, 0x39, 0xad, 0x66, 0x6c, + 0x20, 0x60, 0x47, 0xe1, 0xb2, 0x37, 0xe6, 0xfd, 0x78, 0x9e, 0xf7, 0x79, 0x3f, 0x30, 0x7c, 0x47, + 0x9c, 0x39, 0x5d, 0x68, 0x16, 0x66, 0x58, 0xeb, 0x53, 0x97, 0x68, 0xf3, 0xba, 0x36, 0x22, 0x78, + 0xcc, 0x46, 0x66, 0x7f, 0x44, 0xfa, 0x7f, 0x99, 0x64, 0x4e, 0x1c, 0xa6, 0x4e, 0x5d, 0xca, 0x28, + 0x42, 0x22, 0x58, 0xe5, 0xc1, 0x2a, 0x0f, 0x56, 0xe7, 0xf5, 0x62, 0xd9, 0x07, 0xe8, 0x53, 0x67, + 0x60, 0x0f, 0x57, 0x10, 0xd8, 0xb2, 0x5c, 0xe2, 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, 0xc4, 0x4d, 0x3f, 0x1b, + 0xdd, 0x96, 0x22, 0xa3, 0x2c, 0x24, 0x8d, 0xf6, 0xe5, 0xd5, 0xad, 0x12, 0xd7, 0x5b, 0xaf, 0xfe, + 0x79, 0xfb, 0x2e, 0x25, 0x2b, 0x32, 0x94, 0x6c, 0xea, 0xcf, 0x6d, 0xea, 0xd2, 0xbf, 0x17, 0x11, + 0x23, 0xd4, 0xf3, 0xdb, 0x57, 0xd4, 0xe5, 0x37, 0xd9, 0x95, 0xee, 0x53, 0xe2, 0x38, 0xeb, 0x1f, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x57, 0x2e, 0x8e, 0xbb, 0x5d, 0x07, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.validate.go new file mode 100644 index 000000000..36ed345c3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/core/v3/health_check_event.pb.validate.go @@ -0,0 +1,559 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/core/v3/health_check_event.proto + +package envoy_data_core_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _health_check_event_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HealthCheckEvent with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HealthCheckEvent) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckerType_name[int32(m.GetHealthCheckerType())]; !ok { + return HealthCheckEventValidationError{ + field: "HealthCheckerType", + reason: "value must be one of the defined enum values", + } + } + + if v, ok := interface{}(m.GetHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "Host", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetClusterName()) < 1 { + return HealthCheckEventValidationError{ + field: "ClusterName", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Event.(type) { + + case *HealthCheckEvent_EjectUnhealthyEvent: + + if v, ok := interface{}(m.GetEjectUnhealthyEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "EjectUnhealthyEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_AddHealthyEvent: + + if v, ok := interface{}(m.GetAddHealthyEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "AddHealthyEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_HealthCheckFailureEvent: + + if v, ok := interface{}(m.GetHealthCheckFailureEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "HealthCheckFailureEvent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_DegradedHealthyHost: + + if v, ok := interface{}(m.GetDegradedHealthyHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "DegradedHealthyHost", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckEvent_NoLongerDegradedHost: + + if v, ok := interface{}(m.GetNoLongerDegradedHost()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckEventValidationError{ + field: "NoLongerDegradedHost", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return HealthCheckEventValidationError{ + field: "Event", + reason: "value is required", + } + + } + + return nil +} + +// HealthCheckEventValidationError is the validation error returned by +// HealthCheckEvent.Validate if the designated constraints aren't met. +type HealthCheckEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckEventValidationError) ErrorName() string { return "HealthCheckEventValidationError" } + +// Error satisfies the builtin error interface +func (e HealthCheckEventValidationError) 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 %sHealthCheckEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckEventValidationError{} + +// Validate checks the field values on HealthCheckEjectUnhealthy with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckEjectUnhealthy) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { + return HealthCheckEjectUnhealthyValidationError{ + field: "FailureType", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// HealthCheckEjectUnhealthyValidationError is the validation error returned by +// HealthCheckEjectUnhealthy.Validate if the designated constraints aren't met. +type HealthCheckEjectUnhealthyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckEjectUnhealthyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckEjectUnhealthyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckEjectUnhealthyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckEjectUnhealthyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckEjectUnhealthyValidationError) ErrorName() string { + return "HealthCheckEjectUnhealthyValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckEjectUnhealthyValidationError) 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 %sHealthCheckEjectUnhealthy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckEjectUnhealthyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckEjectUnhealthyValidationError{} + +// Validate checks the field values on HealthCheckAddHealthy with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckAddHealthy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FirstCheck + + return nil +} + +// HealthCheckAddHealthyValidationError is the validation error returned by +// HealthCheckAddHealthy.Validate if the designated constraints aren't met. +type HealthCheckAddHealthyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckAddHealthyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckAddHealthyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckAddHealthyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckAddHealthyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckAddHealthyValidationError) ErrorName() string { + return "HealthCheckAddHealthyValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckAddHealthyValidationError) 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 %sHealthCheckAddHealthy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckAddHealthyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckAddHealthyValidationError{} + +// Validate checks the field values on HealthCheckFailure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckFailure) Validate() error { + if m == nil { + return nil + } + + if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { + return HealthCheckFailureValidationError{ + field: "FailureType", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for FirstCheck + + return nil +} + +// HealthCheckFailureValidationError is the validation error returned by +// HealthCheckFailure.Validate if the designated constraints aren't met. +type HealthCheckFailureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckFailureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckFailureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckFailureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckFailureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckFailureValidationError) ErrorName() string { + return "HealthCheckFailureValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckFailureValidationError) 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 %sHealthCheckFailure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckFailureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckFailureValidationError{} + +// Validate checks the field values on DegradedHealthyHost with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DegradedHealthyHost) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DegradedHealthyHostValidationError is the validation error returned by +// DegradedHealthyHost.Validate if the designated constraints aren't met. +type DegradedHealthyHostValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DegradedHealthyHostValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DegradedHealthyHostValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DegradedHealthyHostValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DegradedHealthyHostValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DegradedHealthyHostValidationError) ErrorName() string { + return "DegradedHealthyHostValidationError" +} + +// Error satisfies the builtin error interface +func (e DegradedHealthyHostValidationError) 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 %sDegradedHealthyHost.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DegradedHealthyHostValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DegradedHealthyHostValidationError{} + +// Validate checks the field values on NoLongerDegradedHost with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NoLongerDegradedHost) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NoLongerDegradedHostValidationError is the validation error returned by +// NoLongerDegradedHost.Validate if the designated constraints aren't met. +type NoLongerDegradedHostValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NoLongerDegradedHostValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NoLongerDegradedHostValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NoLongerDegradedHostValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NoLongerDegradedHostValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NoLongerDegradedHostValidationError) ErrorName() string { + return "NoLongerDegradedHostValidationError" +} + +// Error satisfies the builtin error interface +func (e NoLongerDegradedHostValidationError) 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 %sNoLongerDegradedHost.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NoLongerDegradedHostValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NoLongerDegradedHostValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.go new file mode 100644 index 000000000..6a1551710 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.go @@ -0,0 +1,287 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/dns/v2alpha/dns_table.proto + +package envoy_data_dns_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsTable struct { + ExternalRetryCount uint32 `protobuf:"varint,1,opt,name=external_retry_count,json=externalRetryCount,proto3" json:"external_retry_count,omitempty"` + VirtualDomains []*DnsTable_DnsVirtualDomain `protobuf:"bytes,2,rep,name=virtual_domains,json=virtualDomains,proto3" json:"virtual_domains,omitempty"` + KnownSuffixes []*matcher.StringMatcher `protobuf:"bytes,3,rep,name=known_suffixes,json=knownSuffixes,proto3" json:"known_suffixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable) Reset() { *m = DnsTable{} } +func (m *DnsTable) String() string { return proto.CompactTextString(m) } +func (*DnsTable) ProtoMessage() {} +func (*DnsTable) Descriptor() ([]byte, []int) { + return fileDescriptor_74e6eda848825994, []int{0} +} + +func (m *DnsTable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable.Unmarshal(m, b) +} +func (m *DnsTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable.Marshal(b, m, deterministic) +} +func (m *DnsTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable.Merge(m, src) +} +func (m *DnsTable) XXX_Size() int { + return xxx_messageInfo_DnsTable.Size(m) +} +func (m *DnsTable) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable proto.InternalMessageInfo + +func (m *DnsTable) GetExternalRetryCount() uint32 { + if m != nil { + return m.ExternalRetryCount + } + return 0 +} + +func (m *DnsTable) GetVirtualDomains() []*DnsTable_DnsVirtualDomain { + if m != nil { + return m.VirtualDomains + } + return nil +} + +func (m *DnsTable) GetKnownSuffixes() []*matcher.StringMatcher { + if m != nil { + return m.KnownSuffixes + } + return nil +} + +type DnsTable_AddressList struct { + Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_AddressList) Reset() { *m = DnsTable_AddressList{} } +func (m *DnsTable_AddressList) String() string { return proto.CompactTextString(m) } +func (*DnsTable_AddressList) ProtoMessage() {} +func (*DnsTable_AddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_74e6eda848825994, []int{0, 0} +} + +func (m *DnsTable_AddressList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_AddressList.Unmarshal(m, b) +} +func (m *DnsTable_AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_AddressList.Marshal(b, m, deterministic) +} +func (m *DnsTable_AddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_AddressList.Merge(m, src) +} +func (m *DnsTable_AddressList) XXX_Size() int { + return xxx_messageInfo_DnsTable_AddressList.Size(m) +} +func (m *DnsTable_AddressList) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_AddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_AddressList proto.InternalMessageInfo + +func (m *DnsTable_AddressList) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type DnsTable_DnsEndpoint struct { + // Types that are valid to be assigned to EndpointConfig: + // *DnsTable_DnsEndpoint_AddressList + EndpointConfig isDnsTable_DnsEndpoint_EndpointConfig `protobuf_oneof:"endpoint_config"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_DnsEndpoint) Reset() { *m = DnsTable_DnsEndpoint{} } +func (m *DnsTable_DnsEndpoint) String() string { return proto.CompactTextString(m) } +func (*DnsTable_DnsEndpoint) ProtoMessage() {} +func (*DnsTable_DnsEndpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_74e6eda848825994, []int{0, 1} +} + +func (m *DnsTable_DnsEndpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_DnsEndpoint.Unmarshal(m, b) +} +func (m *DnsTable_DnsEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_DnsEndpoint.Marshal(b, m, deterministic) +} +func (m *DnsTable_DnsEndpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_DnsEndpoint.Merge(m, src) +} +func (m *DnsTable_DnsEndpoint) XXX_Size() int { + return xxx_messageInfo_DnsTable_DnsEndpoint.Size(m) +} +func (m *DnsTable_DnsEndpoint) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_DnsEndpoint.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_DnsEndpoint proto.InternalMessageInfo + +type isDnsTable_DnsEndpoint_EndpointConfig interface { + isDnsTable_DnsEndpoint_EndpointConfig() +} + +type DnsTable_DnsEndpoint_AddressList struct { + AddressList *DnsTable_AddressList `protobuf:"bytes,1,opt,name=address_list,json=addressList,proto3,oneof"` +} + +func (*DnsTable_DnsEndpoint_AddressList) isDnsTable_DnsEndpoint_EndpointConfig() {} + +func (m *DnsTable_DnsEndpoint) GetEndpointConfig() isDnsTable_DnsEndpoint_EndpointConfig { + if m != nil { + return m.EndpointConfig + } + return nil +} + +func (m *DnsTable_DnsEndpoint) GetAddressList() *DnsTable_AddressList { + if x, ok := m.GetEndpointConfig().(*DnsTable_DnsEndpoint_AddressList); ok { + return x.AddressList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DnsTable_DnsEndpoint) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DnsTable_DnsEndpoint_AddressList)(nil), + } +} + +type DnsTable_DnsVirtualDomain struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Endpoint *DnsTable_DnsEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + AnswerTtl *duration.Duration `protobuf:"bytes,3,opt,name=answer_ttl,json=answerTtl,proto3" json:"answer_ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_DnsVirtualDomain) Reset() { *m = DnsTable_DnsVirtualDomain{} } +func (m *DnsTable_DnsVirtualDomain) String() string { return proto.CompactTextString(m) } +func (*DnsTable_DnsVirtualDomain) ProtoMessage() {} +func (*DnsTable_DnsVirtualDomain) Descriptor() ([]byte, []int) { + return fileDescriptor_74e6eda848825994, []int{0, 2} +} + +func (m *DnsTable_DnsVirtualDomain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Unmarshal(m, b) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Marshal(b, m, deterministic) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_DnsVirtualDomain.Merge(m, src) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Size() int { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Size(m) +} +func (m *DnsTable_DnsVirtualDomain) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_DnsVirtualDomain.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_DnsVirtualDomain proto.InternalMessageInfo + +func (m *DnsTable_DnsVirtualDomain) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DnsTable_DnsVirtualDomain) GetEndpoint() *DnsTable_DnsEndpoint { + if m != nil { + return m.Endpoint + } + return nil +} + +func (m *DnsTable_DnsVirtualDomain) GetAnswerTtl() *duration.Duration { + if m != nil { + return m.AnswerTtl + } + return nil +} + +func init() { + proto.RegisterType((*DnsTable)(nil), "envoy.data.dns.v2alpha.DnsTable") + proto.RegisterType((*DnsTable_AddressList)(nil), "envoy.data.dns.v2alpha.DnsTable.AddressList") + proto.RegisterType((*DnsTable_DnsEndpoint)(nil), "envoy.data.dns.v2alpha.DnsTable.DnsEndpoint") + proto.RegisterType((*DnsTable_DnsVirtualDomain)(nil), "envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain") +} + +func init() { + proto.RegisterFile("envoy/data/dns/v2alpha/dns_table.proto", fileDescriptor_74e6eda848825994) +} + +var fileDescriptor_74e6eda848825994 = []byte{ + // 519 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xc1, 0x8e, 0xd3, 0x3c, + 0x10, 0x5e, 0x27, 0xdd, 0xdd, 0xd4, 0xf9, 0xdb, 0xad, 0xa2, 0x5f, 0x4b, 0xa8, 0xc4, 0x52, 0x56, + 0x08, 0x55, 0x08, 0x39, 0x50, 0x0e, 0x9c, 0x31, 0x45, 0xf4, 0x00, 0xd2, 0x92, 0x5d, 0x71, 0x8d, + 0xdc, 0xda, 0xed, 0x5a, 0xa4, 0x76, 0x64, 0x3b, 0xdd, 0xf6, 0xc6, 0x33, 0xec, 0x63, 0xf0, 0x08, + 0x9c, 0xf6, 0xc8, 0x95, 0x57, 0xe0, 0x29, 0x50, 0x4f, 0x28, 0x76, 0x02, 0x15, 0x02, 0xc1, 0x29, + 0x33, 0xfe, 0xe6, 0x9b, 0x6f, 0xe6, 0xcb, 0xc0, 0x07, 0x4c, 0xac, 0xe4, 0x26, 0xa1, 0xc4, 0x90, + 0x84, 0x0a, 0x9d, 0xac, 0x46, 0x24, 0x2f, 0x2e, 0x6d, 0x9c, 0x19, 0x32, 0xcd, 0x19, 0x2a, 0x94, + 0x34, 0x32, 0x3a, 0xb6, 0x75, 0xa8, 0xaa, 0x43, 0x54, 0x68, 0x54, 0xd7, 0xf5, 0xef, 0x3a, 0xbe, + 0xd9, 0x14, 0x2c, 0x59, 0x12, 0x33, 0xbb, 0x64, 0x2a, 0xd1, 0x46, 0x71, 0xb1, 0x70, 0xc4, 0xfe, + 0xc9, 0x42, 0xca, 0x45, 0xce, 0x12, 0x9b, 0x4d, 0xcb, 0x79, 0x42, 0x4b, 0x45, 0x0c, 0x97, 0xa2, + 0xc6, 0xef, 0x94, 0xb4, 0x20, 0x09, 0x11, 0x42, 0x1a, 0xfb, 0xac, 0x13, 0x6d, 0x88, 0x29, 0x75, + 0x0d, 0xdf, 0x5a, 0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0x76, 0x0e, 0x85, 0xa3, 0x47, 0x7f, + 0x5d, 0x7a, 0x47, 0x7c, 0xb2, 0x97, 0x86, 0xe4, 0x67, 0x8a, 0x8f, 0xe1, 0x11, 0xab, 0xdb, 0x67, + 0x33, 0x29, 0xe6, 0x7c, 0x11, 0xf9, 0xdf, 0x30, 0xe8, 0xdf, 0x00, 0xd8, 0xfb, 0xd5, 0xab, 0xe8, + 0x04, 0xb6, 0x04, 0x59, 0x32, 0xab, 0xdb, 0xc6, 0x70, 0x8b, 0x0f, 0xd5, 0x7e, 0xcf, 0xbb, 0x01, + 0x20, 0xb5, 0xef, 0xd1, 0x04, 0x06, 0x4d, 0xb3, 0xd8, 0xfb, 0xc7, 0xd9, 0x76, 0xf6, 0x4b, 0x7f, + 0xb0, 0x23, 0x0c, 0x21, 0x11, 0xfa, 0x8a, 0xa9, 0xcc, 0x98, 0x3c, 0xf6, 0x6d, 0xaf, 0xdb, 0xc8, + 0x5d, 0x23, 0x6a, 0xae, 0x11, 0x8d, 0xeb, 0x6b, 0xb4, 0x3f, 0xf1, 0x23, 0xf0, 0x1e, 0xee, 0xa5, + 0x6d, 0x47, 0xbb, 0x30, 0x39, 0x7e, 0xf5, 0xe9, 0xc3, 0xe7, 0x2f, 0x07, 0x5e, 0x00, 0xdc, 0xb7, + 0x07, 0xe0, 0x7d, 0x2e, 0xdd, 0x3c, 0x85, 0x92, 0xeb, 0xcd, 0x1f, 0x46, 0xc3, 0x9d, 0x66, 0xb6, + 0xb3, 0x4a, 0xe7, 0x0c, 0x4c, 0x0f, 0xac, 0xe0, 0xd3, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x68, + 0xb1, 0x4a, 0x22, 0x6f, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.validate.go new file mode 100644 index 000000000..c5d1116ff --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha/dns_table.pb.validate.go @@ -0,0 +1,429 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/dns/v2alpha/dns_table.proto + +package envoy_data_dns_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dns_table_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsTable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DnsTable) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExternalRetryCount + + if len(m.GetVirtualDomains()) < 1 { + return DnsTableValidationError{ + field: "VirtualDomains", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetVirtualDomains() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTableValidationError{ + field: fmt.Sprintf("VirtualDomains[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetKnownSuffixes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTableValidationError{ + field: fmt.Sprintf("KnownSuffixes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DnsTableValidationError is the validation error returned by +// DnsTable.Validate if the designated constraints aren't met. +type DnsTableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTableValidationError) ErrorName() string { return "DnsTableValidationError" } + +// Error satisfies the builtin error interface +func (e DnsTableValidationError) 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 %sDnsTable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTableValidationError{} + +// Validate checks the field values on DnsTable_AddressList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_AddressList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetAddress()) < 1 { + return DnsTable_AddressListValidationError{ + field: "Address", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetAddress() { + _, _ = idx, item + + if utf8.RuneCountInString(item) < 3 { + return DnsTable_AddressListValidationError{ + field: fmt.Sprintf("Address[%v]", idx), + reason: "value length must be at least 3 runes", + } + } + + } + + return nil +} + +// DnsTable_AddressListValidationError is the validation error returned by +// DnsTable_AddressList.Validate if the designated constraints aren't met. +type DnsTable_AddressListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_AddressListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_AddressListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_AddressListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_AddressListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_AddressListValidationError) ErrorName() string { + return "DnsTable_AddressListValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_AddressListValidationError) 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 %sDnsTable_AddressList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_AddressListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_AddressListValidationError{} + +// Validate checks the field values on DnsTable_DnsEndpoint with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_DnsEndpoint) Validate() error { + if m == nil { + return nil + } + + switch m.EndpointConfig.(type) { + + case *DnsTable_DnsEndpoint_AddressList: + + if v, ok := interface{}(m.GetAddressList()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTable_DnsEndpointValidationError{ + field: "AddressList", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return DnsTable_DnsEndpointValidationError{ + field: "EndpointConfig", + reason: "value is required", + } + + } + + return nil +} + +// DnsTable_DnsEndpointValidationError is the validation error returned by +// DnsTable_DnsEndpoint.Validate if the designated constraints aren't met. +type DnsTable_DnsEndpointValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_DnsEndpointValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_DnsEndpointValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_DnsEndpointValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_DnsEndpointValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_DnsEndpointValidationError) ErrorName() string { + return "DnsTable_DnsEndpointValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_DnsEndpointValidationError) 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 %sDnsTable_DnsEndpoint.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_DnsEndpointValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_DnsEndpointValidationError{} + +// Validate checks the field values on DnsTable_DnsVirtualDomain with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_DnsVirtualDomain) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetName()) < 2 { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Name", + reason: "value length must be at least 2 runes", + } + } + + if !_DnsTable_DnsVirtualDomain_Name_Pattern.MatchString(m.GetName()) { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Name", + reason: "value does not match regex pattern \"^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$\"", + } + } + + if v, ok := interface{}(m.GetEndpoint()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Endpoint", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetAnswerTtl(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsTable_DnsVirtualDomainValidationError{ + field: "AnswerTtl", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return DnsTable_DnsVirtualDomainValidationError{ + field: "AnswerTtl", + reason: "value must be greater than 0s", + } + } + + } + + return nil +} + +// DnsTable_DnsVirtualDomainValidationError is the validation error returned by +// DnsTable_DnsVirtualDomain.Validate if the designated constraints aren't met. +type DnsTable_DnsVirtualDomainValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_DnsVirtualDomainValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_DnsVirtualDomainValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_DnsVirtualDomainValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_DnsVirtualDomainValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_DnsVirtualDomainValidationError) ErrorName() string { + return "DnsTable_DnsVirtualDomainValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_DnsVirtualDomainValidationError) 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 %sDnsTable_DnsVirtualDomain.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_DnsVirtualDomainValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_DnsVirtualDomainValidationError{} + +var _DnsTable_DnsVirtualDomain_Name_Pattern = regexp.MustCompile("^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$") diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.go new file mode 100644 index 000000000..d8527762a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.go @@ -0,0 +1,289 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/dns/v3/dns_table.proto + +package envoy_data_dns_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsTable struct { + ExternalRetryCount uint32 `protobuf:"varint,1,opt,name=external_retry_count,json=externalRetryCount,proto3" json:"external_retry_count,omitempty"` + VirtualDomains []*DnsTable_DnsVirtualDomain `protobuf:"bytes,2,rep,name=virtual_domains,json=virtualDomains,proto3" json:"virtual_domains,omitempty"` + KnownSuffixes []*v3.StringMatcher `protobuf:"bytes,3,rep,name=known_suffixes,json=knownSuffixes,proto3" json:"known_suffixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable) Reset() { *m = DnsTable{} } +func (m *DnsTable) String() string { return proto.CompactTextString(m) } +func (*DnsTable) ProtoMessage() {} +func (*DnsTable) Descriptor() ([]byte, []int) { + return fileDescriptor_c0588926abfe2398, []int{0} +} + +func (m *DnsTable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable.Unmarshal(m, b) +} +func (m *DnsTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable.Marshal(b, m, deterministic) +} +func (m *DnsTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable.Merge(m, src) +} +func (m *DnsTable) XXX_Size() int { + return xxx_messageInfo_DnsTable.Size(m) +} +func (m *DnsTable) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable proto.InternalMessageInfo + +func (m *DnsTable) GetExternalRetryCount() uint32 { + if m != nil { + return m.ExternalRetryCount + } + return 0 +} + +func (m *DnsTable) GetVirtualDomains() []*DnsTable_DnsVirtualDomain { + if m != nil { + return m.VirtualDomains + } + return nil +} + +func (m *DnsTable) GetKnownSuffixes() []*v3.StringMatcher { + if m != nil { + return m.KnownSuffixes + } + return nil +} + +type DnsTable_AddressList struct { + Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_AddressList) Reset() { *m = DnsTable_AddressList{} } +func (m *DnsTable_AddressList) String() string { return proto.CompactTextString(m) } +func (*DnsTable_AddressList) ProtoMessage() {} +func (*DnsTable_AddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_c0588926abfe2398, []int{0, 0} +} + +func (m *DnsTable_AddressList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_AddressList.Unmarshal(m, b) +} +func (m *DnsTable_AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_AddressList.Marshal(b, m, deterministic) +} +func (m *DnsTable_AddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_AddressList.Merge(m, src) +} +func (m *DnsTable_AddressList) XXX_Size() int { + return xxx_messageInfo_DnsTable_AddressList.Size(m) +} +func (m *DnsTable_AddressList) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_AddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_AddressList proto.InternalMessageInfo + +func (m *DnsTable_AddressList) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type DnsTable_DnsEndpoint struct { + // Types that are valid to be assigned to EndpointConfig: + // *DnsTable_DnsEndpoint_AddressList + EndpointConfig isDnsTable_DnsEndpoint_EndpointConfig `protobuf_oneof:"endpoint_config"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_DnsEndpoint) Reset() { *m = DnsTable_DnsEndpoint{} } +func (m *DnsTable_DnsEndpoint) String() string { return proto.CompactTextString(m) } +func (*DnsTable_DnsEndpoint) ProtoMessage() {} +func (*DnsTable_DnsEndpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_c0588926abfe2398, []int{0, 1} +} + +func (m *DnsTable_DnsEndpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_DnsEndpoint.Unmarshal(m, b) +} +func (m *DnsTable_DnsEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_DnsEndpoint.Marshal(b, m, deterministic) +} +func (m *DnsTable_DnsEndpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_DnsEndpoint.Merge(m, src) +} +func (m *DnsTable_DnsEndpoint) XXX_Size() int { + return xxx_messageInfo_DnsTable_DnsEndpoint.Size(m) +} +func (m *DnsTable_DnsEndpoint) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_DnsEndpoint.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_DnsEndpoint proto.InternalMessageInfo + +type isDnsTable_DnsEndpoint_EndpointConfig interface { + isDnsTable_DnsEndpoint_EndpointConfig() +} + +type DnsTable_DnsEndpoint_AddressList struct { + AddressList *DnsTable_AddressList `protobuf:"bytes,1,opt,name=address_list,json=addressList,proto3,oneof"` +} + +func (*DnsTable_DnsEndpoint_AddressList) isDnsTable_DnsEndpoint_EndpointConfig() {} + +func (m *DnsTable_DnsEndpoint) GetEndpointConfig() isDnsTable_DnsEndpoint_EndpointConfig { + if m != nil { + return m.EndpointConfig + } + return nil +} + +func (m *DnsTable_DnsEndpoint) GetAddressList() *DnsTable_AddressList { + if x, ok := m.GetEndpointConfig().(*DnsTable_DnsEndpoint_AddressList); ok { + return x.AddressList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DnsTable_DnsEndpoint) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DnsTable_DnsEndpoint_AddressList)(nil), + } +} + +type DnsTable_DnsVirtualDomain struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Endpoint *DnsTable_DnsEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + AnswerTtl *duration.Duration `protobuf:"bytes,3,opt,name=answer_ttl,json=answerTtl,proto3" json:"answer_ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsTable_DnsVirtualDomain) Reset() { *m = DnsTable_DnsVirtualDomain{} } +func (m *DnsTable_DnsVirtualDomain) String() string { return proto.CompactTextString(m) } +func (*DnsTable_DnsVirtualDomain) ProtoMessage() {} +func (*DnsTable_DnsVirtualDomain) Descriptor() ([]byte, []int) { + return fileDescriptor_c0588926abfe2398, []int{0, 2} +} + +func (m *DnsTable_DnsVirtualDomain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Unmarshal(m, b) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Marshal(b, m, deterministic) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsTable_DnsVirtualDomain.Merge(m, src) +} +func (m *DnsTable_DnsVirtualDomain) XXX_Size() int { + return xxx_messageInfo_DnsTable_DnsVirtualDomain.Size(m) +} +func (m *DnsTable_DnsVirtualDomain) XXX_DiscardUnknown() { + xxx_messageInfo_DnsTable_DnsVirtualDomain.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsTable_DnsVirtualDomain proto.InternalMessageInfo + +func (m *DnsTable_DnsVirtualDomain) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DnsTable_DnsVirtualDomain) GetEndpoint() *DnsTable_DnsEndpoint { + if m != nil { + return m.Endpoint + } + return nil +} + +func (m *DnsTable_DnsVirtualDomain) GetAnswerTtl() *duration.Duration { + if m != nil { + return m.AnswerTtl + } + return nil +} + +func init() { + proto.RegisterType((*DnsTable)(nil), "envoy.data.dns.v3.DnsTable") + proto.RegisterType((*DnsTable_AddressList)(nil), "envoy.data.dns.v3.DnsTable.AddressList") + proto.RegisterType((*DnsTable_DnsEndpoint)(nil), "envoy.data.dns.v3.DnsTable.DnsEndpoint") + proto.RegisterType((*DnsTable_DnsVirtualDomain)(nil), "envoy.data.dns.v3.DnsTable.DnsVirtualDomain") +} + +func init() { proto.RegisterFile("envoy/data/dns/v3/dns_table.proto", fileDescriptor_c0588926abfe2398) } + +var fileDescriptor_c0588926abfe2398 = []byte{ + // 578 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xbf, 0x6f, 0xd3, 0x40, + 0x18, 0xed, 0xd9, 0xfd, 0xe1, 0x9e, 0x69, 0x1b, 0x2c, 0x04, 0x26, 0x12, 0x6d, 0x13, 0x21, 0x88, + 0xf8, 0x61, 0x57, 0xc9, 0x80, 0x94, 0x0d, 0x37, 0x48, 0x48, 0x14, 0xa9, 0x72, 0x2b, 0x56, 0xeb, + 0x12, 0x5f, 0xd2, 0x53, 0x9d, 0x3b, 0xeb, 0xee, 0xec, 0x26, 0x1b, 0x23, 0x73, 0x47, 0x26, 0x36, + 0x24, 0xfe, 0x04, 0x26, 0x16, 0x24, 0x56, 0xfe, 0x17, 0x06, 0x94, 0x09, 0xdd, 0xd9, 0x26, 0xa1, + 0x91, 0x68, 0xa7, 0xdc, 0x7d, 0xef, 0xde, 0xfb, 0xbe, 0xf7, 0xe2, 0x0f, 0x36, 0x30, 0xcd, 0xd9, + 0xd4, 0x8f, 0x91, 0x44, 0x7e, 0x4c, 0x85, 0x9f, 0x77, 0xd4, 0x4f, 0x24, 0x51, 0x3f, 0xc1, 0x5e, + 0xca, 0x99, 0x64, 0xce, 0x6d, 0xfd, 0xc4, 0x53, 0x4f, 0xbc, 0x98, 0x0a, 0x2f, 0xef, 0xd4, 0x9b, + 0x05, 0x4b, 0x4e, 0x53, 0xec, 0x8f, 0x91, 0x1c, 0x9c, 0x61, 0xae, 0x98, 0x42, 0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0xa0, 0x9d, 0xca, 0xa4, + 0xfb, 0x42, 0x25, 0xd1, 0x86, 0x07, 0x37, 0x48, 0xe2, 0x1f, 0x87, 0xdd, 0x47, 0x8a, 0xd8, 0x80, + 0x7b, 0xd7, 0x10, 0x83, 0xee, 0xd7, 0xf7, 0x3f, 0x7e, 0xae, 0x1b, 0x35, 0x03, 0xee, 0x11, 0x56, + 0x78, 0x4c, 0x39, 0x9b, 0x4c, 0x97, 0xed, 0x06, 0x5b, 0x15, 0xe9, 0x58, 0xcd, 0x7e, 0x0c, 0xfa, + 0xeb, 0xda, 0x44, 0xe7, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x37, 0x0c, 0xbc, 0x3b, 0x3c, 0x04, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.validate.go new file mode 100644 index 000000000..a932d6150 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/dns/v3/dns_table.pb.validate.go @@ -0,0 +1,429 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/dns/v3/dns_table.proto + +package envoy_data_dns_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dns_table_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsTable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DnsTable) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExternalRetryCount + + if len(m.GetVirtualDomains()) < 1 { + return DnsTableValidationError{ + field: "VirtualDomains", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetVirtualDomains() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTableValidationError{ + field: fmt.Sprintf("VirtualDomains[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetKnownSuffixes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTableValidationError{ + field: fmt.Sprintf("KnownSuffixes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DnsTableValidationError is the validation error returned by +// DnsTable.Validate if the designated constraints aren't met. +type DnsTableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTableValidationError) ErrorName() string { return "DnsTableValidationError" } + +// Error satisfies the builtin error interface +func (e DnsTableValidationError) 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 %sDnsTable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTableValidationError{} + +// Validate checks the field values on DnsTable_AddressList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_AddressList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetAddress()) < 1 { + return DnsTable_AddressListValidationError{ + field: "Address", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetAddress() { + _, _ = idx, item + + if utf8.RuneCountInString(item) < 3 { + return DnsTable_AddressListValidationError{ + field: fmt.Sprintf("Address[%v]", idx), + reason: "value length must be at least 3 runes", + } + } + + } + + return nil +} + +// DnsTable_AddressListValidationError is the validation error returned by +// DnsTable_AddressList.Validate if the designated constraints aren't met. +type DnsTable_AddressListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_AddressListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_AddressListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_AddressListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_AddressListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_AddressListValidationError) ErrorName() string { + return "DnsTable_AddressListValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_AddressListValidationError) 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 %sDnsTable_AddressList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_AddressListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_AddressListValidationError{} + +// Validate checks the field values on DnsTable_DnsEndpoint with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_DnsEndpoint) Validate() error { + if m == nil { + return nil + } + + switch m.EndpointConfig.(type) { + + case *DnsTable_DnsEndpoint_AddressList: + + if v, ok := interface{}(m.GetAddressList()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTable_DnsEndpointValidationError{ + field: "AddressList", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return DnsTable_DnsEndpointValidationError{ + field: "EndpointConfig", + reason: "value is required", + } + + } + + return nil +} + +// DnsTable_DnsEndpointValidationError is the validation error returned by +// DnsTable_DnsEndpoint.Validate if the designated constraints aren't met. +type DnsTable_DnsEndpointValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_DnsEndpointValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_DnsEndpointValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_DnsEndpointValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_DnsEndpointValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_DnsEndpointValidationError) ErrorName() string { + return "DnsTable_DnsEndpointValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_DnsEndpointValidationError) 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 %sDnsTable_DnsEndpoint.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_DnsEndpointValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_DnsEndpointValidationError{} + +// Validate checks the field values on DnsTable_DnsVirtualDomain with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DnsTable_DnsVirtualDomain) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetName()) < 2 { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Name", + reason: "value length must be at least 2 runes", + } + } + + if !_DnsTable_DnsVirtualDomain_Name_Pattern.MatchString(m.GetName()) { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Name", + reason: "value does not match regex pattern \"^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$\"", + } + } + + if v, ok := interface{}(m.GetEndpoint()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsTable_DnsVirtualDomainValidationError{ + field: "Endpoint", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetAnswerTtl(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsTable_DnsVirtualDomainValidationError{ + field: "AnswerTtl", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return DnsTable_DnsVirtualDomainValidationError{ + field: "AnswerTtl", + reason: "value must be greater than 0s", + } + } + + } + + return nil +} + +// DnsTable_DnsVirtualDomainValidationError is the validation error returned by +// DnsTable_DnsVirtualDomain.Validate if the designated constraints aren't met. +type DnsTable_DnsVirtualDomainValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsTable_DnsVirtualDomainValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsTable_DnsVirtualDomainValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsTable_DnsVirtualDomainValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsTable_DnsVirtualDomainValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsTable_DnsVirtualDomainValidationError) ErrorName() string { + return "DnsTable_DnsVirtualDomainValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsTable_DnsVirtualDomainValidationError) 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 %sDnsTable_DnsVirtualDomain.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsTable_DnsVirtualDomainValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsTable_DnsVirtualDomainValidationError{} + +var _DnsTable_DnsVirtualDomain_Name_Pattern = regexp.MustCompile("^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$") diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.go new file mode 100644 index 000000000..feb29b1ff --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.go @@ -0,0 +1,137 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/common.proto + +package envoy_data_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Body struct { + // Types that are valid to be assigned to BodyType: + // *Body_AsBytes + // *Body_AsString + BodyType isBody_BodyType `protobuf_oneof:"body_type"` + Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Body) Reset() { *m = Body{} } +func (m *Body) String() string { return proto.CompactTextString(m) } +func (*Body) ProtoMessage() {} +func (*Body) Descriptor() ([]byte, []int) { + return fileDescriptor_a560f1e2899ebe7a, []int{0} +} + +func (m *Body) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Body.Unmarshal(m, b) +} +func (m *Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Body.Marshal(b, m, deterministic) +} +func (m *Body) XXX_Merge(src proto.Message) { + xxx_messageInfo_Body.Merge(m, src) +} +func (m *Body) XXX_Size() int { + return xxx_messageInfo_Body.Size(m) +} +func (m *Body) XXX_DiscardUnknown() { + xxx_messageInfo_Body.DiscardUnknown(m) +} + +var xxx_messageInfo_Body proto.InternalMessageInfo + +type isBody_BodyType interface { + isBody_BodyType() +} + +type Body_AsBytes struct { + AsBytes []byte `protobuf:"bytes,1,opt,name=as_bytes,json=asBytes,proto3,oneof"` +} + +type Body_AsString struct { + AsString string `protobuf:"bytes,2,opt,name=as_string,json=asString,proto3,oneof"` +} + +func (*Body_AsBytes) isBody_BodyType() {} + +func (*Body_AsString) isBody_BodyType() {} + +func (m *Body) GetBodyType() isBody_BodyType { + if m != nil { + return m.BodyType + } + return nil +} + +func (m *Body) GetAsBytes() []byte { + if x, ok := m.GetBodyType().(*Body_AsBytes); ok { + return x.AsBytes + } + return nil +} + +func (m *Body) GetAsString() string { + if x, ok := m.GetBodyType().(*Body_AsString); ok { + return x.AsString + } + return "" +} + +func (m *Body) GetTruncated() bool { + if m != nil { + return m.Truncated + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Body) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Body_AsBytes)(nil), + (*Body_AsString)(nil), + } +} + +func init() { + proto.RegisterType((*Body)(nil), "envoy.data.tap.v2alpha.Body") +} + +func init() { + proto.RegisterFile("envoy/data/tap/v2alpha/common.proto", fileDescriptor_a560f1e2899ebe7a) +} + +var fileDescriptor_a560f1e2899ebe7a = []byte{ + // 234 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xb1, 0x4a, 0xc4, 0x40, + 0x14, 0x45, 0x77, 0x56, 0x59, 0x93, 0x59, 0x0b, 0x49, 0x21, 0x41, 0x5d, 0x08, 0x6a, 0x91, 0x6a, + 0x06, 0xb4, 0xb6, 0x19, 0x9b, 0x2d, 0x97, 0xf8, 0x01, 0xe1, 0x65, 0x27, 0x68, 0xc0, 0xcc, 0x1b, + 0xe6, 0xbd, 0x2c, 0x4e, 0xe7, 0x77, 0xf9, 0x05, 0xb6, 0xfe, 0x91, 0x64, 0x14, 0x6c, 0x6c, 0x0f, + 0xe7, 0xc2, 0xb9, 0xf2, 0xa6, 0x77, 0x07, 0x8c, 0xda, 0x02, 0x83, 0x66, 0xf0, 0xfa, 0x70, 0x07, + 0xaf, 0xfe, 0x05, 0xf4, 0x1e, 0xc7, 0x11, 0x9d, 0xf2, 0x01, 0x19, 0x8b, 0xf3, 0x24, 0xa9, 0x59, + 0x52, 0x0c, 0x5e, 0xfd, 0x4a, 0x17, 0x9b, 0xc9, 0x7a, 0xd0, 0xe0, 0x1c, 0x32, 0xf0, 0x80, 0x8e, + 0x34, 0x31, 0xf0, 0x44, 0x3f, 0xb3, 0xeb, 0x51, 0x1e, 0x1b, 0xb4, 0xb1, 0xb8, 0x94, 0x19, 0x50, + 0xdb, 0x45, 0xee, 0xa9, 0x14, 0x95, 0xa8, 0x4f, 0xb7, 0x8b, 0xe6, 0x04, 0xc8, 0xcc, 0xa0, 0xd8, + 0xc8, 0x1c, 0xa8, 0x25, 0x0e, 0x83, 0x7b, 0x2e, 0x97, 0x95, 0xa8, 0xf3, 0xed, 0xa2, 0xc9, 0x80, + 0x9e, 0x12, 0x29, 0xae, 0x64, 0xce, 0x61, 0x72, 0x7b, 0xe0, 0xde, 0x96, 0x47, 0x95, 0xa8, 0xb3, + 0xe6, 0x0f, 0x98, 0xb5, 0xcc, 0x3b, 0xb4, 0xb1, 0xe5, 0xe8, 0x7b, 0xf3, 0xf0, 0xf1, 0xfe, 0xf9, + 0xb5, 0x5a, 0x9e, 0x09, 0x79, 0x3b, 0xa0, 0x4a, 0xc9, 0x3e, 0xe0, 0x5b, 0x54, 0xff, 0xd7, 0x9b, + 0xf5, 0x63, 0xfa, 0xb8, 0x9b, 0x5b, 0x77, 0xa2, 0x5b, 0xa5, 0xe8, 0xfb, 0xef, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xe5, 0xb6, 0x6b, 0xba, 0x12, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.validate.go new file mode 100644 index 000000000..166d6777f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/common.pb.validate.go @@ -0,0 +1,113 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/common.proto + +package envoy_data_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Body with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Body) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Truncated + + switch m.BodyType.(type) { + + case *Body_AsBytes: + // no validation rules for AsBytes + + case *Body_AsString: + // no validation rules for AsString + + } + + return nil +} + +// BodyValidationError is the validation error returned by Body.Validate if the +// designated constraints aren't met. +type BodyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BodyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BodyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BodyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BodyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BodyValidationError) ErrorName() string { return "BodyValidationError" } + +// Error satisfies the builtin error interface +func (e BodyValidationError) 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 %sBody.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BodyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BodyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.go new file mode 100644 index 000000000..acc15f533 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.go @@ -0,0 +1,315 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/http.proto + +package envoy_data_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpBufferedTrace struct { + Request *HttpBufferedTrace_Message `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + Response *HttpBufferedTrace_Message `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpBufferedTrace) Reset() { *m = HttpBufferedTrace{} } +func (m *HttpBufferedTrace) String() string { return proto.CompactTextString(m) } +func (*HttpBufferedTrace) ProtoMessage() {} +func (*HttpBufferedTrace) Descriptor() ([]byte, []int) { + return fileDescriptor_90d8a92b44eb7244, []int{0} +} + +func (m *HttpBufferedTrace) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpBufferedTrace.Unmarshal(m, b) +} +func (m *HttpBufferedTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpBufferedTrace.Marshal(b, m, deterministic) +} +func (m *HttpBufferedTrace) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpBufferedTrace.Merge(m, src) +} +func (m *HttpBufferedTrace) XXX_Size() int { + return xxx_messageInfo_HttpBufferedTrace.Size(m) +} +func (m *HttpBufferedTrace) XXX_DiscardUnknown() { + xxx_messageInfo_HttpBufferedTrace.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpBufferedTrace proto.InternalMessageInfo + +func (m *HttpBufferedTrace) GetRequest() *HttpBufferedTrace_Message { + if m != nil { + return m.Request + } + return nil +} + +func (m *HttpBufferedTrace) GetResponse() *HttpBufferedTrace_Message { + if m != nil { + return m.Response + } + return nil +} + +type HttpBufferedTrace_Message struct { + Headers []*core.HeaderValue `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + Body *Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Trailers []*core.HeaderValue `protobuf:"bytes,3,rep,name=trailers,proto3" json:"trailers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpBufferedTrace_Message) Reset() { *m = HttpBufferedTrace_Message{} } +func (m *HttpBufferedTrace_Message) String() string { return proto.CompactTextString(m) } +func (*HttpBufferedTrace_Message) ProtoMessage() {} +func (*HttpBufferedTrace_Message) Descriptor() ([]byte, []int) { + return fileDescriptor_90d8a92b44eb7244, []int{0, 0} +} + +func (m *HttpBufferedTrace_Message) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpBufferedTrace_Message.Unmarshal(m, b) +} +func (m *HttpBufferedTrace_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpBufferedTrace_Message.Marshal(b, m, deterministic) +} +func (m *HttpBufferedTrace_Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpBufferedTrace_Message.Merge(m, src) +} +func (m *HttpBufferedTrace_Message) XXX_Size() int { + return xxx_messageInfo_HttpBufferedTrace_Message.Size(m) +} +func (m *HttpBufferedTrace_Message) XXX_DiscardUnknown() { + xxx_messageInfo_HttpBufferedTrace_Message.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpBufferedTrace_Message proto.InternalMessageInfo + +func (m *HttpBufferedTrace_Message) GetHeaders() []*core.HeaderValue { + if m != nil { + return m.Headers + } + return nil +} + +func (m *HttpBufferedTrace_Message) GetBody() *Body { + if m != nil { + return m.Body + } + return nil +} + +func (m *HttpBufferedTrace_Message) GetTrailers() []*core.HeaderValue { + if m != nil { + return m.Trailers + } + return nil +} + +type HttpStreamedTraceSegment struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // Types that are valid to be assigned to MessagePiece: + // *HttpStreamedTraceSegment_RequestHeaders + // *HttpStreamedTraceSegment_RequestBodyChunk + // *HttpStreamedTraceSegment_RequestTrailers + // *HttpStreamedTraceSegment_ResponseHeaders + // *HttpStreamedTraceSegment_ResponseBodyChunk + // *HttpStreamedTraceSegment_ResponseTrailers + MessagePiece isHttpStreamedTraceSegment_MessagePiece `protobuf_oneof:"message_piece"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpStreamedTraceSegment) Reset() { *m = HttpStreamedTraceSegment{} } +func (m *HttpStreamedTraceSegment) String() string { return proto.CompactTextString(m) } +func (*HttpStreamedTraceSegment) ProtoMessage() {} +func (*HttpStreamedTraceSegment) Descriptor() ([]byte, []int) { + return fileDescriptor_90d8a92b44eb7244, []int{1} +} + +func (m *HttpStreamedTraceSegment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpStreamedTraceSegment.Unmarshal(m, b) +} +func (m *HttpStreamedTraceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpStreamedTraceSegment.Marshal(b, m, deterministic) +} +func (m *HttpStreamedTraceSegment) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpStreamedTraceSegment.Merge(m, src) +} +func (m *HttpStreamedTraceSegment) XXX_Size() int { + return xxx_messageInfo_HttpStreamedTraceSegment.Size(m) +} +func (m *HttpStreamedTraceSegment) XXX_DiscardUnknown() { + xxx_messageInfo_HttpStreamedTraceSegment.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpStreamedTraceSegment proto.InternalMessageInfo + +func (m *HttpStreamedTraceSegment) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +type isHttpStreamedTraceSegment_MessagePiece interface { + isHttpStreamedTraceSegment_MessagePiece() +} + +type HttpStreamedTraceSegment_RequestHeaders struct { + RequestHeaders *core.HeaderMap `protobuf:"bytes,2,opt,name=request_headers,json=requestHeaders,proto3,oneof"` +} + +type HttpStreamedTraceSegment_RequestBodyChunk struct { + RequestBodyChunk *Body `protobuf:"bytes,3,opt,name=request_body_chunk,json=requestBodyChunk,proto3,oneof"` +} + +type HttpStreamedTraceSegment_RequestTrailers struct { + RequestTrailers *core.HeaderMap `protobuf:"bytes,4,opt,name=request_trailers,json=requestTrailers,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseHeaders struct { + ResponseHeaders *core.HeaderMap `protobuf:"bytes,5,opt,name=response_headers,json=responseHeaders,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseBodyChunk struct { + ResponseBodyChunk *Body `protobuf:"bytes,6,opt,name=response_body_chunk,json=responseBodyChunk,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseTrailers struct { + ResponseTrailers *core.HeaderMap `protobuf:"bytes,7,opt,name=response_trailers,json=responseTrailers,proto3,oneof"` +} + +func (*HttpStreamedTraceSegment_RequestHeaders) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_RequestBodyChunk) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_RequestTrailers) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseHeaders) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseBodyChunk) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseTrailers) isHttpStreamedTraceSegment_MessagePiece() {} + +func (m *HttpStreamedTraceSegment) GetMessagePiece() isHttpStreamedTraceSegment_MessagePiece { + if m != nil { + return m.MessagePiece + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestHeaders() *core.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestHeaders); ok { + return x.RequestHeaders + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestBodyChunk() *Body { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestBodyChunk); ok { + return x.RequestBodyChunk + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestTrailers() *core.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestTrailers); ok { + return x.RequestTrailers + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseHeaders() *core.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseHeaders); ok { + return x.ResponseHeaders + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseBodyChunk() *Body { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseBodyChunk); ok { + return x.ResponseBodyChunk + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseTrailers() *core.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseTrailers); ok { + return x.ResponseTrailers + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HttpStreamedTraceSegment) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HttpStreamedTraceSegment_RequestHeaders)(nil), + (*HttpStreamedTraceSegment_RequestBodyChunk)(nil), + (*HttpStreamedTraceSegment_RequestTrailers)(nil), + (*HttpStreamedTraceSegment_ResponseHeaders)(nil), + (*HttpStreamedTraceSegment_ResponseBodyChunk)(nil), + (*HttpStreamedTraceSegment_ResponseTrailers)(nil), + } +} + +func init() { + proto.RegisterType((*HttpBufferedTrace)(nil), "envoy.data.tap.v2alpha.HttpBufferedTrace") + proto.RegisterType((*HttpBufferedTrace_Message)(nil), "envoy.data.tap.v2alpha.HttpBufferedTrace.Message") + proto.RegisterType((*HttpStreamedTraceSegment)(nil), "envoy.data.tap.v2alpha.HttpStreamedTraceSegment") +} + +func init() { proto.RegisterFile("envoy/data/tap/v2alpha/http.proto", fileDescriptor_90d8a92b44eb7244) } + +var fileDescriptor_90d8a92b44eb7244 = []byte{ + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, + 0x1c, 0xc6, 0x97, 0xb6, 0x34, 0xc3, 0x13, 0x6c, 0x33, 0x12, 0x0a, 0xd5, 0x40, 0x63, 0x70, 0xd8, + 0xc9, 0x81, 0x70, 0x41, 0x70, 0x0b, 0x07, 0x32, 0x8d, 0xa2, 0x29, 0x9b, 0xb8, 0x46, 0xff, 0x26, + 0xff, 0xad, 0x11, 0x4d, 0x6c, 0x6c, 0xa7, 0xa2, 0x37, 0x1e, 0x81, 0x57, 0xe1, 0xca, 0x13, 0x70, + 0xe5, 0x19, 0x78, 0x11, 0x94, 0xc4, 0xce, 0x40, 0xa5, 0x22, 0xda, 0xd1, 0xce, 0xf7, 0x7d, 0xfe, + 0x7e, 0xff,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1b, + 0x7a, 0x86, 0xb7, 0xeb, 0xfb, 0x73, 0x56, 0xbf, 0xd9, 0x33, 0x67, 0x36, 0x6e, 0x1e, 0xef, 0x8b, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x0d, 0x2f, 0x04, 0x5b, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.validate.go new file mode 100644 index 000000000..4ef723f5f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/http.pb.validate.go @@ -0,0 +1,376 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/http.proto + +package envoy_data_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _http_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpBufferedTrace with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HttpBufferedTrace) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTraceValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTraceValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpBufferedTraceValidationError is the validation error returned by +// HttpBufferedTrace.Validate if the designated constraints aren't met. +type HttpBufferedTraceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpBufferedTraceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpBufferedTraceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpBufferedTraceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpBufferedTraceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpBufferedTraceValidationError) ErrorName() string { + return "HttpBufferedTraceValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpBufferedTraceValidationError) 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 %sHttpBufferedTrace.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpBufferedTraceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpBufferedTraceValidationError{} + +// Validate checks the field values on HttpStreamedTraceSegment with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpStreamedTraceSegment) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + switch m.MessagePiece.(type) { + + case *HttpStreamedTraceSegment_RequestHeaders: + + if v, ok := interface{}(m.GetRequestHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_RequestBodyChunk: + + if v, ok := interface{}(m.GetRequestBodyChunk()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestBodyChunk", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_RequestTrailers: + + if v, ok := interface{}(m.GetRequestTrailers()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestTrailers", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseHeaders: + + if v, ok := interface{}(m.GetResponseHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseBodyChunk: + + if v, ok := interface{}(m.GetResponseBodyChunk()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseBodyChunk", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseTrailers: + + if v, ok := interface{}(m.GetResponseTrailers()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseTrailers", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpStreamedTraceSegmentValidationError is the validation error returned by +// HttpStreamedTraceSegment.Validate if the designated constraints aren't met. +type HttpStreamedTraceSegmentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpStreamedTraceSegmentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpStreamedTraceSegmentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpStreamedTraceSegmentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpStreamedTraceSegmentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpStreamedTraceSegmentValidationError) ErrorName() string { + return "HttpStreamedTraceSegmentValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpStreamedTraceSegmentValidationError) 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 %sHttpStreamedTraceSegment.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpStreamedTraceSegmentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpStreamedTraceSegmentValidationError{} + +// Validate checks the field values on HttpBufferedTrace_Message with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpBufferedTrace_Message) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetBody()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: "Body", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetTrailers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: fmt.Sprintf("Trailers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpBufferedTrace_MessageValidationError is the validation error returned by +// HttpBufferedTrace_Message.Validate if the designated constraints aren't met. +type HttpBufferedTrace_MessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpBufferedTrace_MessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpBufferedTrace_MessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpBufferedTrace_MessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpBufferedTrace_MessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpBufferedTrace_MessageValidationError) ErrorName() string { + return "HttpBufferedTrace_MessageValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpBufferedTrace_MessageValidationError) 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 %sHttpBufferedTrace_Message.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpBufferedTrace_MessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpBufferedTrace_MessageValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.go new file mode 100644 index 000000000..80ee77619 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/transport.proto + +package envoy_data_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Connection struct { + LocalAddress *core.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` + RemoteAddress *core.Address `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Connection) Reset() { *m = Connection{} } +func (m *Connection) String() string { return proto.CompactTextString(m) } +func (*Connection) ProtoMessage() {} +func (*Connection) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{0} +} + +func (m *Connection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Connection.Unmarshal(m, b) +} +func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Connection.Marshal(b, m, deterministic) +} +func (m *Connection) XXX_Merge(src proto.Message) { + xxx_messageInfo_Connection.Merge(m, src) +} +func (m *Connection) XXX_Size() int { + return xxx_messageInfo_Connection.Size(m) +} +func (m *Connection) XXX_DiscardUnknown() { + xxx_messageInfo_Connection.DiscardUnknown(m) +} + +var xxx_messageInfo_Connection proto.InternalMessageInfo + +func (m *Connection) GetLocalAddress() *core.Address { + if m != nil { + return m.LocalAddress + } + return nil +} + +func (m *Connection) GetRemoteAddress() *core.Address { + if m != nil { + return m.RemoteAddress + } + return nil +} + +type SocketEvent struct { + Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Types that are valid to be assigned to EventSelector: + // *SocketEvent_Read_ + // *SocketEvent_Write_ + // *SocketEvent_Closed_ + EventSelector isSocketEvent_EventSelector `protobuf_oneof:"event_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent) Reset() { *m = SocketEvent{} } +func (m *SocketEvent) String() string { return proto.CompactTextString(m) } +func (*SocketEvent) ProtoMessage() {} +func (*SocketEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{1} +} + +func (m *SocketEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent.Unmarshal(m, b) +} +func (m *SocketEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent.Marshal(b, m, deterministic) +} +func (m *SocketEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent.Merge(m, src) +} +func (m *SocketEvent) XXX_Size() int { + return xxx_messageInfo_SocketEvent.Size(m) +} +func (m *SocketEvent) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent proto.InternalMessageInfo + +func (m *SocketEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +type isSocketEvent_EventSelector interface { + isSocketEvent_EventSelector() +} + +type SocketEvent_Read_ struct { + Read *SocketEvent_Read `protobuf:"bytes,2,opt,name=read,proto3,oneof"` +} + +type SocketEvent_Write_ struct { + Write *SocketEvent_Write `protobuf:"bytes,3,opt,name=write,proto3,oneof"` +} + +type SocketEvent_Closed_ struct { + Closed *SocketEvent_Closed `protobuf:"bytes,4,opt,name=closed,proto3,oneof"` +} + +func (*SocketEvent_Read_) isSocketEvent_EventSelector() {} + +func (*SocketEvent_Write_) isSocketEvent_EventSelector() {} + +func (*SocketEvent_Closed_) isSocketEvent_EventSelector() {} + +func (m *SocketEvent) GetEventSelector() isSocketEvent_EventSelector { + if m != nil { + return m.EventSelector + } + return nil +} + +func (m *SocketEvent) GetRead() *SocketEvent_Read { + if x, ok := m.GetEventSelector().(*SocketEvent_Read_); ok { + return x.Read + } + return nil +} + +func (m *SocketEvent) GetWrite() *SocketEvent_Write { + if x, ok := m.GetEventSelector().(*SocketEvent_Write_); ok { + return x.Write + } + return nil +} + +func (m *SocketEvent) GetClosed() *SocketEvent_Closed { + if x, ok := m.GetEventSelector().(*SocketEvent_Closed_); ok { + return x.Closed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SocketEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SocketEvent_Read_)(nil), + (*SocketEvent_Write_)(nil), + (*SocketEvent_Closed_)(nil), + } +} + +type SocketEvent_Read struct { + Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Read) Reset() { *m = SocketEvent_Read{} } +func (m *SocketEvent_Read) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Read) ProtoMessage() {} +func (*SocketEvent_Read) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{1, 0} +} + +func (m *SocketEvent_Read) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Read.Unmarshal(m, b) +} +func (m *SocketEvent_Read) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Read.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Read) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Read.Merge(m, src) +} +func (m *SocketEvent_Read) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Read.Size(m) +} +func (m *SocketEvent_Read) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Read.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Read proto.InternalMessageInfo + +func (m *SocketEvent_Read) GetData() *Body { + if m != nil { + return m.Data + } + return nil +} + +type SocketEvent_Write struct { + Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + EndStream bool `protobuf:"varint,2,opt,name=end_stream,json=endStream,proto3" json:"end_stream,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Write) Reset() { *m = SocketEvent_Write{} } +func (m *SocketEvent_Write) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Write) ProtoMessage() {} +func (*SocketEvent_Write) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{1, 1} +} + +func (m *SocketEvent_Write) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Write.Unmarshal(m, b) +} +func (m *SocketEvent_Write) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Write.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Write) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Write.Merge(m, src) +} +func (m *SocketEvent_Write) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Write.Size(m) +} +func (m *SocketEvent_Write) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Write.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Write proto.InternalMessageInfo + +func (m *SocketEvent_Write) GetData() *Body { + if m != nil { + return m.Data + } + return nil +} + +func (m *SocketEvent_Write) GetEndStream() bool { + if m != nil { + return m.EndStream + } + return false +} + +type SocketEvent_Closed struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Closed) Reset() { *m = SocketEvent_Closed{} } +func (m *SocketEvent_Closed) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Closed) ProtoMessage() {} +func (*SocketEvent_Closed) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{1, 2} +} + +func (m *SocketEvent_Closed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Closed.Unmarshal(m, b) +} +func (m *SocketEvent_Closed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Closed.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Closed) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Closed.Merge(m, src) +} +func (m *SocketEvent_Closed) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Closed.Size(m) +} +func (m *SocketEvent_Closed) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Closed.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Closed proto.InternalMessageInfo + +type SocketBufferedTrace struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"` + Events []*SocketEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + ReadTruncated bool `protobuf:"varint,4,opt,name=read_truncated,json=readTruncated,proto3" json:"read_truncated,omitempty"` + WriteTruncated bool `protobuf:"varint,5,opt,name=write_truncated,json=writeTruncated,proto3" json:"write_truncated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketBufferedTrace) Reset() { *m = SocketBufferedTrace{} } +func (m *SocketBufferedTrace) String() string { return proto.CompactTextString(m) } +func (*SocketBufferedTrace) ProtoMessage() {} +func (*SocketBufferedTrace) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{2} +} + +func (m *SocketBufferedTrace) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketBufferedTrace.Unmarshal(m, b) +} +func (m *SocketBufferedTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketBufferedTrace.Marshal(b, m, deterministic) +} +func (m *SocketBufferedTrace) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketBufferedTrace.Merge(m, src) +} +func (m *SocketBufferedTrace) XXX_Size() int { + return xxx_messageInfo_SocketBufferedTrace.Size(m) +} +func (m *SocketBufferedTrace) XXX_DiscardUnknown() { + xxx_messageInfo_SocketBufferedTrace.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketBufferedTrace proto.InternalMessageInfo + +func (m *SocketBufferedTrace) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +func (m *SocketBufferedTrace) GetConnection() *Connection { + if m != nil { + return m.Connection + } + return nil +} + +func (m *SocketBufferedTrace) GetEvents() []*SocketEvent { + if m != nil { + return m.Events + } + return nil +} + +func (m *SocketBufferedTrace) GetReadTruncated() bool { + if m != nil { + return m.ReadTruncated + } + return false +} + +func (m *SocketBufferedTrace) GetWriteTruncated() bool { + if m != nil { + return m.WriteTruncated + } + return false +} + +type SocketStreamedTraceSegment struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // Types that are valid to be assigned to MessagePiece: + // *SocketStreamedTraceSegment_Connection + // *SocketStreamedTraceSegment_Event + MessagePiece isSocketStreamedTraceSegment_MessagePiece `protobuf_oneof:"message_piece"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketStreamedTraceSegment) Reset() { *m = SocketStreamedTraceSegment{} } +func (m *SocketStreamedTraceSegment) String() string { return proto.CompactTextString(m) } +func (*SocketStreamedTraceSegment) ProtoMessage() {} +func (*SocketStreamedTraceSegment) Descriptor() ([]byte, []int) { + return fileDescriptor_03a9cebdb27ee552, []int{3} +} + +func (m *SocketStreamedTraceSegment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketStreamedTraceSegment.Unmarshal(m, b) +} +func (m *SocketStreamedTraceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketStreamedTraceSegment.Marshal(b, m, deterministic) +} +func (m *SocketStreamedTraceSegment) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketStreamedTraceSegment.Merge(m, src) +} +func (m *SocketStreamedTraceSegment) XXX_Size() int { + return xxx_messageInfo_SocketStreamedTraceSegment.Size(m) +} +func (m *SocketStreamedTraceSegment) XXX_DiscardUnknown() { + xxx_messageInfo_SocketStreamedTraceSegment.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketStreamedTraceSegment proto.InternalMessageInfo + +func (m *SocketStreamedTraceSegment) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +type isSocketStreamedTraceSegment_MessagePiece interface { + isSocketStreamedTraceSegment_MessagePiece() +} + +type SocketStreamedTraceSegment_Connection struct { + Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3,oneof"` +} + +type SocketStreamedTraceSegment_Event struct { + Event *SocketEvent `protobuf:"bytes,3,opt,name=event,proto3,oneof"` +} + +func (*SocketStreamedTraceSegment_Connection) isSocketStreamedTraceSegment_MessagePiece() {} + +func (*SocketStreamedTraceSegment_Event) isSocketStreamedTraceSegment_MessagePiece() {} + +func (m *SocketStreamedTraceSegment) GetMessagePiece() isSocketStreamedTraceSegment_MessagePiece { + if m != nil { + return m.MessagePiece + } + return nil +} + +func (m *SocketStreamedTraceSegment) GetConnection() *Connection { + if x, ok := m.GetMessagePiece().(*SocketStreamedTraceSegment_Connection); ok { + return x.Connection + } + return nil +} + +func (m *SocketStreamedTraceSegment) GetEvent() *SocketEvent { + if x, ok := m.GetMessagePiece().(*SocketStreamedTraceSegment_Event); ok { + return x.Event + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SocketStreamedTraceSegment) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SocketStreamedTraceSegment_Connection)(nil), + (*SocketStreamedTraceSegment_Event)(nil), + } +} + +func init() { + proto.RegisterType((*Connection)(nil), "envoy.data.tap.v2alpha.Connection") + proto.RegisterType((*SocketEvent)(nil), "envoy.data.tap.v2alpha.SocketEvent") + proto.RegisterType((*SocketEvent_Read)(nil), "envoy.data.tap.v2alpha.SocketEvent.Read") + proto.RegisterType((*SocketEvent_Write)(nil), "envoy.data.tap.v2alpha.SocketEvent.Write") + proto.RegisterType((*SocketEvent_Closed)(nil), "envoy.data.tap.v2alpha.SocketEvent.Closed") + proto.RegisterType((*SocketBufferedTrace)(nil), "envoy.data.tap.v2alpha.SocketBufferedTrace") + proto.RegisterType((*SocketStreamedTraceSegment)(nil), "envoy.data.tap.v2alpha.SocketStreamedTraceSegment") +} + +func init() { + proto.RegisterFile("envoy/data/tap/v2alpha/transport.proto", fileDescriptor_03a9cebdb27ee552) +} + +var fileDescriptor_03a9cebdb27ee552 = []byte{ + // 594 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0x13, 0x31, + 0x14, 0x4c, 0xda, 0x24, 0xa4, 0xaf, 0x34, 0xad, 0x8c, 0x84, 0xca, 0x8a, 0xaa, 0x28, 0xe5, 0xa3, + 0x70, 0xf0, 0xa2, 0x70, 0xa9, 0x84, 0x04, 0x74, 0x5b, 0xa4, 0x70, 0xab, 0xb6, 0x91, 0xe0, 0x16, + 0xbd, 0xae, 0x5f, 0xc3, 0x8a, 0xac, 0xbd, 0xf2, 0x3a, 0x81, 0xde, 0xe0, 0x1f, 0xf0, 0x7b, 0x38, + 0x71, 0x44, 0xe2, 0xc4, 0x3f, 0x42, 0xfe, 0x48, 0x5a, 0x21, 0x02, 0x81, 0x5b, 0xec, 0xcc, 0x8c, + 0xe7, 0x8d, 0xc7, 0x0b, 0xf7, 0x49, 0x4e, 0xd5, 0x45, 0x2c, 0xd0, 0x60, 0x6c, 0xb0, 0x8c, 0xa7, + 0x3d, 0x1c, 0x97, 0x6f, 0x31, 0x36, 0x1a, 0x65, 0x55, 0x2a, 0x6d, 0x78, 0xa9, 0x95, 0x51, 0xec, + 0xa6, 0xc3, 0x71, 0x8b, 0xe3, 0x06, 0x4b, 0x1e, 0x70, 0xd1, 0xae, 0xe7, 0x63, 0x99, 0xc7, 0xd3, + 0x5e, 0x9c, 0x29, 0x4d, 0x31, 0x0a, 0xa1, 0xa9, 0xaa, 0x3c, 0x31, 0xda, 0x5b, 0x70, 0x40, 0xa6, + 0x8a, 0x42, 0xc9, 0x00, 0xda, 0x1d, 0x29, 0x35, 0x1a, 0x53, 0xec, 0x56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0xf6, 0x4b, 0x18, 0x4d, 0x37, 0x59, 0x28, 0xef, 0x32, 0x59, + 0xd8, 0xda, 0x3a, 0x4e, 0xb2, 0x09, 0x1b, 0x05, 0x55, 0x15, 0x8e, 0x68, 0x58, 0xe6, 0x94, 0x51, + 0xf2, 0xe2, 0xcb, 0xc7, 0x6f, 0x3f, 0x5a, 0x2b, 0x5b, 0x75, 0xb8, 0x9b, 0x2b, 0x2f, 0x55, 0x6a, + 0xf5, 0xe1, 0x62, 0x81, 0x6a, 0xd2, 0x19, 0xcc, 0x3e, 0x83, 0x27, 0xf6, 0x89, 0x9e, 0xd4, 0xcf, + 0x5a, 0xee, 0xad, 0x3e, 0xf9, 0x19, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x22, 0x4a, 0x38, 0x38, 0x05, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.validate.go new file mode 100644 index 000000000..5a5fef39a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/transport.pb.validate.go @@ -0,0 +1,652 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/transport.proto + +package envoy_data_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _transport_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Connection with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Connection) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionValidationError{ + field: "LocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionValidationError{ + field: "RemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConnectionValidationError is the validation error returned by +// Connection.Validate if the designated constraints aren't met. +type ConnectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionValidationError) ErrorName() string { return "ConnectionValidationError" } + +// Error satisfies the builtin error interface +func (e ConnectionValidationError) 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 %sConnection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionValidationError{} + +// Validate checks the field values on SocketEvent with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SocketEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.EventSelector.(type) { + + case *SocketEvent_Read_: + + if v, ok := interface{}(m.GetRead()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Read", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketEvent_Write_: + + if v, ok := interface{}(m.GetWrite()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Write", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketEvent_Closed_: + + if v, ok := interface{}(m.GetClosed()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Closed", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SocketEventValidationError is the validation error returned by +// SocketEvent.Validate if the designated constraints aren't met. +type SocketEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEventValidationError) ErrorName() string { return "SocketEventValidationError" } + +// Error satisfies the builtin error interface +func (e SocketEventValidationError) 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 %sSocketEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEventValidationError{} + +// Validate checks the field values on SocketBufferedTrace with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketBufferedTrace) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + if v, ok := interface{}(m.GetConnection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketBufferedTraceValidationError{ + field: "Connection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEvents() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketBufferedTraceValidationError{ + field: fmt.Sprintf("Events[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for ReadTruncated + + // no validation rules for WriteTruncated + + return nil +} + +// SocketBufferedTraceValidationError is the validation error returned by +// SocketBufferedTrace.Validate if the designated constraints aren't met. +type SocketBufferedTraceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketBufferedTraceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketBufferedTraceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketBufferedTraceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketBufferedTraceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketBufferedTraceValidationError) ErrorName() string { + return "SocketBufferedTraceValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketBufferedTraceValidationError) 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 %sSocketBufferedTrace.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketBufferedTraceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketBufferedTraceValidationError{} + +// Validate checks the field values on SocketStreamedTraceSegment with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketStreamedTraceSegment) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + switch m.MessagePiece.(type) { + + case *SocketStreamedTraceSegment_Connection: + + if v, ok := interface{}(m.GetConnection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketStreamedTraceSegmentValidationError{ + field: "Connection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketStreamedTraceSegment_Event: + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketStreamedTraceSegmentValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SocketStreamedTraceSegmentValidationError is the validation error returned +// by SocketStreamedTraceSegment.Validate if the designated constraints aren't met. +type SocketStreamedTraceSegmentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketStreamedTraceSegmentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketStreamedTraceSegmentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketStreamedTraceSegmentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketStreamedTraceSegmentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketStreamedTraceSegmentValidationError) ErrorName() string { + return "SocketStreamedTraceSegmentValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketStreamedTraceSegmentValidationError) 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 %sSocketStreamedTraceSegment.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketStreamedTraceSegmentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketStreamedTraceSegmentValidationError{} + +// Validate checks the field values on SocketEvent_Read with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SocketEvent_Read) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEvent_ReadValidationError{ + field: "Data", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SocketEvent_ReadValidationError is the validation error returned by +// SocketEvent_Read.Validate if the designated constraints aren't met. +type SocketEvent_ReadValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_ReadValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_ReadValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_ReadValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_ReadValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_ReadValidationError) ErrorName() string { return "SocketEvent_ReadValidationError" } + +// Error satisfies the builtin error interface +func (e SocketEvent_ReadValidationError) 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 %sSocketEvent_Read.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_ReadValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_ReadValidationError{} + +// Validate checks the field values on SocketEvent_Write with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SocketEvent_Write) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEvent_WriteValidationError{ + field: "Data", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EndStream + + return nil +} + +// SocketEvent_WriteValidationError is the validation error returned by +// SocketEvent_Write.Validate if the designated constraints aren't met. +type SocketEvent_WriteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_WriteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_WriteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_WriteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_WriteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_WriteValidationError) ErrorName() string { + return "SocketEvent_WriteValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketEvent_WriteValidationError) 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 %sSocketEvent_Write.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_WriteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_WriteValidationError{} + +// Validate checks the field values on SocketEvent_Closed with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketEvent_Closed) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SocketEvent_ClosedValidationError is the validation error returned by +// SocketEvent_Closed.Validate if the designated constraints aren't met. +type SocketEvent_ClosedValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_ClosedValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_ClosedValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_ClosedValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_ClosedValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_ClosedValidationError) ErrorName() string { + return "SocketEvent_ClosedValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketEvent_ClosedValidationError) 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 %sSocketEvent_Closed.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_ClosedValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_ClosedValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.go new file mode 100644 index 000000000..a44eb76dc --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/wrapper.proto + +package envoy_data_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TraceWrapper struct { + // Types that are valid to be assigned to Trace: + // *TraceWrapper_HttpBufferedTrace + // *TraceWrapper_HttpStreamedTraceSegment + // *TraceWrapper_SocketBufferedTrace + // *TraceWrapper_SocketStreamedTraceSegment + Trace isTraceWrapper_Trace `protobuf_oneof:"trace"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TraceWrapper) Reset() { *m = TraceWrapper{} } +func (m *TraceWrapper) String() string { return proto.CompactTextString(m) } +func (*TraceWrapper) ProtoMessage() {} +func (*TraceWrapper) Descriptor() ([]byte, []int) { + return fileDescriptor_9f617738ad092e1c, []int{0} +} + +func (m *TraceWrapper) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TraceWrapper.Unmarshal(m, b) +} +func (m *TraceWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TraceWrapper.Marshal(b, m, deterministic) +} +func (m *TraceWrapper) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceWrapper.Merge(m, src) +} +func (m *TraceWrapper) XXX_Size() int { + return xxx_messageInfo_TraceWrapper.Size(m) +} +func (m *TraceWrapper) XXX_DiscardUnknown() { + xxx_messageInfo_TraceWrapper.DiscardUnknown(m) +} + +var xxx_messageInfo_TraceWrapper proto.InternalMessageInfo + +type isTraceWrapper_Trace interface { + isTraceWrapper_Trace() +} + +type TraceWrapper_HttpBufferedTrace struct { + HttpBufferedTrace *HttpBufferedTrace `protobuf:"bytes,1,opt,name=http_buffered_trace,json=httpBufferedTrace,proto3,oneof"` +} + +type TraceWrapper_HttpStreamedTraceSegment struct { + HttpStreamedTraceSegment *HttpStreamedTraceSegment `protobuf:"bytes,2,opt,name=http_streamed_trace_segment,json=httpStreamedTraceSegment,proto3,oneof"` +} + +type TraceWrapper_SocketBufferedTrace struct { + SocketBufferedTrace *SocketBufferedTrace `protobuf:"bytes,3,opt,name=socket_buffered_trace,json=socketBufferedTrace,proto3,oneof"` +} + +type TraceWrapper_SocketStreamedTraceSegment struct { + SocketStreamedTraceSegment *SocketStreamedTraceSegment `protobuf:"bytes,4,opt,name=socket_streamed_trace_segment,json=socketStreamedTraceSegment,proto3,oneof"` +} + +func (*TraceWrapper_HttpBufferedTrace) isTraceWrapper_Trace() {} + +func (*TraceWrapper_HttpStreamedTraceSegment) isTraceWrapper_Trace() {} + +func (*TraceWrapper_SocketBufferedTrace) isTraceWrapper_Trace() {} + +func (*TraceWrapper_SocketStreamedTraceSegment) isTraceWrapper_Trace() {} + +func (m *TraceWrapper) GetTrace() isTraceWrapper_Trace { + if m != nil { + return m.Trace + } + return nil +} + +func (m *TraceWrapper) GetHttpBufferedTrace() *HttpBufferedTrace { + if x, ok := m.GetTrace().(*TraceWrapper_HttpBufferedTrace); ok { + return x.HttpBufferedTrace + } + return nil +} + +func (m *TraceWrapper) GetHttpStreamedTraceSegment() *HttpStreamedTraceSegment { + if x, ok := m.GetTrace().(*TraceWrapper_HttpStreamedTraceSegment); ok { + return x.HttpStreamedTraceSegment + } + return nil +} + +func (m *TraceWrapper) GetSocketBufferedTrace() *SocketBufferedTrace { + if x, ok := m.GetTrace().(*TraceWrapper_SocketBufferedTrace); ok { + return x.SocketBufferedTrace + } + return nil +} + +func (m *TraceWrapper) GetSocketStreamedTraceSegment() *SocketStreamedTraceSegment { + if x, ok := m.GetTrace().(*TraceWrapper_SocketStreamedTraceSegment); ok { + return x.SocketStreamedTraceSegment + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TraceWrapper) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TraceWrapper_HttpBufferedTrace)(nil), + (*TraceWrapper_HttpStreamedTraceSegment)(nil), + (*TraceWrapper_SocketBufferedTrace)(nil), + (*TraceWrapper_SocketStreamedTraceSegment)(nil), + } +} + +func init() { + proto.RegisterType((*TraceWrapper)(nil), "envoy.data.tap.v2alpha.TraceWrapper") +} + +func init() { + proto.RegisterFile("envoy/data/tap/v2alpha/wrapper.proto", fileDescriptor_9f617738ad092e1c) +} + +var fileDescriptor_9f617738ad092e1c = []byte{ + // 331 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x3f, 0x4f, 0x32, 0x31, + 0x1c, 0xc7, 0x39, 0x78, 0x1e, 0x86, 0xca, 0xa0, 0x25, 0x2a, 0xc1, 0x90, 0xa8, 0x21, 0x46, 0x63, + 0xd2, 0x1a, 0xdc, 0x1d, 0x6e, 0x62, 0x24, 0x60, 0xe2, 0xe0, 0x40, 0x7e, 0x70, 0xc5, 0x23, 0x42, + 0x5b, 0xdb, 0x1f, 0x87, 0x6c, 0xbe, 0x2e, 0x5f, 0x01, 0xab, 0xef, 0xc6, 0xd1, 0x5c, 0xaf, 0x2c, + 0xa7, 0x65, 0xbb, 0xf4, 0xfb, 0xe7, 0x73, 0xdf, 0xb4, 0xa4, 0x2b, 0x64, 0xa6, 0x36, 0x3c, 0x01, + 0x04, 0x8e, 0xa0, 0x79, 0xd6, 0x83, 0x85, 0x4e, 0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05, 0x96, + 0xb5, 0x6d, 0x50, 0x8d, 0x1b, 0xe4, 0xbf, 0x03, 0xd1, 0xda, 0x77, 0x1c, 0xc5, 0x0f, 0x9f, 0x1f, + 0xdb, 0xaf, 0x7a, 0xf5, 0x30, 0x22, 0xdd, 0xb9, 0x2a, 0x58, 0xda, 0xa8, 0xf7, 0x4d, 0x00, 0x1b, + 0x37, 0xfc, 0x95, 0x0f, 0xf2, 0x87, 0x30, 0x88, 0x26, 0x75, 0xf7, 0x22, 0xee, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x03, 0xa7, 0x0c, 0x60, 0xd4, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.validate.go new file mode 100644 index 000000000..b99e9dd5f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha/wrapper.pb.validate.go @@ -0,0 +1,160 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v2alpha/wrapper.proto + +package envoy_data_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _wrapper_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TraceWrapper with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TraceWrapper) Validate() error { + if m == nil { + return nil + } + + switch m.Trace.(type) { + + case *TraceWrapper_HttpBufferedTrace: + + if v, ok := interface{}(m.GetHttpBufferedTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "HttpBufferedTrace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_HttpStreamedTraceSegment: + + if v, ok := interface{}(m.GetHttpStreamedTraceSegment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "HttpStreamedTraceSegment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_SocketBufferedTrace: + + if v, ok := interface{}(m.GetSocketBufferedTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "SocketBufferedTrace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_SocketStreamedTraceSegment: + + if v, ok := interface{}(m.GetSocketStreamedTraceSegment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "SocketStreamedTraceSegment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return TraceWrapperValidationError{ + field: "Trace", + reason: "value is required", + } + + } + + return nil +} + +// TraceWrapperValidationError is the validation error returned by +// TraceWrapper.Validate if the designated constraints aren't met. +type TraceWrapperValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TraceWrapperValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TraceWrapperValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TraceWrapperValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TraceWrapperValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TraceWrapperValidationError) ErrorName() string { return "TraceWrapperValidationError" } + +// Error satisfies the builtin error interface +func (e TraceWrapperValidationError) 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 %sTraceWrapper.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TraceWrapperValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TraceWrapperValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.go new file mode 100644 index 000000000..d458b12f5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.go @@ -0,0 +1,137 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v3/common.proto + +package envoy_data_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Body struct { + // Types that are valid to be assigned to BodyType: + // *Body_AsBytes + // *Body_AsString + BodyType isBody_BodyType `protobuf_oneof:"body_type"` + Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Body) Reset() { *m = Body{} } +func (m *Body) String() string { return proto.CompactTextString(m) } +func (*Body) ProtoMessage() {} +func (*Body) Descriptor() ([]byte, []int) { + return fileDescriptor_b542295a11de64c9, []int{0} +} + +func (m *Body) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Body.Unmarshal(m, b) +} +func (m *Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Body.Marshal(b, m, deterministic) +} +func (m *Body) XXX_Merge(src proto.Message) { + xxx_messageInfo_Body.Merge(m, src) +} +func (m *Body) XXX_Size() int { + return xxx_messageInfo_Body.Size(m) +} +func (m *Body) XXX_DiscardUnknown() { + xxx_messageInfo_Body.DiscardUnknown(m) +} + +var xxx_messageInfo_Body proto.InternalMessageInfo + +type isBody_BodyType interface { + isBody_BodyType() +} + +type Body_AsBytes struct { + AsBytes []byte `protobuf:"bytes,1,opt,name=as_bytes,json=asBytes,proto3,oneof"` +} + +type Body_AsString struct { + AsString string `protobuf:"bytes,2,opt,name=as_string,json=asString,proto3,oneof"` +} + +func (*Body_AsBytes) isBody_BodyType() {} + +func (*Body_AsString) isBody_BodyType() {} + +func (m *Body) GetBodyType() isBody_BodyType { + if m != nil { + return m.BodyType + } + return nil +} + +func (m *Body) GetAsBytes() []byte { + if x, ok := m.GetBodyType().(*Body_AsBytes); ok { + return x.AsBytes + } + return nil +} + +func (m *Body) GetAsString() string { + if x, ok := m.GetBodyType().(*Body_AsString); ok { + return x.AsString + } + return "" +} + +func (m *Body) GetTruncated() bool { + if m != nil { + return m.Truncated + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Body) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Body_AsBytes)(nil), + (*Body_AsString)(nil), + } +} + +func init() { + proto.RegisterType((*Body)(nil), "envoy.data.tap.v3.Body") +} + +func init() { proto.RegisterFile("envoy/data/tap/v3/common.proto", fileDescriptor_b542295a11de64c9) } + +var fileDescriptor_b542295a11de64c9 = []byte{ + // 266 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xb1, 0x4e, 0xc3, 0x30, + 0x14, 0x45, 0xeb, 0x80, 0x4a, 0xe2, 0x32, 0x40, 0xa6, 0xa8, 0x25, 0x25, 0x74, 0xca, 0x64, 0x4b, + 0x64, 0x41, 0x8c, 0x61, 0xe9, 0x58, 0x85, 0x0f, 0x88, 0x5e, 0x9a, 0xa8, 0x44, 0xa2, 0x7e, 0x56, + 0xfc, 0x12, 0xe1, 0x8d, 0x91, 0x95, 0x95, 0x4f, 0x61, 0x47, 0x62, 0xe5, 0x8f, 0x50, 0xdc, 0x01, + 0x89, 0xae, 0xe7, 0xf8, 0xca, 0xef, 0x5e, 0xbe, 0x6c, 0xd4, 0x80, 0x56, 0xd6, 0x40, 0x20, 0x09, + 0xb4, 0x1c, 0x32, 0xb9, 0xc5, 0xfd, 0x1e, 0x95, 0xd0, 0x1d, 0x12, 0x86, 0x97, 0xce, 0x8b, 0xd1, + 0x0b, 0x02, 0x2d, 0x86, 0x6c, 0x1e, 0xf7, 0xb5, 0x06, 0x09, 0x4a, 0x21, 0x01, 0xb5, 0xa8, 0x8c, + 0x34, 0x04, 0xd4, 0x9b, 0x43, 0x62, 0x7e, 0x73, 0xa4, 0x87, 0xa6, 0x33, 0x2d, 0xaa, 0x56, 0xed, + 0x0e, 0x4f, 0x56, 0xef, 0x8c, 0x9f, 0xe6, 0x58, 0xdb, 0x70, 0xc1, 0x7d, 0x30, 0x65, 0x65, 0xa9, + 0x31, 0x11, 0x4b, 0x58, 0x7a, 0xbe, 0x9e, 0x14, 0x67, 0x60, 0xf2, 0x11, 0x84, 0x31, 0x0f, 0xc0, + 0x94, 0x86, 0xba, 0x56, 0xed, 0x22, 0x2f, 0x61, 0x69, 0xb0, 0x9e, 0x14, 0x3e, 0x98, 0x47, 0x47, + 0xc2, 0x2b, 0x1e, 0x50, 0xd7, 0xab, 0x2d, 0x50, 0x53, 0x47, 0x27, 0x09, 0x4b, 0xfd, 0xe2, 0x0f, + 0xdc, 0xaf, 0x3e, 0xbe, 0xde, 0x96, 0x31, 0x5f, 0xfc, 0x3f, 0xff, 0x16, 0x9e, 0xf5, 0x13, 0x88, + 0xf1, 0xf7, 0x7c, 0xc6, 0x83, 0x0a, 0x6b, 0x5b, 0x92, 0xd5, 0x4d, 0x7e, 0xf7, 0xf9, 0xfa, 0xfd, + 0x33, 0xf5, 0x2e, 0x3c, 0x7e, 0xdd, 0xa2, 0x70, 0x31, 0xdd, 0xe1, 0x8b, 0x15, 0x47, 0x03, 0xe4, + 0xb3, 0x07, 0xb7, 0xd0, 0x66, 0xec, 0xb2, 0x61, 0xd5, 0xd4, 0x95, 0xca, 0x7e, 0x03, 0x00, 0x00, + 0xff, 0xff, 0x8b, 0x76, 0x7a, 0x6e, 0x4b, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.validate.go new file mode 100644 index 000000000..034af0c3b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/common.pb.validate.go @@ -0,0 +1,113 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v3/common.proto + +package envoy_data_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Body with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Body) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Truncated + + switch m.BodyType.(type) { + + case *Body_AsBytes: + // no validation rules for AsBytes + + case *Body_AsString: + // no validation rules for AsString + + } + + return nil +} + +// BodyValidationError is the validation error returned by Body.Validate if the +// designated constraints aren't met. +type BodyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BodyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BodyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BodyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BodyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BodyValidationError) ErrorName() string { return "BodyValidationError" } + +// Error satisfies the builtin error interface +func (e BodyValidationError) 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 %sBody.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BodyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BodyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.go new file mode 100644 index 000000000..a1817910c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.go @@ -0,0 +1,319 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v3/http.proto + +package envoy_data_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpBufferedTrace struct { + Request *HttpBufferedTrace_Message `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + Response *HttpBufferedTrace_Message `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpBufferedTrace) Reset() { *m = HttpBufferedTrace{} } +func (m *HttpBufferedTrace) String() string { return proto.CompactTextString(m) } +func (*HttpBufferedTrace) ProtoMessage() {} +func (*HttpBufferedTrace) Descriptor() ([]byte, []int) { + return fileDescriptor_03538659d7aae254, []int{0} +} + +func (m *HttpBufferedTrace) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpBufferedTrace.Unmarshal(m, b) +} +func (m *HttpBufferedTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpBufferedTrace.Marshal(b, m, deterministic) +} +func (m *HttpBufferedTrace) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpBufferedTrace.Merge(m, src) +} +func (m *HttpBufferedTrace) XXX_Size() int { + return xxx_messageInfo_HttpBufferedTrace.Size(m) +} +func (m *HttpBufferedTrace) XXX_DiscardUnknown() { + xxx_messageInfo_HttpBufferedTrace.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpBufferedTrace proto.InternalMessageInfo + +func (m *HttpBufferedTrace) GetRequest() *HttpBufferedTrace_Message { + if m != nil { + return m.Request + } + return nil +} + +func (m *HttpBufferedTrace) GetResponse() *HttpBufferedTrace_Message { + if m != nil { + return m.Response + } + return nil +} + +type HttpBufferedTrace_Message struct { + Headers []*v3.HeaderValue `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + Body *Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Trailers []*v3.HeaderValue `protobuf:"bytes,3,rep,name=trailers,proto3" json:"trailers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpBufferedTrace_Message) Reset() { *m = HttpBufferedTrace_Message{} } +func (m *HttpBufferedTrace_Message) String() string { return proto.CompactTextString(m) } +func (*HttpBufferedTrace_Message) ProtoMessage() {} +func (*HttpBufferedTrace_Message) Descriptor() ([]byte, []int) { + return fileDescriptor_03538659d7aae254, []int{0, 0} +} + +func (m *HttpBufferedTrace_Message) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpBufferedTrace_Message.Unmarshal(m, b) +} +func (m *HttpBufferedTrace_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpBufferedTrace_Message.Marshal(b, m, deterministic) +} +func (m *HttpBufferedTrace_Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpBufferedTrace_Message.Merge(m, src) +} +func (m *HttpBufferedTrace_Message) XXX_Size() int { + return xxx_messageInfo_HttpBufferedTrace_Message.Size(m) +} +func (m *HttpBufferedTrace_Message) XXX_DiscardUnknown() { + xxx_messageInfo_HttpBufferedTrace_Message.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpBufferedTrace_Message proto.InternalMessageInfo + +func (m *HttpBufferedTrace_Message) GetHeaders() []*v3.HeaderValue { + if m != nil { + return m.Headers + } + return nil +} + +func (m *HttpBufferedTrace_Message) GetBody() *Body { + if m != nil { + return m.Body + } + return nil +} + +func (m *HttpBufferedTrace_Message) GetTrailers() []*v3.HeaderValue { + if m != nil { + return m.Trailers + } + return nil +} + +type HttpStreamedTraceSegment struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // Types that are valid to be assigned to MessagePiece: + // *HttpStreamedTraceSegment_RequestHeaders + // *HttpStreamedTraceSegment_RequestBodyChunk + // *HttpStreamedTraceSegment_RequestTrailers + // *HttpStreamedTraceSegment_ResponseHeaders + // *HttpStreamedTraceSegment_ResponseBodyChunk + // *HttpStreamedTraceSegment_ResponseTrailers + MessagePiece isHttpStreamedTraceSegment_MessagePiece `protobuf_oneof:"message_piece"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpStreamedTraceSegment) Reset() { *m = HttpStreamedTraceSegment{} } +func (m *HttpStreamedTraceSegment) String() string { return proto.CompactTextString(m) } +func (*HttpStreamedTraceSegment) ProtoMessage() {} +func (*HttpStreamedTraceSegment) Descriptor() ([]byte, []int) { + return fileDescriptor_03538659d7aae254, []int{1} +} + +func (m *HttpStreamedTraceSegment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpStreamedTraceSegment.Unmarshal(m, b) +} +func (m *HttpStreamedTraceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpStreamedTraceSegment.Marshal(b, m, deterministic) +} +func (m *HttpStreamedTraceSegment) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpStreamedTraceSegment.Merge(m, src) +} +func (m *HttpStreamedTraceSegment) XXX_Size() int { + return xxx_messageInfo_HttpStreamedTraceSegment.Size(m) +} +func (m *HttpStreamedTraceSegment) XXX_DiscardUnknown() { + xxx_messageInfo_HttpStreamedTraceSegment.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpStreamedTraceSegment proto.InternalMessageInfo + +func (m *HttpStreamedTraceSegment) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +type isHttpStreamedTraceSegment_MessagePiece interface { + isHttpStreamedTraceSegment_MessagePiece() +} + +type HttpStreamedTraceSegment_RequestHeaders struct { + RequestHeaders *v3.HeaderMap `protobuf:"bytes,2,opt,name=request_headers,json=requestHeaders,proto3,oneof"` +} + +type HttpStreamedTraceSegment_RequestBodyChunk struct { + RequestBodyChunk *Body `protobuf:"bytes,3,opt,name=request_body_chunk,json=requestBodyChunk,proto3,oneof"` +} + +type HttpStreamedTraceSegment_RequestTrailers struct { + RequestTrailers *v3.HeaderMap `protobuf:"bytes,4,opt,name=request_trailers,json=requestTrailers,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseHeaders struct { + ResponseHeaders *v3.HeaderMap `protobuf:"bytes,5,opt,name=response_headers,json=responseHeaders,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseBodyChunk struct { + ResponseBodyChunk *Body `protobuf:"bytes,6,opt,name=response_body_chunk,json=responseBodyChunk,proto3,oneof"` +} + +type HttpStreamedTraceSegment_ResponseTrailers struct { + ResponseTrailers *v3.HeaderMap `protobuf:"bytes,7,opt,name=response_trailers,json=responseTrailers,proto3,oneof"` +} + +func (*HttpStreamedTraceSegment_RequestHeaders) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_RequestBodyChunk) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_RequestTrailers) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseHeaders) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseBodyChunk) isHttpStreamedTraceSegment_MessagePiece() {} + +func (*HttpStreamedTraceSegment_ResponseTrailers) isHttpStreamedTraceSegment_MessagePiece() {} + +func (m *HttpStreamedTraceSegment) GetMessagePiece() isHttpStreamedTraceSegment_MessagePiece { + if m != nil { + return m.MessagePiece + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestHeaders() *v3.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestHeaders); ok { + return x.RequestHeaders + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestBodyChunk() *Body { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestBodyChunk); ok { + return x.RequestBodyChunk + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetRequestTrailers() *v3.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_RequestTrailers); ok { + return x.RequestTrailers + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseHeaders() *v3.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseHeaders); ok { + return x.ResponseHeaders + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseBodyChunk() *Body { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseBodyChunk); ok { + return x.ResponseBodyChunk + } + return nil +} + +func (m *HttpStreamedTraceSegment) GetResponseTrailers() *v3.HeaderMap { + if x, ok := m.GetMessagePiece().(*HttpStreamedTraceSegment_ResponseTrailers); ok { + return x.ResponseTrailers + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HttpStreamedTraceSegment) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HttpStreamedTraceSegment_RequestHeaders)(nil), + (*HttpStreamedTraceSegment_RequestBodyChunk)(nil), + (*HttpStreamedTraceSegment_RequestTrailers)(nil), + (*HttpStreamedTraceSegment_ResponseHeaders)(nil), + (*HttpStreamedTraceSegment_ResponseBodyChunk)(nil), + (*HttpStreamedTraceSegment_ResponseTrailers)(nil), + } +} + +func init() { + proto.RegisterType((*HttpBufferedTrace)(nil), "envoy.data.tap.v3.HttpBufferedTrace") + proto.RegisterType((*HttpBufferedTrace_Message)(nil), "envoy.data.tap.v3.HttpBufferedTrace.Message") + proto.RegisterType((*HttpStreamedTraceSegment)(nil), "envoy.data.tap.v3.HttpStreamedTraceSegment") +} + +func init() { proto.RegisterFile("envoy/data/tap/v3/http.proto", fileDescriptor_03538659d7aae254) } + +var fileDescriptor_03538659d7aae254 = []byte{ + // 529 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x41, 0x6f, 0xd3, 0x30, + 0x14, 0xc7, 0xd7, 0xb5, 0xb4, 0xc3, 0x13, 0x6c, 0x35, 0x07, 0x4a, 0x05, 0xeb, 0xb6, 0x53, 0x05, + 0x28, 0x81, 0x56, 0x1a, 0x52, 0x11, 0x97, 0x20, 0x41, 0x86, 0x18, 0x9a, 0xb2, 0x89, 0x6b, 0xe4, + 0x26, 0xaf, 0x6d, 0x44, 0x63, 0x1b, 0xdb, 0xa9, 0xe8, 0x8d, 0x23, 0x9f, 0x81, 0x8f, 0xc2, 0x19, + 0x24, 0xc4, 0x8d, 0xcf, 0xc1, 0x97, 0x40, 0x8e, 0x9d, 0x0c, 0x91, 0x51, 0x0a, 0xc7, 0xbc, 0xe7, + 0xdf, 0xdf, 0xef, 0xff, 0xcf, 0x93, 0xd1, 0x6d, 0xa0, 0x0b, 0xb6, 0x74, 0x63, 0xa2, 0x88, 0xab, + 0x08, 0x77, 0x17, 0x43, 0x77, 0xa6, 0x14, 0x77, 0xb8, 0x60, 0x8a, 0xe1, 0x76, 0xde, 0x75, 0x74, + 0xd7, 0x51, 0x84, 0x3b, 0x8b, 0x61, 0xb7, 0x67, 0x80, 0x88, 0xd1, 0x49, 0x32, 0x75, 0x23, 0x26, + 0x40, 0x33, 0x63, 0x22, 0xc1, 0x30, 0xdd, 0xbd, 0xaa, 0x62, 0xc4, 0xd2, 0x94, 0x51, 0xdb, 0xbf, + 0x93, 0xc5, 0x9c, 0xb8, 0x84, 0x52, 0xa6, 0x88, 0x4a, 0x18, 0x95, 0xae, 0x54, 0x44, 0x65, 0xd2, + 0xb6, 0x0f, 0x2a, 0xed, 0x05, 0x08, 0x99, 0x30, 0x9a, 0xd0, 0xa9, 0x39, 0x72, 0xf8, 0xb9, 0x8e, + 0xda, 0xbe, 0x52, 0xdc, 0xcb, 0x26, 0x13, 0x10, 0x10, 0x9f, 0x0b, 0x12, 0x01, 0x7e, 0x86, 0x5a, + 0x02, 0xde, 0x66, 0x20, 0x55, 0xa7, 0xb6, 0x5f, 0xeb, 0x6f, 0x0f, 0xee, 0x3b, 0x95, 0xe9, 0x9d, + 0x0a, 0xe6, 0x9c, 0x80, 0x94, 0x64, 0x0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1b, 0xc1, 0xae, 0x85, + 0xf4, 0xe7, 0x53, 0x8d, 0xe0, 0x97, 0xa8, 0xa8, 0x85, 0x65, 0xfa, 0x8d, 0x75, 0xa7, 0x2a, 0xfc, + 0x9c, 0x5b, 0xd2, 0xa8, 0x99, 0x2d, 0x2a, 0x3d, 0x5e, 0xf9, 0x07, 0x35, 0x83, 0x16, 0x26, 0x8f, + 0xd1, 0x8d, 0x52, 0xed, 0x17, 0x97, 0xcd, 0xbf, 0xb9, 0x6c, 0x17, 0xd4, 0x85, 0xcd, 0x57, 0xa8, + 0x2c, 0x5e, 0xf8, 0x6c, 0xad, 0x3b, 0x59, 0x69, 0xaa, 0x30, 0x3a, 0x3a, 0xd2, 0x4b, 0xf3, 0x10, + 0xb9, 0x2b, 0x96, 0xe6, 0xb2, 0xf5, 0xf0, 0x76, 0xd0, 0xb5, 0xd4, 0xec, 0x5d, 0xc8, 0x13, 0x88, + 0xc0, 0x3b, 0xfa, 0xf4, 0xfe, 0xeb, 0xf7, 0xe6, 0xe6, 0xee, 0x26, 0xea, 0x25, 0xcc, 0x4c, 0xc2, + 0x05, 0x7b, 0xb7, 0xac, 0xba, 0xf3, 0xae, 0x6a, 0xd5, 0x53, 0xfd, 0x92, 0x9c, 0xd6, 0xc6, 0xcd, + 0xfc, 0x49, 0x19, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x61, 0x26, 0xbe, 0xe6, 0x08, 0x05, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.validate.go new file mode 100644 index 000000000..579d5989f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/http.pb.validate.go @@ -0,0 +1,376 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v3/http.proto + +package envoy_data_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _http_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpBufferedTrace with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HttpBufferedTrace) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTraceValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTraceValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpBufferedTraceValidationError is the validation error returned by +// HttpBufferedTrace.Validate if the designated constraints aren't met. +type HttpBufferedTraceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpBufferedTraceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpBufferedTraceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpBufferedTraceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpBufferedTraceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpBufferedTraceValidationError) ErrorName() string { + return "HttpBufferedTraceValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpBufferedTraceValidationError) 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 %sHttpBufferedTrace.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpBufferedTraceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpBufferedTraceValidationError{} + +// Validate checks the field values on HttpStreamedTraceSegment with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpStreamedTraceSegment) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + switch m.MessagePiece.(type) { + + case *HttpStreamedTraceSegment_RequestHeaders: + + if v, ok := interface{}(m.GetRequestHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_RequestBodyChunk: + + if v, ok := interface{}(m.GetRequestBodyChunk()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestBodyChunk", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_RequestTrailers: + + if v, ok := interface{}(m.GetRequestTrailers()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "RequestTrailers", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseHeaders: + + if v, ok := interface{}(m.GetResponseHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseBodyChunk: + + if v, ok := interface{}(m.GetResponseBodyChunk()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseBodyChunk", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HttpStreamedTraceSegment_ResponseTrailers: + + if v, ok := interface{}(m.GetResponseTrailers()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpStreamedTraceSegmentValidationError{ + field: "ResponseTrailers", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpStreamedTraceSegmentValidationError is the validation error returned by +// HttpStreamedTraceSegment.Validate if the designated constraints aren't met. +type HttpStreamedTraceSegmentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpStreamedTraceSegmentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpStreamedTraceSegmentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpStreamedTraceSegmentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpStreamedTraceSegmentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpStreamedTraceSegmentValidationError) ErrorName() string { + return "HttpStreamedTraceSegmentValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpStreamedTraceSegmentValidationError) 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 %sHttpStreamedTraceSegment.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpStreamedTraceSegmentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpStreamedTraceSegmentValidationError{} + +// Validate checks the field values on HttpBufferedTrace_Message with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpBufferedTrace_Message) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetBody()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: "Body", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetTrailers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpBufferedTrace_MessageValidationError{ + field: fmt.Sprintf("Trailers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpBufferedTrace_MessageValidationError is the validation error returned by +// HttpBufferedTrace_Message.Validate if the designated constraints aren't met. +type HttpBufferedTrace_MessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpBufferedTrace_MessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpBufferedTrace_MessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpBufferedTrace_MessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpBufferedTrace_MessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpBufferedTrace_MessageValidationError) ErrorName() string { + return "HttpBufferedTrace_MessageValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpBufferedTrace_MessageValidationError) 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 %sHttpBufferedTrace_Message.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpBufferedTrace_MessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpBufferedTrace_MessageValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.go new file mode 100644 index 000000000..54174007e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.go @@ -0,0 +1,510 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v3/transport.proto + +package envoy_data_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Connection struct { + LocalAddress *v3.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` + RemoteAddress *v3.Address `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Connection) Reset() { *m = Connection{} } +func (m *Connection) String() string { return proto.CompactTextString(m) } +func (*Connection) ProtoMessage() {} +func (*Connection) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{0} +} + +func (m *Connection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Connection.Unmarshal(m, b) +} +func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Connection.Marshal(b, m, deterministic) +} +func (m *Connection) XXX_Merge(src proto.Message) { + xxx_messageInfo_Connection.Merge(m, src) +} +func (m *Connection) XXX_Size() int { + return xxx_messageInfo_Connection.Size(m) +} +func (m *Connection) XXX_DiscardUnknown() { + xxx_messageInfo_Connection.DiscardUnknown(m) +} + +var xxx_messageInfo_Connection proto.InternalMessageInfo + +func (m *Connection) GetLocalAddress() *v3.Address { + if m != nil { + return m.LocalAddress + } + return nil +} + +func (m *Connection) GetRemoteAddress() *v3.Address { + if m != nil { + return m.RemoteAddress + } + return nil +} + +type SocketEvent struct { + Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Types that are valid to be assigned to EventSelector: + // *SocketEvent_Read_ + // *SocketEvent_Write_ + // *SocketEvent_Closed_ + EventSelector isSocketEvent_EventSelector `protobuf_oneof:"event_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent) Reset() { *m = SocketEvent{} } +func (m *SocketEvent) String() string { return proto.CompactTextString(m) } +func (*SocketEvent) ProtoMessage() {} +func (*SocketEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{1} +} + +func (m *SocketEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent.Unmarshal(m, b) +} +func (m *SocketEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent.Marshal(b, m, deterministic) +} +func (m *SocketEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent.Merge(m, src) +} +func (m *SocketEvent) XXX_Size() int { + return xxx_messageInfo_SocketEvent.Size(m) +} +func (m *SocketEvent) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent proto.InternalMessageInfo + +func (m *SocketEvent) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + +type isSocketEvent_EventSelector interface { + isSocketEvent_EventSelector() +} + +type SocketEvent_Read_ struct { + Read *SocketEvent_Read `protobuf:"bytes,2,opt,name=read,proto3,oneof"` +} + +type SocketEvent_Write_ struct { + Write *SocketEvent_Write `protobuf:"bytes,3,opt,name=write,proto3,oneof"` +} + +type SocketEvent_Closed_ struct { + Closed *SocketEvent_Closed `protobuf:"bytes,4,opt,name=closed,proto3,oneof"` +} + +func (*SocketEvent_Read_) isSocketEvent_EventSelector() {} + +func (*SocketEvent_Write_) isSocketEvent_EventSelector() {} + +func (*SocketEvent_Closed_) isSocketEvent_EventSelector() {} + +func (m *SocketEvent) GetEventSelector() isSocketEvent_EventSelector { + if m != nil { + return m.EventSelector + } + return nil +} + +func (m *SocketEvent) GetRead() *SocketEvent_Read { + if x, ok := m.GetEventSelector().(*SocketEvent_Read_); ok { + return x.Read + } + return nil +} + +func (m *SocketEvent) GetWrite() *SocketEvent_Write { + if x, ok := m.GetEventSelector().(*SocketEvent_Write_); ok { + return x.Write + } + return nil +} + +func (m *SocketEvent) GetClosed() *SocketEvent_Closed { + if x, ok := m.GetEventSelector().(*SocketEvent_Closed_); ok { + return x.Closed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SocketEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SocketEvent_Read_)(nil), + (*SocketEvent_Write_)(nil), + (*SocketEvent_Closed_)(nil), + } +} + +type SocketEvent_Read struct { + Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Read) Reset() { *m = SocketEvent_Read{} } +func (m *SocketEvent_Read) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Read) ProtoMessage() {} +func (*SocketEvent_Read) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{1, 0} +} + +func (m *SocketEvent_Read) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Read.Unmarshal(m, b) +} +func (m *SocketEvent_Read) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Read.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Read) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Read.Merge(m, src) +} +func (m *SocketEvent_Read) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Read.Size(m) +} +func (m *SocketEvent_Read) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Read.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Read proto.InternalMessageInfo + +func (m *SocketEvent_Read) GetData() *Body { + if m != nil { + return m.Data + } + return nil +} + +type SocketEvent_Write struct { + Data *Body `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + EndStream bool `protobuf:"varint,2,opt,name=end_stream,json=endStream,proto3" json:"end_stream,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Write) Reset() { *m = SocketEvent_Write{} } +func (m *SocketEvent_Write) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Write) ProtoMessage() {} +func (*SocketEvent_Write) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{1, 1} +} + +func (m *SocketEvent_Write) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Write.Unmarshal(m, b) +} +func (m *SocketEvent_Write) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Write.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Write) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Write.Merge(m, src) +} +func (m *SocketEvent_Write) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Write.Size(m) +} +func (m *SocketEvent_Write) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Write.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Write proto.InternalMessageInfo + +func (m *SocketEvent_Write) GetData() *Body { + if m != nil { + return m.Data + } + return nil +} + +func (m *SocketEvent_Write) GetEndStream() bool { + if m != nil { + return m.EndStream + } + return false +} + +type SocketEvent_Closed struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketEvent_Closed) Reset() { *m = SocketEvent_Closed{} } +func (m *SocketEvent_Closed) String() string { return proto.CompactTextString(m) } +func (*SocketEvent_Closed) ProtoMessage() {} +func (*SocketEvent_Closed) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{1, 2} +} + +func (m *SocketEvent_Closed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketEvent_Closed.Unmarshal(m, b) +} +func (m *SocketEvent_Closed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketEvent_Closed.Marshal(b, m, deterministic) +} +func (m *SocketEvent_Closed) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketEvent_Closed.Merge(m, src) +} +func (m *SocketEvent_Closed) XXX_Size() int { + return xxx_messageInfo_SocketEvent_Closed.Size(m) +} +func (m *SocketEvent_Closed) XXX_DiscardUnknown() { + xxx_messageInfo_SocketEvent_Closed.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketEvent_Closed proto.InternalMessageInfo + +type SocketBufferedTrace struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"` + Events []*SocketEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + ReadTruncated bool `protobuf:"varint,4,opt,name=read_truncated,json=readTruncated,proto3" json:"read_truncated,omitempty"` + WriteTruncated bool `protobuf:"varint,5,opt,name=write_truncated,json=writeTruncated,proto3" json:"write_truncated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketBufferedTrace) Reset() { *m = SocketBufferedTrace{} } +func (m *SocketBufferedTrace) String() string { return proto.CompactTextString(m) } +func (*SocketBufferedTrace) ProtoMessage() {} +func (*SocketBufferedTrace) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{2} +} + +func (m *SocketBufferedTrace) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketBufferedTrace.Unmarshal(m, b) +} +func (m *SocketBufferedTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketBufferedTrace.Marshal(b, m, deterministic) +} +func (m *SocketBufferedTrace) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketBufferedTrace.Merge(m, src) +} +func (m *SocketBufferedTrace) XXX_Size() int { + return xxx_messageInfo_SocketBufferedTrace.Size(m) +} +func (m *SocketBufferedTrace) XXX_DiscardUnknown() { + xxx_messageInfo_SocketBufferedTrace.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketBufferedTrace proto.InternalMessageInfo + +func (m *SocketBufferedTrace) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +func (m *SocketBufferedTrace) GetConnection() *Connection { + if m != nil { + return m.Connection + } + return nil +} + +func (m *SocketBufferedTrace) GetEvents() []*SocketEvent { + if m != nil { + return m.Events + } + return nil +} + +func (m *SocketBufferedTrace) GetReadTruncated() bool { + if m != nil { + return m.ReadTruncated + } + return false +} + +func (m *SocketBufferedTrace) GetWriteTruncated() bool { + if m != nil { + return m.WriteTruncated + } + return false +} + +type SocketStreamedTraceSegment struct { + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // Types that are valid to be assigned to MessagePiece: + // *SocketStreamedTraceSegment_Connection + // *SocketStreamedTraceSegment_Event + MessagePiece isSocketStreamedTraceSegment_MessagePiece `protobuf_oneof:"message_piece"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SocketStreamedTraceSegment) Reset() { *m = SocketStreamedTraceSegment{} } +func (m *SocketStreamedTraceSegment) String() string { return proto.CompactTextString(m) } +func (*SocketStreamedTraceSegment) ProtoMessage() {} +func (*SocketStreamedTraceSegment) Descriptor() ([]byte, []int) { + return fileDescriptor_f38b2d9969d034d9, []int{3} +} + +func (m *SocketStreamedTraceSegment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocketStreamedTraceSegment.Unmarshal(m, b) +} +func (m *SocketStreamedTraceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocketStreamedTraceSegment.Marshal(b, m, deterministic) +} +func (m *SocketStreamedTraceSegment) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocketStreamedTraceSegment.Merge(m, src) +} +func (m *SocketStreamedTraceSegment) XXX_Size() int { + return xxx_messageInfo_SocketStreamedTraceSegment.Size(m) +} +func (m *SocketStreamedTraceSegment) XXX_DiscardUnknown() { + xxx_messageInfo_SocketStreamedTraceSegment.DiscardUnknown(m) +} + +var xxx_messageInfo_SocketStreamedTraceSegment proto.InternalMessageInfo + +func (m *SocketStreamedTraceSegment) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +type isSocketStreamedTraceSegment_MessagePiece interface { + isSocketStreamedTraceSegment_MessagePiece() +} + +type SocketStreamedTraceSegment_Connection struct { + Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3,oneof"` +} + +type SocketStreamedTraceSegment_Event struct { + Event *SocketEvent `protobuf:"bytes,3,opt,name=event,proto3,oneof"` +} + +func (*SocketStreamedTraceSegment_Connection) isSocketStreamedTraceSegment_MessagePiece() {} + +func (*SocketStreamedTraceSegment_Event) isSocketStreamedTraceSegment_MessagePiece() {} + +func (m *SocketStreamedTraceSegment) GetMessagePiece() isSocketStreamedTraceSegment_MessagePiece { + if m != nil { + return m.MessagePiece + } + return nil +} + +func (m *SocketStreamedTraceSegment) GetConnection() *Connection { + if x, ok := m.GetMessagePiece().(*SocketStreamedTraceSegment_Connection); ok { + return x.Connection + } + return nil +} + +func (m *SocketStreamedTraceSegment) GetEvent() *SocketEvent { + if x, ok := m.GetMessagePiece().(*SocketStreamedTraceSegment_Event); ok { + return x.Event + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SocketStreamedTraceSegment) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SocketStreamedTraceSegment_Connection)(nil), + (*SocketStreamedTraceSegment_Event)(nil), + } +} + +func init() { + proto.RegisterType((*Connection)(nil), "envoy.data.tap.v3.Connection") + proto.RegisterType((*SocketEvent)(nil), "envoy.data.tap.v3.SocketEvent") + proto.RegisterType((*SocketEvent_Read)(nil), "envoy.data.tap.v3.SocketEvent.Read") + proto.RegisterType((*SocketEvent_Write)(nil), "envoy.data.tap.v3.SocketEvent.Write") + proto.RegisterType((*SocketEvent_Closed)(nil), "envoy.data.tap.v3.SocketEvent.Closed") + proto.RegisterType((*SocketBufferedTrace)(nil), "envoy.data.tap.v3.SocketBufferedTrace") + proto.RegisterType((*SocketStreamedTraceSegment)(nil), "envoy.data.tap.v3.SocketStreamedTraceSegment") +} + +func init() { proto.RegisterFile("envoy/data/tap/v3/transport.proto", fileDescriptor_f38b2d9969d034d9) } + +var fileDescriptor_f38b2d9969d034d9 = []byte{ + // 695 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x41, 0x4f, 0x13, 0x41, + 0x14, 0x6e, 0x4b, 0x5b, 0xe1, 0x21, 0x05, 0xd7, 0x83, 0xd8, 0x04, 0x90, 0x02, 0xa1, 0x80, 0x99, + 0x15, 0x9a, 0x18, 0xac, 0x1a, 0xe2, 0xa2, 0x49, 0xbd, 0x91, 0xa5, 0x89, 0xc7, 0x66, 0xd8, 0x79, + 0xad, 0x1b, 0xbb, 0x33, 0x9b, 0xd9, 0x69, 0x95, 0x9b, 0x07, 0x0f, 0xfe, 0x06, 0x7f, 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, 0x63, 0x4f, 0xce, 0x4b, 0x28, 0x49, 0x8c, 0x84, 0xc2, 0x61, 0x92, + 0x99, 0xeb, 0x24, 0x59, 0x48, 0x49, 0xf6, 0x58, 0xaf, 0x7e, 0xf9, 0xf1, 0x79, 0x75, 0xc3, 0x9a, + 0x3f, 0xe2, 0xec, 0x01, 0xed, 0xc6, 0x6f, 0x29, 0xb9, 0xe8, 0xb9, 0xf2, 0x3b, 0x0f, 0xf3, 0xa7, + 0x22, 0x78, 0x87, 0xea, 0x55, 0x1f, 0xb9, 0x72, 0x0e, 0x61, 0x6e, 0xe8, 0xd3, 0x72, 0xd6, 0x94, + 0x2e, 0x93, 0xd4, 0x49, 0x32, 0x70, 0x92, 0x34, 0x07, 0x08, 0xff, 0x02, 0xec, 0x3c, 0x81, 0xbc, + 0x44, 0xca, 0xac, 0xe8, 0x0d, 0x32, 0xf6, 0x55, 0xc9, 0x48, 0x1d, 0xe2, 0x23, 0x65, 0x8d, 0x8c, + 0x6f, 0x28, 0xce, 0x33, 0x28, 0xbc, 0x97, 0xa1, 0x42, 0xab, 0x75, 0x73, 0x0a, 0xf7, 0x8d, 0xc6, + 0x36, 0x32, 0x7e, 0x4a, 0x72, 0x8e, 0xa0, 0x18, 0x74, 0x45, 0x82, 0x6c, 0x39, 0x6f, 0xe8, 0x5b, + 0x53, 0xe8, 0xc7, 0x06, 0xdc, 0xc8, 0xf8, 0x96, 0x56, 0x0e, 0x20, 0xaf, 0xdb, 0x71, 0xf6, 0x20, + 0xaf, 0x39, 0x56, 0xf6, 0xbd, 0x2b, 0xd2, 0x78, 0x82, 0x9d, 0xfb, 0x06, 0x54, 0x27, 0xda, 0xe2, + 0x1d, 0xd8, 0xfe, 0x8f, 0xc5, 0x97, 0xb5, 0x96, 0x3f, 0x65, 0xa1, 0x60, 0x1a, 0xbf, 0x51, 0x19, + 0x67, 0x05, 0x00, 0x39, 0x6b, 0x25, 0x4a, 0x22, 0x8d, 0x8c, 0xb7, 0xb3, 0xfe,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7, 0x0a, 0xc6, 0x07, 0xbb, 0x8b, 0x53, 0x4c, 0xd3, 0x5b, 0x68, 0xe0, 0xf5, 0x43, + 0xad, 0xb2, 0x06, 0xfb, 0x13, 0x55, 0x5e, 0xa5, 0xc6, 0x5b, 0x84, 0x85, 0x08, 0x93, 0x84, 0x76, + 0xb0, 0x15, 0x87, 0x18, 0xa0, 0xf7, 0xf4, 0xdb, 0xc7, 0x9f, 0xbf, 0x8a, 0xb9, 0xa5, 0x1c, 0xac, + 0x85, 0x22, 0xad, 0x1f, 0x4b, 0xf1, 0xe1, 0x7c, 0xbc, 0x15, 0xaf, 0xd4, 0x1c, 0xfc, 0x4c, 0x4e, + 0xf4, 0xe5, 0x74, 0x92, 0x3d, 0x2b, 0x9a, 0x5b, 0xaa, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0x03, + 0x0f, 0x5d, 0xf5, 0x79, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.validate.go new file mode 100644 index 000000000..745213a21 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/transport.pb.validate.go @@ -0,0 +1,652 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v3/transport.proto + +package envoy_data_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _transport_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Connection with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Connection) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLocalAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionValidationError{ + field: "LocalAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRemoteAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionValidationError{ + field: "RemoteAddress", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConnectionValidationError is the validation error returned by +// Connection.Validate if the designated constraints aren't met. +type ConnectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionValidationError) ErrorName() string { return "ConnectionValidationError" } + +// Error satisfies the builtin error interface +func (e ConnectionValidationError) 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 %sConnection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionValidationError{} + +// Validate checks the field values on SocketEvent with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SocketEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Timestamp", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.EventSelector.(type) { + + case *SocketEvent_Read_: + + if v, ok := interface{}(m.GetRead()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Read", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketEvent_Write_: + + if v, ok := interface{}(m.GetWrite()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Write", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketEvent_Closed_: + + if v, ok := interface{}(m.GetClosed()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEventValidationError{ + field: "Closed", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SocketEventValidationError is the validation error returned by +// SocketEvent.Validate if the designated constraints aren't met. +type SocketEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEventValidationError) ErrorName() string { return "SocketEventValidationError" } + +// Error satisfies the builtin error interface +func (e SocketEventValidationError) 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 %sSocketEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEventValidationError{} + +// Validate checks the field values on SocketBufferedTrace with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketBufferedTrace) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + if v, ok := interface{}(m.GetConnection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketBufferedTraceValidationError{ + field: "Connection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEvents() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketBufferedTraceValidationError{ + field: fmt.Sprintf("Events[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for ReadTruncated + + // no validation rules for WriteTruncated + + return nil +} + +// SocketBufferedTraceValidationError is the validation error returned by +// SocketBufferedTrace.Validate if the designated constraints aren't met. +type SocketBufferedTraceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketBufferedTraceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketBufferedTraceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketBufferedTraceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketBufferedTraceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketBufferedTraceValidationError) ErrorName() string { + return "SocketBufferedTraceValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketBufferedTraceValidationError) 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 %sSocketBufferedTrace.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketBufferedTraceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketBufferedTraceValidationError{} + +// Validate checks the field values on SocketStreamedTraceSegment with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketStreamedTraceSegment) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TraceId + + switch m.MessagePiece.(type) { + + case *SocketStreamedTraceSegment_Connection: + + if v, ok := interface{}(m.GetConnection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketStreamedTraceSegmentValidationError{ + field: "Connection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SocketStreamedTraceSegment_Event: + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketStreamedTraceSegmentValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SocketStreamedTraceSegmentValidationError is the validation error returned +// by SocketStreamedTraceSegment.Validate if the designated constraints aren't met. +type SocketStreamedTraceSegmentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketStreamedTraceSegmentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketStreamedTraceSegmentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketStreamedTraceSegmentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketStreamedTraceSegmentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketStreamedTraceSegmentValidationError) ErrorName() string { + return "SocketStreamedTraceSegmentValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketStreamedTraceSegmentValidationError) 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 %sSocketStreamedTraceSegment.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketStreamedTraceSegmentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketStreamedTraceSegmentValidationError{} + +// Validate checks the field values on SocketEvent_Read with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SocketEvent_Read) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEvent_ReadValidationError{ + field: "Data", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SocketEvent_ReadValidationError is the validation error returned by +// SocketEvent_Read.Validate if the designated constraints aren't met. +type SocketEvent_ReadValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_ReadValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_ReadValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_ReadValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_ReadValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_ReadValidationError) ErrorName() string { return "SocketEvent_ReadValidationError" } + +// Error satisfies the builtin error interface +func (e SocketEvent_ReadValidationError) 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 %sSocketEvent_Read.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_ReadValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_ReadValidationError{} + +// Validate checks the field values on SocketEvent_Write with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SocketEvent_Write) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SocketEvent_WriteValidationError{ + field: "Data", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EndStream + + return nil +} + +// SocketEvent_WriteValidationError is the validation error returned by +// SocketEvent_Write.Validate if the designated constraints aren't met. +type SocketEvent_WriteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_WriteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_WriteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_WriteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_WriteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_WriteValidationError) ErrorName() string { + return "SocketEvent_WriteValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketEvent_WriteValidationError) 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 %sSocketEvent_Write.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_WriteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_WriteValidationError{} + +// Validate checks the field values on SocketEvent_Closed with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SocketEvent_Closed) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SocketEvent_ClosedValidationError is the validation error returned by +// SocketEvent_Closed.Validate if the designated constraints aren't met. +type SocketEvent_ClosedValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SocketEvent_ClosedValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SocketEvent_ClosedValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SocketEvent_ClosedValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SocketEvent_ClosedValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SocketEvent_ClosedValidationError) ErrorName() string { + return "SocketEvent_ClosedValidationError" +} + +// Error satisfies the builtin error interface +func (e SocketEvent_ClosedValidationError) 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 %sSocketEvent_Closed.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SocketEvent_ClosedValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SocketEvent_ClosedValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.go new file mode 100644 index 000000000..942ff2bdc --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/data/tap/v3/wrapper.proto + +package envoy_data_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TraceWrapper struct { + // Types that are valid to be assigned to Trace: + // *TraceWrapper_HttpBufferedTrace + // *TraceWrapper_HttpStreamedTraceSegment + // *TraceWrapper_SocketBufferedTrace + // *TraceWrapper_SocketStreamedTraceSegment + Trace isTraceWrapper_Trace `protobuf_oneof:"trace"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TraceWrapper) Reset() { *m = TraceWrapper{} } +func (m *TraceWrapper) String() string { return proto.CompactTextString(m) } +func (*TraceWrapper) ProtoMessage() {} +func (*TraceWrapper) Descriptor() ([]byte, []int) { + return fileDescriptor_cf8ac6ed13d08ec8, []int{0} +} + +func (m *TraceWrapper) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TraceWrapper.Unmarshal(m, b) +} +func (m *TraceWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TraceWrapper.Marshal(b, m, deterministic) +} +func (m *TraceWrapper) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceWrapper.Merge(m, src) +} +func (m *TraceWrapper) XXX_Size() int { + return xxx_messageInfo_TraceWrapper.Size(m) +} +func (m *TraceWrapper) XXX_DiscardUnknown() { + xxx_messageInfo_TraceWrapper.DiscardUnknown(m) +} + +var xxx_messageInfo_TraceWrapper proto.InternalMessageInfo + +type isTraceWrapper_Trace interface { + isTraceWrapper_Trace() +} + +type TraceWrapper_HttpBufferedTrace struct { + HttpBufferedTrace *HttpBufferedTrace `protobuf:"bytes,1,opt,name=http_buffered_trace,json=httpBufferedTrace,proto3,oneof"` +} + +type TraceWrapper_HttpStreamedTraceSegment struct { + HttpStreamedTraceSegment *HttpStreamedTraceSegment `protobuf:"bytes,2,opt,name=http_streamed_trace_segment,json=httpStreamedTraceSegment,proto3,oneof"` +} + +type TraceWrapper_SocketBufferedTrace struct { + SocketBufferedTrace *SocketBufferedTrace `protobuf:"bytes,3,opt,name=socket_buffered_trace,json=socketBufferedTrace,proto3,oneof"` +} + +type TraceWrapper_SocketStreamedTraceSegment struct { + SocketStreamedTraceSegment *SocketStreamedTraceSegment `protobuf:"bytes,4,opt,name=socket_streamed_trace_segment,json=socketStreamedTraceSegment,proto3,oneof"` +} + +func (*TraceWrapper_HttpBufferedTrace) isTraceWrapper_Trace() {} + +func (*TraceWrapper_HttpStreamedTraceSegment) isTraceWrapper_Trace() {} + +func (*TraceWrapper_SocketBufferedTrace) isTraceWrapper_Trace() {} + +func (*TraceWrapper_SocketStreamedTraceSegment) isTraceWrapper_Trace() {} + +func (m *TraceWrapper) GetTrace() isTraceWrapper_Trace { + if m != nil { + return m.Trace + } + return nil +} + +func (m *TraceWrapper) GetHttpBufferedTrace() *HttpBufferedTrace { + if x, ok := m.GetTrace().(*TraceWrapper_HttpBufferedTrace); ok { + return x.HttpBufferedTrace + } + return nil +} + +func (m *TraceWrapper) GetHttpStreamedTraceSegment() *HttpStreamedTraceSegment { + if x, ok := m.GetTrace().(*TraceWrapper_HttpStreamedTraceSegment); ok { + return x.HttpStreamedTraceSegment + } + return nil +} + +func (m *TraceWrapper) GetSocketBufferedTrace() *SocketBufferedTrace { + if x, ok := m.GetTrace().(*TraceWrapper_SocketBufferedTrace); ok { + return x.SocketBufferedTrace + } + return nil +} + +func (m *TraceWrapper) GetSocketStreamedTraceSegment() *SocketStreamedTraceSegment { + if x, ok := m.GetTrace().(*TraceWrapper_SocketStreamedTraceSegment); ok { + return x.SocketStreamedTraceSegment + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TraceWrapper) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TraceWrapper_HttpBufferedTrace)(nil), + (*TraceWrapper_HttpStreamedTraceSegment)(nil), + (*TraceWrapper_SocketBufferedTrace)(nil), + (*TraceWrapper_SocketStreamedTraceSegment)(nil), + } +} + +func init() { + proto.RegisterType((*TraceWrapper)(nil), "envoy.data.tap.v3.TraceWrapper") +} + +func init() { proto.RegisterFile("envoy/data/tap/v3/wrapper.proto", fileDescriptor_cf8ac6ed13d08ec8) } + +var fileDescriptor_cf8ac6ed13d08ec8 = []byte{ + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x4e, 0xea, 0x40, + 0x14, 0xc6, 0x29, 0xdc, 0xcb, 0x62, 0x2e, 0x8b, 0x4b, 0xc9, 0xcd, 0x25, 0x28, 0xe2, 0xff, 0x18, + 0x8d, 0x33, 0x09, 0xac, 0x74, 0xd9, 0x15, 0x4b, 0x02, 0x46, 0x37, 0x26, 0xe4, 0x40, 0x07, 0xda, + 0x08, 0x33, 0x93, 0x99, 0x43, 0x95, 0x9d, 0x4b, 0x9f, 0xc1, 0x47, 0x71, 0x6f, 0xe2, 0xd6, 0x37, + 0xf0, 0x31, 0x5c, 0x9a, 0x4e, 0x4b, 0x62, 0x5a, 0xbb, 0x6b, 0xe6, 0xfb, 0xce, 0xef, 0x7c, 0x5f, + 0x7a, 0x48, 0x87, 0x8b, 0x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0x8c, 0xac, 0x3f, 0xdb, 0xa4, + 0x61, 0xf2, 0xcf, 0xae, 0x26, 0xed, 0x94, 0x5e, 0xd0, 0xe6, 0x97, 0xdd, 0x72, 0x5e, 0xb8, 0xa5, + 0xa0, 0x4f, 0xcb, 0x14, 0xaa, 0x97, 0xa7, 0xcf, 0xaf, 0x4f, 0x3b, 0x47, 0xe4, 0x20, 0x8b, 0xec, + 0xc2, 0x42, 0x05, 0x40, 0xbf, 0xff, 0x43, 0xaf, 0x46, 0x7e, 0xdb, 0x3c, 0x6e, 0xe5, 0xd3, 0x73, + 0xbc, 0x8b, 0x97, 0xc7, 0xb7, 0xf7, 0x6a, 0xf9, 0x6f, 0x99, 0x74, 0x42, 0x99, 0x44, 0x52, 0x5a, + 0x3e, 0xac, 0xf3, 0xe9, 0xbc, 0x5a, 0x4a, 0x18, 0xc4, 0xb7, 0x31, 0x70, 0x26, 0x55, 0x7b, 0x24, + 0xbd, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0xd1, 0x24, 0x87, 0xf6, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.validate.go new file mode 100644 index 000000000..8740bdf9a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/data/tap/v3/wrapper.pb.validate.go @@ -0,0 +1,160 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/data/tap/v3/wrapper.proto + +package envoy_data_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _wrapper_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TraceWrapper with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TraceWrapper) Validate() error { + if m == nil { + return nil + } + + switch m.Trace.(type) { + + case *TraceWrapper_HttpBufferedTrace: + + if v, ok := interface{}(m.GetHttpBufferedTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "HttpBufferedTrace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_HttpStreamedTraceSegment: + + if v, ok := interface{}(m.GetHttpStreamedTraceSegment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "HttpStreamedTraceSegment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_SocketBufferedTrace: + + if v, ok := interface{}(m.GetSocketBufferedTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "SocketBufferedTrace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TraceWrapper_SocketStreamedTraceSegment: + + if v, ok := interface{}(m.GetSocketStreamedTraceSegment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TraceWrapperValidationError{ + field: "SocketStreamedTraceSegment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return TraceWrapperValidationError{ + field: "Trace", + reason: "value is required", + } + + } + + return nil +} + +// TraceWrapperValidationError is the validation error returned by +// TraceWrapper.Validate if the designated constraints aren't met. +type TraceWrapperValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TraceWrapperValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TraceWrapperValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TraceWrapperValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TraceWrapperValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TraceWrapperValidationError) ErrorName() string { return "TraceWrapperValidationError" } + +// Error satisfies the builtin error interface +func (e TraceWrapperValidationError) 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 %sTraceWrapper.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TraceWrapperValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TraceWrapperValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.go new file mode 100644 index 000000000..eb38f8521 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/access_loggers/file/v3/file.proto + +package envoy_extensions_access_loggers_file_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FileAccessLog struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // Types that are valid to be assigned to AccessLogFormat: + // *FileAccessLog_Format + // *FileAccessLog_JsonFormat + // *FileAccessLog_TypedJsonFormat + AccessLogFormat isFileAccessLog_AccessLogFormat `protobuf_oneof:"access_log_format"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileAccessLog) Reset() { *m = FileAccessLog{} } +func (m *FileAccessLog) String() string { return proto.CompactTextString(m) } +func (*FileAccessLog) ProtoMessage() {} +func (*FileAccessLog) Descriptor() ([]byte, []int) { + return fileDescriptor_b950f2ced354a07e, []int{0} +} + +func (m *FileAccessLog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileAccessLog.Unmarshal(m, b) +} +func (m *FileAccessLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileAccessLog.Marshal(b, m, deterministic) +} +func (m *FileAccessLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileAccessLog.Merge(m, src) +} +func (m *FileAccessLog) XXX_Size() int { + return xxx_messageInfo_FileAccessLog.Size(m) +} +func (m *FileAccessLog) XXX_DiscardUnknown() { + xxx_messageInfo_FileAccessLog.DiscardUnknown(m) +} + +var xxx_messageInfo_FileAccessLog proto.InternalMessageInfo + +func (m *FileAccessLog) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +type isFileAccessLog_AccessLogFormat interface { + isFileAccessLog_AccessLogFormat() +} + +type FileAccessLog_Format struct { + Format string `protobuf:"bytes,2,opt,name=format,proto3,oneof"` +} + +type FileAccessLog_JsonFormat struct { + JsonFormat *_struct.Struct `protobuf:"bytes,3,opt,name=json_format,json=jsonFormat,proto3,oneof"` +} + +type FileAccessLog_TypedJsonFormat struct { + TypedJsonFormat *_struct.Struct `protobuf:"bytes,4,opt,name=typed_json_format,json=typedJsonFormat,proto3,oneof"` +} + +func (*FileAccessLog_Format) isFileAccessLog_AccessLogFormat() {} + +func (*FileAccessLog_JsonFormat) isFileAccessLog_AccessLogFormat() {} + +func (*FileAccessLog_TypedJsonFormat) isFileAccessLog_AccessLogFormat() {} + +func (m *FileAccessLog) GetAccessLogFormat() isFileAccessLog_AccessLogFormat { + if m != nil { + return m.AccessLogFormat + } + return nil +} + +func (m *FileAccessLog) GetFormat() string { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_Format); ok { + return x.Format + } + return "" +} + +func (m *FileAccessLog) GetJsonFormat() *_struct.Struct { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_JsonFormat); ok { + return x.JsonFormat + } + return nil +} + +func (m *FileAccessLog) GetTypedJsonFormat() *_struct.Struct { + if x, ok := m.GetAccessLogFormat().(*FileAccessLog_TypedJsonFormat); ok { + return x.TypedJsonFormat + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FileAccessLog) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FileAccessLog_Format)(nil), + (*FileAccessLog_JsonFormat)(nil), + (*FileAccessLog_TypedJsonFormat)(nil), + } +} + +func init() { + proto.RegisterType((*FileAccessLog)(nil), "envoy.extensions.access_loggers.file.v3.FileAccessLog") +} + +func init() { + proto.RegisterFile("envoy/extensions/access_loggers/file/v3/file.proto", fileDescriptor_b950f2ced354a07e) +} + +var fileDescriptor_b950f2ced354a07e = []byte{ + // 352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x3d, 0x4f, 0x2a, 0x41, + 0x14, 0x65, 0xf7, 0x11, 0x5e, 0x18, 0xf2, 0xf2, 0x1e, 0xfb, 0x0a, 0x08, 0x7e, 0x04, 0x6d, 0xc4, + 0x66, 0x26, 0x81, 0xd8, 0xd0, 0xb9, 0x89, 0x84, 0x18, 0x0a, 0x82, 0x3f, 0x80, 0x0c, 0xcb, 0xec, + 0x38, 0x66, 0x9d, 0xbb, 0x99, 0x99, 0xdd, 0x40, 0x67, 0x69, 0xe5, 0x0f, 0xf0, 0xa7, 0xd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, 0x9b, 0x5c, 0xf8, 0xca, 0xe6, 0x1a, 0x57, 0x66, 0xa8, 0xa8, 0x1e, + 0x95, 0xdc, 0x0b, 0xd4, 0x34, 0xeb, 0x94, 0x2d, 0xe7, 0x9f, 0x15, 0xaa, 0xdf, 0x29, 0xfc, 0xb5, + 0x9c, 0xcb, 0x0f, 0x99, 0x21, 0x7e, 0x7c, 0xbe, 0x3f, 0x3c, 0x45, 0x6e, 0xe8, 0x11, 0xc8, 0x58, + 0x70, 0x37, 0xf0, 0x04, 0x38, 0xce, 0xfb, 0x78, 0x27, 0x69, 0xf8, 0x1f, 0x35, 0xb7, 0xeb, 0x70, + 0xb6, 0xe1, 0xe4, 0xe9, 0xee, 0xe5, 0xb5, 0xe6, 0xff, 0xf3, 0xd1, 0x99, 0x00, 0x6c, 0xa5, 0x52, + 0x05, 0xab, 0x35, 0xfe, 0xe1, 0x2a, 0xc3, 0x7a, 0x61, 0x32, 0x2d, 0xba, 0x9d, 0x7a, 0x8b, 0x9a, + 0x6d, 0x7b, 0xf0, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x89, 0xe8, 0x1f, 0x3d, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.validate.go new file mode 100644 index 000000000..f341fb647 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3/file.pb.validate.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/access_loggers/file/v3/file.proto + +package envoy_extensions_access_loggers_file_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _file_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FileAccessLog with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FileAccessLog) Validate() error { + if m == nil { + return nil + } + + if len(m.GetPath()) < 1 { + return FileAccessLogValidationError{ + field: "Path", + reason: "value length must be at least 1 bytes", + } + } + + switch m.AccessLogFormat.(type) { + + case *FileAccessLog_Format: + // no validation rules for Format + + case *FileAccessLog_JsonFormat: + + if v, ok := interface{}(m.GetJsonFormat()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileAccessLogValidationError{ + field: "JsonFormat", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FileAccessLog_TypedJsonFormat: + + if v, ok := interface{}(m.GetTypedJsonFormat()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FileAccessLogValidationError{ + field: "TypedJsonFormat", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FileAccessLogValidationError is the validation error returned by +// FileAccessLog.Validate if the designated constraints aren't met. +type FileAccessLogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FileAccessLogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FileAccessLogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FileAccessLogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FileAccessLogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FileAccessLogValidationError) ErrorName() string { return "FileAccessLogValidationError" } + +// Error satisfies the builtin error interface +func (e FileAccessLogValidationError) 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 %sFileAccessLog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FileAccessLogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FileAccessLogValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.go new file mode 100644 index 000000000..e078f0fcd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.go @@ -0,0 +1,253 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/access_loggers/grpc/v3/als.proto + +package envoy_extensions_access_loggers_grpc_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpGrpcAccessLogConfig struct { + CommonConfig *CommonGrpcAccessLogConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + AdditionalRequestHeadersToLog []string `protobuf:"bytes,2,rep,name=additional_request_headers_to_log,json=additionalRequestHeadersToLog,proto3" json:"additional_request_headers_to_log,omitempty"` + AdditionalResponseHeadersToLog []string `protobuf:"bytes,3,rep,name=additional_response_headers_to_log,json=additionalResponseHeadersToLog,proto3" json:"additional_response_headers_to_log,omitempty"` + AdditionalResponseTrailersToLog []string `protobuf:"bytes,4,rep,name=additional_response_trailers_to_log,json=additionalResponseTrailersToLog,proto3" json:"additional_response_trailers_to_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpGrpcAccessLogConfig) Reset() { *m = HttpGrpcAccessLogConfig{} } +func (m *HttpGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*HttpGrpcAccessLogConfig) ProtoMessage() {} +func (*HttpGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d3685c6e6be71fba, []int{0} +} + +func (m *HttpGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *HttpGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *HttpGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpGrpcAccessLogConfig.Merge(m, src) +} +func (m *HttpGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_HttpGrpcAccessLogConfig.Size(m) +} +func (m *HttpGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HttpGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *HttpGrpcAccessLogConfig) GetCommonConfig() *CommonGrpcAccessLogConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalRequestHeadersToLog() []string { + if m != nil { + return m.AdditionalRequestHeadersToLog + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalResponseHeadersToLog() []string { + if m != nil { + return m.AdditionalResponseHeadersToLog + } + return nil +} + +func (m *HttpGrpcAccessLogConfig) GetAdditionalResponseTrailersToLog() []string { + if m != nil { + return m.AdditionalResponseTrailersToLog + } + return nil +} + +type TcpGrpcAccessLogConfig struct { + CommonConfig *CommonGrpcAccessLogConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TcpGrpcAccessLogConfig) Reset() { *m = TcpGrpcAccessLogConfig{} } +func (m *TcpGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*TcpGrpcAccessLogConfig) ProtoMessage() {} +func (*TcpGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d3685c6e6be71fba, []int{1} +} + +func (m *TcpGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *TcpGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *TcpGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpGrpcAccessLogConfig.Merge(m, src) +} +func (m *TcpGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_TcpGrpcAccessLogConfig.Size(m) +} +func (m *TcpGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TcpGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *TcpGrpcAccessLogConfig) GetCommonConfig() *CommonGrpcAccessLogConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +type CommonGrpcAccessLogConfig struct { + LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` + GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + BufferFlushInterval *duration.Duration `protobuf:"bytes,3,opt,name=buffer_flush_interval,json=bufferFlushInterval,proto3" json:"buffer_flush_interval,omitempty"` + BufferSizeBytes *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=buffer_size_bytes,json=bufferSizeBytes,proto3" json:"buffer_size_bytes,omitempty"` + FilterStateObjectsToLog []string `protobuf:"bytes,5,rep,name=filter_state_objects_to_log,json=filterStateObjectsToLog,proto3" json:"filter_state_objects_to_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonGrpcAccessLogConfig) Reset() { *m = CommonGrpcAccessLogConfig{} } +func (m *CommonGrpcAccessLogConfig) String() string { return proto.CompactTextString(m) } +func (*CommonGrpcAccessLogConfig) ProtoMessage() {} +func (*CommonGrpcAccessLogConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d3685c6e6be71fba, []int{2} +} + +func (m *CommonGrpcAccessLogConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Unmarshal(m, b) +} +func (m *CommonGrpcAccessLogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Marshal(b, m, deterministic) +} +func (m *CommonGrpcAccessLogConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonGrpcAccessLogConfig.Merge(m, src) +} +func (m *CommonGrpcAccessLogConfig) XXX_Size() int { + return xxx_messageInfo_CommonGrpcAccessLogConfig.Size(m) +} +func (m *CommonGrpcAccessLogConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonGrpcAccessLogConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonGrpcAccessLogConfig proto.InternalMessageInfo + +func (m *CommonGrpcAccessLogConfig) GetLogName() string { + if m != nil { + return m.LogName + } + return "" +} + +func (m *CommonGrpcAccessLogConfig) GetGrpcService() *v3.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetBufferFlushInterval() *duration.Duration { + if m != nil { + return m.BufferFlushInterval + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetBufferSizeBytes() *wrappers.UInt32Value { + if m != nil { + return m.BufferSizeBytes + } + return nil +} + +func (m *CommonGrpcAccessLogConfig) GetFilterStateObjectsToLog() []string { + if m != nil { + return m.FilterStateObjectsToLog + } + return nil +} + +func init() { + proto.RegisterType((*HttpGrpcAccessLogConfig)(nil), "envoy.extensions.access_loggers.grpc.v3.HttpGrpcAccessLogConfig") + proto.RegisterType((*TcpGrpcAccessLogConfig)(nil), "envoy.extensions.access_loggers.grpc.v3.TcpGrpcAccessLogConfig") + proto.RegisterType((*CommonGrpcAccessLogConfig)(nil), "envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/access_loggers/grpc/v3/als.proto", fileDescriptor_d3685c6e6be71fba) +} + +var fileDescriptor_d3685c6e6be71fba = []byte{ + // 638 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0xcf, 0x4e, 0x14, 0x4d, + 0x14, 0xc5, 0xbf, 0xee, 0xe1, 0x6f, 0xc1, 0x17, 0xb1, 0x8d, 0x32, 0xa0, 0x20, 0x8c, 0x0b, 0x89, + 0x8b, 0x6a, 0x9d, 0x09, 0xd1, 0x10, 0x37, 0x34, 0x46, 0x07, 0x25, 0x48, 0x06, 0xd4, 0x65, 0xa7, + 0xa6, 0xe7, 0x4e, 0x53, 0xa6, 0xa6, 0xaa, 0xa9, 0xaa, 0x6e, 0x81, 0x95, 0x4b, 0xe3, 0x23, 0xf8, + 0x08, 0xc4, 0x27, 0x70, 0xad, 0x89, 0x5b, 0x5f, 0x87, 0x95, 0xa9, 0xaa, 0x46, 0x66, 0x84, 0x49, + 0x58, 0xba, 0x9b, 0xe9, 0x7b, 0xce, 0xef, 0xd6, 0xa9, 0xba, 0x17, 0x3d, 0x02, 0x5e, 0x88, 0xa3, + 0x10, 0x0e, 0x35, 0x70, 0x45, 0x05, 0x57, 0x21, 0x49, 0x12, 0x50, 0x2a, 0x66, 0x22, 0x4d, 0x41, + 0xaa, 0x30, 0x95, 0x59, 0x12, 0x16, 0x8d, 0x90, 0x30, 0x85, 0x33, 0x29, 0xb4, 0x08, 0xee, 0x5b, + 0x0b, 0x3e, 0xb7, 0xe0, 0x41, 0x0b, 0x36, 0x16, 0x5c, 0x34, 0xe6, 0x9d, 0x30, 0x4c, 0x04, 0xef, + 0xd2, 0x34, 0x4c, 0x84, 0x04, 0x03, 0x32, 0xd5, 0x58, 0x81, 0x2c, 0x68, 0x02, 0x8e, 0x38, 0xbf, + 0x98, 0x0a, 0x91, 0x32, 0x08, 0xed, 0xbf, 0x76, 0xde, 0x0d, 0x3b, 0xb9, 0x24, 0x9a, 0x0a, 0x3e, + 0xac, 0xfe, 0x41, 0x92, 0x2c, 0x33, 0xad, 0x5c, 0x7d, 0x21, 0xef, 0x64, 0x24, 0x24, 0x9c, 0x0b, + 0x6d, 0x6d, 0x2a, 0x54, 0x9a, 0xe8, 0xfc, 0xac, 0xbc, 0x7c, 0xa1, 0x5c, 0x80, 0x34, 0x27, 0xa7, + 0x3c, 0x2d, 0x25, 0xb3, 0x05, 0x61, 0xb4, 0x43, 0x34, 0x84, 0x67, 0x3f, 0x5c, 0xa1, 0x76, 0x52, + 0x41, 0xb3, 0x4d, 0xad, 0xb3, 0x17, 0x32, 0x4b, 0xd6, 0x6d, 0xcc, 0x2d, 0x91, 0x6e, 0xd8, 0x44, + 0xc1, 0x01, 0xfa, 0x3f, 0x11, 0xbd, 0x9e, 0xe0, 0xb1, 0x8b, 0x58, 0xf5, 0x96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26, 0xe4, 0x8e, 0xd7, 0x1e, 0xb3, 0x69, 0x1b, + 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xef, 0xa6, 0x70, 0xe9, 0x98, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.validate.go new file mode 100644 index 000000000..4fd58d991 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3/als.pb.validate.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/access_loggers/grpc/v3/als.proto + +package envoy_extensions_access_loggers_grpc_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _als_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HttpGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return HttpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpGrpcAccessLogConfigValidationError is the validation error returned by +// HttpGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type HttpGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpGrpcAccessLogConfigValidationError) ErrorName() string { + return "HttpGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e HttpGrpcAccessLogConfigValidationError) 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 %sHttpGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpGrpcAccessLogConfigValidationError{} + +// Validate checks the field values on TcpGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TcpGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TcpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TcpGrpcAccessLogConfigValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TcpGrpcAccessLogConfigValidationError is the validation error returned by +// TcpGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type TcpGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TcpGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TcpGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TcpGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TcpGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TcpGrpcAccessLogConfigValidationError) ErrorName() string { + return "TcpGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e TcpGrpcAccessLogConfigValidationError) 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 %sTcpGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TcpGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TcpGrpcAccessLogConfigValidationError{} + +// Validate checks the field values on CommonGrpcAccessLogConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommonGrpcAccessLogConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogName()) < 1 { + return CommonGrpcAccessLogConfigValidationError{ + field: "LogName", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetGrpcService() == nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if d := m.GetBufferFlushInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferFlushInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferFlushInterval", + reason: "value must be greater than 0s", + } + } + + } + + if v, ok := interface{}(m.GetBufferSizeBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonGrpcAccessLogConfigValidationError{ + field: "BufferSizeBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CommonGrpcAccessLogConfigValidationError is the validation error returned by +// CommonGrpcAccessLogConfig.Validate if the designated constraints aren't met. +type CommonGrpcAccessLogConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonGrpcAccessLogConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonGrpcAccessLogConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonGrpcAccessLogConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonGrpcAccessLogConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonGrpcAccessLogConfigValidationError) ErrorName() string { + return "CommonGrpcAccessLogConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonGrpcAccessLogConfigValidationError) 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 %sCommonGrpcAccessLogConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonGrpcAccessLogConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonGrpcAccessLogConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.go new file mode 100644 index 000000000..a6a0d1aba --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/clusters/aggregate/v3/cluster.proto + +package envoy_extensions_clusters_aggregate_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClusterConfig struct { + Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } +func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } +func (*ClusterConfig) ProtoMessage() {} +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5ae3cad0578885b3, []int{0} +} + +func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) +} +func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) +} +func (m *ClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterConfig.Merge(m, src) +} +func (m *ClusterConfig) XXX_Size() int { + return xxx_messageInfo_ClusterConfig.Size(m) +} +func (m *ClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo + +func (m *ClusterConfig) GetClusters() []string { + if m != nil { + return m.Clusters + } + return nil +} + +func init() { + proto.RegisterType((*ClusterConfig)(nil), "envoy.extensions.clusters.aggregate.v3.ClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/clusters/aggregate/v3/cluster.proto", fileDescriptor_5ae3cad0578885b3) +} + +var fileDescriptor_5ae3cad0578885b3 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xce, 0x29, + 0x2d, 0x2e, 0x49, 0x2d, 0x2a, 0xd6, 0x4f, 0x4c, 0x4f, 0x2f, 0x4a, 0x4d, 0x4f, 0x2c, 0x49, 0xd5, + 0x2f, 0x33, 0x86, 0x89, 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0xa9, 0x81, 0x75, 0xe9, 0x21, + 0x74, 0xe9, 0xc1, 0x74, 0xe9, 0xc1, 0x75, 0xe9, 0x95, 0x19, 0x4b, 0xc9, 0x96, 0xa6, 0x14, 0x24, + 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x80, 0x4d, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, + 0x86, 0x18, 0x23, 0xa5, 0x88, 0x21, 0x5d, 0x96, 0x5a, 0x04, 0x32, 0x2f, 0x33, 0x2f, 0x1d, 0xaa, + 0x44, 0xbc, 0x2c, 0x31, 0x27, 0x33, 0x05, 0xec, 0x08, 0x28, 0x03, 0x22, 0xa1, 0x54, 0xc4, 0xc5, + 0xeb, 0x0c, 0xb1, 0xd3, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x48, 0x85, 0x8b, 0x03, 0xe6, 0x08, + 0x09, 0x46, 0x05, 0x66, 0x0d, 0x4e, 0x27, 0x8e, 0x5f, 0x4e, 0xac, 0x93, 0x18, 0x99, 0x38, 0x18, + 0x83, 0xe0, 0x32, 0x56, 0xd6, 0xb3, 0x8e, 0x76, 0xc8, 0x99, 0x41, 0xbd, 0xad, 0x97, 0x0c, 0xd6, + 0x0a, 0x73, 0x3c, 0xb2, 0xdb, 0x8d, 0x12, 0x73, 0x0a, 0x32, 0x12, 0xf5, 0x50, 0xac, 0x70, 0xf2, + 0xdb, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, 0x00, 0x13, 0x97, 0x49, 0x66, 0xbe, 0x1e, 0xd8, 0x88, + 0x82, 0xa2, 0xfc, 0x8a, 0x4a, 0x3d, 0xe2, 0x82, 0xc3, 0x89, 0x07, 0x6a, 0x5c, 0x00, 0xc8, 0x07, + 0x01, 0x8c, 0x49, 0x6c, 0x60, 0xaf, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x98, 0xda, + 0x07, 0x85, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.validate.go new file mode 100644 index 000000000..425873163 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3/cluster.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/clusters/aggregate/v3/cluster.proto + +package envoy_extensions_clusters_aggregate_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClusterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return ClusterConfigValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + return nil +} + +// ClusterConfigValidationError is the validation error returned by +// ClusterConfig.Validate if the designated constraints aren't met. +type ClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterConfigValidationError) ErrorName() string { return "ClusterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterConfigValidationError) 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 %sClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.go new file mode 100644 index 000000000..cc6e3b9ac --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.go @@ -0,0 +1,94 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.proto + +package envoy_extensions_clusters_dynamic_forward_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClusterConfig struct { + DnsCacheConfig *v3.DnsCacheConfig `protobuf:"bytes,1,opt,name=dns_cache_config,json=dnsCacheConfig,proto3" json:"dns_cache_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } +func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } +func (*ClusterConfig) ProtoMessage() {} +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5e2f35129a7471fd, []int{0} +} + +func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) +} +func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) +} +func (m *ClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterConfig.Merge(m, src) +} +func (m *ClusterConfig) XXX_Size() int { + return xxx_messageInfo_ClusterConfig.Size(m) +} +func (m *ClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo + +func (m *ClusterConfig) GetDnsCacheConfig() *v3.DnsCacheConfig { + if m != nil { + return m.DnsCacheConfig + } + return nil +} + +func init() { + proto.RegisterType((*ClusterConfig)(nil), "envoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.proto", fileDescriptor_5e2f35129a7471fd) +} + +var fileDescriptor_5e2f35129a7471fd = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xce, 0x29, + 0x2d, 0x2e, 0x49, 0x2d, 0x2a, 0xd6, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, 0x4c, 0x8e, 0x4f, 0xcb, + 0x2f, 0x2a, 0x4f, 0x2c, 0x4a, 0x89, 0x2f, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x2f, 0x33, 0x86, 0xa9, + 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x32, 0x02, 0x9b, 0xa0, 0x87, 0x30, 0x41, 0x0f, 0x66, + 0x82, 0x1e, 0x56, 0x13, 0xf4, 0xca, 0x8c, 0xa5, 0xb0, 0xd8, 0x9a, 0x9f, 0x9b, 0x9b, 0x9f, 0x87, + 0xdb, 0xce, 0x94, 0xbc, 0xe2, 0xf8, 0xe4, 0xc4, 0xe4, 0x8c, 0x54, 0x88, 0xad, 0x52, 0xb2, 0xa5, + 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89, 0x25, 0x60, 0x13, 0x8a, 0x4b, 0x12, + 0x4b, 0x4a, 0x8b, 0xa1, 0xd2, 0x8a, 0x18, 0xd2, 0x65, 0xa9, 0x45, 0x20, 0x9b, 0x32, 0xf3, 0xd2, + 0xa1, 0x4a, 0xc4, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x84, + 0xd2, 0x39, 0x46, 0x2e, 0x5e, 0x67, 0x88, 0x17, 0x9c, 0xf3, 0xf3, 0xd2, 0x32, 0xd3, 0x85, 0x4a, + 0xb8, 0x04, 0xe0, 0xf6, 0xc7, 0x27, 0x83, 0xc5, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x1c, + 0xf4, 0x30, 0x7d, 0x0f, 0xf6, 0x09, 0x4e, 0xbf, 0xeb, 0xb9, 0xe4, 0x15, 0x3b, 0x83, 0x0c, 0x82, + 0x98, 0xed, 0xc4, 0xf1, 0xcb, 0x89, 0xb5, 0x8b, 0x91, 0x49, 0x80, 0x31, 0x88, 0x2f, 0x05, 0x45, + 0xc6, 0xca, 0x7d, 0xd6, 0xd1, 0x0e, 0x39, 0x27, 0x68, 0x0c, 0xe9, 0x41, 0xac, 0x85, 0x85, 0x2d, + 0x2e, 0xe3, 0x8d, 0x12, 0x73, 0x0a, 0x32, 0x12, 0xf5, 0x50, 0x9c, 0xef, 0x14, 0xb5, 0xab, 0xe1, + 0xc4, 0x45, 0x36, 0x26, 0x01, 0x26, 0x2e, 0x87, 0xcc, 0x7c, 0x88, 0x83, 0x21, 0xca, 0x49, 0x8f, + 0x39, 0x27, 0x1e, 0xa8, 0xd1, 0x01, 0xa0, 0xa0, 0x0a, 0x60, 0x4c, 0x62, 0x03, 0x87, 0x99, 0x31, + 0x20, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xd8, 0x96, 0x48, 0x48, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.validate.go new file mode 100644 index 000000000..eb3a6f11c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.pb.validate.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/clusters/dynamic_forward_proxy/v3/cluster.proto + +package envoy_extensions_clusters_dynamic_forward_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClusterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClusterConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetDnsCacheConfig() == nil { + return ClusterConfigValidationError{ + field: "DnsCacheConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetDnsCacheConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterConfigValidationError{ + field: "DnsCacheConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ClusterConfigValidationError is the validation error returned by +// ClusterConfig.Validate if the designated constraints aren't met. +type ClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterConfigValidationError) ErrorName() string { return "ClusterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClusterConfigValidationError) 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 %sClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.go new file mode 100644 index 000000000..f4c46328b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/clusters/redis/v3/redis_cluster.proto + +package envoy_extensions_clusters_redis_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RedisClusterConfig struct { + ClusterRefreshRate *duration.Duration `protobuf:"bytes,1,opt,name=cluster_refresh_rate,json=clusterRefreshRate,proto3" json:"cluster_refresh_rate,omitempty"` + ClusterRefreshTimeout *duration.Duration `protobuf:"bytes,2,opt,name=cluster_refresh_timeout,json=clusterRefreshTimeout,proto3" json:"cluster_refresh_timeout,omitempty"` + RedirectRefreshInterval *duration.Duration `protobuf:"bytes,3,opt,name=redirect_refresh_interval,json=redirectRefreshInterval,proto3" json:"redirect_refresh_interval,omitempty"` + RedirectRefreshThreshold *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=redirect_refresh_threshold,json=redirectRefreshThreshold,proto3" json:"redirect_refresh_threshold,omitempty"` + FailureRefreshThreshold uint32 `protobuf:"varint,5,opt,name=failure_refresh_threshold,json=failureRefreshThreshold,proto3" json:"failure_refresh_threshold,omitempty"` + HostDegradedRefreshThreshold uint32 `protobuf:"varint,6,opt,name=host_degraded_refresh_threshold,json=hostDegradedRefreshThreshold,proto3" json:"host_degraded_refresh_threshold,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisClusterConfig) Reset() { *m = RedisClusterConfig{} } +func (m *RedisClusterConfig) String() string { return proto.CompactTextString(m) } +func (*RedisClusterConfig) ProtoMessage() {} +func (*RedisClusterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a099f1843e1ee744, []int{0} +} + +func (m *RedisClusterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisClusterConfig.Unmarshal(m, b) +} +func (m *RedisClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisClusterConfig.Marshal(b, m, deterministic) +} +func (m *RedisClusterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisClusterConfig.Merge(m, src) +} +func (m *RedisClusterConfig) XXX_Size() int { + return xxx_messageInfo_RedisClusterConfig.Size(m) +} +func (m *RedisClusterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RedisClusterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisClusterConfig proto.InternalMessageInfo + +func (m *RedisClusterConfig) GetClusterRefreshRate() *duration.Duration { + if m != nil { + return m.ClusterRefreshRate + } + return nil +} + +func (m *RedisClusterConfig) GetClusterRefreshTimeout() *duration.Duration { + if m != nil { + return m.ClusterRefreshTimeout + } + return nil +} + +func (m *RedisClusterConfig) GetRedirectRefreshInterval() *duration.Duration { + if m != nil { + return m.RedirectRefreshInterval + } + return nil +} + +func (m *RedisClusterConfig) GetRedirectRefreshThreshold() *wrappers.UInt32Value { + if m != nil { + return m.RedirectRefreshThreshold + } + return nil +} + +func (m *RedisClusterConfig) GetFailureRefreshThreshold() uint32 { + if m != nil { + return m.FailureRefreshThreshold + } + return 0 +} + +func (m *RedisClusterConfig) GetHostDegradedRefreshThreshold() uint32 { + if m != nil { + return m.HostDegradedRefreshThreshold + } + return 0 +} + +func init() { + proto.RegisterType((*RedisClusterConfig)(nil), "envoy.extensions.clusters.redis.v3.RedisClusterConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/clusters/redis/v3/redis_cluster.proto", fileDescriptor_a099f1843e1ee744) +} + +var fileDescriptor_a099f1843e1ee744 = []byte{ + // 441 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xbf, 0x6f, 0xd4, 0x30, + 0x14, 0xc7, 0xc9, 0xd1, 0x9e, 0x90, 0x11, 0x12, 0x58, 0xa0, 0xcb, 0x55, 0xa5, 0x94, 0x4e, 0x15, + 0x12, 0x36, 0xea, 0x21, 0x86, 0x8e, 0xd7, 0x32, 0x74, 0xa2, 0x8a, 0x7a, 0x0c, 0x30, 0x9c, 0xdc, + 0xf3, 0xbb, 0x9c, 0xa5, 0x60, 0x47, 0xf6, 0x73, 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0xd3, 0x76, 0x60, 0xa7, 0xd9, 0xf9, 0x30, 0x4c, 0x6e, 0xf2, 0x2b, 0x00, 0x00, 0xff, + 0xff, 0x49, 0x33, 0xc8, 0x44, 0x87, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.validate.go new file mode 100644 index 000000000..7351bd1ed --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3/redis_cluster.pb.validate.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/clusters/redis/v3/redis_cluster.proto + +package envoy_extensions_clusters_redis_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _redis_cluster_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RedisClusterConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisClusterConfig) Validate() error { + if m == nil { + return nil + } + + if d := m.GetClusterRefreshRate(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshRate", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshRate", + reason: "value must be greater than 0s", + } + } + + } + + if d := m.GetClusterRefreshTimeout(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshTimeout", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return RedisClusterConfigValidationError{ + field: "ClusterRefreshTimeout", + reason: "value must be greater than 0s", + } + } + + } + + if v, ok := interface{}(m.GetRedirectRefreshInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisClusterConfigValidationError{ + field: "RedirectRefreshInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRedirectRefreshThreshold()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisClusterConfigValidationError{ + field: "RedirectRefreshThreshold", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureRefreshThreshold + + // no validation rules for HostDegradedRefreshThreshold + + return nil +} + +// RedisClusterConfigValidationError is the validation error returned by +// RedisClusterConfig.Validate if the designated constraints aren't met. +type RedisClusterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisClusterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisClusterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisClusterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisClusterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisClusterConfigValidationError) ErrorName() string { + return "RedisClusterConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisClusterConfigValidationError) 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 %sRedisClusterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisClusterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisClusterConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.go new file mode 100644 index 000000000..35b89c109 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.proto + +package envoy_extensions_common_dynamic_forward_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsCacheConfig struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DnsLookupFamily v3.Cluster_DnsLookupFamily `protobuf:"varint,2,opt,name=dns_lookup_family,json=dnsLookupFamily,proto3,enum=envoy.config.cluster.v3.Cluster_DnsLookupFamily" json:"dns_lookup_family,omitempty"` + DnsRefreshRate *duration.Duration `protobuf:"bytes,3,opt,name=dns_refresh_rate,json=dnsRefreshRate,proto3" json:"dns_refresh_rate,omitempty"` + HostTtl *duration.Duration `protobuf:"bytes,4,opt,name=host_ttl,json=hostTtl,proto3" json:"host_ttl,omitempty"` + MaxHosts *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=max_hosts,json=maxHosts,proto3" json:"max_hosts,omitempty"` + DnsFailureRefreshRate *v3.Cluster_RefreshRate `protobuf:"bytes,6,opt,name=dns_failure_refresh_rate,json=dnsFailureRefreshRate,proto3" json:"dns_failure_refresh_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsCacheConfig) Reset() { *m = DnsCacheConfig{} } +func (m *DnsCacheConfig) String() string { return proto.CompactTextString(m) } +func (*DnsCacheConfig) ProtoMessage() {} +func (*DnsCacheConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f57893b6dd868364, []int{0} +} + +func (m *DnsCacheConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsCacheConfig.Unmarshal(m, b) +} +func (m *DnsCacheConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsCacheConfig.Marshal(b, m, deterministic) +} +func (m *DnsCacheConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsCacheConfig.Merge(m, src) +} +func (m *DnsCacheConfig) XXX_Size() int { + return xxx_messageInfo_DnsCacheConfig.Size(m) +} +func (m *DnsCacheConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsCacheConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsCacheConfig proto.InternalMessageInfo + +func (m *DnsCacheConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DnsCacheConfig) GetDnsLookupFamily() v3.Cluster_DnsLookupFamily { + if m != nil { + return m.DnsLookupFamily + } + return v3.Cluster_AUTO +} + +func (m *DnsCacheConfig) GetDnsRefreshRate() *duration.Duration { + if m != nil { + return m.DnsRefreshRate + } + return nil +} + +func (m *DnsCacheConfig) GetHostTtl() *duration.Duration { + if m != nil { + return m.HostTtl + } + return nil +} + +func (m *DnsCacheConfig) GetMaxHosts() *wrappers.UInt32Value { + if m != nil { + return m.MaxHosts + } + return nil +} + +func (m *DnsCacheConfig) GetDnsFailureRefreshRate() *v3.Cluster_RefreshRate { + if m != nil { + return m.DnsFailureRefreshRate + } + return nil +} + +func init() { + proto.RegisterType((*DnsCacheConfig)(nil), "envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.proto", fileDescriptor_f57893b6dd868364) +} + +var fileDescriptor_f57893b6dd868364 = []byte{ + // 523 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0x97, 0xd0, 0x75, 0x6d, 0x80, 0x52, 0x22, 0x21, 0xc2, 0x80, 0xa9, 0x20, 0x21, 0x55, + 0x13, 0xb2, 0xa7, 0xf6, 0x86, 0xc4, 0x84, 0xd2, 0x6a, 0x80, 0xc4, 0x61, 0x44, 0x80, 0xc4, 0x29, + 0xfa, 0x96, 0x38, 0x6d, 0x44, 0x62, 0x47, 0xb6, 0x93, 0xb5, 0x37, 0x84, 0x38, 0xf0, 0x0c, 0x88, + 0x27, 0xd8, 0x23, 0x70, 0xe2, 0x82, 0xc4, 0x95, 0xd7, 0xe9, 0x09, 0xd9, 0x4e, 0x60, 0xd5, 0x80, + 0x69, 0x37, 0xdb, 0x9f, 0xff, 0x3f, 0xfb, 0xfb, 0xc9, 0x76, 0x9e, 0x10, 0x5a, 0xb1, 0x25, 0x26, + 0x0b, 0x49, 0xa8, 0x48, 0x19, 0x15, 0x38, 0x62, 0x79, 0xce, 0x28, 0x8e, 0x97, 0x14, 0xf2, 0x34, + 0x0a, 0x13, 0xc6, 0x8f, 0x81, 0xc7, 0x61, 0xc1, 0xd9, 0x62, 0x89, 0xab, 0x31, 0x8e, 0xa9, 0x08, + 0x23, 0x88, 0xe6, 0x04, 0x15, 0x9c, 0x49, 0xe6, 0xee, 0x69, 0x02, 0xfa, 0x43, 0x40, 0x86, 0x80, + 0xfe, 0x4a, 0x40, 0xd5, 0x78, 0xfb, 0x81, 0x39, 0x33, 0x62, 0x34, 0x49, 0x67, 0x38, 0xca, 0x4a, + 0x21, 0x09, 0x57, 0xe8, 0x7a, 0x68, 0xc0, 0xdb, 0x3b, 0x33, 0xc6, 0x66, 0x19, 0xc1, 0x7a, 0x76, + 0x54, 0x26, 0x38, 0x2e, 0x39, 0xc8, 0x94, 0xd1, 0x7f, 0xd5, 0x8f, 0x39, 0x14, 0x05, 0xe1, 0xa2, + 0xae, 0xdf, 0x2d, 0xe3, 0x02, 0x30, 0x50, 0xca, 0xa4, 0x8e, 0x09, 0x2c, 0x24, 0xc8, 0xb2, 0x29, + 0xdf, 0x3b, 0x53, 0xae, 0x08, 0x57, 0x0d, 0xa4, 0x74, 0x56, 0x6f, 0xb9, 0x59, 0x41, 0x96, 0xc6, + 0x20, 0x09, 0x6e, 0x06, 0xa6, 0x70, 0xff, 0x4b, 0xcb, 0xe9, 0x4d, 0xa9, 0x98, 0x28, 0x0d, 0x13, + 0xdd, 0x86, 0x7b, 0xdb, 0x69, 0x51, 0xc8, 0x89, 0x67, 0x0d, 0xac, 0x61, 0xd7, 0xdf, 0x5a, 0xf9, + 0x2d, 0x6e, 0x0f, 0xac, 0x40, 0x2f, 0xba, 0x89, 0x73, 0x5d, 0x69, 0xcb, 0x18, 0x7b, 0x57, 0x16, + 0x61, 0x02, 0x79, 0x9a, 0x2d, 0x3d, 0x7b, 0x60, 0x0d, 0x7b, 0xa3, 0x3d, 0x64, 0xfc, 0x19, 0x1b, + 0xa8, 0x51, 0x50, 0x8d, 0xd1, 0xa4, 0x1e, 0x4e, 0xa9, 0x78, 0xa1, 0x83, 0x07, 0x3a, 0xe7, 0x77, + 0x56, 0xfe, 0xe6, 0x07,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0x53, 0x66, 0x6e, 0x66, 0xf6, 0x5f, 0xf4, 0xab, + 0xf8, 0x57, 0x1b, 0xf2, 0xa1, 0x52, 0x75, 0x68, 0x1d, 0xb5, 0xb5, 0xb3, 0xf1, 0xaf, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x9e, 0x1e, 0x72, 0xc8, 0xb8, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.validate.go new file mode 100644 index 000000000..1261e4863 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.validate.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.proto + +package envoy_extensions_common_dynamic_forward_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + v3 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = v3.Cluster_DnsLookupFamily(0) +) + +// define the regex for a UUID once up-front +var _dns_cache_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsCacheConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DnsCacheConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return DnsCacheConfigValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := v3.Cluster_DnsLookupFamily_name[int32(m.GetDnsLookupFamily())]; !ok { + return DnsCacheConfigValidationError{ + field: "DnsLookupFamily", + reason: "value must be one of the defined enum values", + } + } + + if d := m.GetDnsRefreshRate(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsCacheConfigValidationError{ + field: "DnsRefreshRate", + reason: "value is not a valid duration", + cause: err, + } + } + + gte := time.Duration(0*time.Second + 1000000*time.Nanosecond) + + if dur < gte { + return DnsCacheConfigValidationError{ + field: "DnsRefreshRate", + reason: "value must be greater than or equal to 1ms", + } + } + + } + + if d := m.GetHostTtl(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return DnsCacheConfigValidationError{ + field: "HostTtl", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return DnsCacheConfigValidationError{ + field: "HostTtl", + reason: "value must be greater than 0s", + } + } + + } + + if wrapper := m.GetMaxHosts(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return DnsCacheConfigValidationError{ + field: "MaxHosts", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetDnsFailureRefreshRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsCacheConfigValidationError{ + field: "DnsFailureRefreshRate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DnsCacheConfigValidationError is the validation error returned by +// DnsCacheConfig.Validate if the designated constraints aren't met. +type DnsCacheConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsCacheConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsCacheConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsCacheConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsCacheConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsCacheConfigValidationError) ErrorName() string { return "DnsCacheConfigValidationError" } + +// Error satisfies the builtin error interface +func (e DnsCacheConfigValidationError) 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 %sDnsCacheConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsCacheConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsCacheConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.go new file mode 100644 index 000000000..d6d73b556 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/common/ratelimit/v3/ratelimit.proto + +package envoy_extensions_common_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitDescriptor struct { + Entries []*RateLimitDescriptor_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitDescriptor) Reset() { *m = RateLimitDescriptor{} } +func (m *RateLimitDescriptor) String() string { return proto.CompactTextString(m) } +func (*RateLimitDescriptor) ProtoMessage() {} +func (*RateLimitDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_584c20cb6057baa4, []int{0} +} + +func (m *RateLimitDescriptor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitDescriptor.Unmarshal(m, b) +} +func (m *RateLimitDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitDescriptor.Marshal(b, m, deterministic) +} +func (m *RateLimitDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitDescriptor.Merge(m, src) +} +func (m *RateLimitDescriptor) XXX_Size() int { + return xxx_messageInfo_RateLimitDescriptor.Size(m) +} +func (m *RateLimitDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitDescriptor proto.InternalMessageInfo + +func (m *RateLimitDescriptor) GetEntries() []*RateLimitDescriptor_Entry { + if m != nil { + return m.Entries + } + return nil +} + +type RateLimitDescriptor_Entry struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitDescriptor_Entry) Reset() { *m = RateLimitDescriptor_Entry{} } +func (m *RateLimitDescriptor_Entry) String() string { return proto.CompactTextString(m) } +func (*RateLimitDescriptor_Entry) ProtoMessage() {} +func (*RateLimitDescriptor_Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_584c20cb6057baa4, []int{0, 0} +} + +func (m *RateLimitDescriptor_Entry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitDescriptor_Entry.Unmarshal(m, b) +} +func (m *RateLimitDescriptor_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitDescriptor_Entry.Marshal(b, m, deterministic) +} +func (m *RateLimitDescriptor_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitDescriptor_Entry.Merge(m, src) +} +func (m *RateLimitDescriptor_Entry) XXX_Size() int { + return xxx_messageInfo_RateLimitDescriptor_Entry.Size(m) +} +func (m *RateLimitDescriptor_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitDescriptor_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitDescriptor_Entry proto.InternalMessageInfo + +func (m *RateLimitDescriptor_Entry) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *RateLimitDescriptor_Entry) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func init() { + proto.RegisterType((*RateLimitDescriptor)(nil), "envoy.extensions.common.ratelimit.v3.RateLimitDescriptor") + proto.RegisterType((*RateLimitDescriptor_Entry)(nil), "envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.Entry") +} + +func init() { + proto.RegisterFile("envoy/extensions/common/ratelimit/v3/ratelimit.proto", fileDescriptor_584c20cb6057baa4) +} + +var fileDescriptor_584c20cb6057baa4 = []byte{ + // 322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x4a, 0x33, 0x31, + 0x14, 0xc5, 0xc9, 0xf4, 0xeb, 0x9f, 0x2f, 0x82, 0xc8, 0xb8, 0xb0, 0x16, 0x2a, 0x55, 0x5c, 0x14, + 0x91, 0x44, 0xa7, 0x82, 0xd0, 0x8d, 0x10, 0x74, 0x27, 0x52, 0xe6, 0x0d, 0x62, 0x7b, 0x91, 0x60, + 0x9b, 0x0c, 0xc9, 0x6d, 0xe8, 0xb8, 0x72, 0xe9, 0xda, 0xa5, 0x6f, 0xe0, 0x2b, 0xb8, 0x17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8, 0xbb, 0x18, 0xb6, 0xfd, 0xd3, 0xa7, 0xd7, 0x87, 0x9d, 0x84, 0x1e, + 0x85, 0x70, 0x32, 0x53, 0xcc, 0x27, 0x5f, 0x12, 0xfd, 0x19, 0xa7, 0x7f, 0x5c, 0x18, 0x0f, 0xe9, + 0xc1, 0xea, 0x46, 0x71, 0xf5, 0x72, 0xff, 0xf6, 0x5e, 0x8b, 0x36, 0x22, 0x9a, 0x28, 0x13, 0xea, + 0xc8, 0xac, 0x99, 0xe5, 0x2b, 0x35, 0x23, 0xd6, 0xd3, 0xc5, 0x34, 0x28, 0x9a, 0x1f, 0x90, 0xeb, + 0x5a, 0xf9, 0x04, 0xbd, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x45, 0x24, 0x54, 0x3b, 0x02, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.validate.go new file mode 100644 index 000000000..066ecea9c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3/ratelimit.pb.validate.go @@ -0,0 +1,207 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/common/ratelimit/v3/ratelimit.proto + +package envoy_extensions_common_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ratelimit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitDescriptor with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitDescriptor) Validate() error { + if m == nil { + return nil + } + + if len(m.GetEntries()) < 1 { + return RateLimitDescriptorValidationError{ + field: "Entries", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetEntries() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitDescriptorValidationError{ + field: fmt.Sprintf("Entries[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RateLimitDescriptorValidationError is the validation error returned by +// RateLimitDescriptor.Validate if the designated constraints aren't met. +type RateLimitDescriptorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitDescriptorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitDescriptorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitDescriptorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitDescriptorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitDescriptorValidationError) ErrorName() string { + return "RateLimitDescriptorValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitDescriptorValidationError) 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 %sRateLimitDescriptor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitDescriptorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitDescriptorValidationError{} + +// Validate checks the field values on RateLimitDescriptor_Entry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitDescriptor_Entry) Validate() error { + if m == nil { + return nil + } + + if len(m.GetKey()) < 1 { + return RateLimitDescriptor_EntryValidationError{ + field: "Key", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetValue()) < 1 { + return RateLimitDescriptor_EntryValidationError{ + field: "Value", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// RateLimitDescriptor_EntryValidationError is the validation error returned by +// RateLimitDescriptor_Entry.Validate if the designated constraints aren't met. +type RateLimitDescriptor_EntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitDescriptor_EntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitDescriptor_EntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitDescriptor_EntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitDescriptor_EntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitDescriptor_EntryValidationError) ErrorName() string { + return "RateLimitDescriptor_EntryValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitDescriptor_EntryValidationError) 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 %sRateLimitDescriptor_Entry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitDescriptor_EntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitDescriptor_EntryValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.go new file mode 100644 index 000000000..5261e6c5a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.go @@ -0,0 +1,249 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/common/tap/v3/common.proto + +package envoy_extensions_common_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/tap/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CommonExtensionConfig struct { + // Types that are valid to be assigned to ConfigType: + // *CommonExtensionConfig_AdminConfig + // *CommonExtensionConfig_StaticConfig + // *CommonExtensionConfig_TapdsConfig + ConfigType isCommonExtensionConfig_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonExtensionConfig) Reset() { *m = CommonExtensionConfig{} } +func (m *CommonExtensionConfig) String() string { return proto.CompactTextString(m) } +func (*CommonExtensionConfig) ProtoMessage() {} +func (*CommonExtensionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d29738d4c8661d41, []int{0} +} + +func (m *CommonExtensionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonExtensionConfig.Unmarshal(m, b) +} +func (m *CommonExtensionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonExtensionConfig.Marshal(b, m, deterministic) +} +func (m *CommonExtensionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonExtensionConfig.Merge(m, src) +} +func (m *CommonExtensionConfig) XXX_Size() int { + return xxx_messageInfo_CommonExtensionConfig.Size(m) +} +func (m *CommonExtensionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonExtensionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonExtensionConfig proto.InternalMessageInfo + +type isCommonExtensionConfig_ConfigType interface { + isCommonExtensionConfig_ConfigType() +} + +type CommonExtensionConfig_AdminConfig struct { + AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"` +} + +type CommonExtensionConfig_StaticConfig struct { + StaticConfig *v3.TapConfig `protobuf:"bytes,2,opt,name=static_config,json=staticConfig,proto3,oneof"` +} + +type CommonExtensionConfig_TapdsConfig struct { + TapdsConfig *CommonExtensionConfig_TapDSConfig `protobuf:"bytes,3,opt,name=tapds_config,json=tapdsConfig,proto3,oneof"` +} + +func (*CommonExtensionConfig_AdminConfig) isCommonExtensionConfig_ConfigType() {} + +func (*CommonExtensionConfig_StaticConfig) isCommonExtensionConfig_ConfigType() {} + +func (*CommonExtensionConfig_TapdsConfig) isCommonExtensionConfig_ConfigType() {} + +func (m *CommonExtensionConfig) GetConfigType() isCommonExtensionConfig_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +func (m *CommonExtensionConfig) GetAdminConfig() *AdminConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_AdminConfig); ok { + return x.AdminConfig + } + return nil +} + +func (m *CommonExtensionConfig) GetStaticConfig() *v3.TapConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_StaticConfig); ok { + return x.StaticConfig + } + return nil +} + +func (m *CommonExtensionConfig) GetTapdsConfig() *CommonExtensionConfig_TapDSConfig { + if x, ok := m.GetConfigType().(*CommonExtensionConfig_TapdsConfig); ok { + return x.TapdsConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CommonExtensionConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CommonExtensionConfig_AdminConfig)(nil), + (*CommonExtensionConfig_StaticConfig)(nil), + (*CommonExtensionConfig_TapdsConfig)(nil), + } +} + +type CommonExtensionConfig_TapDSConfig struct { + ConfigSource *v31.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonExtensionConfig_TapDSConfig) Reset() { *m = CommonExtensionConfig_TapDSConfig{} } +func (m *CommonExtensionConfig_TapDSConfig) String() string { return proto.CompactTextString(m) } +func (*CommonExtensionConfig_TapDSConfig) ProtoMessage() {} +func (*CommonExtensionConfig_TapDSConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d29738d4c8661d41, []int{0, 0} +} + +func (m *CommonExtensionConfig_TapDSConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Unmarshal(m, b) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Marshal(b, m, deterministic) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Merge(m, src) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_Size() int { + return xxx_messageInfo_CommonExtensionConfig_TapDSConfig.Size(m) +} +func (m *CommonExtensionConfig_TapDSConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommonExtensionConfig_TapDSConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonExtensionConfig_TapDSConfig proto.InternalMessageInfo + +func (m *CommonExtensionConfig_TapDSConfig) GetConfigSource() *v31.ConfigSource { + if m != nil { + return m.ConfigSource + } + return nil +} + +func (m *CommonExtensionConfig_TapDSConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type AdminConfig struct { + ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdminConfig) Reset() { *m = AdminConfig{} } +func (m *AdminConfig) String() string { return proto.CompactTextString(m) } +func (*AdminConfig) ProtoMessage() {} +func (*AdminConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d29738d4c8661d41, []int{1} +} + +func (m *AdminConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdminConfig.Unmarshal(m, b) +} +func (m *AdminConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdminConfig.Marshal(b, m, deterministic) +} +func (m *AdminConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminConfig.Merge(m, src) +} +func (m *AdminConfig) XXX_Size() int { + return xxx_messageInfo_AdminConfig.Size(m) +} +func (m *AdminConfig) XXX_DiscardUnknown() { + xxx_messageInfo_AdminConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_AdminConfig proto.InternalMessageInfo + +func (m *AdminConfig) GetConfigId() string { + if m != nil { + return m.ConfigId + } + return "" +} + +func init() { + proto.RegisterType((*CommonExtensionConfig)(nil), "envoy.extensions.common.tap.v3.CommonExtensionConfig") + proto.RegisterType((*CommonExtensionConfig_TapDSConfig)(nil), "envoy.extensions.common.tap.v3.CommonExtensionConfig.TapDSConfig") + proto.RegisterType((*AdminConfig)(nil), "envoy.extensions.common.tap.v3.AdminConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/common/tap/v3/common.proto", fileDescriptor_d29738d4c8661d41) +} + +var fileDescriptor_d29738d4c8661d41 = []byte{ + // 455 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x9d, 0x6c, 0x5d, 0x77, 0x27, 0x59, 0x58, 0x06, 0x44, 0x89, 0x58, 0x6a, 0x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 0xd8, 0xcc, 0x9b, 0x74, 0xd0, 0xd3, 0x32, + 0x9e, 0xbb, 0xdf, 0x6c, 0x8f, 0x8c, 0x06, 0x19, 0x8f, 0xbf, 0x7d, 0xfc, 0xf9, 0xeb, 0xd8, 0x3b, + 0xf7, 0xe0, 0x33, 0x26, 0xec, 0xa4, 0x65, 0x2e, 0x56, 0xeb, 0x03, 0xdb, 0xc6, 0xbe, 0xf5, 0x32, + 0xd1, 0x8f, 0x7c, 0x02, 0xde, 0x1f, 0x9b, 0xd7, 0xde, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xc6, + 0xa6, 0xf4, 0x76, 0xe3, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.validate.go new file mode 100644 index 000000000..f7e4cb85b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3/common.pb.validate.go @@ -0,0 +1,314 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/common/tap/v3/common.proto + +package envoy_extensions_common_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CommonExtensionConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CommonExtensionConfig) Validate() error { + if m == nil { + return nil + } + + switch m.ConfigType.(type) { + + case *CommonExtensionConfig_AdminConfig: + + if v, ok := interface{}(m.GetAdminConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "AdminConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CommonExtensionConfig_StaticConfig: + + if v, ok := interface{}(m.GetStaticConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "StaticConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CommonExtensionConfig_TapdsConfig: + + if v, ok := interface{}(m.GetTapdsConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfigValidationError{ + field: "TapdsConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return CommonExtensionConfigValidationError{ + field: "ConfigType", + reason: "value is required", + } + + } + + return nil +} + +// CommonExtensionConfigValidationError is the validation error returned by +// CommonExtensionConfig.Validate if the designated constraints aren't met. +type CommonExtensionConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonExtensionConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonExtensionConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonExtensionConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonExtensionConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonExtensionConfigValidationError) ErrorName() string { + return "CommonExtensionConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonExtensionConfigValidationError) 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 %sCommonExtensionConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonExtensionConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonExtensionConfigValidationError{} + +// Validate checks the field values on AdminConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AdminConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetConfigId()) < 1 { + return AdminConfigValidationError{ + field: "ConfigId", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// AdminConfigValidationError is the validation error returned by +// AdminConfig.Validate if the designated constraints aren't met. +type AdminConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdminConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdminConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdminConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdminConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdminConfigValidationError) ErrorName() string { return "AdminConfigValidationError" } + +// Error satisfies the builtin error interface +func (e AdminConfigValidationError) 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 %sAdminConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdminConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdminConfigValidationError{} + +// Validate checks the field values on CommonExtensionConfig_TapDSConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *CommonExtensionConfig_TapDSConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetConfigSource() == nil { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "ConfigSource", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetConfigSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "ConfigSource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetName()) < 1 { + return CommonExtensionConfig_TapDSConfigValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// CommonExtensionConfig_TapDSConfigValidationError is the validation error +// returned by CommonExtensionConfig_TapDSConfig.Validate if the designated +// constraints aren't met. +type CommonExtensionConfig_TapDSConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CommonExtensionConfig_TapDSConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CommonExtensionConfig_TapDSConfigValidationError) ErrorName() string { + return "CommonExtensionConfig_TapDSConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e CommonExtensionConfig_TapDSConfigValidationError) 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 %sCommonExtensionConfig_TapDSConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CommonExtensionConfig_TapDSConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CommonExtensionConfig_TapDSConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.go new file mode 100644 index 000000000..1405a370a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.go @@ -0,0 +1,195 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.proto + +package envoy_extensions_filter_udp_dns_filter_v3alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/data/dns/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type DnsFilterConfig struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + ServerConfig *DnsFilterConfig_ServerContextConfig `protobuf:"bytes,2,opt,name=server_config,json=serverConfig,proto3" json:"server_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsFilterConfig) Reset() { *m = DnsFilterConfig{} } +func (m *DnsFilterConfig) String() string { return proto.CompactTextString(m) } +func (*DnsFilterConfig) ProtoMessage() {} +func (*DnsFilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1a9b7dc81c276e0e, []int{0} +} + +func (m *DnsFilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsFilterConfig.Unmarshal(m, b) +} +func (m *DnsFilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsFilterConfig.Marshal(b, m, deterministic) +} +func (m *DnsFilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsFilterConfig.Merge(m, src) +} +func (m *DnsFilterConfig) XXX_Size() int { + return xxx_messageInfo_DnsFilterConfig.Size(m) +} +func (m *DnsFilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsFilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsFilterConfig proto.InternalMessageInfo + +func (m *DnsFilterConfig) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *DnsFilterConfig) GetServerConfig() *DnsFilterConfig_ServerContextConfig { + if m != nil { + return m.ServerConfig + } + return nil +} + +type DnsFilterConfig_ServerContextConfig struct { + // Types that are valid to be assigned to ConfigSource: + // *DnsFilterConfig_ServerContextConfig_InlineDnsTable + // *DnsFilterConfig_ServerContextConfig_ExternalDnsTable + ConfigSource isDnsFilterConfig_ServerContextConfig_ConfigSource `protobuf_oneof:"config_source"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DnsFilterConfig_ServerContextConfig) Reset() { *m = DnsFilterConfig_ServerContextConfig{} } +func (m *DnsFilterConfig_ServerContextConfig) String() string { return proto.CompactTextString(m) } +func (*DnsFilterConfig_ServerContextConfig) ProtoMessage() {} +func (*DnsFilterConfig_ServerContextConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1a9b7dc81c276e0e, []int{0, 0} +} + +func (m *DnsFilterConfig_ServerContextConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Unmarshal(m, b) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Marshal(b, m, deterministic) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Merge(m, src) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_Size() int { + return xxx_messageInfo_DnsFilterConfig_ServerContextConfig.Size(m) +} +func (m *DnsFilterConfig_ServerContextConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DnsFilterConfig_ServerContextConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DnsFilterConfig_ServerContextConfig proto.InternalMessageInfo + +type isDnsFilterConfig_ServerContextConfig_ConfigSource interface { + isDnsFilterConfig_ServerContextConfig_ConfigSource() +} + +type DnsFilterConfig_ServerContextConfig_InlineDnsTable struct { + InlineDnsTable *v3.DnsTable `protobuf:"bytes,1,opt,name=inline_dns_table,json=inlineDnsTable,proto3,oneof"` +} + +type DnsFilterConfig_ServerContextConfig_ExternalDnsTable struct { + ExternalDnsTable *v31.DataSource `protobuf:"bytes,2,opt,name=external_dns_table,json=externalDnsTable,proto3,oneof"` +} + +func (*DnsFilterConfig_ServerContextConfig_InlineDnsTable) isDnsFilterConfig_ServerContextConfig_ConfigSource() { +} + +func (*DnsFilterConfig_ServerContextConfig_ExternalDnsTable) isDnsFilterConfig_ServerContextConfig_ConfigSource() { +} + +func (m *DnsFilterConfig_ServerContextConfig) GetConfigSource() isDnsFilterConfig_ServerContextConfig_ConfigSource { + if m != nil { + return m.ConfigSource + } + return nil +} + +func (m *DnsFilterConfig_ServerContextConfig) GetInlineDnsTable() *v3.DnsTable { + if x, ok := m.GetConfigSource().(*DnsFilterConfig_ServerContextConfig_InlineDnsTable); ok { + return x.InlineDnsTable + } + return nil +} + +func (m *DnsFilterConfig_ServerContextConfig) GetExternalDnsTable() *v31.DataSource { + if x, ok := m.GetConfigSource().(*DnsFilterConfig_ServerContextConfig_ExternalDnsTable); ok { + return x.ExternalDnsTable + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DnsFilterConfig_ServerContextConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DnsFilterConfig_ServerContextConfig_InlineDnsTable)(nil), + (*DnsFilterConfig_ServerContextConfig_ExternalDnsTable)(nil), + } +} + +func init() { + proto.RegisterType((*DnsFilterConfig)(nil), "envoy.extensions.filter.udp.dns_filter.v3alpha.DnsFilterConfig") + proto.RegisterType((*DnsFilterConfig_ServerContextConfig)(nil), "envoy.extensions.filter.udp.dns_filter.v3alpha.DnsFilterConfig.ServerContextConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.proto", fileDescriptor_1a9b7dc81c276e0e) +} + +var fileDescriptor_1a9b7dc81c276e0e = []byte{ + // 442 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0x49, 0xa8, 0x0a, 0xb8, 0xb4, 0x44, 0x01, 0x89, 0xaa, 0x08, 0x28, 0x9c, 0x7a, 0xb2, + 0xa5, 0xe6, 0x56, 0x55, 0x42, 0xa4, 0x08, 0x38, 0xa1, 0xa8, 0x85, 0x73, 0x70, 0x1b, 0xa7, 0x58, + 0x8a, 0xec, 0xc8, 0x76, 0xa2, 0xf4, 0xc6, 0x91, 0x8f, 0x80, 0x26, 0xed, 0x8b, 0xec, 0x3e, 0x69, + 0xd7, 0x7d, 0x9b, 0x69, 0xa7, 0xc9, 0x76, 0xd2, 0x75, 0xff, 0xa4, 0x75, 0xa7, 0x36, 0xef, 0xfb, + 0xf8, 0xf7, 0x3c, 0xef, 0x6b, 0x83, 0x4f, 0x84, 0x95, 0x7c, 0x83, 0x48, 0xa5, 0x08, 0x93, 0x94, + 0x33, 0x89, 0x52, 0x9a, 0x29, 0x22, 0x50, 0x91, 0xe4, 0x28, 0x61, 0x32, 0xae, 0x3f, 0xcb, 0x00, + 0x67, 0xf9, 0x1f, 0xbc, 0x53, 0x82, 0xb9, 0xe0, 0x8a, 0xfb, 0xd0, 0x00, 0xe0, 0x25, 0x00, 0xd6, + 0xed, 0x22, 0xc9, 0xe1, 0x8e, 0xba, 0x06, 0x0c, 0xde, 0x5b, 0xc3, 0x15, 0x67, 0x29, 0x5d, 0xa3, + 0x15, 0x17, 0x04, 0x95, 0x01, 0x5a, 0x62, 0x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, 0x8d, + 0xb2, 0x43, 0x43, 0x7d, 0xa9, 0x86, 0x86, 0x15, 0x5e, 0xf0, 0x42, 0xac, 0x34, 0xcf, 0x6b, 0x4e, + 0x37, 0xc4, 0xc9, 0xaf, 0x83, 0xe3, 0x7f, 0xef, 0x22, 0xf0, 0xe3, 0xca, 0xd9, 0x3b, 0xf6, 0x32, + 0xbe, 0xf7, 0x5e, 0xc2, 0x57, 0xa0, 0x6b, 0x59, 0xb1, 0x34, 0xde, 0xfe, 0xe3, 0xb3, 0xd0, 0x99, + 0x7c, 0xd6, 0x66, 0x53, 0x30, 0x79, 0xb8, 0x59, 0xf8, 0xfb, 0xe8, 0xef, 0xc9, 0x69, 0xdb, 0x7d, + 0xea, 0xd8, 0x5f, 0xcf, 0x05, 0x53, 0xca, 0xed, 0xe4, 0xb9, 0xe0, 0xd5, 0x66, 0xcf, 0x4b, 0x0e, + 0x7b, 0x5b, 0x83, 0x48, 0x3f, 0xbd, 0xc8, 0x59, 0xb6, 0xcd, 0x1b, 0x0c, 0x2e, 0x02, 0x00, 0x00, + 0xff, 0xff, 0x37, 0x3e, 0xcb, 0x03, 0x95, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.validate.go new file mode 100644 index 000000000..47dc40292 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.pb.validate.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filter/udp/dns_filter/v3alpha/dns_filter.proto + +package envoy_extensions_filter_udp_dns_filter_v3alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dns_filter_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DnsFilterConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DnsFilterConfig) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetStatPrefix()) < 1 { + return DnsFilterConfigValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 runes", + } + } + + if v, ok := interface{}(m.GetServerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfigValidationError{ + field: "ServerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DnsFilterConfigValidationError is the validation error returned by +// DnsFilterConfig.Validate if the designated constraints aren't met. +type DnsFilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsFilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsFilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsFilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsFilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsFilterConfigValidationError) ErrorName() string { return "DnsFilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e DnsFilterConfigValidationError) 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 %sDnsFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsFilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsFilterConfigValidationError{} + +// Validate checks the field values on DnsFilterConfig_ServerContextConfig with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *DnsFilterConfig_ServerContextConfig) Validate() error { + if m == nil { + return nil + } + + switch m.ConfigSource.(type) { + + case *DnsFilterConfig_ServerContextConfig_InlineDnsTable: + + if v, ok := interface{}(m.GetInlineDnsTable()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "InlineDnsTable", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *DnsFilterConfig_ServerContextConfig_ExternalDnsTable: + + if v, ok := interface{}(m.GetExternalDnsTable()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "ExternalDnsTable", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return DnsFilterConfig_ServerContextConfigValidationError{ + field: "ConfigSource", + reason: "value is required", + } + + } + + return nil +} + +// DnsFilterConfig_ServerContextConfigValidationError is the validation error +// returned by DnsFilterConfig_ServerContextConfig.Validate if the designated +// constraints aren't met. +type DnsFilterConfig_ServerContextConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DnsFilterConfig_ServerContextConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DnsFilterConfig_ServerContextConfigValidationError) ErrorName() string { + return "DnsFilterConfig_ServerContextConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e DnsFilterConfig_ServerContextConfigValidationError) 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 %sDnsFilterConfig_ServerContextConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DnsFilterConfig_ServerContextConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DnsFilterConfig_ServerContextConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.go new file mode 100644 index 000000000..01bd759ed --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.go @@ -0,0 +1,391 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/common/fault/v3/fault.proto + +package envoy_extensions_filters_common_fault_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FaultDelay_FaultDelayType int32 + +const ( + FaultDelay_FIXED FaultDelay_FaultDelayType = 0 +) + +var FaultDelay_FaultDelayType_name = map[int32]string{ + 0: "FIXED", +} + +var FaultDelay_FaultDelayType_value = map[string]int32{ + "FIXED": 0, +} + +func (x FaultDelay_FaultDelayType) String() string { + return proto.EnumName(FaultDelay_FaultDelayType_name, int32(x)) +} + +func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{0, 0} +} + +type FaultDelay struct { + HiddenEnvoyDeprecatedType FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=hidden_envoy_deprecated_type,json=hiddenEnvoyDeprecatedType,proto3,enum=envoy.extensions.filters.common.fault.v3.FaultDelay_FaultDelayType" json:"hidden_envoy_deprecated_type,omitempty"` // Deprecated: Do not use. + // Types that are valid to be assigned to FaultDelaySecifier: + // *FaultDelay_FixedDelay + // *FaultDelay_HeaderDelay_ + FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"` + Percentage *v3.FractionalPercent `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultDelay) Reset() { *m = FaultDelay{} } +func (m *FaultDelay) String() string { return proto.CompactTextString(m) } +func (*FaultDelay) ProtoMessage() {} +func (*FaultDelay) Descriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{0} +} + +func (m *FaultDelay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultDelay.Unmarshal(m, b) +} +func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultDelay.Marshal(b, m, deterministic) +} +func (m *FaultDelay) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultDelay.Merge(m, src) +} +func (m *FaultDelay) XXX_Size() int { + return xxx_messageInfo_FaultDelay.Size(m) +} +func (m *FaultDelay) XXX_DiscardUnknown() { + xxx_messageInfo_FaultDelay.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultDelay proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *FaultDelay) GetHiddenEnvoyDeprecatedType() FaultDelay_FaultDelayType { + if m != nil { + return m.HiddenEnvoyDeprecatedType + } + return FaultDelay_FIXED +} + +type isFaultDelay_FaultDelaySecifier interface { + isFaultDelay_FaultDelaySecifier() +} + +type FaultDelay_FixedDelay struct { + FixedDelay *duration.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"` +} + +type FaultDelay_HeaderDelay_ struct { + HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"` +} + +func (*FaultDelay_FixedDelay) isFaultDelay_FaultDelaySecifier() {} + +func (*FaultDelay_HeaderDelay_) isFaultDelay_FaultDelaySecifier() {} + +func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier { + if m != nil { + return m.FaultDelaySecifier + } + return nil +} + +func (m *FaultDelay) GetFixedDelay() *duration.Duration { + if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_FixedDelay); ok { + return x.FixedDelay + } + return nil +} + +func (m *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay { + if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_HeaderDelay_); ok { + return x.HeaderDelay + } + return nil +} + +func (m *FaultDelay) GetPercentage() *v3.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultDelay) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultDelay_FixedDelay)(nil), + (*FaultDelay_HeaderDelay_)(nil), + } +} + +type FaultDelay_HeaderDelay struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultDelay_HeaderDelay) Reset() { *m = FaultDelay_HeaderDelay{} } +func (m *FaultDelay_HeaderDelay) String() string { return proto.CompactTextString(m) } +func (*FaultDelay_HeaderDelay) ProtoMessage() {} +func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{0, 0} +} + +func (m *FaultDelay_HeaderDelay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultDelay_HeaderDelay.Unmarshal(m, b) +} +func (m *FaultDelay_HeaderDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultDelay_HeaderDelay.Marshal(b, m, deterministic) +} +func (m *FaultDelay_HeaderDelay) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultDelay_HeaderDelay.Merge(m, src) +} +func (m *FaultDelay_HeaderDelay) XXX_Size() int { + return xxx_messageInfo_FaultDelay_HeaderDelay.Size(m) +} +func (m *FaultDelay_HeaderDelay) XXX_DiscardUnknown() { + xxx_messageInfo_FaultDelay_HeaderDelay.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultDelay_HeaderDelay proto.InternalMessageInfo + +type FaultRateLimit struct { + // Types that are valid to be assigned to LimitType: + // *FaultRateLimit_FixedLimit_ + // *FaultRateLimit_HeaderLimit_ + LimitType isFaultRateLimit_LimitType `protobuf_oneof:"limit_type"` + Percentage *v3.FractionalPercent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit) Reset() { *m = FaultRateLimit{} } +func (m *FaultRateLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit) ProtoMessage() {} +func (*FaultRateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{1} +} + +func (m *FaultRateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit.Merge(m, src) +} +func (m *FaultRateLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit.Size(m) +} +func (m *FaultRateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit proto.InternalMessageInfo + +type isFaultRateLimit_LimitType interface { + isFaultRateLimit_LimitType() +} + +type FaultRateLimit_FixedLimit_ struct { + FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"` +} + +type FaultRateLimit_HeaderLimit_ struct { + HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"` +} + +func (*FaultRateLimit_FixedLimit_) isFaultRateLimit_LimitType() {} + +func (*FaultRateLimit_HeaderLimit_) isFaultRateLimit_LimitType() {} + +func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType { + if m != nil { + return m.LimitType + } + return nil +} + +func (m *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit { + if x, ok := m.GetLimitType().(*FaultRateLimit_FixedLimit_); ok { + return x.FixedLimit + } + return nil +} + +func (m *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit { + if x, ok := m.GetLimitType().(*FaultRateLimit_HeaderLimit_); ok { + return x.HeaderLimit + } + return nil +} + +func (m *FaultRateLimit) GetPercentage() *v3.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultRateLimit) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultRateLimit_FixedLimit_)(nil), + (*FaultRateLimit_HeaderLimit_)(nil), + } +} + +type FaultRateLimit_FixedLimit struct { + LimitKbps uint64 `protobuf:"varint,1,opt,name=limit_kbps,json=limitKbps,proto3" json:"limit_kbps,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit_FixedLimit) Reset() { *m = FaultRateLimit_FixedLimit{} } +func (m *FaultRateLimit_FixedLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit_FixedLimit) ProtoMessage() {} +func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{1, 0} +} + +func (m *FaultRateLimit_FixedLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit_FixedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit_FixedLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit_FixedLimit.Merge(m, src) +} +func (m *FaultRateLimit_FixedLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit_FixedLimit.Size(m) +} +func (m *FaultRateLimit_FixedLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit_FixedLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit_FixedLimit proto.InternalMessageInfo + +func (m *FaultRateLimit_FixedLimit) GetLimitKbps() uint64 { + if m != nil { + return m.LimitKbps + } + return 0 +} + +type FaultRateLimit_HeaderLimit struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultRateLimit_HeaderLimit) Reset() { *m = FaultRateLimit_HeaderLimit{} } +func (m *FaultRateLimit_HeaderLimit) String() string { return proto.CompactTextString(m) } +func (*FaultRateLimit_HeaderLimit) ProtoMessage() {} +func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_99c2ca93a0e6a448, []int{1, 1} +} + +func (m *FaultRateLimit_HeaderLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Unmarshal(m, b) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Marshal(b, m, deterministic) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultRateLimit_HeaderLimit.Merge(m, src) +} +func (m *FaultRateLimit_HeaderLimit) XXX_Size() int { + return xxx_messageInfo_FaultRateLimit_HeaderLimit.Size(m) +} +func (m *FaultRateLimit_HeaderLimit) XXX_DiscardUnknown() { + xxx_messageInfo_FaultRateLimit_HeaderLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultRateLimit_HeaderLimit proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.extensions.filters.common.fault.v3.FaultDelay_FaultDelayType", FaultDelay_FaultDelayType_name, FaultDelay_FaultDelayType_value) + proto.RegisterType((*FaultDelay)(nil), "envoy.extensions.filters.common.fault.v3.FaultDelay") + proto.RegisterType((*FaultDelay_HeaderDelay)(nil), "envoy.extensions.filters.common.fault.v3.FaultDelay.HeaderDelay") + proto.RegisterType((*FaultRateLimit)(nil), "envoy.extensions.filters.common.fault.v3.FaultRateLimit") + proto.RegisterType((*FaultRateLimit_FixedLimit)(nil), "envoy.extensions.filters.common.fault.v3.FaultRateLimit.FixedLimit") + proto.RegisterType((*FaultRateLimit_HeaderLimit)(nil), "envoy.extensions.filters.common.fault.v3.FaultRateLimit.HeaderLimit") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/common/fault/v3/fault.proto", fileDescriptor_99c2ca93a0e6a448) +} + +var fileDescriptor_99c2ca93a0e6a448 = []byte{ + // 637 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x5d, 0xa7, 0xb4, 0x1b, 0x54, 0x15, 0x0b, 0x89, 0x34, 0x85, 0xaa, 0x14, 0x09, 0x02, + 0x88, 0xb5, 0x94, 0x40, 0x81, 0x48, 0xa0, 0xca, 0xa4, 0x51, 0xcb, 0x97, 0x2a, 0x8b, 0x03, 0x37, + 0x6b, 0x63, 0x8f, 0xd3, 0x15, 0xae, 0xd7, 0xb2, 0x37, 0x51, 0x73, 0xe3, 0xc8, 0x89, 0x1f, 0xc0, + 0x4f, 0xe0, 0xc4, 0x11, 0x71, 0x47, 0x82, 0x23, 0xfc, 0x10, 0x0e, 0x9c, 0x50, 0x4f, 0x68, 0x3f, + 0x9c, 0xa4, 0x02, 0x44, 0x92, 0xdb, 0xae, 0x77, 0xde, 0x7b, 0x33, 0xef, 0x8d, 0x8c, 0x6e, 0x43, + 0x32, 0x60, 0x43, 0x07, 0x8e, 0x39, 0x24, 0x39, 0x65, 0x49, 0xee, 0x44, 0x34, 0xe6, 0x90, 0xe5, + 0x4e, 0xc0, 0x8e, 0x8e, 0x58, 0xe2, 0x44, 0xa4, 0x1f, 0x73, 0x67, 0xd0, 0x54, 0x07, 0x9c, 0x66, + 0x8c, 0x33, 0xbb, 0x2e, 0x51, 0x78, 0x8c, 0xc2, 0x1a, 0x85, 0x15, 0x0a, 0xab, 0xe2, 0x41, 0xb3, + 0xb6, 0xae, 0xf8, 0xf9, 0x30, 0x05, 0x41, 0x92, 0x42, 0x16, 0x40, 0xa2, 0x69, 0x6a, 0x1b, 0x3d, + 0xc6, 0x7a, 0x31, 0x38, 0xf2, 0xd6, 0xed, 0x47, 0x4e, 0xd8, 0xcf, 0x08, 0xa7, 0x2c, 0xd1, 0xef, + 0x57, 0x14, 0x98, 0x24, 0x09, 0xe3, 0xf2, 0x7b, 0xee, 0x84, 0x90, 0x66, 0x10, 0x4c, 0x16, 0x5d, + 0xea, 0x87, 0x29, 0x39, 0x55, 0x93, 0x73, 0xc2, 0xfb, 0xb9, 0x7e, 0xbe, 0xfc, 0xc7, 0x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0x3b, 0x0b, 0xdb, 0x24, 0xbe, 0x21, 0xf0, 0xb7, + 0xd0, 0xcd, 0x19, 0xf0, 0xee, 0xb9, 0x62, 0x52, 0x61, 0x93, 0x5c, 0x1c, 0xf7, 0xf9, 0xa7, 0xd7, + 0x5f, 0xbe, 0x2d, 0x9a, 0xab, 0x26, 0xda, 0xa6, 0x4c, 0x99, 0x98, 0x66, 0xec, 0x78, 0x38, 0x75, + 0x70, 0xae, 0xfa, 0x7b, 0x1d, 0x88, 0x1f, 0xc1, 0x81, 0xd1, 0x5d, 0x94, 0x7f, 0x84, 0xe6, 0xef, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0xf1, 0xb5, 0xb0, 0xf4, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.validate.go new file mode 100644 index 000000000..d99e9149c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3/fault.pb.validate.go @@ -0,0 +1,475 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/common/fault/v3/fault.proto + +package envoy_extensions_filters_common_fault_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _fault_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FaultDelay with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FaultDelay) Validate() error { + if m == nil { + return nil + } + + // no validation rules for HiddenEnvoyDeprecatedType + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultDelayValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.FaultDelaySecifier.(type) { + + case *FaultDelay_FixedDelay: + + if d := m.GetFixedDelay(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return FaultDelayValidationError{ + field: "FixedDelay", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return FaultDelayValidationError{ + field: "FixedDelay", + reason: "value must be greater than 0s", + } + } + + } + + case *FaultDelay_HeaderDelay_: + + if v, ok := interface{}(m.GetHeaderDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultDelayValidationError{ + field: "HeaderDelay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultDelayValidationError{ + field: "FaultDelaySecifier", + reason: "value is required", + } + + } + + return nil +} + +// FaultDelayValidationError is the validation error returned by +// FaultDelay.Validate if the designated constraints aren't met. +type FaultDelayValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultDelayValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultDelayValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultDelayValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultDelayValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultDelayValidationError) ErrorName() string { return "FaultDelayValidationError" } + +// Error satisfies the builtin error interface +func (e FaultDelayValidationError) 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 %sFaultDelay.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultDelayValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultDelayValidationError{} + +// Validate checks the field values on FaultRateLimit with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FaultRateLimit) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.LimitType.(type) { + + case *FaultRateLimit_FixedLimit_: + + if v, ok := interface{}(m.GetFixedLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "FixedLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FaultRateLimit_HeaderLimit_: + + if v, ok := interface{}(m.GetHeaderLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultRateLimitValidationError{ + field: "HeaderLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultRateLimitValidationError{ + field: "LimitType", + reason: "value is required", + } + + } + + return nil +} + +// FaultRateLimitValidationError is the validation error returned by +// FaultRateLimit.Validate if the designated constraints aren't met. +type FaultRateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimitValidationError) ErrorName() string { return "FaultRateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e FaultRateLimitValidationError) 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 %sFaultRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimitValidationError{} + +// Validate checks the field values on FaultDelay_HeaderDelay with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultDelay_HeaderDelay) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultDelay_HeaderDelayValidationError is the validation error returned by +// FaultDelay_HeaderDelay.Validate if the designated constraints aren't met. +type FaultDelay_HeaderDelayValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultDelay_HeaderDelayValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultDelay_HeaderDelayValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultDelay_HeaderDelayValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultDelay_HeaderDelayValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultDelay_HeaderDelayValidationError) ErrorName() string { + return "FaultDelay_HeaderDelayValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultDelay_HeaderDelayValidationError) 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 %sFaultDelay_HeaderDelay.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultDelay_HeaderDelayValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultDelay_HeaderDelayValidationError{} + +// Validate checks the field values on FaultRateLimit_FixedLimit with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultRateLimit_FixedLimit) Validate() error { + if m == nil { + return nil + } + + if m.GetLimitKbps() < 1 { + return FaultRateLimit_FixedLimitValidationError{ + field: "LimitKbps", + reason: "value must be greater than or equal to 1", + } + } + + return nil +} + +// FaultRateLimit_FixedLimitValidationError is the validation error returned by +// FaultRateLimit_FixedLimit.Validate if the designated constraints aren't met. +type FaultRateLimit_FixedLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimit_FixedLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimit_FixedLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimit_FixedLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimit_FixedLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimit_FixedLimitValidationError) ErrorName() string { + return "FaultRateLimit_FixedLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultRateLimit_FixedLimitValidationError) 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 %sFaultRateLimit_FixedLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimit_FixedLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimit_FixedLimitValidationError{} + +// Validate checks the field values on FaultRateLimit_HeaderLimit with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultRateLimit_HeaderLimit) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultRateLimit_HeaderLimitValidationError is the validation error returned +// by FaultRateLimit_HeaderLimit.Validate if the designated constraints aren't met. +type FaultRateLimit_HeaderLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultRateLimit_HeaderLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultRateLimit_HeaderLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultRateLimit_HeaderLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultRateLimit_HeaderLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultRateLimit_HeaderLimitValidationError) ErrorName() string { + return "FaultRateLimit_HeaderLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultRateLimit_HeaderLimitValidationError) 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 %sFaultRateLimit_HeaderLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultRateLimit_HeaderLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultRateLimit_HeaderLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.go new file mode 100644 index 000000000..3f1e9a782 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.go @@ -0,0 +1,347 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.proto + +package envoy_extensions_filters_http_adaptive_concurrency_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + _ "google.golang.org/genproto/googleapis/api/annotations" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GradientControllerConfig struct { + SampleAggregatePercentile *v3.Percent `protobuf:"bytes,1,opt,name=sample_aggregate_percentile,json=sampleAggregatePercentile,proto3" json:"sample_aggregate_percentile,omitempty"` + ConcurrencyLimitParams *GradientControllerConfig_ConcurrencyLimitCalculationParams `protobuf:"bytes,2,opt,name=concurrency_limit_params,json=concurrencyLimitParams,proto3" json:"concurrency_limit_params,omitempty"` + MinRttCalcParams *GradientControllerConfig_MinimumRTTCalculationParams `protobuf:"bytes,3,opt,name=min_rtt_calc_params,json=minRttCalcParams,proto3" json:"min_rtt_calc_params,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig) Reset() { *m = GradientControllerConfig{} } +func (m *GradientControllerConfig) String() string { return proto.CompactTextString(m) } +func (*GradientControllerConfig) ProtoMessage() {} +func (*GradientControllerConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_0f6af5b2d621e04b, []int{0} +} + +func (m *GradientControllerConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig.Unmarshal(m, b) +} +func (m *GradientControllerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig.Merge(m, src) +} +func (m *GradientControllerConfig) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig.Size(m) +} +func (m *GradientControllerConfig) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig proto.InternalMessageInfo + +func (m *GradientControllerConfig) GetSampleAggregatePercentile() *v3.Percent { + if m != nil { + return m.SampleAggregatePercentile + } + return nil +} + +func (m *GradientControllerConfig) GetConcurrencyLimitParams() *GradientControllerConfig_ConcurrencyLimitCalculationParams { + if m != nil { + return m.ConcurrencyLimitParams + } + return nil +} + +func (m *GradientControllerConfig) GetMinRttCalcParams() *GradientControllerConfig_MinimumRTTCalculationParams { + if m != nil { + return m.MinRttCalcParams + } + return nil +} + +type GradientControllerConfig_ConcurrencyLimitCalculationParams struct { + MaxConcurrencyLimit *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=max_concurrency_limit,json=maxConcurrencyLimit,proto3" json:"max_concurrency_limit,omitempty"` + ConcurrencyUpdateInterval *duration.Duration `protobuf:"bytes,3,opt,name=concurrency_update_interval,json=concurrencyUpdateInterval,proto3" json:"concurrency_update_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) Reset() { + *m = GradientControllerConfig_ConcurrencyLimitCalculationParams{} +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) String() string { + return proto.CompactTextString(m) +} +func (*GradientControllerConfig_ConcurrencyLimitCalculationParams) ProtoMessage() {} +func (*GradientControllerConfig_ConcurrencyLimitCalculationParams) Descriptor() ([]byte, []int) { + return fileDescriptor_0f6af5b2d621e04b, []int{0, 0} +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Unmarshal(m, b) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Merge(m, src) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.Size(m) +} +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig_ConcurrencyLimitCalculationParams proto.InternalMessageInfo + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) GetMaxConcurrencyLimit() *wrappers.UInt32Value { + if m != nil { + return m.MaxConcurrencyLimit + } + return nil +} + +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) GetConcurrencyUpdateInterval() *duration.Duration { + if m != nil { + return m.ConcurrencyUpdateInterval + } + return nil +} + +type GradientControllerConfig_MinimumRTTCalculationParams struct { + Interval *duration.Duration `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"` + RequestCount *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + Jitter *v3.Percent `protobuf:"bytes,3,opt,name=jitter,proto3" json:"jitter,omitempty"` + MinConcurrency *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=min_concurrency,json=minConcurrency,proto3" json:"min_concurrency,omitempty"` + Buffer *v3.Percent `protobuf:"bytes,5,opt,name=buffer,proto3" json:"buffer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) Reset() { + *m = GradientControllerConfig_MinimumRTTCalculationParams{} +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) String() string { + return proto.CompactTextString(m) +} +func (*GradientControllerConfig_MinimumRTTCalculationParams) ProtoMessage() {} +func (*GradientControllerConfig_MinimumRTTCalculationParams) Descriptor() ([]byte, []int) { + return fileDescriptor_0f6af5b2d621e04b, []int{0, 1} +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Unmarshal(m, b) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Marshal(b, m, deterministic) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Merge(m, src) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_Size() int { + return xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.Size(m) +} +func (m *GradientControllerConfig_MinimumRTTCalculationParams) XXX_DiscardUnknown() { + xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams.DiscardUnknown(m) +} + +var xxx_messageInfo_GradientControllerConfig_MinimumRTTCalculationParams proto.InternalMessageInfo + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetRequestCount() *wrappers.UInt32Value { + if m != nil { + return m.RequestCount + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetJitter() *v3.Percent { + if m != nil { + return m.Jitter + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetMinConcurrency() *wrappers.UInt32Value { + if m != nil { + return m.MinConcurrency + } + return nil +} + +func (m *GradientControllerConfig_MinimumRTTCalculationParams) GetBuffer() *v3.Percent { + if m != nil { + return m.Buffer + } + return nil +} + +type AdaptiveConcurrency struct { + // Types that are valid to be assigned to ConcurrencyControllerConfig: + // *AdaptiveConcurrency_GradientControllerConfig + ConcurrencyControllerConfig isAdaptiveConcurrency_ConcurrencyControllerConfig `protobuf_oneof:"concurrency_controller_config"` + Enabled *v31.RuntimeFeatureFlag `protobuf:"bytes,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdaptiveConcurrency) Reset() { *m = AdaptiveConcurrency{} } +func (m *AdaptiveConcurrency) String() string { return proto.CompactTextString(m) } +func (*AdaptiveConcurrency) ProtoMessage() {} +func (*AdaptiveConcurrency) Descriptor() ([]byte, []int) { + return fileDescriptor_0f6af5b2d621e04b, []int{1} +} + +func (m *AdaptiveConcurrency) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdaptiveConcurrency.Unmarshal(m, b) +} +func (m *AdaptiveConcurrency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdaptiveConcurrency.Marshal(b, m, deterministic) +} +func (m *AdaptiveConcurrency) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdaptiveConcurrency.Merge(m, src) +} +func (m *AdaptiveConcurrency) XXX_Size() int { + return xxx_messageInfo_AdaptiveConcurrency.Size(m) +} +func (m *AdaptiveConcurrency) XXX_DiscardUnknown() { + xxx_messageInfo_AdaptiveConcurrency.DiscardUnknown(m) +} + +var xxx_messageInfo_AdaptiveConcurrency proto.InternalMessageInfo + +type isAdaptiveConcurrency_ConcurrencyControllerConfig interface { + isAdaptiveConcurrency_ConcurrencyControllerConfig() +} + +type AdaptiveConcurrency_GradientControllerConfig struct { + GradientControllerConfig *GradientControllerConfig `protobuf:"bytes,1,opt,name=gradient_controller_config,json=gradientControllerConfig,proto3,oneof"` +} + +func (*AdaptiveConcurrency_GradientControllerConfig) isAdaptiveConcurrency_ConcurrencyControllerConfig() { +} + +func (m *AdaptiveConcurrency) GetConcurrencyControllerConfig() isAdaptiveConcurrency_ConcurrencyControllerConfig { + if m != nil { + return m.ConcurrencyControllerConfig + } + return nil +} + +func (m *AdaptiveConcurrency) GetGradientControllerConfig() *GradientControllerConfig { + if x, ok := m.GetConcurrencyControllerConfig().(*AdaptiveConcurrency_GradientControllerConfig); ok { + return x.GradientControllerConfig + } + return nil +} + +func (m *AdaptiveConcurrency) GetEnabled() *v31.RuntimeFeatureFlag { + if m != nil { + return m.Enabled + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdaptiveConcurrency) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdaptiveConcurrency_GradientControllerConfig)(nil), + } +} + +func init() { + proto.RegisterType((*GradientControllerConfig)(nil), "envoy.extensions.filters.http.adaptive_concurrency.v3.GradientControllerConfig") + proto.RegisterType((*GradientControllerConfig_ConcurrencyLimitCalculationParams)(nil), "envoy.extensions.filters.http.adaptive_concurrency.v3.GradientControllerConfig.ConcurrencyLimitCalculationParams") + proto.RegisterType((*GradientControllerConfig_MinimumRTTCalculationParams)(nil), "envoy.extensions.filters.http.adaptive_concurrency.v3.GradientControllerConfig.MinimumRTTCalculationParams") + proto.RegisterType((*AdaptiveConcurrency)(nil), "envoy.extensions.filters.http.adaptive_concurrency.v3.AdaptiveConcurrency") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.proto", fileDescriptor_0f6af5b2d621e04b) +} + +var fileDescriptor_0f6af5b2d621e04b = []byte{ + // 777 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x3d, 0x6f, 0xdb, 0x48, + 0x10, 0x35, 0xe5, 0x4f, 0xec, 0x7d, 0x19, 0x34, 0xce, 0x47, 0x4b, 0xb6, 0xcf, 0x36, 0xae, 0x30, + 0x5c, 0x2c, 0x01, 0x0b, 0xd7, 0xa8, 0x33, 0x75, 0xf0, 0x9d, 0x2f, 0x89, 0x43, 0x10, 0xb6, 0x81, + 0x54, 0xc4, 0x8a, 0x5a, 0xd1, 0xeb, 0x2c, 0x97, 0xf4, 0x72, 0x49, 0x4b, 0x5d, 0xca, 0x20, 0xff, + 0x20, 0xa9, 0x53, 0xa5, 0x4f, 0x93, 0x3e, 0x40, 0xba, 0x20, 0x75, 0x80, 0xfc, 0x83, 0xf4, 0x81, + 0xab, 0x60, 0xb9, 0x2b, 0x9b, 0xb1, 0x3e, 0x02, 0x3b, 0xea, 0x24, 0xcd, 0xbc, 0xf7, 0x66, 0xde, + 0xcc, 0x8e, 0x80, 0x8b, 0x59, 0x1e, 0xf7, 0x6c, 0xdc, 0x15, 0x98, 0xa5, 0x24, 0x66, 0xa9, 0xdd, + 0x21, 0x54, 0x60, 0x9e, 0xda, 0xa7, 0x42, 0x24, 0x36, 0x6a, 0xa3, 0x44, 0x90, 0x1c, 0xfb, 0x41, + 0xcc, 0x82, 0x8c, 0x73, 0xcc, 0x82, 0x9e, 0x9d, 0xd7, 0x87, 0xfe, 0x0e, 0x13, 0x1e, 0x8b, 0xd8, + 0xfc, 0xbb, 0x60, 0x84, 0xd7, 0x8c, 0x50, 0x33, 0x42, 0xc9, 0x08, 0x87, 0x22, 0xf3, 0x7a, 0xf5, + 0x4f, 0x55, 0x48, 0x10, 0xb3, 0x0e, 0x09, 0xed, 0x20, 0xe6, 0x58, 0xea, 0xb4, 0x50, 0x8a, 0x15, + 0x6f, 0xb5, 0xa6, 0x12, 0x44, 0x2f, 0x29, 0x22, 0x09, 0xe6, 0x01, 0x66, 0x42, 0x07, 0x57, 0xc3, + 0x38, 0x0e, 0x29, 0xb6, 0x51, 0x42, 0x6c, 0xc4, 0x58, 0x2c, 0x90, 0x28, 0xa4, 0x55, 0x74, 0x5d, + 0x47, 0x8b, 0x6f, 0xad, 0xac, 0x63, 0xb7, 0x33, 0x5e, 0x24, 0x8c, 0x8a, 0x5f, 0x70, 0x94, 0x24, + 0xb2, 0x64, 0x15, 0x5f, 0xcb, 0xda, 0x09, 0x2a, 0xf3, 0xda, 0xa9, 0x40, 0x22, 0xeb, 0x87, 0x37, + 0x07, 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ad, 0xac, + 0xd3, 0xc1, 0xdc, 0x9a, 0x1d, 0xaf, 0xaf, 0xb2, 0x1a, 0xe7, 0x72, 0xae, 0x14, 0x9c, 0x4d, 0x78, + 0xae, 0x63, 0x26, 0xd6, 0x38, 0x96, 0x92, 0x2e, 0x38, 0x9c, 0xac, 0xe4, 0xd6, 0xe7, 0x0a, 0x58, + 0xda, 0xd3, 0xc8, 0xb2, 0x23, 0xcf, 0x0d, 0x50, 0x0d, 0x35, 0x48, 0x32, 0x6a, 0x94, 0xaf, 0x84, + 0xf5, 0xce, 0x3c, 0x9c, 0xf0, 0x3d, 0xb9, 0xbe, 0x19, 0xff, 0x4d, 0x79, 0x56, 0x38, 0xea, 0xe8, + 0x3b, 0x60, 0x1e, 0x33, 0xd4, 0xa2, 0xb8, 0xad, 0x77, 0x6e, 0x1b, 0x7e, 0xe3, 0x8a, 0xfc, 0x6b, + 0x94, 0x32, 0x5e, 0xc6, 0x04, 0x89, 0xf0, 0x3e, 0x46, 0x22, 0xe3, 0x78, 0x9f, 0xa2, 0xd0, 0xeb, + 0x03, 0x1b, 0xae, 0xb4, 0xf3, 0x1e, 0x38, 0xb8, 0x9b, 0x9d, 0x43, 0x1c, 0x73, 0xfe, 0x02, 0x6b, + 0xe5, 0x93, 0x32, 0xe0, 0x99, 0x39, 0xfd, 0xc5, 0x31, 0x1c, 0xf2, 0xe6, 0xc9, 0xbb, 0x0f, 0x73, + 0x95, 0xc5, 0x0a, 0x68, 0x92, 0x58, 0x95, 0x9d, 0xf0, 0xb8, 0xdb, 0xbb, 0x9b, 0x93, 0x8e, 0x35, + 0xa4, 0x12, 0x57, 0xae, 0xbe, 0x6b, 0xb4, 0xe6, 0x8a, 0x37, 0x50, 0xff, 0x1a, 0x00, 0x00, 0xff, + 0xff, 0x7a, 0xf7, 0xd0, 0x7a, 0xc1, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.validate.go new file mode 100644 index 000000000..f243e631b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.pb.validate.go @@ -0,0 +1,517 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.proto + +package envoy_extensions_filters_http_adaptive_concurrency_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _adaptive_concurrency_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GradientControllerConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GradientControllerConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSampleAggregatePercentile()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "SampleAggregatePercentile", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetConcurrencyLimitParams() == nil { + return GradientControllerConfigValidationError{ + field: "ConcurrencyLimitParams", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetConcurrencyLimitParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "ConcurrencyLimitParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetMinRttCalcParams() == nil { + return GradientControllerConfigValidationError{ + field: "MinRttCalcParams", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMinRttCalcParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfigValidationError{ + field: "MinRttCalcParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GradientControllerConfigValidationError is the validation error returned by +// GradientControllerConfig.Validate if the designated constraints aren't met. +type GradientControllerConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GradientControllerConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GradientControllerConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GradientControllerConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GradientControllerConfigValidationError) ErrorName() string { + return "GradientControllerConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfigValidationError) 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 %sGradientControllerConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfigValidationError{} + +// Validate checks the field values on AdaptiveConcurrency with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AdaptiveConcurrency) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdaptiveConcurrencyValidationError{ + field: "Enabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.ConcurrencyControllerConfig.(type) { + + case *AdaptiveConcurrency_GradientControllerConfig: + + if m.GetGradientControllerConfig() == nil { + return AdaptiveConcurrencyValidationError{ + field: "GradientControllerConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGradientControllerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AdaptiveConcurrencyValidationError{ + field: "GradientControllerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return AdaptiveConcurrencyValidationError{ + field: "ConcurrencyControllerConfig", + reason: "value is required", + } + + } + + return nil +} + +// AdaptiveConcurrencyValidationError is the validation error returned by +// AdaptiveConcurrency.Validate if the designated constraints aren't met. +type AdaptiveConcurrencyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AdaptiveConcurrencyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AdaptiveConcurrencyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AdaptiveConcurrencyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AdaptiveConcurrencyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AdaptiveConcurrencyValidationError) ErrorName() string { + return "AdaptiveConcurrencyValidationError" +} + +// Error satisfies the builtin error interface +func (e AdaptiveConcurrencyValidationError) 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 %sAdaptiveConcurrency.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AdaptiveConcurrencyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AdaptiveConcurrencyValidationError{} + +// Validate checks the field values on +// GradientControllerConfig_ConcurrencyLimitCalculationParams with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GradientControllerConfig_ConcurrencyLimitCalculationParams) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMaxConcurrencyLimit(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "MaxConcurrencyLimit", + reason: "value must be greater than 0", + } + } + + } + + if m.GetConcurrencyUpdateInterval() == nil { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value is required", + } + } + + if d := m.GetConcurrencyUpdateInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{ + field: "ConcurrencyUpdateInterval", + reason: "value must be greater than 0s", + } + } + + } + + return nil +} + +// GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError is +// the validation error returned by +// GradientControllerConfig_ConcurrencyLimitCalculationParams.Validate if the +// designated constraints aren't met. +type GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) Key() bool { + return e.key +} + +// ErrorName returns error name. +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) ErrorName() string { + return "GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError) 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 %sGradientControllerConfig_ConcurrencyLimitCalculationParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfig_ConcurrencyLimitCalculationParamsValidationError{} + +// Validate checks the field values on +// GradientControllerConfig_MinimumRTTCalculationParams with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GradientControllerConfig_MinimumRTTCalculationParams) Validate() error { + if m == nil { + return nil + } + + if m.GetInterval() == nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value is required", + } + } + + if d := m.GetInterval(); d != nil { + dur, err := ptypes.Duration(d) + if err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value is not a valid duration", + cause: err, + } + } + + gt := time.Duration(0*time.Second + 0*time.Nanosecond) + + if dur <= gt { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Interval", + reason: "value must be greater than 0s", + } + } + + } + + if wrapper := m.GetRequestCount(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "RequestCount", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetJitter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Jitter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if wrapper := m.GetMinConcurrency(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "MinConcurrency", + reason: "value must be greater than 0", + } + } + + } + + if v, ok := interface{}(m.GetBuffer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GradientControllerConfig_MinimumRTTCalculationParamsValidationError{ + field: "Buffer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GradientControllerConfig_MinimumRTTCalculationParamsValidationError is the +// validation error returned by +// GradientControllerConfig_MinimumRTTCalculationParams.Validate if the +// designated constraints aren't met. +type GradientControllerConfig_MinimumRTTCalculationParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) ErrorName() string { + return "GradientControllerConfig_MinimumRTTCalculationParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e GradientControllerConfig_MinimumRTTCalculationParamsValidationError) 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 %sGradientControllerConfig_MinimumRTTCalculationParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GradientControllerConfig_MinimumRTTCalculationParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GradientControllerConfig_MinimumRTTCalculationParamsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.go new file mode 100644 index 000000000..dbe0f5833 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.proto + +package envoy_extensions_filters_http_aws_lambda_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + Arn string `protobuf:"bytes,1,opt,name=arn,proto3" json:"arn,omitempty"` + PayloadPassthrough bool `protobuf:"varint,2,opt,name=payload_passthrough,json=payloadPassthrough,proto3" json:"payload_passthrough,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_a22f80ea45c04127, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetArn() string { + if m != nil { + return m.Arn + } + return "" +} + +func (m *Config) GetPayloadPassthrough() bool { + if m != nil { + return m.PayloadPassthrough + } + return false +} + +type PerRouteConfig struct { + InvokeConfig *Config `protobuf:"bytes,1,opt,name=invoke_config,json=invokeConfig,proto3" json:"invoke_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerRouteConfig) Reset() { *m = PerRouteConfig{} } +func (m *PerRouteConfig) String() string { return proto.CompactTextString(m) } +func (*PerRouteConfig) ProtoMessage() {} +func (*PerRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a22f80ea45c04127, []int{1} +} + +func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerRouteConfig.Unmarshal(m, b) +} +func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerRouteConfig.Marshal(b, m, deterministic) +} +func (m *PerRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerRouteConfig.Merge(m, src) +} +func (m *PerRouteConfig) XXX_Size() int { + return xxx_messageInfo_PerRouteConfig.Size(m) +} +func (m *PerRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerRouteConfig proto.InternalMessageInfo + +func (m *PerRouteConfig) GetInvokeConfig() *Config { + if m != nil { + return m.InvokeConfig + } + return nil +} + +func init() { + proto.RegisterType((*Config)(nil), "envoy.extensions.filters.http.aws_lambda.v3.Config") + proto.RegisterType((*PerRouteConfig)(nil), "envoy.extensions.filters.http.aws_lambda.v3.PerRouteConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.proto", fileDescriptor_a22f80ea45c04127) +} + +var fileDescriptor_a22f80ea45c04127 = []byte{ + // 341 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x31, 0x4b, 0xc3, 0x40, + 0x14, 0xc7, 0x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x61, 0x99, 0x0a, 0x88, 0xc7, 0x12, 0xb4, + 0x36, 0x89, 0x12, 0xd9, 0x2c, 0x69, 0xba, 0x6d, 0xa7, 0xbb, 0x1f, 0x79, 0x95, 0x14, 0xae, 0x94, + 0x41, 0xff, 0xed, 0xf3, 0xe5, 0xe2, 0x1a, 0xf5, 0xec, 0x96, 0x0f, 0xe5, 0x80, 0x6a, 0xc3, 0xcd, + 0x05, 0x7b, 0x90, 0xca, 0x04, 0xb0, 0xc5, 0xe8, 0xbc, 0x3b, 0xa8, 0x1e, 0x52, 0x15, 0x89, 0xcc, + 0xd0, 0x8a, 0xec, 0x1e, 0x1d, 0x33, 0x9e, 0x8b, 0x47, 0x3a, 0xb6, 0x49, 0x25, 0xe3, 0x61, 0xcf, + 0xc7, 0x5b, 0x3c, 0x62, 0x15, 0x1f, 0x1d, 0xd9, 0x24, 0x5b, 0x0d, 0x46, 0x05, 0xe7, 0x10, 0x0d, + 0xb6, 0xe1, 0xfc, 0x0f, 0x17, 0xdc, 0x7d, 0x3c, 0x7f, 0x7d, 0xd7, 0xdc, 0x86, 0x8b, 0xfa, 0x4c, + 0x58, 0x22, 0xa9, 0xc4, 0x62, 0xb9, 0x0d, 0x5c, 0x50, 0x1f, 0xcd, 0xf5, 0x6d, 0x59, 0x85, 0xc5, + 0x59, 0x42, 0x67, 0x52, 0x2b, 0xef, 0xe3, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x1f, 0x81, + 0x59, 0x67, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.validate.go new file mode 100644 index 000000000..34c364205 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.pb.validate.go @@ -0,0 +1,185 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.proto + +package envoy_extensions_filters_http_aws_lambda_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_lambda_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + if utf8.RuneCountInString(m.GetArn()) < 1 { + return ConfigValidationError{ + field: "Arn", + reason: "value length must be at least 1 runes", + } + } + + // no validation rules for PayloadPassthrough + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} + +// Validate checks the field values on PerRouteConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerRouteConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInvokeConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerRouteConfigValidationError{ + field: "InvokeConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// PerRouteConfigValidationError is the validation error returned by +// PerRouteConfig.Validate if the designated constraints aren't met. +type PerRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerRouteConfigValidationError) ErrorName() string { return "PerRouteConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerRouteConfigValidationError) 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 %sPerRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerRouteConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.go new file mode 100644 index 000000000..1087354fe --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.proto + +package envoy_extensions_filters_http_aws_request_signing_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AwsRequestSigning struct { + ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` + Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + HostRewrite string `protobuf:"bytes,3,opt,name=host_rewrite,json=hostRewrite,proto3" json:"host_rewrite,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AwsRequestSigning) Reset() { *m = AwsRequestSigning{} } +func (m *AwsRequestSigning) String() string { return proto.CompactTextString(m) } +func (*AwsRequestSigning) ProtoMessage() {} +func (*AwsRequestSigning) Descriptor() ([]byte, []int) { + return fileDescriptor_c87dd6f1b9f622ab, []int{0} +} + +func (m *AwsRequestSigning) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AwsRequestSigning.Unmarshal(m, b) +} +func (m *AwsRequestSigning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AwsRequestSigning.Marshal(b, m, deterministic) +} +func (m *AwsRequestSigning) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwsRequestSigning.Merge(m, src) +} +func (m *AwsRequestSigning) XXX_Size() int { + return xxx_messageInfo_AwsRequestSigning.Size(m) +} +func (m *AwsRequestSigning) XXX_DiscardUnknown() { + xxx_messageInfo_AwsRequestSigning.DiscardUnknown(m) +} + +var xxx_messageInfo_AwsRequestSigning proto.InternalMessageInfo + +func (m *AwsRequestSigning) GetServiceName() string { + if m != nil { + return m.ServiceName + } + return "" +} + +func (m *AwsRequestSigning) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *AwsRequestSigning) GetHostRewrite() string { + if m != nil { + return m.HostRewrite + } + return "" +} + +func init() { + proto.RegisterType((*AwsRequestSigning)(nil), "envoy.extensions.filters.http.aws_request_signing.v3.AwsRequestSigning") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.proto", fileDescriptor_c87dd6f1b9f622ab) +} + +var fileDescriptor_c87dd6f1b9f622ab = []byte{ + // 316 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0xb1, 0x4e, 0xc3, 0x30, + 0x10, 0x86, 0x95, 0x80, 0x8a, 0x70, 0x3b, 0x40, 0x06, 0xa8, 0x2a, 0x01, 0x2d, 0x13, 0x62, 0xb0, + 0x25, 0xca, 0xc4, 0x46, 0x06, 0xc4, 0x42, 0x55, 0x85, 0x07, 0x88, 0x4c, 0x7b, 0x4d, 0x2d, 0xa5, + 0x76, 0xb0, 0x2f, 0x4e, 0xbb, 0x31, 0xf2, 0x0c, 0x3c, 0x0a, 0x3b, 0x12, 0x2b, 0x3c, 0x0e, 0x13, + 0x4a, 0x1c, 0x40, 0x28, 0x15, 0x03, 0x9b, 0xf5, 0xdf, 0xf9, 0xfb, 0x4f, 0x1f, 0x19, 0x81, 0xb4, + 0x6a, 0xc5, 0x60, 0x89, 0x20, 0x8d, 0x50, 0xd2, 0xb0, 0x99, 0x48, 0x11, 0xb4, 0x61, 0x73, 0xc4, + 0x8c, 0xf1, 0xc2, 0xc4, 0x1a, 0xee, 0x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, 0xa2, 0xff, + 0xb1, 0x1f, 0xee, 0x35, 0x0a, 0xc6, 0xa5, 0xba, 0xb1, 0x77, 0xd7, 0xaa, 0x1c, 0x0e, 0x3f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xc7, 0x4c, 0x85, 0xf2, 0x26, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.validate.go new file mode 100644 index 000000000..af941de0b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.pb.validate.go @@ -0,0 +1,120 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.proto + +package envoy_extensions_filters_http_aws_request_signing_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _aws_request_signing_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AwsRequestSigning with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AwsRequestSigning) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServiceName()) < 1 { + return AwsRequestSigningValidationError{ + field: "ServiceName", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetRegion()) < 1 { + return AwsRequestSigningValidationError{ + field: "Region", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for HostRewrite + + return nil +} + +// AwsRequestSigningValidationError is the validation error returned by +// AwsRequestSigning.Validate if the designated constraints aren't met. +type AwsRequestSigningValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AwsRequestSigningValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AwsRequestSigningValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AwsRequestSigningValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AwsRequestSigningValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AwsRequestSigningValidationError) ErrorName() string { + return "AwsRequestSigningValidationError" +} + +// Error satisfies the builtin error interface +func (e AwsRequestSigningValidationError) 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 %sAwsRequestSigning.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AwsRequestSigningValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AwsRequestSigningValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.go new file mode 100644 index 000000000..a870dc342 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/buffer/v3/buffer.proto + +package envoy_extensions_filters_http_buffer_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Buffer struct { + MaxRequestBytes *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_request_bytes,json=maxRequestBytes,proto3" json:"max_request_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Buffer) Reset() { *m = Buffer{} } +func (m *Buffer) String() string { return proto.CompactTextString(m) } +func (*Buffer) ProtoMessage() {} +func (*Buffer) Descriptor() ([]byte, []int) { + return fileDescriptor_9f2ecf9d6a3464b7, []int{0} +} + +func (m *Buffer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Buffer.Unmarshal(m, b) +} +func (m *Buffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Buffer.Marshal(b, m, deterministic) +} +func (m *Buffer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Buffer.Merge(m, src) +} +func (m *Buffer) XXX_Size() int { + return xxx_messageInfo_Buffer.Size(m) +} +func (m *Buffer) XXX_DiscardUnknown() { + xxx_messageInfo_Buffer.DiscardUnknown(m) +} + +var xxx_messageInfo_Buffer proto.InternalMessageInfo + +func (m *Buffer) GetMaxRequestBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxRequestBytes + } + return nil +} + +type BufferPerRoute struct { + // Types that are valid to be assigned to Override: + // *BufferPerRoute_Disabled + // *BufferPerRoute_Buffer + Override isBufferPerRoute_Override `protobuf_oneof:"override"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BufferPerRoute) Reset() { *m = BufferPerRoute{} } +func (m *BufferPerRoute) String() string { return proto.CompactTextString(m) } +func (*BufferPerRoute) ProtoMessage() {} +func (*BufferPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_9f2ecf9d6a3464b7, []int{1} +} + +func (m *BufferPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BufferPerRoute.Unmarshal(m, b) +} +func (m *BufferPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BufferPerRoute.Marshal(b, m, deterministic) +} +func (m *BufferPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferPerRoute.Merge(m, src) +} +func (m *BufferPerRoute) XXX_Size() int { + return xxx_messageInfo_BufferPerRoute.Size(m) +} +func (m *BufferPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_BufferPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_BufferPerRoute proto.InternalMessageInfo + +type isBufferPerRoute_Override interface { + isBufferPerRoute_Override() +} + +type BufferPerRoute_Disabled struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"` +} + +type BufferPerRoute_Buffer struct { + Buffer *Buffer `protobuf:"bytes,2,opt,name=buffer,proto3,oneof"` +} + +func (*BufferPerRoute_Disabled) isBufferPerRoute_Override() {} + +func (*BufferPerRoute_Buffer) isBufferPerRoute_Override() {} + +func (m *BufferPerRoute) GetOverride() isBufferPerRoute_Override { + if m != nil { + return m.Override + } + return nil +} + +func (m *BufferPerRoute) GetDisabled() bool { + if x, ok := m.GetOverride().(*BufferPerRoute_Disabled); ok { + return x.Disabled + } + return false +} + +func (m *BufferPerRoute) GetBuffer() *Buffer { + if x, ok := m.GetOverride().(*BufferPerRoute_Buffer); ok { + return x.Buffer + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BufferPerRoute) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BufferPerRoute_Disabled)(nil), + (*BufferPerRoute_Buffer)(nil), + } +} + +func init() { + proto.RegisterType((*Buffer)(nil), "envoy.extensions.filters.http.buffer.v3.Buffer") + proto.RegisterType((*BufferPerRoute)(nil), "envoy.extensions.filters.http.buffer.v3.BufferPerRoute") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/buffer/v3/buffer.proto", fileDescriptor_9f2ecf9d6a3464b7) +} + +var fileDescriptor_9f2ecf9d6a3464b7 = []byte{ + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x8b, 0xd4, 0x30, + 0x14, 0xc7, 0x27, 0xdd, 0xb1, 0x96, 0x2c, 0x38, 0x63, 0x2f, 0x2e, 0x8b, 0x2e, 0xeb, 0x82, 0xf8, + 0x0b, 0x12, 0x9d, 0x2a, 0xc8, 0x1e, 0x73, 0x1a, 0x3d, 0xc8, 0x50, 0x51, 0xf0, 0x34, 0xa4, 0xf6, + 0xb5, 0x46, 0x3a, 0x49, 0x4d, 0xd3, 0xda, 0xb9, 0x79, 0x14, 0xff, 0x04, 0xfd, 0x4f, 0xbc, 0x0b, + 0x5e, 0x3d, 0xf9, 0xaf, 0xc8, 0x9c, 0xa4, 0x49, 0xaa, 0xc8, 0x5e, 0xe6, 0x16, 0xf2, 0xde, 0xf7, + 0xfb, 0x3e, 0xdf, 0xf7, 0xf0, 0x23, 0x90, 0x9d, 0xda, 0x52, 0xe8, 0x0d, 0xc8, 0x46, 0x28, 0xd9, + 0xd0, 0x42, 0x54, 0x06, 0x74, 0x43, 0xdf, 0x1a, 0x53, 0xd3, 0xac, 0x2d, 0x0a, 0xd0, 0xb4, 0x4b, + 0xfc, 0x8b, 0xd4, 0x5a, 0x19, 0x15, 0xdf, 0xb6, 0x2a, 0xf2, 0x4f, 0x45, 0xbc, 0x8a, 0x0c, 0x2a, + 0xe2, 0x7b, 0xbb, 0xe4, 0xf8, 0xa4, 0x54, 0xaa, 0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a, 0x5f, 0xe0, + 0xd0, 0x79, 0x1e, 0x05, 0x36, 0x01, 0x25, 0x7b, 0x1e, 0xc3, 0x03, 0xb0, 0x68, 0x4c, 0xb3, 0x9c, + 0xa4, 0xde, 0xea, 0xfc, 0xc9, 0x10, 0x23, 0xc1, 0x0f, 0xf7, 0x8e, 0x31, 0x52, 0xb3, 0x19, 0x8e, + 0x54, 0x07, 0x5a, 0x8b, 0x1c, 0xe2, 0x83, 0xdf, 0x0c, 0xb1, 0xe7, 0xdf, 0x3e, 0xfe, 0xf8, 0x19, + 0x06, 0xf3, 0x00, 0x3f, 0x16, 0xca, 0xb1, 0xd5, 0x5a, 0xf5, 0xdb, 0x7d, 0x31, 0xd9, 0xa1, 0x9f, + 0x30, 0x1c, 0x64, 0x85, 0xb2, 0xd0, 0x5e, 0x26, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0xee, 0x34, + 0x87, 0xab, 0xaa, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.validate.go new file mode 100644 index 000000000..81ac40548 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3/buffer.pb.validate.go @@ -0,0 +1,220 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/buffer/v3/buffer.proto + +package envoy_extensions_filters_http_buffer_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _buffer_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Buffer with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Buffer) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMaxRequestBytes(); wrapper != nil { + + if wrapper.GetValue() <= 0 { + return BufferValidationError{ + field: "MaxRequestBytes", + reason: "value must be greater than 0", + } + } + + } else { + return BufferValidationError{ + field: "MaxRequestBytes", + reason: "value is required and must not be nil.", + } + } + + return nil +} + +// BufferValidationError is the validation error returned by Buffer.Validate if +// the designated constraints aren't met. +type BufferValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferValidationError) ErrorName() string { return "BufferValidationError" } + +// Error satisfies the builtin error interface +func (e BufferValidationError) 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 %sBuffer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferValidationError{} + +// Validate checks the field values on BufferPerRoute with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BufferPerRoute) Validate() error { + if m == nil { + return nil + } + + switch m.Override.(type) { + + case *BufferPerRoute_Disabled: + + if m.GetDisabled() != true { + return BufferPerRouteValidationError{ + field: "Disabled", + reason: "value must equal true", + } + } + + case *BufferPerRoute_Buffer: + + if m.GetBuffer() == nil { + return BufferPerRouteValidationError{ + field: "Buffer", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetBuffer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BufferPerRouteValidationError{ + field: "Buffer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return BufferPerRouteValidationError{ + field: "Override", + reason: "value is required", + } + + } + + return nil +} + +// BufferPerRouteValidationError is the validation error returned by +// BufferPerRoute.Validate if the designated constraints aren't met. +type BufferPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferPerRouteValidationError) ErrorName() string { return "BufferPerRouteValidationError" } + +// Error satisfies the builtin error interface +func (e BufferPerRouteValidationError) 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 %sBufferPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferPerRouteValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.go new file mode 100644 index 000000000..96ea6a311 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/cache/v3alpha/cache.proto + +package envoy_extensions_filters_http_cache_v3alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CacheConfig struct { + TypedConfig *any.Any `protobuf:"bytes,1,opt,name=typed_config,json=typedConfig,proto3" json:"typed_config,omitempty"` + AllowedVaryHeaders []*v3.StringMatcher `protobuf:"bytes,2,rep,name=allowed_vary_headers,json=allowedVaryHeaders,proto3" json:"allowed_vary_headers,omitempty"` + KeyCreatorParams *CacheConfig_KeyCreatorParams `protobuf:"bytes,3,opt,name=key_creator_params,json=keyCreatorParams,proto3" json:"key_creator_params,omitempty"` + MaxBodyBytes uint32 `protobuf:"varint,4,opt,name=max_body_bytes,json=maxBodyBytes,proto3" json:"max_body_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CacheConfig) Reset() { *m = CacheConfig{} } +func (m *CacheConfig) String() string { return proto.CompactTextString(m) } +func (*CacheConfig) ProtoMessage() {} +func (*CacheConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_09e63ce5312e748b, []int{0} +} + +func (m *CacheConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CacheConfig.Unmarshal(m, b) +} +func (m *CacheConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CacheConfig.Marshal(b, m, deterministic) +} +func (m *CacheConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CacheConfig.Merge(m, src) +} +func (m *CacheConfig) XXX_Size() int { + return xxx_messageInfo_CacheConfig.Size(m) +} +func (m *CacheConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CacheConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CacheConfig proto.InternalMessageInfo + +func (m *CacheConfig) GetTypedConfig() *any.Any { + if m != nil { + return m.TypedConfig + } + return nil +} + +func (m *CacheConfig) GetAllowedVaryHeaders() []*v3.StringMatcher { + if m != nil { + return m.AllowedVaryHeaders + } + return nil +} + +func (m *CacheConfig) GetKeyCreatorParams() *CacheConfig_KeyCreatorParams { + if m != nil { + return m.KeyCreatorParams + } + return nil +} + +func (m *CacheConfig) GetMaxBodyBytes() uint32 { + if m != nil { + return m.MaxBodyBytes + } + return 0 +} + +type CacheConfig_KeyCreatorParams struct { + ExcludeScheme bool `protobuf:"varint,1,opt,name=exclude_scheme,json=excludeScheme,proto3" json:"exclude_scheme,omitempty"` + ExcludeHost bool `protobuf:"varint,2,opt,name=exclude_host,json=excludeHost,proto3" json:"exclude_host,omitempty"` + QueryParametersIncluded []*v31.QueryParameterMatcher `protobuf:"bytes,3,rep,name=query_parameters_included,json=queryParametersIncluded,proto3" json:"query_parameters_included,omitempty"` + QueryParametersExcluded []*v31.QueryParameterMatcher `protobuf:"bytes,4,rep,name=query_parameters_excluded,json=queryParametersExcluded,proto3" json:"query_parameters_excluded,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CacheConfig_KeyCreatorParams) Reset() { *m = CacheConfig_KeyCreatorParams{} } +func (m *CacheConfig_KeyCreatorParams) String() string { return proto.CompactTextString(m) } +func (*CacheConfig_KeyCreatorParams) ProtoMessage() {} +func (*CacheConfig_KeyCreatorParams) Descriptor() ([]byte, []int) { + return fileDescriptor_09e63ce5312e748b, []int{0, 0} +} + +func (m *CacheConfig_KeyCreatorParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Unmarshal(m, b) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Marshal(b, m, deterministic) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CacheConfig_KeyCreatorParams.Merge(m, src) +} +func (m *CacheConfig_KeyCreatorParams) XXX_Size() int { + return xxx_messageInfo_CacheConfig_KeyCreatorParams.Size(m) +} +func (m *CacheConfig_KeyCreatorParams) XXX_DiscardUnknown() { + xxx_messageInfo_CacheConfig_KeyCreatorParams.DiscardUnknown(m) +} + +var xxx_messageInfo_CacheConfig_KeyCreatorParams proto.InternalMessageInfo + +func (m *CacheConfig_KeyCreatorParams) GetExcludeScheme() bool { + if m != nil { + return m.ExcludeScheme + } + return false +} + +func (m *CacheConfig_KeyCreatorParams) GetExcludeHost() bool { + if m != nil { + return m.ExcludeHost + } + return false +} + +func (m *CacheConfig_KeyCreatorParams) GetQueryParametersIncluded() []*v31.QueryParameterMatcher { + if m != nil { + return m.QueryParametersIncluded + } + return nil +} + +func (m *CacheConfig_KeyCreatorParams) GetQueryParametersExcluded() []*v31.QueryParameterMatcher { + if m != nil { + return m.QueryParametersExcluded + } + return nil +} + +func init() { + proto.RegisterType((*CacheConfig)(nil), "envoy.extensions.filters.http.cache.v3alpha.CacheConfig") + proto.RegisterType((*CacheConfig_KeyCreatorParams)(nil), "envoy.extensions.filters.http.cache.v3alpha.CacheConfig.KeyCreatorParams") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/cache/v3alpha/cache.proto", fileDescriptor_09e63ce5312e748b) +} + +var fileDescriptor_09e63ce5312e748b = []byte{ + // 570 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6a, 0xdb, 0x40, + 0x10, 0xc6, 0x91, 0x9c, 0x1a, 0xb3, 0x76, 0x82, 0x11, 0x81, 0x28, 0x86, 0x16, 0x27, 0xa4, 0x60, + 0x68, 0x58, 0x81, 0x5d, 0x28, 0xc9, 0x2d, 0x32, 0x81, 0xa4, 0xa5, 0xe0, 0x3a, 0x10, 0xe8, 0x49, + 0xac, 0xa5, 0xb5, 0x25, 0x22, 0xed, 0x2a, 0xbb, 0x2b, 0xc5, 0x7b, 0x6b, 0x6f, 0x7d, 0x86, 0x1e, + 0xfb, 0x18, 0xbd, 0x17, 0x7a, 0xed, 0xeb, 0x94, 0x1e, 0xca, 0xfe, 0x31, 0xa9, 0xd3, 0x42, 0x31, + 0xe4, 0x24, 0x69, 0x66, 0xbe, 0xdf, 0xce, 0x37, 0xa3, 0x05, 0xaf, 0x30, 0xa9, 0xa9, 0x0c, 0xf0, + 0x52, 0x60, 0xc2, 0x33, 0x4a, 0x78, 0x30, 0xcf, 0x72, 0x81, 0x19, 0x0f, 0x52, 0x21, 0xca, 0x20, + 0x46, 0x71, 0x8a, 0x83, 0x7a, 0x84, 0xf2, 0x32, 0x45, 0xe6, 0x0b, 0x96, 0x8c, 0x0a, 0xea, 0xbd, + 0xd0, 0x42, 0x78, 0x2f, 0x84, 0x56, 0x08, 0x95, 0x10, 0x9a, 0x52, 0x2b, 0xec, 0x1d, 0x9b, 0x53, + 0x62, 0x4a, 0xe6, 0xd9, 0x22, 0x60, 0xb4, 0x12, 0x0a, 0x6a, 0x5e, 0xa2, 0x98, 0x16, 0x25, 0x25, + 0x98, 0x08, 0x6e, 0xd0, 0xbd, 0x43, 0x53, 0x2d, 0x64, 0x89, 0x83, 0x02, 0x89, 0x38, 0xc5, 0x4c, + 0x55, 0x73, 0xc1, 0x32, 0xb2, 0xb0, 0x35, 0xfb, 0x0b, 0x4a, 0x17, 0x39, 0x0e, 0xf4, 0xd7, 0xac, + 0x9a, 0x07, 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0x00, 0x00, + 0xff, 0xff, 0x4b, 0xda, 0xe7, 0xfd, 0x95, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.validate.go new file mode 100644 index 000000000..de9f3c74f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha/cache.pb.validate.go @@ -0,0 +1,242 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/cache/v3alpha/cache.proto + +package envoy_extensions_filters_http_cache_v3alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cache_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CacheConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CacheConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetTypedConfig() == nil { + return CacheConfigValidationError{ + field: "TypedConfig", + reason: "value is required", + } + } + + if a := m.GetTypedConfig(); a != nil { + + } + + for idx, item := range m.GetAllowedVaryHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfigValidationError{ + field: fmt.Sprintf("AllowedVaryHeaders[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetKeyCreatorParams()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfigValidationError{ + field: "KeyCreatorParams", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxBodyBytes + + return nil +} + +// CacheConfigValidationError is the validation error returned by +// CacheConfig.Validate if the designated constraints aren't met. +type CacheConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CacheConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CacheConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CacheConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CacheConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CacheConfigValidationError) ErrorName() string { return "CacheConfigValidationError" } + +// Error satisfies the builtin error interface +func (e CacheConfigValidationError) 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 %sCacheConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CacheConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CacheConfigValidationError{} + +// Validate checks the field values on CacheConfig_KeyCreatorParams with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CacheConfig_KeyCreatorParams) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExcludeScheme + + // no validation rules for ExcludeHost + + for idx, item := range m.GetQueryParametersIncluded() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfig_KeyCreatorParamsValidationError{ + field: fmt.Sprintf("QueryParametersIncluded[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetQueryParametersExcluded() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CacheConfig_KeyCreatorParamsValidationError{ + field: fmt.Sprintf("QueryParametersExcluded[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CacheConfig_KeyCreatorParamsValidationError is the validation error returned +// by CacheConfig_KeyCreatorParams.Validate if the designated constraints +// aren't met. +type CacheConfig_KeyCreatorParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CacheConfig_KeyCreatorParamsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CacheConfig_KeyCreatorParamsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CacheConfig_KeyCreatorParamsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CacheConfig_KeyCreatorParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CacheConfig_KeyCreatorParamsValidationError) ErrorName() string { + return "CacheConfig_KeyCreatorParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e CacheConfig_KeyCreatorParamsValidationError) 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 %sCacheConfig_KeyCreatorParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CacheConfig_KeyCreatorParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CacheConfig_KeyCreatorParamsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.go new file mode 100644 index 000000000..4226c9068 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.go @@ -0,0 +1,134 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/compressor/v3/compressor.proto + +package envoy_extensions_filters_http_compressor_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Compressor struct { + ContentLength *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` + ContentType []string `protobuf:"bytes,2,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + DisableOnEtagHeader bool `protobuf:"varint,3,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"` + RemoveAcceptEncodingHeader bool `protobuf:"varint,4,opt,name=remove_accept_encoding_header,json=removeAcceptEncodingHeader,proto3" json:"remove_accept_encoding_header,omitempty"` + RuntimeEnabled *v3.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Compressor) Reset() { *m = Compressor{} } +func (m *Compressor) String() string { return proto.CompactTextString(m) } +func (*Compressor) ProtoMessage() {} +func (*Compressor) Descriptor() ([]byte, []int) { + return fileDescriptor_8d6daf60a76e0a2b, []int{0} +} + +func (m *Compressor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Compressor.Unmarshal(m, b) +} +func (m *Compressor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Compressor.Marshal(b, m, deterministic) +} +func (m *Compressor) XXX_Merge(src proto.Message) { + xxx_messageInfo_Compressor.Merge(m, src) +} +func (m *Compressor) XXX_Size() int { + return xxx_messageInfo_Compressor.Size(m) +} +func (m *Compressor) XXX_DiscardUnknown() { + xxx_messageInfo_Compressor.DiscardUnknown(m) +} + +var xxx_messageInfo_Compressor proto.InternalMessageInfo + +func (m *Compressor) GetContentLength() *wrappers.UInt32Value { + if m != nil { + return m.ContentLength + } + return nil +} + +func (m *Compressor) GetContentType() []string { + if m != nil { + return m.ContentType + } + return nil +} + +func (m *Compressor) GetDisableOnEtagHeader() bool { + if m != nil { + return m.DisableOnEtagHeader + } + return false +} + +func (m *Compressor) GetRemoveAcceptEncodingHeader() bool { + if m != nil { + return m.RemoveAcceptEncodingHeader + } + return false +} + +func (m *Compressor) GetRuntimeEnabled() *v3.RuntimeFeatureFlag { + if m != nil { + return m.RuntimeEnabled + } + return nil +} + +func init() { + proto.RegisterType((*Compressor)(nil), "envoy.extensions.filters.http.compressor.v3.Compressor") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/compressor/v3/compressor.proto", fileDescriptor_8d6daf60a76e0a2b) +} + +var fileDescriptor_8d6daf60a76e0a2b = []byte{ + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6b, 0xd4, 0x40, + 0x18, 0xc5, 0xd9, 0xad, 0x16, 0x9d, 0x6a, 0x2b, 0x11, 0x64, 0x59, 0x6c, 0xdd, 0x7a, 0x5a, 0x10, + 0x66, 0x70, 0x73, 0x51, 0xf1, 0xd2, 0x96, 0x2d, 0x0a, 0x82, 0x35, 0x68, 0xaf, 0x61, 0x36, 0xf9, + 0x36, 0x1b, 0xc8, 0x7e, 0xdf, 0x30, 0xf3, 0x25, 0x76, 0x6f, 0x1e, 0xfd, 0x1b, 0xfc, 0x53, 0xbc, + 0x0b,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ca, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.validate.go new file mode 100644 index 000000000..65d03ec3e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3/compressor.pb.validate.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/compressor/v3/compressor.proto + +package envoy_extensions_filters_http_compressor_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _compressor_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Compressor with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Compressor) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetContentLength()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompressorValidationError{ + field: "ContentLength", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DisableOnEtagHeader + + // no validation rules for RemoveAcceptEncodingHeader + + if v, ok := interface{}(m.GetRuntimeEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompressorValidationError{ + field: "RuntimeEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompressorValidationError is the validation error returned by +// Compressor.Validate if the designated constraints aren't met. +type CompressorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompressorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompressorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompressorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompressorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompressorValidationError) ErrorName() string { return "CompressorValidationError" } + +// Error satisfies the builtin error interface +func (e CompressorValidationError) 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 %sCompressor.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompressorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompressorValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.go new file mode 100644 index 000000000..18a74c4b2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/cors/v3/cors.proto + +package envoy_extensions_filters_http_cors_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Cors struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cors) Reset() { *m = Cors{} } +func (m *Cors) String() string { return proto.CompactTextString(m) } +func (*Cors) ProtoMessage() {} +func (*Cors) Descriptor() ([]byte, []int) { + return fileDescriptor_b14462ebc0c27ba0, []int{0} +} + +func (m *Cors) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Cors.Unmarshal(m, b) +} +func (m *Cors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Cors.Marshal(b, m, deterministic) +} +func (m *Cors) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cors.Merge(m, src) +} +func (m *Cors) XXX_Size() int { + return xxx_messageInfo_Cors.Size(m) +} +func (m *Cors) XXX_DiscardUnknown() { + xxx_messageInfo_Cors.DiscardUnknown(m) +} + +var xxx_messageInfo_Cors proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Cors)(nil), "envoy.extensions.filters.http.cors.v3.Cors") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/cors/v3/cors.proto", fileDescriptor_b14462ebc0c27ba0) +} + +var fileDescriptor_b14462ebc0c27ba0 = []byte{ + // 199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0xce, 0x2f, 0x2a, 0xd6, 0x2f, + 0x33, 0x06, 0xd3, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xaa, 0x60, 0x1d, 0x7a, 0x08, 0x1d, + 0x7a, 0x50, 0x1d, 0x7a, 0x20, 0x1d, 0x7a, 0x60, 0x95, 0x65, 0xc6, 0x52, 0xb2, 0xa5, 0x29, 0x05, + 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89, 0x25, 0x60, 0x83, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, + 0xa1, 0xa6, 0x48, 0x29, 0x62, 0x48, 0x97, 0xa5, 0x16, 0x81, 0x8c, 0xcb, 0xcc, 0x4b, 0x87, 0x28, + 0x51, 0x32, 0xe1, 0x62, 0x71, 0xce, 0x2f, 0x2a, 0xb6, 0xd2, 0x99, 0x75, 0xb4, 0x43, 0x4e, 0x9d, + 0x0b, 0x6a, 0x6f, 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0x3a, 0xd4, 0x4e, 0x64, 0x2b, 0x8d, 0xf4, 0x40, + 0xaa, 0x9d, 0xbc, 0x76, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc4, 0x65, 0x9c, 0x99, 0xaf, + 0x07, 0xd6, 0x53, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0x94, 0xb3, 0x9d, 0x38, 0x41, 0x86, 0x04, + 0x80, 0xec, 0x0f, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xc4, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x9d, + 0x08, 0x01, 0x7d, 0x25, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.validate.go new file mode 100644 index 000000000..dd5cbf531 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3/cors.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/cors/v3/cors.proto + +package envoy_extensions_filters_http_cors_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cors_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Cors with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Cors) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CorsValidationError is the validation error returned by Cors.Validate if the +// designated constraints aren't met. +type CorsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CorsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CorsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CorsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CorsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CorsValidationError) ErrorName() string { return "CorsValidationError" } + +// Error satisfies the builtin error interface +func (e CorsValidationError) 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 %sCors.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CorsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CorsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.go new file mode 100644 index 000000000..1f9b28181 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.go @@ -0,0 +1,117 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/csrf/v3/csrf.proto + +package envoy_extensions_filters_http_csrf_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CsrfPolicy struct { + FilterEnabled *v3.RuntimeFractionalPercent `protobuf:"bytes,1,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"` + ShadowEnabled *v3.RuntimeFractionalPercent `protobuf:"bytes,2,opt,name=shadow_enabled,json=shadowEnabled,proto3" json:"shadow_enabled,omitempty"` + AdditionalOrigins []*v31.StringMatcher `protobuf:"bytes,3,rep,name=additional_origins,json=additionalOrigins,proto3" json:"additional_origins,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CsrfPolicy) Reset() { *m = CsrfPolicy{} } +func (m *CsrfPolicy) String() string { return proto.CompactTextString(m) } +func (*CsrfPolicy) ProtoMessage() {} +func (*CsrfPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_f774914a061d1c8b, []int{0} +} + +func (m *CsrfPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CsrfPolicy.Unmarshal(m, b) +} +func (m *CsrfPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CsrfPolicy.Marshal(b, m, deterministic) +} +func (m *CsrfPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_CsrfPolicy.Merge(m, src) +} +func (m *CsrfPolicy) XXX_Size() int { + return xxx_messageInfo_CsrfPolicy.Size(m) +} +func (m *CsrfPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_CsrfPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_CsrfPolicy proto.InternalMessageInfo + +func (m *CsrfPolicy) GetFilterEnabled() *v3.RuntimeFractionalPercent { + if m != nil { + return m.FilterEnabled + } + return nil +} + +func (m *CsrfPolicy) GetShadowEnabled() *v3.RuntimeFractionalPercent { + if m != nil { + return m.ShadowEnabled + } + return nil +} + +func (m *CsrfPolicy) GetAdditionalOrigins() []*v31.StringMatcher { + if m != nil { + return m.AdditionalOrigins + } + return nil +} + +func init() { + proto.RegisterType((*CsrfPolicy)(nil), "envoy.extensions.filters.http.csrf.v3.CsrfPolicy") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/csrf/v3/csrf.proto", fileDescriptor_f774914a061d1c8b) +} + +var fileDescriptor_f774914a061d1c8b = []byte{ + // 389 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x4b, 0xe3, 0x40, + 0x14, 0xc7, 0x49, 0xca, 0x96, 0xdd, 0x29, 0x2d, 0xdd, 0x5c, 0xb6, 0x14, 0x76, 0xb7, 0x5b, 0x76, + 0xa1, 0xb0, 0x38, 0x23, 0xc9, 0xcd, 0x63, 0x44, 0x0f, 0x82, 0x58, 0x52, 0x3c, 0x97, 0x69, 0x32, + 0x69, 0x07, 0xd2, 0x99, 0x30, 0x33, 0x8d, 0xcd, 0xcd, 0xa3, 0xf8, 0x11, 0xfc, 0x28, 0xde, 0x05, +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, 0x9a, 0x4d, 0x99, 0x8a, 0x99, 0x30, 0xe1, 0xd7, + 0xa7, 0xf0, 0xcb, 0xb5, 0xe3, 0xf6, 0x9d, 0xa8, 0x0b, 0xbc, 0x23, 0xc0, 0x79, 0xe7, 0xa8, 0xa7, + 0x57, 0x34, 0x91, 0x17, 0x2f, 0x0d, 0xdc, 0xcf, 0x34, 0x88, 0xba, 0x40, 0xd9, 0x61, 0x67, 0xc8, + 0xa3, 0x49, 0xc2, 0x41, 0x33, 0x97, 0x8a, 0x2f, 0xb9, 0xd0, 0x83, 0xd6, 0xa8, 0x35, 0xe9, 0xf8, + 0x7f, 0x6b, 0xb4, 0x5d, 0x31, 0xae, 0x57, 0x6c, 0xd9, 0xb3, 0x6a, 0xc5, 0xa7, 0xf0, 0x21, 0xfa, + 0xde, 0xf8, 0xcf, 0xc0, 0x7e, 0xe0, 0xdf, 0xdc, 0x5d, 0xfd, 0xda, 0x43, 0xff, 0xdf, 0x4c, 0x06, + 0x71, 0x5e, 0x1f, 0xd9, 0xc7, 0xcd, 0x02, 0xc3, 0x93, 0xdb, 0xcb, 0xfb, 0xc7, 0xb6, 0xdb, 0x77, + 0x51, 0xc0, 0x25, 0x34, 0xce, 0x95, 0xdc, 0x96, 0xf8, 0x43, 0xbf, 0x4b, 0xf8, 0xad, 0x42, 0xd9, + 0xcb, 0x4c, 0x9d, 0x45, 0xbb, 0x3a, 0x51, 0xf0, 0x1c, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x5d, 0x57, + 0x4e, 0x9d, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.validate.go new file mode 100644 index 000000000..1d3f48f18 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3/csrf.pb.validate.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/csrf/v3/csrf.proto + +package envoy_extensions_filters_http_csrf_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _csrf_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CsrfPolicy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *CsrfPolicy) Validate() error { + if m == nil { + return nil + } + + if m.GetFilterEnabled() == nil { + return CsrfPolicyValidationError{ + field: "FilterEnabled", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetFilterEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: "FilterEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetShadowEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: "ShadowEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetAdditionalOrigins() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CsrfPolicyValidationError{ + field: fmt.Sprintf("AdditionalOrigins[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CsrfPolicyValidationError is the validation error returned by +// CsrfPolicy.Validate if the designated constraints aren't met. +type CsrfPolicyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CsrfPolicyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CsrfPolicyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CsrfPolicyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CsrfPolicyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CsrfPolicyValidationError) ErrorName() string { return "CsrfPolicyValidationError" } + +// Error satisfies the builtin error interface +func (e CsrfPolicyValidationError) 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 %sCsrfPolicy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CsrfPolicyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CsrfPolicyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.go new file mode 100644 index 000000000..a7f7506ad --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.proto + +package envoy_extensions_filters_http_dynamic_forward_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + DnsCacheConfig *v3.DnsCacheConfig `protobuf:"bytes,1,opt,name=dns_cache_config,json=dnsCacheConfig,proto3" json:"dns_cache_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_919f718544b11cb2, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetDnsCacheConfig() *v3.DnsCacheConfig { + if m != nil { + return m.DnsCacheConfig + } + return nil +} + +type PerRouteConfig struct { + // Types that are valid to be assigned to HostRewriteSpecifier: + // *PerRouteConfig_HostRewriteLiteral + // *PerRouteConfig_HostRewriteHeader + HostRewriteSpecifier isPerRouteConfig_HostRewriteSpecifier `protobuf_oneof:"host_rewrite_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerRouteConfig) Reset() { *m = PerRouteConfig{} } +func (m *PerRouteConfig) String() string { return proto.CompactTextString(m) } +func (*PerRouteConfig) ProtoMessage() {} +func (*PerRouteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_919f718544b11cb2, []int{1} +} + +func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerRouteConfig.Unmarshal(m, b) +} +func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerRouteConfig.Marshal(b, m, deterministic) +} +func (m *PerRouteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerRouteConfig.Merge(m, src) +} +func (m *PerRouteConfig) XXX_Size() int { + return xxx_messageInfo_PerRouteConfig.Size(m) +} +func (m *PerRouteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerRouteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerRouteConfig proto.InternalMessageInfo + +type isPerRouteConfig_HostRewriteSpecifier interface { + isPerRouteConfig_HostRewriteSpecifier() +} + +type PerRouteConfig_HostRewriteLiteral struct { + HostRewriteLiteral string `protobuf:"bytes,1,opt,name=host_rewrite_literal,json=hostRewriteLiteral,proto3,oneof"` +} + +type PerRouteConfig_HostRewriteHeader struct { + HostRewriteHeader string `protobuf:"bytes,2,opt,name=host_rewrite_header,json=hostRewriteHeader,proto3,oneof"` +} + +func (*PerRouteConfig_HostRewriteLiteral) isPerRouteConfig_HostRewriteSpecifier() {} + +func (*PerRouteConfig_HostRewriteHeader) isPerRouteConfig_HostRewriteSpecifier() {} + +func (m *PerRouteConfig) GetHostRewriteSpecifier() isPerRouteConfig_HostRewriteSpecifier { + if m != nil { + return m.HostRewriteSpecifier + } + return nil +} + +func (m *PerRouteConfig) GetHostRewriteLiteral() string { + if x, ok := m.GetHostRewriteSpecifier().(*PerRouteConfig_HostRewriteLiteral); ok { + return x.HostRewriteLiteral + } + return "" +} + +func (m *PerRouteConfig) GetHostRewriteHeader() string { + if x, ok := m.GetHostRewriteSpecifier().(*PerRouteConfig_HostRewriteHeader); ok { + return x.HostRewriteHeader + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PerRouteConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PerRouteConfig_HostRewriteLiteral)(nil), + (*PerRouteConfig_HostRewriteHeader)(nil), + } +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig") + proto.RegisterType((*PerRouteConfig)(nil), "envoy.extensions.filters.http.dynamic_forward_proxy.v3.PerRouteConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.proto", fileDescriptor_919f718544b11cb2) +} + +var fileDescriptor_919f718544b11cb2 = []byte{ + // 405 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcf, 0x4a, 0xeb, 0x40, + 0x14, 0xc6, 0x6f, 0x02, 0xb7, 0xdc, 0x3b, 0x4a, 0xa9, 0x51, 0x34, 0x14, 0x14, 0xed, 0xca, 0xd5, + 0x44, 0x5a, 0x70, 0xd1, 0x55, 0x49, 0xff, 0x58, 0xa4, 0x8b, 0x90, 0x17, 0x08, 0x63, 0x32, 0x69, + 0x46, 0xd2, 0x99, 0x30, 0x33, 0x4d, 0xdb, 0x9d, 0x4b, 0xf1, 0x11, 0x7c, 0x14, 0xf7, 0x82, 0x4b, + 0x7d, 0x01, 0x1f, 0xc4, 0x95, 0x24, 0x13, 0xb5, 0xa1, 0xb5, 0x8b, 0xee, 0xc2, 0xf9, 0xe5, 0x7c, + 0xdf, 0xf9, 0xce, 0x1c, 0xe0, 0x62, 0x9a, 0xb2, 0x85, 0x85, 0xe7, 0x12, 0x53, 0x41, 0x18, 0x15, + 0x56, 0x48, 0x62, 0x89, 0xb9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, 0x59, 0xc8, 0x1b, + 0x4d, 0x70, 0x10, 0x31, 0x21, 0x3d, 0x8e, 0x67, 0x9c, 0x48, 0xec, 0xc5, 0x44, 0x62, 0x8e, 0xe2, + 0x3c, 0xd8, 0xff, 0xe1, 0x1f, 0xd7, 0xc8, 0xa8, 0xab, 0xe0, 0x48, 0x31, 0xe3, 0x02, 0xec, 0x97, + 0x7a, 0x22, 0x8c, 0x02, 0xcc, 0x4d, 0xbd, 0x68, 0xd9, 0x5b, 0x6a, 0x19, 0xe6, 0xa8, 0x3d, 0xca, + 0x42, 0x5c, 0x81, 0xfe, 0x96, 0x21, 0xca, 0x33, 0xdb, 0x26, 0x38, 0x2c, 0xf9, 0x8b, 0x04, 0xfb, + 0x24, 0x24, 0x98, 0xdb, 0xb7, 0x4f, 0x77, 0x2f, 0x6f, 0x15, 0xbd, 0xa6, 0x83, 0x1e, 0x61, 0xea, + 0x51, 0x94, 0xd2, 0x76, 0x07, 0x6a, 0x9b, 0x3d, 0x45, 0x06, 0x0a, 0x38, 0x59, 0xdd, 0xc9, 0xae, + 0xc3, 0xd1, 0x6e, 0x2a, 0xf9, 0x99, 0xb4, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x25, 0x80, + 0x35, 0x51, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.validate.go new file mode 100644 index 000000000..b99182345 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.pb.validate.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.proto + +package envoy_extensions_filters_http_dynamic_forward_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dynamic_forward_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetDnsCacheConfig() == nil { + return FilterConfigValidationError{ + field: "DnsCacheConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetDnsCacheConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "DnsCacheConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on PerRouteConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerRouteConfig) Validate() error { + if m == nil { + return nil + } + + switch m.HostRewriteSpecifier.(type) { + + case *PerRouteConfig_HostRewriteLiteral: + // no validation rules for HostRewriteLiteral + + case *PerRouteConfig_HostRewriteHeader: + // no validation rules for HostRewriteHeader + + } + + return nil +} + +// PerRouteConfigValidationError is the validation error returned by +// PerRouteConfig.Validate if the designated constraints aren't met. +type PerRouteConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerRouteConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerRouteConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerRouteConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerRouteConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerRouteConfigValidationError) ErrorName() string { return "PerRouteConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerRouteConfigValidationError) 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 %sPerRouteConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerRouteConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerRouteConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.go new file mode 100644 index 000000000..7094f697a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/dynamo/v3/dynamo.proto + +package envoy_extensions_filters_http_dynamo_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Dynamo struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Dynamo) Reset() { *m = Dynamo{} } +func (m *Dynamo) String() string { return proto.CompactTextString(m) } +func (*Dynamo) ProtoMessage() {} +func (*Dynamo) Descriptor() ([]byte, []int) { + return fileDescriptor_79057240c5b18ac4, []int{0} +} + +func (m *Dynamo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dynamo.Unmarshal(m, b) +} +func (m *Dynamo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dynamo.Marshal(b, m, deterministic) +} +func (m *Dynamo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dynamo.Merge(m, src) +} +func (m *Dynamo) XXX_Size() int { + return xxx_messageInfo_Dynamo.Size(m) +} +func (m *Dynamo) XXX_DiscardUnknown() { + xxx_messageInfo_Dynamo.DiscardUnknown(m) +} + +var xxx_messageInfo_Dynamo proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Dynamo)(nil), "envoy.extensions.filters.http.dynamo.v3.Dynamo") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/dynamo/v3/dynamo.proto", fileDescriptor_79057240c5b18ac4) +} + +var fileDescriptor_79057240c5b18ac4 = []byte{ + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, + 0xd7, 0x2f, 0x33, 0x86, 0xb2, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xd4, 0xc1, 0xba, 0xf4, + 0x10, 0xba, 0xf4, 0xa0, 0xba, 0xf4, 0x40, 0xba, 0xf4, 0xa0, 0x6a, 0xcb, 0x8c, 0xa5, 0x64, 0x4b, + 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0xc0, 0xc6, 0x17, 0x97, 0x24, + 0x96, 0x94, 0x16, 0x43, 0xcc, 0x91, 0x52, 0xc4, 0x90, 0x2e, 0x4b, 0x2d, 0x02, 0x19, 0x98, 0x99, + 0x97, 0x0e, 0x51, 0xa2, 0x64, 0xc5, 0xc5, 0xe6, 0x02, 0x36, 0xce, 0xca, 0x60, 0xd6, 0xd1, 0x0e, + 0x39, 0x6d, 0x2e, 0x4d, 0x88, 0xdd, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0x50, 0x7b, 0x51, 0xad, + 0x35, 0xd2, 0x83, 0xe8, 0x70, 0xf2, 0xdb, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, 0x00, 0x13, 0x97, + 0x69, 0x66, 0xbe, 0x1e, 0x58, 0x5f, 0x41, 0x51, 0x7e, 0x45, 0xa5, 0x1e, 0x91, 0xce, 0x77, 0xe2, + 0x86, 0x18, 0x14, 0x00, 0x72, 0x49, 0x00, 0x63, 0x12, 0x1b, 0xd8, 0x49, 0xc6, 0x80, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x6b, 0xbd, 0x20, 0xc4, 0x35, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.validate.go new file mode 100644 index 000000000..24de91f2e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3/dynamo.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/dynamo/v3/dynamo.proto + +package envoy_extensions_filters_http_dynamo_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dynamo_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Dynamo with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Dynamo) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DynamoValidationError is the validation error returned by Dynamo.Validate if +// the designated constraints aren't met. +type DynamoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamoValidationError) ErrorName() string { return "DynamoValidationError" } + +// Error satisfies the builtin error interface +func (e DynamoValidationError) 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 %sDynamo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamoValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.go new file mode 100644 index 000000000..2bca16803 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.go @@ -0,0 +1,590 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto + +package envoy_extensions_filters_http_ext_authz_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v32 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ExtAuthz struct { + // Types that are valid to be assigned to Services: + // *ExtAuthz_GrpcService + // *ExtAuthz_HttpService + Services isExtAuthz_Services `protobuf_oneof:"services"` + FailureModeAllow bool `protobuf:"varint,2,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"` + HiddenEnvoyDeprecatedUseAlpha bool `protobuf:"varint,4,opt,name=hidden_envoy_deprecated_use_alpha,json=hiddenEnvoyDeprecatedUseAlpha,proto3" json:"hidden_envoy_deprecated_use_alpha,omitempty"` // Deprecated: Do not use. + WithRequestBody *BufferSettings `protobuf:"bytes,5,opt,name=with_request_body,json=withRequestBody,proto3" json:"with_request_body,omitempty"` + ClearRouteCache bool `protobuf:"varint,6,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"` + StatusOnError *v31.HttpStatus `protobuf:"bytes,7,opt,name=status_on_error,json=statusOnError,proto3" json:"status_on_error,omitempty"` + MetadataContextNamespaces []string `protobuf:"bytes,8,rep,name=metadata_context_namespaces,json=metadataContextNamespaces,proto3" json:"metadata_context_namespaces,omitempty"` + FilterEnabled *v3.RuntimeFractionalPercent `protobuf:"bytes,9,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"` + IncludePeerCertificate bool `protobuf:"varint,10,opt,name=include_peer_certificate,json=includePeerCertificate,proto3" json:"include_peer_certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthz) Reset() { *m = ExtAuthz{} } +func (m *ExtAuthz) String() string { return proto.CompactTextString(m) } +func (*ExtAuthz) ProtoMessage() {} +func (*ExtAuthz) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{0} +} + +func (m *ExtAuthz) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthz.Unmarshal(m, b) +} +func (m *ExtAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthz.Marshal(b, m, deterministic) +} +func (m *ExtAuthz) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthz.Merge(m, src) +} +func (m *ExtAuthz) XXX_Size() int { + return xxx_messageInfo_ExtAuthz.Size(m) +} +func (m *ExtAuthz) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthz.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthz proto.InternalMessageInfo + +type isExtAuthz_Services interface { + isExtAuthz_Services() +} + +type ExtAuthz_GrpcService struct { + GrpcService *v3.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3,oneof"` +} + +type ExtAuthz_HttpService struct { + HttpService *HttpService `protobuf:"bytes,3,opt,name=http_service,json=httpService,proto3,oneof"` +} + +func (*ExtAuthz_GrpcService) isExtAuthz_Services() {} + +func (*ExtAuthz_HttpService) isExtAuthz_Services() {} + +func (m *ExtAuthz) GetServices() isExtAuthz_Services { + if m != nil { + return m.Services + } + return nil +} + +func (m *ExtAuthz) GetGrpcService() *v3.GrpcService { + if x, ok := m.GetServices().(*ExtAuthz_GrpcService); ok { + return x.GrpcService + } + return nil +} + +func (m *ExtAuthz) GetHttpService() *HttpService { + if x, ok := m.GetServices().(*ExtAuthz_HttpService); ok { + return x.HttpService + } + return nil +} + +func (m *ExtAuthz) GetFailureModeAllow() bool { + if m != nil { + return m.FailureModeAllow + } + return false +} + +// Deprecated: Do not use. +func (m *ExtAuthz) GetHiddenEnvoyDeprecatedUseAlpha() bool { + if m != nil { + return m.HiddenEnvoyDeprecatedUseAlpha + } + return false +} + +func (m *ExtAuthz) GetWithRequestBody() *BufferSettings { + if m != nil { + return m.WithRequestBody + } + return nil +} + +func (m *ExtAuthz) GetClearRouteCache() bool { + if m != nil { + return m.ClearRouteCache + } + return false +} + +func (m *ExtAuthz) GetStatusOnError() *v31.HttpStatus { + if m != nil { + return m.StatusOnError + } + return nil +} + +func (m *ExtAuthz) GetMetadataContextNamespaces() []string { + if m != nil { + return m.MetadataContextNamespaces + } + return nil +} + +func (m *ExtAuthz) GetFilterEnabled() *v3.RuntimeFractionalPercent { + if m != nil { + return m.FilterEnabled + } + return nil +} + +func (m *ExtAuthz) GetIncludePeerCertificate() bool { + if m != nil { + return m.IncludePeerCertificate + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExtAuthz) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExtAuthz_GrpcService)(nil), + (*ExtAuthz_HttpService)(nil), + } +} + +type BufferSettings struct { + MaxRequestBytes uint32 `protobuf:"varint,1,opt,name=max_request_bytes,json=maxRequestBytes,proto3" json:"max_request_bytes,omitempty"` + AllowPartialMessage bool `protobuf:"varint,2,opt,name=allow_partial_message,json=allowPartialMessage,proto3" json:"allow_partial_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BufferSettings) Reset() { *m = BufferSettings{} } +func (m *BufferSettings) String() string { return proto.CompactTextString(m) } +func (*BufferSettings) ProtoMessage() {} +func (*BufferSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{1} +} + +func (m *BufferSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BufferSettings.Unmarshal(m, b) +} +func (m *BufferSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BufferSettings.Marshal(b, m, deterministic) +} +func (m *BufferSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferSettings.Merge(m, src) +} +func (m *BufferSettings) XXX_Size() int { + return xxx_messageInfo_BufferSettings.Size(m) +} +func (m *BufferSettings) XXX_DiscardUnknown() { + xxx_messageInfo_BufferSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_BufferSettings proto.InternalMessageInfo + +func (m *BufferSettings) GetMaxRequestBytes() uint32 { + if m != nil { + return m.MaxRequestBytes + } + return 0 +} + +func (m *BufferSettings) GetAllowPartialMessage() bool { + if m != nil { + return m.AllowPartialMessage + } + return false +} + +type HttpService struct { + ServerUri *v3.HttpUri `protobuf:"bytes,1,opt,name=server_uri,json=serverUri,proto3" json:"server_uri,omitempty"` + PathPrefix string `protobuf:"bytes,2,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` + AuthorizationRequest *AuthorizationRequest `protobuf:"bytes,7,opt,name=authorization_request,json=authorizationRequest,proto3" json:"authorization_request,omitempty"` + AuthorizationResponse *AuthorizationResponse `protobuf:"bytes,8,opt,name=authorization_response,json=authorizationResponse,proto3" json:"authorization_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpService) Reset() { *m = HttpService{} } +func (m *HttpService) String() string { return proto.CompactTextString(m) } +func (*HttpService) ProtoMessage() {} +func (*HttpService) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{2} +} + +func (m *HttpService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpService.Unmarshal(m, b) +} +func (m *HttpService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpService.Marshal(b, m, deterministic) +} +func (m *HttpService) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpService.Merge(m, src) +} +func (m *HttpService) XXX_Size() int { + return xxx_messageInfo_HttpService.Size(m) +} +func (m *HttpService) XXX_DiscardUnknown() { + xxx_messageInfo_HttpService.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpService proto.InternalMessageInfo + +func (m *HttpService) GetServerUri() *v3.HttpUri { + if m != nil { + return m.ServerUri + } + return nil +} + +func (m *HttpService) GetPathPrefix() string { + if m != nil { + return m.PathPrefix + } + return "" +} + +func (m *HttpService) GetAuthorizationRequest() *AuthorizationRequest { + if m != nil { + return m.AuthorizationRequest + } + return nil +} + +func (m *HttpService) GetAuthorizationResponse() *AuthorizationResponse { + if m != nil { + return m.AuthorizationResponse + } + return nil +} + +type AuthorizationRequest struct { + AllowedHeaders *v32.ListStringMatcher `protobuf:"bytes,1,opt,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"` + HeadersToAdd []*v3.HeaderValue `protobuf:"bytes,2,rep,name=headers_to_add,json=headersToAdd,proto3" json:"headers_to_add,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuthorizationRequest) Reset() { *m = AuthorizationRequest{} } +func (m *AuthorizationRequest) String() string { return proto.CompactTextString(m) } +func (*AuthorizationRequest) ProtoMessage() {} +func (*AuthorizationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{3} +} + +func (m *AuthorizationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthorizationRequest.Unmarshal(m, b) +} +func (m *AuthorizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthorizationRequest.Marshal(b, m, deterministic) +} +func (m *AuthorizationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizationRequest.Merge(m, src) +} +func (m *AuthorizationRequest) XXX_Size() int { + return xxx_messageInfo_AuthorizationRequest.Size(m) +} +func (m *AuthorizationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizationRequest proto.InternalMessageInfo + +func (m *AuthorizationRequest) GetAllowedHeaders() *v32.ListStringMatcher { + if m != nil { + return m.AllowedHeaders + } + return nil +} + +func (m *AuthorizationRequest) GetHeadersToAdd() []*v3.HeaderValue { + if m != nil { + return m.HeadersToAdd + } + return nil +} + +type AuthorizationResponse struct { + AllowedUpstreamHeaders *v32.ListStringMatcher `protobuf:"bytes,1,opt,name=allowed_upstream_headers,json=allowedUpstreamHeaders,proto3" json:"allowed_upstream_headers,omitempty"` + AllowedClientHeaders *v32.ListStringMatcher `protobuf:"bytes,2,opt,name=allowed_client_headers,json=allowedClientHeaders,proto3" json:"allowed_client_headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuthorizationResponse) Reset() { *m = AuthorizationResponse{} } +func (m *AuthorizationResponse) String() string { return proto.CompactTextString(m) } +func (*AuthorizationResponse) ProtoMessage() {} +func (*AuthorizationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{4} +} + +func (m *AuthorizationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthorizationResponse.Unmarshal(m, b) +} +func (m *AuthorizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthorizationResponse.Marshal(b, m, deterministic) +} +func (m *AuthorizationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizationResponse.Merge(m, src) +} +func (m *AuthorizationResponse) XXX_Size() int { + return xxx_messageInfo_AuthorizationResponse.Size(m) +} +func (m *AuthorizationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizationResponse proto.InternalMessageInfo + +func (m *AuthorizationResponse) GetAllowedUpstreamHeaders() *v32.ListStringMatcher { + if m != nil { + return m.AllowedUpstreamHeaders + } + return nil +} + +func (m *AuthorizationResponse) GetAllowedClientHeaders() *v32.ListStringMatcher { + if m != nil { + return m.AllowedClientHeaders + } + return nil +} + +type ExtAuthzPerRoute struct { + // Types that are valid to be assigned to Override: + // *ExtAuthzPerRoute_Disabled + // *ExtAuthzPerRoute_CheckSettings + Override isExtAuthzPerRoute_Override `protobuf_oneof:"override"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthzPerRoute) Reset() { *m = ExtAuthzPerRoute{} } +func (m *ExtAuthzPerRoute) String() string { return proto.CompactTextString(m) } +func (*ExtAuthzPerRoute) ProtoMessage() {} +func (*ExtAuthzPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{5} +} + +func (m *ExtAuthzPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthzPerRoute.Unmarshal(m, b) +} +func (m *ExtAuthzPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthzPerRoute.Marshal(b, m, deterministic) +} +func (m *ExtAuthzPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthzPerRoute.Merge(m, src) +} +func (m *ExtAuthzPerRoute) XXX_Size() int { + return xxx_messageInfo_ExtAuthzPerRoute.Size(m) +} +func (m *ExtAuthzPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthzPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthzPerRoute proto.InternalMessageInfo + +type isExtAuthzPerRoute_Override interface { + isExtAuthzPerRoute_Override() +} + +type ExtAuthzPerRoute_Disabled struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"` +} + +type ExtAuthzPerRoute_CheckSettings struct { + CheckSettings *CheckSettings `protobuf:"bytes,2,opt,name=check_settings,json=checkSettings,proto3,oneof"` +} + +func (*ExtAuthzPerRoute_Disabled) isExtAuthzPerRoute_Override() {} + +func (*ExtAuthzPerRoute_CheckSettings) isExtAuthzPerRoute_Override() {} + +func (m *ExtAuthzPerRoute) GetOverride() isExtAuthzPerRoute_Override { + if m != nil { + return m.Override + } + return nil +} + +func (m *ExtAuthzPerRoute) GetDisabled() bool { + if x, ok := m.GetOverride().(*ExtAuthzPerRoute_Disabled); ok { + return x.Disabled + } + return false +} + +func (m *ExtAuthzPerRoute) GetCheckSettings() *CheckSettings { + if x, ok := m.GetOverride().(*ExtAuthzPerRoute_CheckSettings); ok { + return x.CheckSettings + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExtAuthzPerRoute) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExtAuthzPerRoute_Disabled)(nil), + (*ExtAuthzPerRoute_CheckSettings)(nil), + } +} + +type CheckSettings struct { + ContextExtensions map[string]string `protobuf:"bytes,1,rep,name=context_extensions,json=contextExtensions,proto3" json:"context_extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckSettings) Reset() { *m = CheckSettings{} } +func (m *CheckSettings) String() string { return proto.CompactTextString(m) } +func (*CheckSettings) ProtoMessage() {} +func (*CheckSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_9a074478ef6deb0a, []int{6} +} + +func (m *CheckSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckSettings.Unmarshal(m, b) +} +func (m *CheckSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckSettings.Marshal(b, m, deterministic) +} +func (m *CheckSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSettings.Merge(m, src) +} +func (m *CheckSettings) XXX_Size() int { + return xxx_messageInfo_CheckSettings.Size(m) +} +func (m *CheckSettings) XXX_DiscardUnknown() { + xxx_messageInfo_CheckSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckSettings proto.InternalMessageInfo + +func (m *CheckSettings) GetContextExtensions() map[string]string { + if m != nil { + return m.ContextExtensions + } + return nil +} + +func init() { + proto.RegisterType((*ExtAuthz)(nil), "envoy.extensions.filters.http.ext_authz.v3.ExtAuthz") + proto.RegisterType((*BufferSettings)(nil), "envoy.extensions.filters.http.ext_authz.v3.BufferSettings") + proto.RegisterType((*HttpService)(nil), "envoy.extensions.filters.http.ext_authz.v3.HttpService") + proto.RegisterType((*AuthorizationRequest)(nil), "envoy.extensions.filters.http.ext_authz.v3.AuthorizationRequest") + proto.RegisterType((*AuthorizationResponse)(nil), "envoy.extensions.filters.http.ext_authz.v3.AuthorizationResponse") + proto.RegisterType((*ExtAuthzPerRoute)(nil), "envoy.extensions.filters.http.ext_authz.v3.ExtAuthzPerRoute") + proto.RegisterType((*CheckSettings)(nil), "envoy.extensions.filters.http.ext_authz.v3.CheckSettings") + proto.RegisterMapType((map[string]string)(nil), "envoy.extensions.filters.http.ext_authz.v3.CheckSettings.ContextExtensionsEntry") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto", fileDescriptor_9a074478ef6deb0a) +} + +var fileDescriptor_9a074478ef6deb0a = []byte{ + // 1213 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xee, 0xda, 0x4e, 0xba, 0x99, 0x34, 0x89, 0x33, 0x24, 0x61, 0x5b, 0x54, 0x9a, 0x1a, 0x21, + 0xa2, 0x0a, 0xad, 0xa1, 0xa6, 0x25, 0xb8, 0x2d, 0xc2, 0x4e, 0xd3, 0x46, 0x11, 0x05, 0xb3, 0x21, + 0x9c, 0x10, 0xa3, 0xc9, 0xee, 0x73, 0x3c, 0xd4, 0xde, 0x5d, 0x66, 0x66, 0x5d, 0xbb, 0x17, 0x38, + 0x22, 0x8e, 0x1c, 0x91, 0x10, 0x7f, 0x02, 0x37, 0x84, 0xb8, 0x23, 0x71, 0x85, 0x3f, 0x84, 0x03, + 0x12, 0x02, 0xf5, 0x84, 0xe6, 0xc7, 0xfa, 0x47, 0x6b, 0x44, 0x12, 0x6e, 0xde, 0x79, 0xdf, 0xfb, + 0xde, 0x7b,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x57, 0x7f, 0x03, 0x5b, 0xce, 0xd1, 0xbc, 0xfe, 0x3f, 0x58, 0xfb, + 0x27, 0x00, 0x00, 0xff, 0xff, 0x83, 0x17, 0x71, 0x32, 0xad, 0x0b, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.validate.go new file mode 100644 index 000000000..8e861147e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3/ext_authz.pb.validate.go @@ -0,0 +1,687 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto + +package envoy_extensions_filters_http_ext_authz_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ext_authz_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ExtAuthz with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ExtAuthz) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailureModeAllow + + // no validation rules for HiddenEnvoyDeprecatedUseAlpha + + if v, ok := interface{}(m.GetWithRequestBody()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "WithRequestBody", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ClearRouteCache + + if v, ok := interface{}(m.GetStatusOnError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "StatusOnError", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFilterEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "FilterEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IncludePeerCertificate + + switch m.Services.(type) { + + case *ExtAuthz_GrpcService: + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExtAuthz_HttpService: + + if v, ok := interface{}(m.GetHttpService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "HttpService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ExtAuthzValidationError is the validation error returned by +// ExtAuthz.Validate if the designated constraints aren't met. +type ExtAuthzValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzValidationError) ErrorName() string { return "ExtAuthzValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzValidationError) 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 %sExtAuthz.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzValidationError{} + +// Validate checks the field values on BufferSettings with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BufferSettings) Validate() error { + if m == nil { + return nil + } + + if m.GetMaxRequestBytes() <= 0 { + return BufferSettingsValidationError{ + field: "MaxRequestBytes", + reason: "value must be greater than 0", + } + } + + // no validation rules for AllowPartialMessage + + return nil +} + +// BufferSettingsValidationError is the validation error returned by +// BufferSettings.Validate if the designated constraints aren't met. +type BufferSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BufferSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BufferSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BufferSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BufferSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BufferSettingsValidationError) ErrorName() string { return "BufferSettingsValidationError" } + +// Error satisfies the builtin error interface +func (e BufferSettingsValidationError) 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 %sBufferSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BufferSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BufferSettingsValidationError{} + +// Validate checks the field values on HttpService with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HttpService) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetServerUri()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "ServerUri", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for PathPrefix + + if v, ok := interface{}(m.GetAuthorizationRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "AuthorizationRequest", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuthorizationResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpServiceValidationError{ + field: "AuthorizationResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HttpServiceValidationError is the validation error returned by +// HttpService.Validate if the designated constraints aren't met. +type HttpServiceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpServiceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpServiceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpServiceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpServiceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpServiceValidationError) ErrorName() string { return "HttpServiceValidationError" } + +// Error satisfies the builtin error interface +func (e HttpServiceValidationError) 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 %sHttpService.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpServiceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpServiceValidationError{} + +// Validate checks the field values on AuthorizationRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AuthorizationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAllowedHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationRequestValidationError{ + field: "AllowedHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeadersToAdd() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationRequestValidationError{ + field: fmt.Sprintf("HeadersToAdd[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AuthorizationRequestValidationError is the validation error returned by +// AuthorizationRequest.Validate if the designated constraints aren't met. +type AuthorizationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthorizationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthorizationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthorizationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthorizationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthorizationRequestValidationError) ErrorName() string { + return "AuthorizationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AuthorizationRequestValidationError) 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 %sAuthorizationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthorizationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthorizationRequestValidationError{} + +// Validate checks the field values on AuthorizationResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AuthorizationResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAllowedUpstreamHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationResponseValidationError{ + field: "AllowedUpstreamHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAllowedClientHeaders()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AuthorizationResponseValidationError{ + field: "AllowedClientHeaders", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AuthorizationResponseValidationError is the validation error returned by +// AuthorizationResponse.Validate if the designated constraints aren't met. +type AuthorizationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthorizationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthorizationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthorizationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthorizationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthorizationResponseValidationError) ErrorName() string { + return "AuthorizationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e AuthorizationResponseValidationError) 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 %sAuthorizationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthorizationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthorizationResponseValidationError{} + +// Validate checks the field values on ExtAuthzPerRoute with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExtAuthzPerRoute) Validate() error { + if m == nil { + return nil + } + + switch m.Override.(type) { + + case *ExtAuthzPerRoute_Disabled: + + if m.GetDisabled() != true { + return ExtAuthzPerRouteValidationError{ + field: "Disabled", + reason: "value must equal true", + } + } + + case *ExtAuthzPerRoute_CheckSettings: + + if m.GetCheckSettings() == nil { + return ExtAuthzPerRouteValidationError{ + field: "CheckSettings", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCheckSettings()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzPerRouteValidationError{ + field: "CheckSettings", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return ExtAuthzPerRouteValidationError{ + field: "Override", + reason: "value is required", + } + + } + + return nil +} + +// ExtAuthzPerRouteValidationError is the validation error returned by +// ExtAuthzPerRoute.Validate if the designated constraints aren't met. +type ExtAuthzPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzPerRouteValidationError) ErrorName() string { return "ExtAuthzPerRouteValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzPerRouteValidationError) 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 %sExtAuthzPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzPerRouteValidationError{} + +// Validate checks the field values on CheckSettings with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckSettings) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ContextExtensions + + return nil +} + +// CheckSettingsValidationError is the validation error returned by +// CheckSettings.Validate if the designated constraints aren't met. +type CheckSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckSettingsValidationError) ErrorName() string { return "CheckSettingsValidationError" } + +// Error satisfies the builtin error interface +func (e CheckSettingsValidationError) 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 %sCheckSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckSettingsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.go new file mode 100644 index 000000000..086c7e46c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.go @@ -0,0 +1,343 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/fault/v3/fault.proto + +package envoy_extensions_filters_http_fault_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v32 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FaultAbort struct { + // Types that are valid to be assigned to ErrorType: + // *FaultAbort_HttpStatus + // *FaultAbort_HeaderAbort_ + ErrorType isFaultAbort_ErrorType `protobuf_oneof:"error_type"` + Percentage *v3.FractionalPercent `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultAbort) Reset() { *m = FaultAbort{} } +func (m *FaultAbort) String() string { return proto.CompactTextString(m) } +func (*FaultAbort) ProtoMessage() {} +func (*FaultAbort) Descriptor() ([]byte, []int) { + return fileDescriptor_1c8de848a52219f2, []int{0} +} + +func (m *FaultAbort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultAbort.Unmarshal(m, b) +} +func (m *FaultAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultAbort.Marshal(b, m, deterministic) +} +func (m *FaultAbort) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultAbort.Merge(m, src) +} +func (m *FaultAbort) XXX_Size() int { + return xxx_messageInfo_FaultAbort.Size(m) +} +func (m *FaultAbort) XXX_DiscardUnknown() { + xxx_messageInfo_FaultAbort.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultAbort proto.InternalMessageInfo + +type isFaultAbort_ErrorType interface { + isFaultAbort_ErrorType() +} + +type FaultAbort_HttpStatus struct { + HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"` +} + +type FaultAbort_HeaderAbort_ struct { + HeaderAbort *FaultAbort_HeaderAbort `protobuf:"bytes,4,opt,name=header_abort,json=headerAbort,proto3,oneof"` +} + +func (*FaultAbort_HttpStatus) isFaultAbort_ErrorType() {} + +func (*FaultAbort_HeaderAbort_) isFaultAbort_ErrorType() {} + +func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType { + if m != nil { + return m.ErrorType + } + return nil +} + +func (m *FaultAbort) GetHttpStatus() uint32 { + if x, ok := m.GetErrorType().(*FaultAbort_HttpStatus); ok { + return x.HttpStatus + } + return 0 +} + +func (m *FaultAbort) GetHeaderAbort() *FaultAbort_HeaderAbort { + if x, ok := m.GetErrorType().(*FaultAbort_HeaderAbort_); ok { + return x.HeaderAbort + } + return nil +} + +func (m *FaultAbort) GetPercentage() *v3.FractionalPercent { + if m != nil { + return m.Percentage + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FaultAbort) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FaultAbort_HttpStatus)(nil), + (*FaultAbort_HeaderAbort_)(nil), + } +} + +type FaultAbort_HeaderAbort struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FaultAbort_HeaderAbort) Reset() { *m = FaultAbort_HeaderAbort{} } +func (m *FaultAbort_HeaderAbort) String() string { return proto.CompactTextString(m) } +func (*FaultAbort_HeaderAbort) ProtoMessage() {} +func (*FaultAbort_HeaderAbort) Descriptor() ([]byte, []int) { + return fileDescriptor_1c8de848a52219f2, []int{0, 0} +} + +func (m *FaultAbort_HeaderAbort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FaultAbort_HeaderAbort.Unmarshal(m, b) +} +func (m *FaultAbort_HeaderAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FaultAbort_HeaderAbort.Marshal(b, m, deterministic) +} +func (m *FaultAbort_HeaderAbort) XXX_Merge(src proto.Message) { + xxx_messageInfo_FaultAbort_HeaderAbort.Merge(m, src) +} +func (m *FaultAbort_HeaderAbort) XXX_Size() int { + return xxx_messageInfo_FaultAbort_HeaderAbort.Size(m) +} +func (m *FaultAbort_HeaderAbort) XXX_DiscardUnknown() { + xxx_messageInfo_FaultAbort_HeaderAbort.DiscardUnknown(m) +} + +var xxx_messageInfo_FaultAbort_HeaderAbort proto.InternalMessageInfo + +type HTTPFault struct { + Delay *v31.FaultDelay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"` + Abort *FaultAbort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"` + UpstreamCluster string `protobuf:"bytes,3,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` + Headers []*v32.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` + DownstreamNodes []string `protobuf:"bytes,5,rep,name=downstream_nodes,json=downstreamNodes,proto3" json:"downstream_nodes,omitempty"` + MaxActiveFaults *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=max_active_faults,json=maxActiveFaults,proto3" json:"max_active_faults,omitempty"` + ResponseRateLimit *v31.FaultRateLimit `protobuf:"bytes,7,opt,name=response_rate_limit,json=responseRateLimit,proto3" json:"response_rate_limit,omitempty"` + DelayPercentRuntime string `protobuf:"bytes,8,opt,name=delay_percent_runtime,json=delayPercentRuntime,proto3" json:"delay_percent_runtime,omitempty"` + AbortPercentRuntime string `protobuf:"bytes,9,opt,name=abort_percent_runtime,json=abortPercentRuntime,proto3" json:"abort_percent_runtime,omitempty"` + DelayDurationRuntime string `protobuf:"bytes,10,opt,name=delay_duration_runtime,json=delayDurationRuntime,proto3" json:"delay_duration_runtime,omitempty"` + AbortHttpStatusRuntime string `protobuf:"bytes,11,opt,name=abort_http_status_runtime,json=abortHttpStatusRuntime,proto3" json:"abort_http_status_runtime,omitempty"` + MaxActiveFaultsRuntime string `protobuf:"bytes,12,opt,name=max_active_faults_runtime,json=maxActiveFaultsRuntime,proto3" json:"max_active_faults_runtime,omitempty"` + ResponseRateLimitPercentRuntime string `protobuf:"bytes,13,opt,name=response_rate_limit_percent_runtime,json=responseRateLimitPercentRuntime,proto3" json:"response_rate_limit_percent_runtime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HTTPFault) Reset() { *m = HTTPFault{} } +func (m *HTTPFault) String() string { return proto.CompactTextString(m) } +func (*HTTPFault) ProtoMessage() {} +func (*HTTPFault) Descriptor() ([]byte, []int) { + return fileDescriptor_1c8de848a52219f2, []int{1} +} + +func (m *HTTPFault) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HTTPFault.Unmarshal(m, b) +} +func (m *HTTPFault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HTTPFault.Marshal(b, m, deterministic) +} +func (m *HTTPFault) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPFault.Merge(m, src) +} +func (m *HTTPFault) XXX_Size() int { + return xxx_messageInfo_HTTPFault.Size(m) +} +func (m *HTTPFault) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPFault.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPFault proto.InternalMessageInfo + +func (m *HTTPFault) GetDelay() *v31.FaultDelay { + if m != nil { + return m.Delay + } + return nil +} + +func (m *HTTPFault) GetAbort() *FaultAbort { + if m != nil { + return m.Abort + } + return nil +} + +func (m *HTTPFault) GetUpstreamCluster() string { + if m != nil { + return m.UpstreamCluster + } + return "" +} + +func (m *HTTPFault) GetHeaders() []*v32.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +func (m *HTTPFault) GetDownstreamNodes() []string { + if m != nil { + return m.DownstreamNodes + } + return nil +} + +func (m *HTTPFault) GetMaxActiveFaults() *wrappers.UInt32Value { + if m != nil { + return m.MaxActiveFaults + } + return nil +} + +func (m *HTTPFault) GetResponseRateLimit() *v31.FaultRateLimit { + if m != nil { + return m.ResponseRateLimit + } + return nil +} + +func (m *HTTPFault) GetDelayPercentRuntime() string { + if m != nil { + return m.DelayPercentRuntime + } + return "" +} + +func (m *HTTPFault) GetAbortPercentRuntime() string { + if m != nil { + return m.AbortPercentRuntime + } + return "" +} + +func (m *HTTPFault) GetDelayDurationRuntime() string { + if m != nil { + return m.DelayDurationRuntime + } + return "" +} + +func (m *HTTPFault) GetAbortHttpStatusRuntime() string { + if m != nil { + return m.AbortHttpStatusRuntime + } + return "" +} + +func (m *HTTPFault) GetMaxActiveFaultsRuntime() string { + if m != nil { + return m.MaxActiveFaultsRuntime + } + return "" +} + +func (m *HTTPFault) GetResponseRateLimitPercentRuntime() string { + if m != nil { + return m.ResponseRateLimitPercentRuntime + } + return "" +} + +func init() { + proto.RegisterType((*FaultAbort)(nil), "envoy.extensions.filters.http.fault.v3.FaultAbort") + proto.RegisterType((*FaultAbort_HeaderAbort)(nil), "envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort") + proto.RegisterType((*HTTPFault)(nil), "envoy.extensions.filters.http.fault.v3.HTTPFault") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/fault/v3/fault.proto", fileDescriptor_1c8de848a52219f2) +} + +var fileDescriptor_1c8de848a52219f2 = []byte{ + // 753 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4f, 0x4f, 0x13, 0x4f, + 0x18, 0xc7, 0xe9, 0x1f, 0x0a, 0x4c, 0x21, 0x94, 0xe5, 0xf7, 0xc3, 0xb5, 0x2a, 0x56, 0x34, 0xa6, + 0x2a, 0xee, 0x26, 0xdb, 0x1e, 0xb0, 0x07, 0x94, 0x4a, 0x4c, 0x25, 0x48, 0x9a, 0x15, 0xbd, 0x6e, + 0x86, 0xed, 0xb4, 0xdd, 0x64, 0x77, 0x66, 0x33, 0x3b, 0x5b, 0xda, 0x9b, 0xdc, 0x7c, 0x0d, 0xbe, + 0x14, 0xef, 0x26, 0x5c, 0xbd, 0xf9, 0x52, 0x8c, 0x27, 0x33, 0xcf, 0xec, 0xb6, 0x85, 0x42, 0x84, + 0xdb, 0xee, 0x3c, 0xcf, 0xe7, 0xfb, 0xfc, 0x9b, 0x67, 0x90, 0x45, 0xe8, 0x80, 0x8d, 0x4c, 0x32, + 0x14, 0x84, 0x46, 0x1e, 0xa3, 0x91, 0xd9, 0xf5, 0x7c, 0x41, 0x78, 0x64, 0xf6, 0x85, 0x08, 0xcd, + 0x2e, 0x8e, 0x7d, 0x61, 0x0e, 0x6a, 0xea, 0xc3, 0x08, 0x39, 0x13, 0x4c, 0x7b, 0x0a, 0x8c, 0x31, + 0x61, 0x8c, 0x84, 0x31, 0x24, 0x63, 0x28, 0xd7, 0x41, 0xad, 0xbc, 0xad, 0xb4, 0x5d, 0x46, 0xbb, + 0x5e, 0xcf, 0xe4, 0x2c, 0x16, 0x44, 0x4a, 0xc1, 0x87, 0xe3, 0xb2, 0x20, 0x64, 0x94, 0x50, 0x11, + 0x29, 0xd5, 0x72, 0xfd, 0xda, 0x4c, 0x5c, 0x16, 0x04, 0x8c, 0x5e, 0x99, 0x4b, 0xf9, 0x9e, 0xa2, + 0xc4, 0x28, 0x04, 0xed, 0x90, 0x70, 0x97, 0xd0, 0xd4, 0xb8, 0xd9, 0x63, 0xac, 0xe7, 0x13, 0x13, + 0xfe, 0x4e, 0xe2, 0xae, 0x79, 0xca, 0x71, 0x18, 0xca, 0x44, 0x95, 0xfd, 0x41, 0xdc, 0x09, 0xb1, + 0x89, 0x29, 0x65, 0x02, 0x0b, 0x08, 0x19, 0x09, 0x2c, 0xe2, 0xd4, 0xfc, 0x68, 0xc6, 0x3c, 0x20, + 0x5c, 0xa6, 0xe6, 0xd1, 0x5e, 0xe2, 0x72, 0x67, 0x80, 0x7d, 0xaf, 0x83, 0x65, 0x61, 0xc9, 0x87, + 0x32, 0x6c, 0x9d, 0xe5, 0x10, 0x7a, 0x27, 0xf3, 0xdc, 0x3b, 0x61, 0x5c, 0x68, 0x06, 0x2a, 0xca, + 0xde, 0x38, 0x4a, 0x5f, 0xcf, 0x56, 0x32, 0xd5, 0x95, 0x66, 0xf1, 0x4f, 0x73, 0xf1, 0x79, 0xa1, + 0xf4, 0x2b, 0x5f, 0x3d, 0xcf, 0xb4, 0xe6, 0x6c, 0x24, 0x3d, 0x3e, 0x82, 0x83, 0xe6, 0xa2, 0xe5, + 0x3e, 0xc1, 0x1d, 0xc2, 0x1d, 0x2c, 0x79, 0x3d, 0x5f, 0xc9, 0x54, 0x8b, 0xd6, 0xae, 0x71, 0xb3, + 0xce, 0x1b, 0x93, 0xc8, 0x46, 0x0b, 0x64, 0xe0, 0xbb, 0x35, 0x67, 0x17, 0xfb, 0x93, 0x5f, 0xed, + 0x0d, 0x42, 0x49, 0xbf, 0x70, 0x8f, 0xe8, 0x39, 0x08, 0x51, 0x49, 0x42, 0xc8, 0x86, 0x82, 0x12, + 0xc7, 0xae, 0xac, 0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 0xb7, + 0xae, 0x79, 0xf8, 0xfd, 0xcb, 0xf9, 0xcf, 0x42, 0xb6, 0x94, 0x45, 0x75, 0x8f, 0xa9, 0x71, 0x87, + 0x9c, 0x0d, 0x47, 0x37, 0xdc, 0x98, 0xa6, 0x7a, 0x44, 0xdb, 0xf2, 0xae, 0xb5, 0x33, 0x27, 0x05, + 0xb8, 0x74, 0xb5, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x84, 0x0b, 0xfe, 0x51, 0xb6, 0x06, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.validate.go new file mode 100644 index 000000000..6d1f2e3f8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3/fault.pb.validate.go @@ -0,0 +1,342 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/fault/v3/fault.proto + +package envoy_extensions_filters_http_fault_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _fault_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FaultAbort with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FaultAbort) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPercentage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultAbortValidationError{ + field: "Percentage", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.ErrorType.(type) { + + case *FaultAbort_HttpStatus: + + if val := m.GetHttpStatus(); val < 200 || val >= 600 { + return FaultAbortValidationError{ + field: "HttpStatus", + reason: "value must be inside range [200, 600)", + } + } + + case *FaultAbort_HeaderAbort_: + + if v, ok := interface{}(m.GetHeaderAbort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FaultAbortValidationError{ + field: "HeaderAbort", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return FaultAbortValidationError{ + field: "ErrorType", + reason: "value is required", + } + + } + + return nil +} + +// FaultAbortValidationError is the validation error returned by +// FaultAbort.Validate if the designated constraints aren't met. +type FaultAbortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultAbortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultAbortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultAbortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultAbortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultAbortValidationError) ErrorName() string { return "FaultAbortValidationError" } + +// Error satisfies the builtin error interface +func (e FaultAbortValidationError) 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 %sFaultAbort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultAbortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultAbortValidationError{} + +// Validate checks the field values on HTTPFault with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HTTPFault) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "Delay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAbort()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "Abort", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UpstreamCluster + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMaxActiveFaults()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "MaxActiveFaults", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResponseRateLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HTTPFaultValidationError{ + field: "ResponseRateLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DelayPercentRuntime + + // no validation rules for AbortPercentRuntime + + // no validation rules for DelayDurationRuntime + + // no validation rules for AbortHttpStatusRuntime + + // no validation rules for MaxActiveFaultsRuntime + + // no validation rules for ResponseRateLimitPercentRuntime + + return nil +} + +// HTTPFaultValidationError is the validation error returned by +// HTTPFault.Validate if the designated constraints aren't met. +type HTTPFaultValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HTTPFaultValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HTTPFaultValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HTTPFaultValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HTTPFaultValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HTTPFaultValidationError) ErrorName() string { return "HTTPFaultValidationError" } + +// Error satisfies the builtin error interface +func (e HTTPFaultValidationError) 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 %sHTTPFault.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HTTPFaultValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HTTPFaultValidationError{} + +// Validate checks the field values on FaultAbort_HeaderAbort with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FaultAbort_HeaderAbort) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// FaultAbort_HeaderAbortValidationError is the validation error returned by +// FaultAbort_HeaderAbort.Validate if the designated constraints aren't met. +type FaultAbort_HeaderAbortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FaultAbort_HeaderAbortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FaultAbort_HeaderAbortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FaultAbort_HeaderAbortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FaultAbort_HeaderAbortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FaultAbort_HeaderAbortValidationError) ErrorName() string { + return "FaultAbort_HeaderAbortValidationError" +} + +// Error satisfies the builtin error interface +func (e FaultAbort_HeaderAbortValidationError) 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 %sFaultAbort_HeaderAbort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FaultAbort_HeaderAbortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FaultAbort_HeaderAbortValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.go new file mode 100644 index 000000000..65f87237a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_http1_bridge/v3/config.proto + +package envoy_extensions_filters_http_grpc_http1_bridge_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_a9d1a8190e8dfb91, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Config)(nil), "envoy.extensions.filters.http.grpc_http1_bridge.v3.Config") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/grpc_http1_bridge/v3/config.proto", fileDescriptor_a9d1a8190e8dfb91) +} + +var fileDescriptor_a9d1a8190e8dfb91 = []byte{ + // 214 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0x2f, 0x2a, 0x48, 0x8e, 0x07, + 0xb1, 0x0c, 0xe3, 0x93, 0x8a, 0x32, 0x53, 0xd2, 0x53, 0xf5, 0xcb, 0x8c, 0xf5, 0x93, 0xf3, 0xf3, + 0xd2, 0x32, 0xd3, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x8c, 0xc0, 0x06, 0xe8, 0x21, 0x0c, + 0xd0, 0x83, 0x1a, 0xa0, 0x07, 0xd2, 0xa6, 0x87, 0x61, 0x80, 0x5e, 0x99, 0xb1, 0x94, 0x6c, 0x69, + 0x4a, 0x41, 0xa2, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x09, 0xd8, 0xd2, 0xe2, 0x92, 0xc4, + 0x92, 0xd2, 0x62, 0x88, 0x91, 0x52, 0x8a, 0x18, 0xd2, 0x65, 0xa9, 0x45, 0x20, 0xb3, 0x33, 0xf3, + 0xa0, 0xb6, 0x2a, 0xb9, 0x72, 0xb1, 0x39, 0x83, 0x5d, 0x61, 0x65, 0x3d, 0xeb, 0x68, 0x87, 0x9c, + 0x19, 0x97, 0x09, 0xc4, 0x19, 0x50, 0xa7, 0x41, 0x9c, 0x80, 0xd3, 0x05, 0x46, 0x7a, 0x10, 0xcd, + 0x4e, 0x91, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, 0x63, 0x12, 0x60, 0xe2, 0x72, 0xc8, 0xcc, 0xd7, 0x03, + 0x1b, 0x51, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0xba, 0xa7, 0x9c, 0xb8, 0x21, 0x66, 0x06, 0x80, + 0xdc, 0x17, 0xc0, 0x98, 0xc4, 0x06, 0x76, 0xa8, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x81, 0xfa, + 0x3c, 0x55, 0x61, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.validate.go new file mode 100644 index 000000000..447d91c9a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3/config.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_http1_bridge/v3/config.proto + +package envoy_extensions_filters_http_grpc_http1_bridge_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.go new file mode 100644 index 000000000..7a0fce5cf --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.go @@ -0,0 +1,145 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.proto + +package envoy_extensions_filters_http_grpc_http1_reverse_bridge_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + WithholdGrpcFrames bool `protobuf:"varint,2,opt,name=withhold_grpc_frames,json=withholdGrpcFrames,proto3" json:"withhold_grpc_frames,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_3167bd89456c61d9, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetContentType() string { + if m != nil { + return m.ContentType + } + return "" +} + +func (m *FilterConfig) GetWithholdGrpcFrames() bool { + if m != nil { + return m.WithholdGrpcFrames + } + return false +} + +type FilterConfigPerRoute struct { + Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfigPerRoute) Reset() { *m = FilterConfigPerRoute{} } +func (m *FilterConfigPerRoute) String() string { return proto.CompactTextString(m) } +func (*FilterConfigPerRoute) ProtoMessage() {} +func (*FilterConfigPerRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_3167bd89456c61d9, []int{1} +} + +func (m *FilterConfigPerRoute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfigPerRoute.Unmarshal(m, b) +} +func (m *FilterConfigPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfigPerRoute.Marshal(b, m, deterministic) +} +func (m *FilterConfigPerRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfigPerRoute.Merge(m, src) +} +func (m *FilterConfigPerRoute) XXX_Size() int { + return xxx_messageInfo_FilterConfigPerRoute.Size(m) +} +func (m *FilterConfigPerRoute) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfigPerRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfigPerRoute proto.InternalMessageInfo + +func (m *FilterConfigPerRoute) GetDisabled() bool { + if m != nil { + return m.Disabled + } + return false +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig") + proto.RegisterType((*FilterConfigPerRoute)(nil), "envoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfigPerRoute") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.proto", fileDescriptor_3167bd89456c61d9) +} + +var fileDescriptor_3167bd89456c61d9 = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0x41, 0x4b, 0xeb, 0x40, + 0x14, 0x85, 0x49, 0x78, 0xf4, 0xf5, 0x4d, 0xbb, 0x78, 0x84, 0x82, 0x25, 0xa0, 0xd4, 0xae, 0x8a, + 0x8b, 0x19, 0x6b, 0x77, 0x5d, 0x46, 0x68, 0x8b, 0x1b, 0x4b, 0x10, 0x5c, 0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, 0x99, 0x34, 0x15, 0x59, 0x12, 0xd9, 0x03, 0x96, 0x8a, 0x5e, 0x81, 0xee, 0xba, + 0x3d, 0x67, 0xd0, 0x0c, 0xbd, 0xad, 0x36, 0x55, 0x32, 0x9e, 0x58, 0x65, 0x7c, 0x7e, 0xff, 0x74, + 0x7b, 0x70, 0x86, 0x66, 0x55, 0x18, 0x75, 0x40, 0x55, 0x10, 0xdf, 0xe6, 0x70, 0x42, 0x33, 0x99, + 0xd2, 0x21, 0xde, 0xb5, 0xdb, 0xbf, 0x73, 0x50, 0x67, 0xf7, 0xc7, 0x1c, 0x54, 0x28, 0xd6, 0x06, + 0x3c, 0x1f, 0x35, 0x13, 0xa6, 0xe9, 0x22, 0x83, 0xc4, 0xde, 0xd0, 0x0c, 0xdf, 0xbf, 0xc7, 0x97, + 0xa5, 0x8b, 0x10, 0xcd, 0x7f, 0xcb, 0xc5, 0x76, 0x69, 0x40, 0x1f, 0x6e, 0x9e, 0x5f, 0x1a, 0xee, + 0x7f, 0x17, 0xcd, 0x98, 0xc0, 0x16, 0x2f, 0x95, 0xd8, 0x14, 0xf8, 0xe7, 0xe5, 0x07, 0xad, 0x7a, + 0x47, 0x59, 0xd7, 0xdc, 0x59, 0x34, 0x6c, 0x6f, 0xa3, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0b, + 0x16, 0x67, 0x6e, 0x99, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.validate.go new file mode 100644 index 000000000..2120db379 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.pb.validate.go @@ -0,0 +1,180 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3/config.proto + +package envoy_extensions_filters_http_grpc_http1_reverse_bridge_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetContentType()) < 1 { + return FilterConfigValidationError{ + field: "ContentType", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for WithholdGrpcFrames + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on FilterConfigPerRoute with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *FilterConfigPerRoute) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Disabled + + return nil +} + +// FilterConfigPerRouteValidationError is the validation error returned by +// FilterConfigPerRoute.Validate if the designated constraints aren't met. +type FilterConfigPerRouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigPerRouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigPerRouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigPerRouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigPerRouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigPerRouteValidationError) ErrorName() string { + return "FilterConfigPerRouteValidationError" +} + +// Error satisfies the builtin error interface +func (e FilterConfigPerRouteValidationError) 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 %sFilterConfigPerRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigPerRouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigPerRouteValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.go new file mode 100644 index 000000000..da7ed96eb --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.proto + +package envoy_extensions_filters_http_grpc_json_transcoder_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GrpcJsonTranscoder struct { + // Types that are valid to be assigned to DescriptorSet: + // *GrpcJsonTranscoder_ProtoDescriptor + // *GrpcJsonTranscoder_ProtoDescriptorBin + DescriptorSet isGrpcJsonTranscoder_DescriptorSet `protobuf_oneof:"descriptor_set"` + Services []string `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"` + PrintOptions *GrpcJsonTranscoder_PrintOptions `protobuf:"bytes,3,opt,name=print_options,json=printOptions,proto3" json:"print_options,omitempty"` + MatchIncomingRequestRoute bool `protobuf:"varint,5,opt,name=match_incoming_request_route,json=matchIncomingRequestRoute,proto3" json:"match_incoming_request_route,omitempty"` + IgnoredQueryParameters []string `protobuf:"bytes,6,rep,name=ignored_query_parameters,json=ignoredQueryParameters,proto3" json:"ignored_query_parameters,omitempty"` + AutoMapping bool `protobuf:"varint,7,opt,name=auto_mapping,json=autoMapping,proto3" json:"auto_mapping,omitempty"` + IgnoreUnknownQueryParameters bool `protobuf:"varint,8,opt,name=ignore_unknown_query_parameters,json=ignoreUnknownQueryParameters,proto3" json:"ignore_unknown_query_parameters,omitempty"` + ConvertGrpcStatus bool `protobuf:"varint,9,opt,name=convert_grpc_status,json=convertGrpcStatus,proto3" json:"convert_grpc_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcJsonTranscoder) Reset() { *m = GrpcJsonTranscoder{} } +func (m *GrpcJsonTranscoder) String() string { return proto.CompactTextString(m) } +func (*GrpcJsonTranscoder) ProtoMessage() {} +func (*GrpcJsonTranscoder) Descriptor() ([]byte, []int) { + return fileDescriptor_6dffdaf96e302174, []int{0} +} + +func (m *GrpcJsonTranscoder) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcJsonTranscoder.Unmarshal(m, b) +} +func (m *GrpcJsonTranscoder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcJsonTranscoder.Marshal(b, m, deterministic) +} +func (m *GrpcJsonTranscoder) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcJsonTranscoder.Merge(m, src) +} +func (m *GrpcJsonTranscoder) XXX_Size() int { + return xxx_messageInfo_GrpcJsonTranscoder.Size(m) +} +func (m *GrpcJsonTranscoder) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcJsonTranscoder.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcJsonTranscoder proto.InternalMessageInfo + +type isGrpcJsonTranscoder_DescriptorSet interface { + isGrpcJsonTranscoder_DescriptorSet() +} + +type GrpcJsonTranscoder_ProtoDescriptor struct { + ProtoDescriptor string `protobuf:"bytes,1,opt,name=proto_descriptor,json=protoDescriptor,proto3,oneof"` +} + +type GrpcJsonTranscoder_ProtoDescriptorBin struct { + ProtoDescriptorBin []byte `protobuf:"bytes,4,opt,name=proto_descriptor_bin,json=protoDescriptorBin,proto3,oneof"` +} + +func (*GrpcJsonTranscoder_ProtoDescriptor) isGrpcJsonTranscoder_DescriptorSet() {} + +func (*GrpcJsonTranscoder_ProtoDescriptorBin) isGrpcJsonTranscoder_DescriptorSet() {} + +func (m *GrpcJsonTranscoder) GetDescriptorSet() isGrpcJsonTranscoder_DescriptorSet { + if m != nil { + return m.DescriptorSet + } + return nil +} + +func (m *GrpcJsonTranscoder) GetProtoDescriptor() string { + if x, ok := m.GetDescriptorSet().(*GrpcJsonTranscoder_ProtoDescriptor); ok { + return x.ProtoDescriptor + } + return "" +} + +func (m *GrpcJsonTranscoder) GetProtoDescriptorBin() []byte { + if x, ok := m.GetDescriptorSet().(*GrpcJsonTranscoder_ProtoDescriptorBin); ok { + return x.ProtoDescriptorBin + } + return nil +} + +func (m *GrpcJsonTranscoder) GetServices() []string { + if m != nil { + return m.Services + } + return nil +} + +func (m *GrpcJsonTranscoder) GetPrintOptions() *GrpcJsonTranscoder_PrintOptions { + if m != nil { + return m.PrintOptions + } + return nil +} + +func (m *GrpcJsonTranscoder) GetMatchIncomingRequestRoute() bool { + if m != nil { + return m.MatchIncomingRequestRoute + } + return false +} + +func (m *GrpcJsonTranscoder) GetIgnoredQueryParameters() []string { + if m != nil { + return m.IgnoredQueryParameters + } + return nil +} + +func (m *GrpcJsonTranscoder) GetAutoMapping() bool { + if m != nil { + return m.AutoMapping + } + return false +} + +func (m *GrpcJsonTranscoder) GetIgnoreUnknownQueryParameters() bool { + if m != nil { + return m.IgnoreUnknownQueryParameters + } + return false +} + +func (m *GrpcJsonTranscoder) GetConvertGrpcStatus() bool { + if m != nil { + return m.ConvertGrpcStatus + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GrpcJsonTranscoder) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GrpcJsonTranscoder_ProtoDescriptor)(nil), + (*GrpcJsonTranscoder_ProtoDescriptorBin)(nil), + } +} + +type GrpcJsonTranscoder_PrintOptions struct { + AddWhitespace bool `protobuf:"varint,1,opt,name=add_whitespace,json=addWhitespace,proto3" json:"add_whitespace,omitempty"` + AlwaysPrintPrimitiveFields bool `protobuf:"varint,2,opt,name=always_print_primitive_fields,json=alwaysPrintPrimitiveFields,proto3" json:"always_print_primitive_fields,omitempty"` + AlwaysPrintEnumsAsInts bool `protobuf:"varint,3,opt,name=always_print_enums_as_ints,json=alwaysPrintEnumsAsInts,proto3" json:"always_print_enums_as_ints,omitempty"` + PreserveProtoFieldNames bool `protobuf:"varint,4,opt,name=preserve_proto_field_names,json=preserveProtoFieldNames,proto3" json:"preserve_proto_field_names,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcJsonTranscoder_PrintOptions) Reset() { *m = GrpcJsonTranscoder_PrintOptions{} } +func (m *GrpcJsonTranscoder_PrintOptions) String() string { return proto.CompactTextString(m) } +func (*GrpcJsonTranscoder_PrintOptions) ProtoMessage() {} +func (*GrpcJsonTranscoder_PrintOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_6dffdaf96e302174, []int{0, 0} +} + +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Unmarshal(m, b) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Marshal(b, m, deterministic) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Merge(m, src) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_Size() int { + return xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.Size(m) +} +func (m *GrpcJsonTranscoder_PrintOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcJsonTranscoder_PrintOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcJsonTranscoder_PrintOptions proto.InternalMessageInfo + +func (m *GrpcJsonTranscoder_PrintOptions) GetAddWhitespace() bool { + if m != nil { + return m.AddWhitespace + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintPrimitiveFields() bool { + if m != nil { + return m.AlwaysPrintPrimitiveFields + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetAlwaysPrintEnumsAsInts() bool { + if m != nil { + return m.AlwaysPrintEnumsAsInts + } + return false +} + +func (m *GrpcJsonTranscoder_PrintOptions) GetPreserveProtoFieldNames() bool { + if m != nil { + return m.PreserveProtoFieldNames + } + return false +} + +func init() { + proto.RegisterType((*GrpcJsonTranscoder)(nil), "envoy.extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder") + proto.RegisterType((*GrpcJsonTranscoder_PrintOptions)(nil), "envoy.extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.PrintOptions") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.proto", fileDescriptor_6dffdaf96e302174) +} + +var fileDescriptor_6dffdaf96e302174 = []byte{ + // 655 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x4f, 0x14, 0x3f, + 0x1c, 0x65, 0x96, 0x2f, 0x30, 0x94, 0xe5, 0xc7, 0xb7, 0x2a, 0x8c, 0x1b, 0xd0, 0xc5, 0x68, 0xb2, + 0x89, 0xc9, 0x4c, 0x02, 0x31, 0x51, 0x38, 0x28, 0xa3, 0x20, 0x98, 0xa0, 0xeb, 0xf8, 0xeb, 0x58, + 0xcb, 0x4c, 0x59, 0xaa, 0x3b, 0x6d, 0x69, 0x3b, 0x03, 0x1b, 0x2f, 0x1e, 0x3d, 0x7b, 0xf4, 0x4f, + 0xf1, 0xe4, 0xc5, 0x44, 0x8f, 0xfe, 0x37, 0xc6, 0x93, 0x69, 0x3b, 0x2c, 0x2b, 0x98, 0x98, 0xec, + 0x6d, 0xda, 0xf7, 0x3e, 0xef, 0x4d, 0xdf, 0xbc, 0x0e, 0xd8, 0x22, 0xac, 0xe4, 0xbd, 0x88, 0x1c, + 0x6b, 0xc2, 0x14, 0xe5, 0x4c, 0x45, 0xfb, 0xb4, 0xab, 0x89, 0x54, 0xd1, 0x81, 0xd6, 0x22, 0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x18, 0x9e, 0x3f, 0x68, 0xd8, 0x36, 0xf2, 0x4f, 0x9c, 0x7a, + 0x52, 0x17, 0x03, 0x2b, 0x78, 0x17, 0x2c, 0xe6, 0x58, 0xa7, 0x07, 0x88, 0xb2, 0x94, 0xe7, 0x94, + 0x75, 0x90, 0x24, 0x87, 0x05, 0x51, 0x1a, 0x49, 0x5e, 0x68, 0x12, 0x8c, 0x35, 0xbd, 0x96, 0x9f, + 0x5c, 0xb6, 0x9c, 0x9d, 0x8a, 0x92, 0x38, 0x46, 0x62, 0x08, 0xf0, 0x36, 0x08, 0x68, 0x87, 0x71, + 0x49, 0x32, 0x74, 0x58, 0x10, 0xd9, 0x43, 0x02, 0x4b, 0x9c, 0x13, 0xf3, 0x9e, 0xc1, 0xb8, 0x39, + 0x73, 0x32, 0x5f, 0xe1, 0x4f, 0x0d, 0xdc, 0xee, 0xa3, 0x70, 0x19, 0xd4, 0x71, 0xa1, 0x39, 0xca, + 0xb1, 0x10, 0x94, 0x75, 0x82, 0x09, 0x6b, 0x35, 0x65, 0xf6, 0x76, 0xdd, 0x16, 0xdc, 0x04, 0x57, + 0xdd, 0x30, 0x2a, 0xd8, 0x5b, 0xc6, 0x8f, 0xd8, 0x79, 0x0f, 0xdf, 0x4e, 0x2d, 0x3a, 0xda, 0x0b, + 0xc7, 0x3a, 0xeb, 0x14, 0x82, 0x0b, 0x29, 0x67, 0x25, 0x91, 0x1a, 0xd9, 0xd4, 0x5c, 0xb1, 0x82, + 0x49, 0x3b, 0xfa, 0x7f, 0x05, 0x99, 0xdc, 0x9e, 0x59, 0xa0, 0xf1, 0xa5, 0x06, 0xea, 0x83, 0x99, + 0xc1, 0x1b, 0x60, 0x06, 0x67, 0x19, 0x3a, 0x3a, 0xa0, 0x9a, 0x28, 0x81, 0x53, 0x62, 0x7b, 0xe2, + 0x27, 0xd3, 0x38, 0xcb, 0x5e, 0xf5, 0x37, 0xe1, 0x06, 0x58, 0xc2, 0xdd, 0x23, 0xdc, 0x53, 0xc8, + 0x7d, 0x50, 0x21, 0x69, 0x4e, 0x35, 0x2d, 0x09, 0xda, 0xa7, 0xa4, 0x9b, 0x99, 0x12, 0x98, 0xa9, + 0x86, 0x23, 0x59, 0x87, 0xf6, 0x09, 0x65, 0xcb, 0x32, 0xe0, 0x1a, 0x68, 0xfc, 0x21, 0x41, 0x58, + 0x91, 0x2b, 0x84, 0x15, 0xa2, 0x4c, 0xbb, 0x66, 0xf8, 0xc9, 0xfc, 0xc0, 0xfc, 0xa6, 0xc1, 0x37, + 0xd4, 0x0e, 0xd3, 0x0a, 0xae, 0x83, 0x86, 0x90, 0xc4, 0xf4, 0x8a, 0x20, 0xd7, 0x55, 0x6b, 0x8b, + 0x18, 0xce, 0x89, 0xb2, 0x45, 0xf5, 0x93, 0x85, 0x13, 0x46, 0xdb, 0x10, 0xac, 0xe9, 0x63, 0x03, + 0xaf, 0xed, 0x7e, 0xfa, 0xfa, 0xe1, 0xca, 0x76, 0xf5, 0x13, 0x08, 0x53, 0xce, 0xf6, 0x69, 0xa7, + 0x2a, 0x9c, 0xeb, 0xdb, 0x60, 0xcb, 0x56, 0xfe, 0xd5, 0xb2, 0xb5, 0x7b, 0x46, 0x6e, 0x1d, 0xdc, + 0x19, 0x5a, 0x2e, 0xbe, 0x04, 0x66, 0x06, 0xae, 0x9a, 0x22, 0x1a, 0x8e, 0xfe, 0x8c, 0xbd, 0xf8, + 0xf5, 0xe7, 0xf7, 0xdf, 0x7e, 0x8c, 0xd7, 0xe6, 0x6a, 0xe0, 0x3e, 0xe5, 0xee, 0x8a, 0x08, 0xc9, + 0x8f, 0x7b, 0xc3, 0xdd, 0x96, 0x78, 0xf6, 0xd4, 0xd1, 0x26, 0xd2, 0xf6, 0xf6, 0xc6, 0x6d, 0x76, + 0xab, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x72, 0xb3, 0xc3, 0xb5, 0x10, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.validate.go new file mode 100644 index 000000000..42ba32610 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.pb.validate.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.proto + +package envoy_extensions_filters_http_grpc_json_transcoder_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _transcoder_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GrpcJsonTranscoder with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GrpcJsonTranscoder) Validate() error { + if m == nil { + return nil + } + + if len(m.GetServices()) < 1 { + return GrpcJsonTranscoderValidationError{ + field: "Services", + reason: "value must contain at least 1 item(s)", + } + } + + if v, ok := interface{}(m.GetPrintOptions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GrpcJsonTranscoderValidationError{ + field: "PrintOptions", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MatchIncomingRequestRoute + + // no validation rules for AutoMapping + + // no validation rules for IgnoreUnknownQueryParameters + + // no validation rules for ConvertGrpcStatus + + switch m.DescriptorSet.(type) { + + case *GrpcJsonTranscoder_ProtoDescriptor: + // no validation rules for ProtoDescriptor + + case *GrpcJsonTranscoder_ProtoDescriptorBin: + // no validation rules for ProtoDescriptorBin + + default: + return GrpcJsonTranscoderValidationError{ + field: "DescriptorSet", + reason: "value is required", + } + + } + + return nil +} + +// GrpcJsonTranscoderValidationError is the validation error returned by +// GrpcJsonTranscoder.Validate if the designated constraints aren't met. +type GrpcJsonTranscoderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcJsonTranscoderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcJsonTranscoderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcJsonTranscoderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcJsonTranscoderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcJsonTranscoderValidationError) ErrorName() string { + return "GrpcJsonTranscoderValidationError" +} + +// Error satisfies the builtin error interface +func (e GrpcJsonTranscoderValidationError) 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 %sGrpcJsonTranscoder.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcJsonTranscoderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcJsonTranscoderValidationError{} + +// Validate checks the field values on GrpcJsonTranscoder_PrintOptions with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GrpcJsonTranscoder_PrintOptions) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AddWhitespace + + // no validation rules for AlwaysPrintPrimitiveFields + + // no validation rules for AlwaysPrintEnumsAsInts + + // no validation rules for PreserveProtoFieldNames + + return nil +} + +// GrpcJsonTranscoder_PrintOptionsValidationError is the validation error +// returned by GrpcJsonTranscoder_PrintOptions.Validate if the designated +// constraints aren't met. +type GrpcJsonTranscoder_PrintOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcJsonTranscoder_PrintOptionsValidationError) ErrorName() string { + return "GrpcJsonTranscoder_PrintOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e GrpcJsonTranscoder_PrintOptionsValidationError) 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 %sGrpcJsonTranscoder_PrintOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcJsonTranscoder_PrintOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcJsonTranscoder_PrintOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.go new file mode 100644 index 000000000..0a4de380f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_stats/v3/config.proto + +package envoy_extensions_filters_http_grpc_stats_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type FilterConfig struct { + EmitFilterState bool `protobuf:"varint,1,opt,name=emit_filter_state,json=emitFilterState,proto3" json:"emit_filter_state,omitempty"` + // Types that are valid to be assigned to PerMethodStatSpecifier: + // *FilterConfig_IndividualMethodStatsAllowlist + // *FilterConfig_StatsForAllMethods + PerMethodStatSpecifier isFilterConfig_PerMethodStatSpecifier `protobuf_oneof:"per_method_stat_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterConfig) Reset() { *m = FilterConfig{} } +func (m *FilterConfig) String() string { return proto.CompactTextString(m) } +func (*FilterConfig) ProtoMessage() {} +func (*FilterConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a99092111d6420a4, []int{0} +} + +func (m *FilterConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterConfig.Unmarshal(m, b) +} +func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterConfig.Marshal(b, m, deterministic) +} +func (m *FilterConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterConfig.Merge(m, src) +} +func (m *FilterConfig) XXX_Size() int { + return xxx_messageInfo_FilterConfig.Size(m) +} +func (m *FilterConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FilterConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterConfig proto.InternalMessageInfo + +func (m *FilterConfig) GetEmitFilterState() bool { + if m != nil { + return m.EmitFilterState + } + return false +} + +type isFilterConfig_PerMethodStatSpecifier interface { + isFilterConfig_PerMethodStatSpecifier() +} + +type FilterConfig_IndividualMethodStatsAllowlist struct { + IndividualMethodStatsAllowlist *v3.GrpcMethodList `protobuf:"bytes,2,opt,name=individual_method_stats_allowlist,json=individualMethodStatsAllowlist,proto3,oneof"` +} + +type FilterConfig_StatsForAllMethods struct { + StatsForAllMethods *wrappers.BoolValue `protobuf:"bytes,3,opt,name=stats_for_all_methods,json=statsForAllMethods,proto3,oneof"` +} + +func (*FilterConfig_IndividualMethodStatsAllowlist) isFilterConfig_PerMethodStatSpecifier() {} + +func (*FilterConfig_StatsForAllMethods) isFilterConfig_PerMethodStatSpecifier() {} + +func (m *FilterConfig) GetPerMethodStatSpecifier() isFilterConfig_PerMethodStatSpecifier { + if m != nil { + return m.PerMethodStatSpecifier + } + return nil +} + +func (m *FilterConfig) GetIndividualMethodStatsAllowlist() *v3.GrpcMethodList { + if x, ok := m.GetPerMethodStatSpecifier().(*FilterConfig_IndividualMethodStatsAllowlist); ok { + return x.IndividualMethodStatsAllowlist + } + return nil +} + +func (m *FilterConfig) GetStatsForAllMethods() *wrappers.BoolValue { + if x, ok := m.GetPerMethodStatSpecifier().(*FilterConfig_StatsForAllMethods); ok { + return x.StatsForAllMethods + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FilterConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FilterConfig_IndividualMethodStatsAllowlist)(nil), + (*FilterConfig_StatsForAllMethods)(nil), + } +} + +type FilterObject struct { + RequestMessageCount uint64 `protobuf:"varint,1,opt,name=request_message_count,json=requestMessageCount,proto3" json:"request_message_count,omitempty"` + ResponseMessageCount uint64 `protobuf:"varint,2,opt,name=response_message_count,json=responseMessageCount,proto3" json:"response_message_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterObject) Reset() { *m = FilterObject{} } +func (m *FilterObject) String() string { return proto.CompactTextString(m) } +func (*FilterObject) ProtoMessage() {} +func (*FilterObject) Descriptor() ([]byte, []int) { + return fileDescriptor_a99092111d6420a4, []int{1} +} + +func (m *FilterObject) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterObject.Unmarshal(m, b) +} +func (m *FilterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterObject.Marshal(b, m, deterministic) +} +func (m *FilterObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterObject.Merge(m, src) +} +func (m *FilterObject) XXX_Size() int { + return xxx_messageInfo_FilterObject.Size(m) +} +func (m *FilterObject) XXX_DiscardUnknown() { + xxx_messageInfo_FilterObject.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterObject proto.InternalMessageInfo + +func (m *FilterObject) GetRequestMessageCount() uint64 { + if m != nil { + return m.RequestMessageCount + } + return 0 +} + +func (m *FilterObject) GetResponseMessageCount() uint64 { + if m != nil { + return m.ResponseMessageCount + } + return 0 +} + +func init() { + proto.RegisterType((*FilterConfig)(nil), "envoy.extensions.filters.http.grpc_stats.v3.FilterConfig") + proto.RegisterType((*FilterObject)(nil), "envoy.extensions.filters.http.grpc_stats.v3.FilterObject") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/grpc_stats/v3/config.proto", fileDescriptor_a99092111d6420a4) +} + +var fileDescriptor_a99092111d6420a4 = []byte{ + // 486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x41, 0x6b, 0xd4, 0x40, + 0x18, 0x6d, 0xa2, 0x14, 0x49, 0x05, 0x35, 0x5a, 0x5d, 0x57, 0x5c, 0xda, 0xe2, 0xa1, 0x28, 0xcc, + 0xc0, 0xae, 0x07, 0xed, 0x45, 0xba, 0x85, 0xda, 0x83, 0xa5, 0x25, 0x82, 0xd7, 0x30, 0x9b, 0x7c, + 0xc9, 0x8e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ec, 0xc8, 0x41, 0xe9, + 0xeb, 0xe4, 0xb1, 0x06, 0xa3, 0x50, 0x1a, 0xf8, 0x87, 0x14, 0x7b, 0xd2, 0xa3, 0x1e, 0x5d, 0x65, + 0xdd, 0x20, 0x58, 0xb0, 0x3a, 0xcd, 0x7e, 0x7c, 0xf9, 0xf5, 0x7b, 0x33, 0xbe, 0x1f, 0x27, 0x6f, + 0x39, 0x86, 0xf5, 0x29, 0x8d, 0x57, 0xd7, 0xe4, 0x3f, 0xfe, 0x83, 0xe9, 0x56, 0x68, 0xe9, 0xdc, + 0xad, 0xe3, 0x3c, 0x9a, 0x6d, 0xfa, 0xbd, 0x4c, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x42, 0xc4, + 0xd3, 0x14, 0x86, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.validate.go new file mode 100644 index 000000000..528244745 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3/config.pb.validate.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_stats/v3/config.proto + +package envoy_extensions_filters_http_grpc_stats_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on FilterConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for EmitFilterState + + switch m.PerMethodStatSpecifier.(type) { + + case *FilterConfig_IndividualMethodStatsAllowlist: + + if v, ok := interface{}(m.GetIndividualMethodStatsAllowlist()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "IndividualMethodStatsAllowlist", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *FilterConfig_StatsForAllMethods: + + if v, ok := interface{}(m.GetStatsForAllMethods()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterConfigValidationError{ + field: "StatsForAllMethods", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FilterConfigValidationError is the validation error returned by +// FilterConfig.Validate if the designated constraints aren't met. +type FilterConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterConfigValidationError) ErrorName() string { return "FilterConfigValidationError" } + +// Error satisfies the builtin error interface +func (e FilterConfigValidationError) 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 %sFilterConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterConfigValidationError{} + +// Validate checks the field values on FilterObject with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilterObject) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestMessageCount + + // no validation rules for ResponseMessageCount + + return nil +} + +// FilterObjectValidationError is the validation error returned by +// FilterObject.Validate if the designated constraints aren't met. +type FilterObjectValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterObjectValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterObjectValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterObjectValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterObjectValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterObjectValidationError) ErrorName() string { return "FilterObjectValidationError" } + +// Error satisfies the builtin error interface +func (e FilterObjectValidationError) 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 %sFilterObject.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterObjectValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterObjectValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.go new file mode 100644 index 000000000..82a67268c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_web/v3/grpc_web.proto + +package envoy_extensions_filters_http_grpc_web_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GrpcWeb struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrpcWeb) Reset() { *m = GrpcWeb{} } +func (m *GrpcWeb) String() string { return proto.CompactTextString(m) } +func (*GrpcWeb) ProtoMessage() {} +func (*GrpcWeb) Descriptor() ([]byte, []int) { + return fileDescriptor_a4ec34152f0610e2, []int{0} +} + +func (m *GrpcWeb) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrpcWeb.Unmarshal(m, b) +} +func (m *GrpcWeb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrpcWeb.Marshal(b, m, deterministic) +} +func (m *GrpcWeb) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrpcWeb.Merge(m, src) +} +func (m *GrpcWeb) XXX_Size() int { + return xxx_messageInfo_GrpcWeb.Size(m) +} +func (m *GrpcWeb) XXX_DiscardUnknown() { + xxx_messageInfo_GrpcWeb.DiscardUnknown(m) +} + +var xxx_messageInfo_GrpcWeb proto.InternalMessageInfo + +func init() { + proto.RegisterType((*GrpcWeb)(nil), "envoy.extensions.filters.http.grpc_web.v3.GrpcWeb") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/grpc_web/v3/grpc_web.proto", fileDescriptor_a4ec34152f0610e2) +} + +var fileDescriptor_a4ec34152f0610e2 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x4f, 0x2f, 0x2a, 0x48, 0x8e, 0x2f, + 0x4f, 0x4d, 0xd2, 0x2f, 0x33, 0x86, 0xb3, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x34, 0xc1, + 0x3a, 0xf5, 0x10, 0x3a, 0xf5, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0xf5, 0xe0, 0xaa, 0xcb, 0x8c, 0xa5, + 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0xc0, 0x96, 0x14, + 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0x4c, 0x92, 0x52, 0xc4, 0x90, 0x2e, 0x4b, 0x2d, 0x02, 0x19, + 0x99, 0x99, 0x97, 0x0e, 0x51, 0xa2, 0x64, 0xc7, 0xc5, 0xee, 0x5e, 0x54, 0x90, 0x1c, 0x9e, 0x9a, + 0x64, 0x65, 0x3c, 0xeb, 0x68, 0x87, 0x9c, 0x1e, 0x97, 0x0e, 0xc4, 0xfa, 0xe4, 0xfc, 0xbc, 0xb4, + 0xcc, 0x74, 0xa8, 0xd5, 0xe8, 0x36, 0x1b, 0xe9, 0x41, 0x35, 0x39, 0x05, 0xee, 0x6a, 0x38, 0x71, + 0x91, 0x8d, 0x49, 0x80, 0x89, 0xcb, 0x3c, 0x33, 0x5f, 0x0f, 0xac, 0xb5, 0xa0, 0x28, 0xbf, 0xa2, + 0x52, 0x8f, 0x68, 0x4f, 0x38, 0xf1, 0x40, 0xcd, 0x0a, 0x00, 0x39, 0x28, 0x80, 0x31, 0x89, 0x0d, + 0xec, 0x32, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x26, 0x31, 0x17, 0x30, 0x42, 0x01, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.validate.go new file mode 100644 index 000000000..194fd87ab --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3/grpc_web.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/grpc_web/v3/grpc_web.proto + +package envoy_extensions_filters_http_grpc_web_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _grpc_web_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on GrpcWeb with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *GrpcWeb) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// GrpcWebValidationError is the validation error returned by GrpcWeb.Validate +// if the designated constraints aren't met. +type GrpcWebValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GrpcWebValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GrpcWebValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GrpcWebValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GrpcWebValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GrpcWebValidationError) ErrorName() string { return "GrpcWebValidationError" } + +// Error satisfies the builtin error interface +func (e GrpcWebValidationError) 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 %sGrpcWeb.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GrpcWebValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GrpcWebValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.go new file mode 100644 index 000000000..8a92b5b31 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/gzip/v3/gzip.proto + +package envoy_extensions_filters_http_gzip_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Gzip_CompressionStrategy int32 + +const ( + Gzip_DEFAULT Gzip_CompressionStrategy = 0 + Gzip_FILTERED Gzip_CompressionStrategy = 1 + Gzip_HUFFMAN Gzip_CompressionStrategy = 2 + Gzip_RLE Gzip_CompressionStrategy = 3 +) + +var Gzip_CompressionStrategy_name = map[int32]string{ + 0: "DEFAULT", + 1: "FILTERED", + 2: "HUFFMAN", + 3: "RLE", +} + +var Gzip_CompressionStrategy_value = map[string]int32{ + "DEFAULT": 0, + "FILTERED": 1, + "HUFFMAN": 2, + "RLE": 3, +} + +func (x Gzip_CompressionStrategy) String() string { + return proto.EnumName(Gzip_CompressionStrategy_name, int32(x)) +} + +func (Gzip_CompressionStrategy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_75f828f0702c619c, []int{0, 0} +} + +type Gzip_CompressionLevel_Enum int32 + +const ( + Gzip_CompressionLevel_DEFAULT Gzip_CompressionLevel_Enum = 0 + Gzip_CompressionLevel_BEST Gzip_CompressionLevel_Enum = 1 + Gzip_CompressionLevel_SPEED Gzip_CompressionLevel_Enum = 2 +) + +var Gzip_CompressionLevel_Enum_name = map[int32]string{ + 0: "DEFAULT", + 1: "BEST", + 2: "SPEED", +} + +var Gzip_CompressionLevel_Enum_value = map[string]int32{ + "DEFAULT": 0, + "BEST": 1, + "SPEED": 2, +} + +func (x Gzip_CompressionLevel_Enum) String() string { + return proto.EnumName(Gzip_CompressionLevel_Enum_name, int32(x)) +} + +func (Gzip_CompressionLevel_Enum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_75f828f0702c619c, []int{0, 0, 0} +} + +type Gzip struct { + MemoryLevel *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=memory_level,json=memoryLevel,proto3" json:"memory_level,omitempty"` + HiddenEnvoyDeprecatedContentLength *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=hidden_envoy_deprecated_content_length,json=hiddenEnvoyDeprecatedContentLength,proto3" json:"hidden_envoy_deprecated_content_length,omitempty"` // Deprecated: Do not use. + CompressionLevel Gzip_CompressionLevel_Enum `protobuf:"varint,3,opt,name=compression_level,json=compressionLevel,proto3,enum=envoy.extensions.filters.http.gzip.v3.Gzip_CompressionLevel_Enum" json:"compression_level,omitempty"` + CompressionStrategy Gzip_CompressionStrategy `protobuf:"varint,4,opt,name=compression_strategy,json=compressionStrategy,proto3,enum=envoy.extensions.filters.http.gzip.v3.Gzip_CompressionStrategy" json:"compression_strategy,omitempty"` + HiddenEnvoyDeprecatedContentType []string `protobuf:"bytes,6,rep,name=hidden_envoy_deprecated_content_type,json=hiddenEnvoyDeprecatedContentType,proto3" json:"hidden_envoy_deprecated_content_type,omitempty"` // Deprecated: Do not use. + HiddenEnvoyDeprecatedDisableOnEtagHeader bool `protobuf:"varint,7,opt,name=hidden_envoy_deprecated_disable_on_etag_header,json=hiddenEnvoyDeprecatedDisableOnEtagHeader,proto3" json:"hidden_envoy_deprecated_disable_on_etag_header,omitempty"` // Deprecated: Do not use. + HiddenEnvoyDeprecatedRemoveAcceptEncodingHeader bool `protobuf:"varint,8,opt,name=hidden_envoy_deprecated_remove_accept_encoding_header,json=hiddenEnvoyDeprecatedRemoveAcceptEncodingHeader,proto3" json:"hidden_envoy_deprecated_remove_accept_encoding_header,omitempty"` // Deprecated: Do not use. + WindowBits *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=window_bits,json=windowBits,proto3" json:"window_bits,omitempty"` + Compressor *v3.Compressor `protobuf:"bytes,10,opt,name=compressor,proto3" json:"compressor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Gzip) Reset() { *m = Gzip{} } +func (m *Gzip) String() string { return proto.CompactTextString(m) } +func (*Gzip) ProtoMessage() {} +func (*Gzip) Descriptor() ([]byte, []int) { + return fileDescriptor_75f828f0702c619c, []int{0} +} + +func (m *Gzip) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Gzip.Unmarshal(m, b) +} +func (m *Gzip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Gzip.Marshal(b, m, deterministic) +} +func (m *Gzip) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gzip.Merge(m, src) +} +func (m *Gzip) XXX_Size() int { + return xxx_messageInfo_Gzip.Size(m) +} +func (m *Gzip) XXX_DiscardUnknown() { + xxx_messageInfo_Gzip.DiscardUnknown(m) +} + +var xxx_messageInfo_Gzip proto.InternalMessageInfo + +func (m *Gzip) GetMemoryLevel() *wrappers.UInt32Value { + if m != nil { + return m.MemoryLevel + } + return nil +} + +// Deprecated: Do not use. +func (m *Gzip) GetHiddenEnvoyDeprecatedContentLength() *wrappers.UInt32Value { + if m != nil { + return m.HiddenEnvoyDeprecatedContentLength + } + return nil +} + +func (m *Gzip) GetCompressionLevel() Gzip_CompressionLevel_Enum { + if m != nil { + return m.CompressionLevel + } + return Gzip_CompressionLevel_DEFAULT +} + +func (m *Gzip) GetCompressionStrategy() Gzip_CompressionStrategy { + if m != nil { + return m.CompressionStrategy + } + return Gzip_DEFAULT +} + +// Deprecated: Do not use. +func (m *Gzip) GetHiddenEnvoyDeprecatedContentType() []string { + if m != nil { + return m.HiddenEnvoyDeprecatedContentType + } + return nil +} + +// Deprecated: Do not use. +func (m *Gzip) GetHiddenEnvoyDeprecatedDisableOnEtagHeader() bool { + if m != nil { + return m.HiddenEnvoyDeprecatedDisableOnEtagHeader + } + return false +} + +// Deprecated: Do not use. +func (m *Gzip) GetHiddenEnvoyDeprecatedRemoveAcceptEncodingHeader() bool { + if m != nil { + return m.HiddenEnvoyDeprecatedRemoveAcceptEncodingHeader + } + return false +} + +func (m *Gzip) GetWindowBits() *wrappers.UInt32Value { + if m != nil { + return m.WindowBits + } + return nil +} + +func (m *Gzip) GetCompressor() *v3.Compressor { + if m != nil { + return m.Compressor + } + return nil +} + +type Gzip_CompressionLevel struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Gzip_CompressionLevel) Reset() { *m = Gzip_CompressionLevel{} } +func (m *Gzip_CompressionLevel) String() string { return proto.CompactTextString(m) } +func (*Gzip_CompressionLevel) ProtoMessage() {} +func (*Gzip_CompressionLevel) Descriptor() ([]byte, []int) { + return fileDescriptor_75f828f0702c619c, []int{0, 0} +} + +func (m *Gzip_CompressionLevel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Gzip_CompressionLevel.Unmarshal(m, b) +} +func (m *Gzip_CompressionLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Gzip_CompressionLevel.Marshal(b, m, deterministic) +} +func (m *Gzip_CompressionLevel) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gzip_CompressionLevel.Merge(m, src) +} +func (m *Gzip_CompressionLevel) XXX_Size() int { + return xxx_messageInfo_Gzip_CompressionLevel.Size(m) +} +func (m *Gzip_CompressionLevel) XXX_DiscardUnknown() { + xxx_messageInfo_Gzip_CompressionLevel.DiscardUnknown(m) +} + +var xxx_messageInfo_Gzip_CompressionLevel proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("envoy.extensions.filters.http.gzip.v3.Gzip_CompressionStrategy", Gzip_CompressionStrategy_name, Gzip_CompressionStrategy_value) + proto.RegisterEnum("envoy.extensions.filters.http.gzip.v3.Gzip_CompressionLevel_Enum", Gzip_CompressionLevel_Enum_name, Gzip_CompressionLevel_Enum_value) + proto.RegisterType((*Gzip)(nil), "envoy.extensions.filters.http.gzip.v3.Gzip") + proto.RegisterType((*Gzip_CompressionLevel)(nil), "envoy.extensions.filters.http.gzip.v3.Gzip.CompressionLevel") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/gzip/v3/gzip.proto", fileDescriptor_75f828f0702c619c) +} + +var fileDescriptor_75f828f0702c619c = []byte{ + // 687 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, + 0x14, 0x85, 0x71, 0x92, 0xa6, 0xf1, 0xa4, 0x02, 0xe3, 0x22, 0x61, 0x55, 0x50, 0x85, 0x88, 0x82, + 0x85, 0x90, 0x8d, 0x12, 0xf1, 0xa3, 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 0x1c, 0x62, 0x7f, 0xd4, 0xc4, 0xec, 0xbe, 0xd5, 0xe6, + 0x2f, 0x7b, 0xb5, 0x85, 0x56, 0xe7, 0xec, 0xe0, 0xbf, 0xbe, 0x2b, 0xa8, 0xd4, 0xda, 0x69, 0x77, + 0x4c, 0xcb, 0x6c, 0x4a, 0x42, 0x5a, 0xda, 0x3e, 0x68, 0xb5, 0xde, 0x36, 0xde, 0x49, 0x39, 0x79, + 0x19, 0xe5, 0xad, 0xb6, 0x29, 0xe5, 0x37, 0x1f, 0xa7, 0x6d, 0x3c, 0x44, 0x1b, 0x0b, 0xb5, 0x61, + 0xec, 0xfe, 0xfc, 0xf2, 0xfb, 0x4f, 0x31, 0x27, 0xe5, 0x50, 0x1d, 0xd3, 0x2c, 0xc3, 0x30, 0xa2, + 0xc7, 0xc3, 0xc5, 0x9e, 0x8e, 0x21, 0xa6, 0x90, 0xbd, 0x74, 0x76, 0x7b, 0x42, 0xb7, 0xc8, 0x87, + 0x58, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x1a, 0xbc, 0x86, 0xed, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.validate.go new file mode 100644 index 000000000..1b95b6158 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3/gzip.pb.validate.go @@ -0,0 +1,228 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/gzip/v3/gzip.proto + +package envoy_extensions_filters_http_gzip_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _gzip_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Gzip with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Gzip) Validate() error { + if m == nil { + return nil + } + + if wrapper := m.GetMemoryLevel(); wrapper != nil { + + if val := wrapper.GetValue(); val < 1 || val > 9 { + return GzipValidationError{ + field: "MemoryLevel", + reason: "value must be inside range [1, 9]", + } + } + + } + + if v, ok := interface{}(m.GetHiddenEnvoyDeprecatedContentLength()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GzipValidationError{ + field: "HiddenEnvoyDeprecatedContentLength", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if _, ok := Gzip_CompressionLevel_Enum_name[int32(m.GetCompressionLevel())]; !ok { + return GzipValidationError{ + field: "CompressionLevel", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := Gzip_CompressionStrategy_name[int32(m.GetCompressionStrategy())]; !ok { + return GzipValidationError{ + field: "CompressionStrategy", + reason: "value must be one of the defined enum values", + } + } + + // no validation rules for HiddenEnvoyDeprecatedDisableOnEtagHeader + + // no validation rules for HiddenEnvoyDeprecatedRemoveAcceptEncodingHeader + + if wrapper := m.GetWindowBits(); wrapper != nil { + + if val := wrapper.GetValue(); val < 9 || val > 15 { + return GzipValidationError{ + field: "WindowBits", + reason: "value must be inside range [9, 15]", + } + } + + } + + if v, ok := interface{}(m.GetCompressor()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GzipValidationError{ + field: "Compressor", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GzipValidationError is the validation error returned by Gzip.Validate if the +// designated constraints aren't met. +type GzipValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GzipValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GzipValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GzipValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GzipValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GzipValidationError) ErrorName() string { return "GzipValidationError" } + +// Error satisfies the builtin error interface +func (e GzipValidationError) 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 %sGzip.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GzipValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GzipValidationError{} + +// Validate checks the field values on Gzip_CompressionLevel with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Gzip_CompressionLevel) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// Gzip_CompressionLevelValidationError is the validation error returned by +// Gzip_CompressionLevel.Validate if the designated constraints aren't met. +type Gzip_CompressionLevelValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Gzip_CompressionLevelValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Gzip_CompressionLevelValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Gzip_CompressionLevelValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Gzip_CompressionLevelValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Gzip_CompressionLevelValidationError) ErrorName() string { + return "Gzip_CompressionLevelValidationError" +} + +// Error satisfies the builtin error interface +func (e Gzip_CompressionLevelValidationError) 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 %sGzip_CompressionLevel.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Gzip_CompressionLevelValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Gzip_CompressionLevelValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.go new file mode 100644 index 000000000..d745b41e3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.go @@ -0,0 +1,311 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.proto + +package envoy_extensions_filters_http_header_to_metadata_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config_ValueType int32 + +const ( + Config_STRING Config_ValueType = 0 + Config_NUMBER Config_ValueType = 1 + Config_PROTOBUF_VALUE Config_ValueType = 2 +) + +var Config_ValueType_name = map[int32]string{ + 0: "STRING", + 1: "NUMBER", + 2: "PROTOBUF_VALUE", +} + +var Config_ValueType_value = map[string]int32{ + "STRING": 0, + "NUMBER": 1, + "PROTOBUF_VALUE": 2, +} + +func (x Config_ValueType) String() string { + return proto.EnumName(Config_ValueType_name, int32(x)) +} + +func (Config_ValueType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5c245d788106679e, []int{0, 0} +} + +type Config_ValueEncode int32 + +const ( + Config_NONE Config_ValueEncode = 0 + Config_BASE64 Config_ValueEncode = 1 +) + +var Config_ValueEncode_name = map[int32]string{ + 0: "NONE", + 1: "BASE64", +} + +var Config_ValueEncode_value = map[string]int32{ + "NONE": 0, + "BASE64": 1, +} + +func (x Config_ValueEncode) String() string { + return proto.EnumName(Config_ValueEncode_name, int32(x)) +} + +func (Config_ValueEncode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5c245d788106679e, []int{0, 1} +} + +type Config struct { + RequestRules []*Config_Rule `protobuf:"bytes,1,rep,name=request_rules,json=requestRules,proto3" json:"request_rules,omitempty"` + ResponseRules []*Config_Rule `protobuf:"bytes,2,rep,name=response_rules,json=responseRules,proto3" json:"response_rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_5c245d788106679e, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetRequestRules() []*Config_Rule { + if m != nil { + return m.RequestRules + } + return nil +} + +func (m *Config) GetResponseRules() []*Config_Rule { + if m != nil { + return m.ResponseRules + } + return nil +} + +type Config_KeyValuePair struct { + MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Type Config_ValueType `protobuf:"varint,4,opt,name=type,proto3,enum=envoy.extensions.filters.http.header_to_metadata.v3.Config_ValueType" json:"type,omitempty"` + Encode Config_ValueEncode `protobuf:"varint,5,opt,name=encode,proto3,enum=envoy.extensions.filters.http.header_to_metadata.v3.Config_ValueEncode" json:"encode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config_KeyValuePair) Reset() { *m = Config_KeyValuePair{} } +func (m *Config_KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*Config_KeyValuePair) ProtoMessage() {} +func (*Config_KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_5c245d788106679e, []int{0, 0} +} + +func (m *Config_KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config_KeyValuePair.Unmarshal(m, b) +} +func (m *Config_KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config_KeyValuePair.Marshal(b, m, deterministic) +} +func (m *Config_KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config_KeyValuePair.Merge(m, src) +} +func (m *Config_KeyValuePair) XXX_Size() int { + return xxx_messageInfo_Config_KeyValuePair.Size(m) +} +func (m *Config_KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_Config_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_Config_KeyValuePair proto.InternalMessageInfo + +func (m *Config_KeyValuePair) GetMetadataNamespace() string { + if m != nil { + return m.MetadataNamespace + } + return "" +} + +func (m *Config_KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Config_KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func (m *Config_KeyValuePair) GetType() Config_ValueType { + if m != nil { + return m.Type + } + return Config_STRING +} + +func (m *Config_KeyValuePair) GetEncode() Config_ValueEncode { + if m != nil { + return m.Encode + } + return Config_NONE +} + +type Config_Rule struct { + Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + OnHeaderPresent *Config_KeyValuePair `protobuf:"bytes,2,opt,name=on_header_present,json=onHeaderPresent,proto3" json:"on_header_present,omitempty"` + OnHeaderMissing *Config_KeyValuePair `protobuf:"bytes,3,opt,name=on_header_missing,json=onHeaderMissing,proto3" json:"on_header_missing,omitempty"` + Remove bool `protobuf:"varint,4,opt,name=remove,proto3" json:"remove,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config_Rule) Reset() { *m = Config_Rule{} } +func (m *Config_Rule) String() string { return proto.CompactTextString(m) } +func (*Config_Rule) ProtoMessage() {} +func (*Config_Rule) Descriptor() ([]byte, []int) { + return fileDescriptor_5c245d788106679e, []int{0, 1} +} + +func (m *Config_Rule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config_Rule.Unmarshal(m, b) +} +func (m *Config_Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config_Rule.Marshal(b, m, deterministic) +} +func (m *Config_Rule) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config_Rule.Merge(m, src) +} +func (m *Config_Rule) XXX_Size() int { + return xxx_messageInfo_Config_Rule.Size(m) +} +func (m *Config_Rule) XXX_DiscardUnknown() { + xxx_messageInfo_Config_Rule.DiscardUnknown(m) +} + +var xxx_messageInfo_Config_Rule proto.InternalMessageInfo + +func (m *Config_Rule) GetHeader() string { + if m != nil { + return m.Header + } + return "" +} + +func (m *Config_Rule) GetOnHeaderPresent() *Config_KeyValuePair { + if m != nil { + return m.OnHeaderPresent + } + return nil +} + +func (m *Config_Rule) GetOnHeaderMissing() *Config_KeyValuePair { + if m != nil { + return m.OnHeaderMissing + } + return nil +} + +func (m *Config_Rule) GetRemove() bool { + if m != nil { + return m.Remove + } + return false +} + +func init() { + proto.RegisterEnum("envoy.extensions.filters.http.header_to_metadata.v3.Config_ValueType", Config_ValueType_name, Config_ValueType_value) + proto.RegisterEnum("envoy.extensions.filters.http.header_to_metadata.v3.Config_ValueEncode", Config_ValueEncode_name, Config_ValueEncode_value) + proto.RegisterType((*Config)(nil), "envoy.extensions.filters.http.header_to_metadata.v3.Config") + proto.RegisterType((*Config_KeyValuePair)(nil), "envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair") + proto.RegisterType((*Config_Rule)(nil), "envoy.extensions.filters.http.header_to_metadata.v3.Config.Rule") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.proto", fileDescriptor_5c245d788106679e) +} + +var fileDescriptor_5c245d788106679e = []byte{ + // 598 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcd, 0x6e, 0x13, 0x3f, + 0x14, 0xc5, 0x3b, 0xd3, 0x74, 0xfe, 0xe9, 0xed, 0xc7, 0x3f, 0xb5, 0xf8, 0x08, 0x91, 0x40, 0xa1, + 0x08, 0xa9, 0x1b, 0x66, 0xa4, 0x04, 0xa8, 0x14, 0x75, 0x41, 0x06, 0x42, 0x5b, 0xd1, 0xa6, 0xd1, + 0x34, 0xad, 0xc4, 0x6a, 0x64, 0x9a, 0xdb, 0x74, 0x44, 0x62, 0x0f, 0xb6, 0x33, 0x6a, 0x76, 0x2c, + 0x79, 0x06, 0x1e, 0x85, 0x15, 0x1b, 0xa4, 0x6e, 0x79, 0x06, 0x5e, 0x01, 0x36, 0x5d, 0x21, 0xdb, + 0x13, 0x28, 0xa2, 0x6c, 0x52, 0xd8, 0xd9, 0xbe, 0xbe, 0xbf, 0x73, 0x7c, 0x6c, 0x19, 0x76, 0x90, + 0x65, 0x7c, 0x1c, 0xe0, 0xa9, 0x42, 0x26, 0x13, 0xce, 0x64, 0x70, 0x9c, 0x0c, 0x14, 0x0a, 0x19, + 0x9c, 0x28, 0x95, 0x06, 0x27, 0x48, 0x7b, 0x28, 0x62, 0xc5, 0xe3, 0x21, 0x2a, 0xda, 0xa3, 0x8a, + 0x06, 0x59, 0xfd, 0x92, 0x55, 0x3f, 0x15, 0x5c, 0x71, 0x52, 0x37, 0x34, 0xff, 0x27, 0xcd, 0xcf, + 0x69, 0xbe, 0xa6, 0xf9, 0x97, 0xf4, 0x65, 0xf5, 0xca, 0xed, 0x51, 0x2f, 0xa5, 0x01, 0x65, 0x8c, + 0x2b, 0xaa, 0x8c, 0x05, 0xa9, 0xa8, 0x1a, 0x49, 0xcb, 0xac, 0xdc, 0xfd, 0xad, 0x9c, 0xa1, 0xd0, + 0xf0, 0x84, 0xf5, 0xf3, 0x2d, 0x37, 0x33, 0x3a, 0x48, 0x7a, 0x54, 0x61, 0x30, 0x19, 0xd8, 0xc2, + 0xea, 0x97, 0x22, 0x78, 0x4f, 0x39, 0x3b, 0x4e, 0xfa, 0x04, 0x61, 0x49, 0xe0, 0x9b, 0x11, 0x4a, + 0x15, 0x8b, 0xd1, 0x00, 0x65, 0xd9, 0xa9, 0xce, 0xae, 0x2d, 0xd4, 0x9e, 0xf8, 0x53, 0x58, 0xf6, + 0x2d, 0xd3, 0x8f, 0x46, 0x03, 0x8c, 0x16, 0x73, 0xac, 0x9e, 0x48, 0xd2, 0x87, 0x65, 0x81, 0x32, + 0xe5, 0x4c, 0x62, 0xae, 0xe3, 0xfe, 0x25, 0x9d, 0xa5, 0x09, 0xd7, 0x08, 0x55, 0xbe, 0xb9, 0xb0, + 0xf8, 0x02, 0xc7, 0x87, 0x74, 0x30, 0xc2, 0x0e, 0x4d, 0x04, 0x79, 0x00, 0x64, 0xd2, 0x1a, 0x33, + 0x3a, 0x44, 0x99, 0xd2, 0x23, 0x2c, 0x3b, 0x55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xe5, 0xb3, + 0x46, 0x53, 0xc7, 0xbf, 0x01, 0x8d, 0xe9, 0xe2, 0xd7, 0x69, 0xaf, 0xae, 0xc3, 0xfc, 0x8f, 0x57, + 0x43, 0x00, 0xbc, 0xfd, 0x6e, 0xb4, 0xdd, 0xde, 0x2c, 0xcd, 0xe8, 0x71, 0xfb, 0x60, 0x37, 0x6c, + 0x45, 0x25, 0x87, 0x10, 0x58, 0xee, 0x44, 0x7b, 0xdd, 0xbd, 0xf0, 0xe0, 0x79, 0x7c, 0xd8, 0xdc, + 0x39, 0x68, 0x95, 0xdc, 0xd5, 0x7b, 0xb0, 0x70, 0xe1, 0x45, 0x90, 0x22, 0x14, 0xda, 0x7b, 0xed, + 0x96, 0x6d, 0x0c, 0x9b, 0xfb, 0xad, 0xc7, 0x0f, 0x4b, 0x4e, 0x63, 0x43, 0x1b, 0x5c, 0x87, 0x47, + 0x53, 0x19, 0x0c, 0x7b, 0x1f, 0xde, 0x9e, 0x7d, 0xf6, 0xdc, 0x92, 0x0b, 0xcd, 0x84, 0xdb, 0x74, + 0x53, 0xc1, 0x4f, 0xc7, 0xd3, 0x04, 0x1d, 0x5e, 0xb7, 0x91, 0x76, 0xf9, 0x6e, 0xbe, 0xd8, 0xd1, + 0x3f, 0x59, 0xc7, 0x79, 0xe5, 0x99, 0x2f, 0xad, 0xfe, 0x3d, 0x00, 0x00, 0xff, 0xff, 0xa6, 0x59, + 0x53, 0xc0, 0xb2, 0x05, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.validate.go new file mode 100644 index 000000000..bdc375d49 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.pb.validate.go @@ -0,0 +1,316 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/header_to_metadata/v3/header_to_metadata.proto + +package envoy_extensions_filters_http_header_to_metadata_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _header_to_metadata_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRequestRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: fmt.Sprintf("RequestRules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetResponseRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: fmt.Sprintf("ResponseRules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} + +// Validate checks the field values on Config_KeyValuePair with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Config_KeyValuePair) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MetadataNamespace + + if len(m.GetKey()) < 1 { + return Config_KeyValuePairValidationError{ + field: "Key", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Value + + // no validation rules for Type + + // no validation rules for Encode + + return nil +} + +// Config_KeyValuePairValidationError is the validation error returned by +// Config_KeyValuePair.Validate if the designated constraints aren't met. +type Config_KeyValuePairValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Config_KeyValuePairValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Config_KeyValuePairValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Config_KeyValuePairValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Config_KeyValuePairValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Config_KeyValuePairValidationError) ErrorName() string { + return "Config_KeyValuePairValidationError" +} + +// Error satisfies the builtin error interface +func (e Config_KeyValuePairValidationError) 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 %sConfig_KeyValuePair.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Config_KeyValuePairValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Config_KeyValuePairValidationError{} + +// Validate checks the field values on Config_Rule with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Config_Rule) Validate() error { + if m == nil { + return nil + } + + if len(m.GetHeader()) < 1 { + return Config_RuleValidationError{ + field: "Header", + reason: "value length must be at least 1 bytes", + } + } + + if !_Config_Rule_Header_Pattern.MatchString(m.GetHeader()) { + return Config_RuleValidationError{ + field: "Header", + reason: "value does not match regex pattern \"^[^\\x00\\n\\r]*$\"", + } + } + + if v, ok := interface{}(m.GetOnHeaderPresent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Config_RuleValidationError{ + field: "OnHeaderPresent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOnHeaderMissing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return Config_RuleValidationError{ + field: "OnHeaderMissing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Remove + + return nil +} + +// Config_RuleValidationError is the validation error returned by +// Config_Rule.Validate if the designated constraints aren't met. +type Config_RuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Config_RuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Config_RuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Config_RuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Config_RuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Config_RuleValidationError) ErrorName() string { return "Config_RuleValidationError" } + +// Error satisfies the builtin error interface +func (e Config_RuleValidationError) 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 %sConfig_Rule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Config_RuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Config_RuleValidationError{} + +var _Config_Rule_Header_Pattern = regexp.MustCompile("^[^\x00\n\r]*$") diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.go new file mode 100644 index 000000000..87660fdcd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/health_check/v3/health_check.proto + +package envoy_extensions_filters_http_health_check_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HealthCheck struct { + PassThroughMode *wrappers.BoolValue `protobuf:"bytes,1,opt,name=pass_through_mode,json=passThroughMode,proto3" json:"pass_through_mode,omitempty"` + CacheTime *duration.Duration `protobuf:"bytes,3,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` + ClusterMinHealthyPercentages map[string]*v3.Percent `protobuf:"bytes,4,rep,name=cluster_min_healthy_percentages,json=clusterMinHealthyPercentages,proto3" json:"cluster_min_healthy_percentages,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers []*v31.HeaderMatcher `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheck) Reset() { *m = HealthCheck{} } +func (m *HealthCheck) String() string { return proto.CompactTextString(m) } +func (*HealthCheck) ProtoMessage() {} +func (*HealthCheck) Descriptor() ([]byte, []int) { + return fileDescriptor_554d4249f82380e7, []int{0} +} + +func (m *HealthCheck) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheck.Unmarshal(m, b) +} +func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheck.Marshal(b, m, deterministic) +} +func (m *HealthCheck) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheck.Merge(m, src) +} +func (m *HealthCheck) XXX_Size() int { + return xxx_messageInfo_HealthCheck.Size(m) +} +func (m *HealthCheck) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheck.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheck proto.InternalMessageInfo + +func (m *HealthCheck) GetPassThroughMode() *wrappers.BoolValue { + if m != nil { + return m.PassThroughMode + } + return nil +} + +func (m *HealthCheck) GetCacheTime() *duration.Duration { + if m != nil { + return m.CacheTime + } + return nil +} + +func (m *HealthCheck) GetClusterMinHealthyPercentages() map[string]*v3.Percent { + if m != nil { + return m.ClusterMinHealthyPercentages + } + return nil +} + +func (m *HealthCheck) GetHeaders() []*v31.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +func init() { + proto.RegisterType((*HealthCheck)(nil), "envoy.extensions.filters.http.health_check.v3.HealthCheck") + proto.RegisterMapType((map[string]*v3.Percent)(nil), "envoy.extensions.filters.http.health_check.v3.HealthCheck.ClusterMinHealthyPercentagesEntry") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/health_check/v3/health_check.proto", fileDescriptor_554d4249f82380e7) +} + +var fileDescriptor_554d4249f82380e7 = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcf, 0x6b, 0xd4, 0x40, + 0x14, 0x26, 0xd9, 0xdd, 0xda, 0xce, 0x1e, 0x5c, 0x73, 0xd0, 0x75, 0xd5, 0xda, 0x8a, 0x87, 0x1e, + 0xea, 0x04, 0x76, 0x45, 0x4a, 0x0b, 0x22, 0x5b, 0x05, 0x11, 0x16, 0x96, 0x50, 0x04, 0x41, 0x08, + 0xd3, 0xe4, 0x6d, 0x32, 0x34, 0x99, 0x09, 0x33, 0x93, 0xd8, 0xdc, 0x3c, 0x8a, 0x7f, 0x82, 0x57, + 0x8f, 0xfe, 0x07, 0xde, 0x05, 0xaf, 0xfe, 0x3b, 0x9e, 0x64, 0x7e, 0x2c, 0xdd, 0xa5, 0x6a, 0xe9, + 0x6d, 0x92, 0xf7, 0xbd, 0xef, 0xfb, 0xde, 0xf7, 0x1e, 0x7a, 0x01, 0xac, 0xe1, 0x6d, 0x08, 0xe7, + 0x0a, 0x98, 0xa4, 0x9c, 0xc9, 0x70, 0x41, 0x0b, 0x05, 0x42, 0x86, 0xb9, 0x52, 0x55, 0x98, 0x03, + 0x29, 0x54, 0x1e, 0x27, 0x39, 0x24, 0x67, 0x61, 0x33, 0x59, 0xfb, 0xc6, 0x95, 0xe0, 0x8a, 0x07, + 0x4f, 0x0c, 0x03, 0xbe, 0x60, 0xc0, 0x8e, 0x01, 0x6b, 0x06, 0xbc, 0xd6, 0xd1, 0x4c, 0x46, 0xfb, + 0x56, 0x30, 0xe1, 0x6c, 0x41, 0xb3, 0x50, 0xf0, 0x5a, 0x81, 0x26, 0x36, 0x8f, 0x38, 0xe1, 0x65, + 0xc5, 0x19, 0x30, 0x25, 0x2d, 0xf9, 0xe8, 0x9e, 0x45, 0xab, 0xb6, 0x32, 0xa8, 0x0a, 0x44, 0x02, + 0x4c, 0xb9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xaf, 0x4c, 0x8c, 0x8f, 0xad, 0xc2, 0x8c, 0x32, + 0xfb, 0xb7, 0x9d, 0x5f, 0xd0, 0xbf, 0x62, 0x4a, 0xb4, 0xd1, 0xfd, 0xe4, 0x3f, 0x90, 0xe0, 0x39, + 0xba, 0x91, 0x03, 0x49, 0x41, 0xc8, 0x61, 0xcf, 0x98, 0x79, 0xec, 0xcc, 0xd8, 0xcb, 0xc1, 0xe6, + 0x60, 0x9c, 0x68, 0x0a, 0x62, 0x46, 0x54, 0x92, 0x83, 0x88, 0x96, 0x4d, 0xa3, 0x0c, 0xed, 0x5e, + 0x69, 0x21, 0x18, 0xa0, 0xce, 0x19, 0xb4, 0x66, 0x11, 0x5b, 0x91, 0x7e, 0x06, 0xfb, 0xa8, 0xd7, + 0xe8, 0xe8, 0x87, 0xbe, 0x49, 0xf4, 0xb6, 0x13, 0xd5, 0x07, 0xa8, 0xc5, 0x1c, 0x43, 0x64, 0x41, + 0x87, 0xfe, 0x81, 0x77, 0x78, 0xf4, 0xe5, 0xc7, 0xa7, 0xed, 0x67, 0xe8, 0xe9, 0x9a, 0x3b, 0x1b, + 0xd3, 0xdf, 0x52, 0x1a, 0xaf, 0xa6, 0xf4, 0xa6, 0xbb, 0xe9, 0x0f, 0x3a, 0xd3, 0x77, 0xdf, 0x3f, + 0xfe, 0xfc, 0xb5, 0xe1, 0x0f, 0x7c, 0x74, 0x44, 0xb9, 0x55, 0xac, 0x04, 0x3f, 0x6f, 0xaf, 0x17, + 0xff, 0x74, 0xb0, 0xc2, 0x3c, 0xd7, 0x17, 0x30, 0xf7, 0x4e, 0x37, 0xcc, 0x29, 0x4c, 0xfe, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xca, 0xf9, 0x43, 0x67, 0xe8, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.validate.go new file mode 100644 index 000000000..b0530b837 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3/health_check.pb.validate.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/health_check/v3/health_check.proto + +package envoy_extensions_filters_http_health_check_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _health_check_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HealthCheck with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HealthCheck) Validate() error { + if m == nil { + return nil + } + + if m.GetPassThroughMode() == nil { + return HealthCheckValidationError{ + field: "PassThroughMode", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetPassThroughMode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: "PassThroughMode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCacheTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: "CacheTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetClusterMinHealthyPercentages() { + _ = val + + // no validation rules for ClusterMinHealthyPercentages[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: fmt.Sprintf("ClusterMinHealthyPercentages[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HealthCheckValidationError is the validation error returned by +// HealthCheck.Validate if the designated constraints aren't met. +type HealthCheckValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckValidationError) ErrorName() string { return "HealthCheckValidationError" } + +// Error satisfies the builtin error interface +func (e HealthCheckValidationError) 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 %sHealthCheck.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.go new file mode 100644 index 000000000..b27d17145 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.go @@ -0,0 +1,188 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.proto + +package envoy_extensions_filters_http_ip_tagging_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type IPTagging_RequestType int32 + +const ( + IPTagging_BOTH IPTagging_RequestType = 0 + IPTagging_INTERNAL IPTagging_RequestType = 1 + IPTagging_EXTERNAL IPTagging_RequestType = 2 +) + +var IPTagging_RequestType_name = map[int32]string{ + 0: "BOTH", + 1: "INTERNAL", + 2: "EXTERNAL", +} + +var IPTagging_RequestType_value = map[string]int32{ + "BOTH": 0, + "INTERNAL": 1, + "EXTERNAL": 2, +} + +func (x IPTagging_RequestType) String() string { + return proto.EnumName(IPTagging_RequestType_name, int32(x)) +} + +func (IPTagging_RequestType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_53ea551b2829685a, []int{0, 0} +} + +type IPTagging struct { + RequestType IPTagging_RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=envoy.extensions.filters.http.ip_tagging.v3.IPTagging_RequestType" json:"request_type,omitempty"` + IpTags []*IPTagging_IPTag `protobuf:"bytes,4,rep,name=ip_tags,json=ipTags,proto3" json:"ip_tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPTagging) Reset() { *m = IPTagging{} } +func (m *IPTagging) String() string { return proto.CompactTextString(m) } +func (*IPTagging) ProtoMessage() {} +func (*IPTagging) Descriptor() ([]byte, []int) { + return fileDescriptor_53ea551b2829685a, []int{0} +} + +func (m *IPTagging) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IPTagging.Unmarshal(m, b) +} +func (m *IPTagging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IPTagging.Marshal(b, m, deterministic) +} +func (m *IPTagging) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPTagging.Merge(m, src) +} +func (m *IPTagging) XXX_Size() int { + return xxx_messageInfo_IPTagging.Size(m) +} +func (m *IPTagging) XXX_DiscardUnknown() { + xxx_messageInfo_IPTagging.DiscardUnknown(m) +} + +var xxx_messageInfo_IPTagging proto.InternalMessageInfo + +func (m *IPTagging) GetRequestType() IPTagging_RequestType { + if m != nil { + return m.RequestType + } + return IPTagging_BOTH +} + +func (m *IPTagging) GetIpTags() []*IPTagging_IPTag { + if m != nil { + return m.IpTags + } + return nil +} + +type IPTagging_IPTag struct { + IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"` + IpList []*v3.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList,proto3" json:"ip_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPTagging_IPTag) Reset() { *m = IPTagging_IPTag{} } +func (m *IPTagging_IPTag) String() string { return proto.CompactTextString(m) } +func (*IPTagging_IPTag) ProtoMessage() {} +func (*IPTagging_IPTag) Descriptor() ([]byte, []int) { + return fileDescriptor_53ea551b2829685a, []int{0, 0} +} + +func (m *IPTagging_IPTag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IPTagging_IPTag.Unmarshal(m, b) +} +func (m *IPTagging_IPTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IPTagging_IPTag.Marshal(b, m, deterministic) +} +func (m *IPTagging_IPTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPTagging_IPTag.Merge(m, src) +} +func (m *IPTagging_IPTag) XXX_Size() int { + return xxx_messageInfo_IPTagging_IPTag.Size(m) +} +func (m *IPTagging_IPTag) XXX_DiscardUnknown() { + xxx_messageInfo_IPTagging_IPTag.DiscardUnknown(m) +} + +var xxx_messageInfo_IPTagging_IPTag proto.InternalMessageInfo + +func (m *IPTagging_IPTag) GetIpTagName() string { + if m != nil { + return m.IpTagName + } + return "" +} + +func (m *IPTagging_IPTag) GetIpList() []*v3.CidrRange { + if m != nil { + return m.IpList + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.extensions.filters.http.ip_tagging.v3.IPTagging_RequestType", IPTagging_RequestType_name, IPTagging_RequestType_value) + proto.RegisterType((*IPTagging)(nil), "envoy.extensions.filters.http.ip_tagging.v3.IPTagging") + proto.RegisterType((*IPTagging_IPTag)(nil), "envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IPTag") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.proto", fileDescriptor_53ea551b2829685a) +} + +var fileDescriptor_53ea551b2829685a = []byte{ + // 435 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x6b, 0x14, 0x31, + 0x14, 0xc7, 0xcd, 0xb4, 0x5d, 0x77, 0x33, 0xa5, 0x0c, 0x73, 0x71, 0x19, 0xb0, 0xd6, 0x3d, 0x15, + 0x84, 0x44, 0x66, 0x40, 0x6b, 0xa9, 0x07, 0x47, 0x0a, 0x2e, 0x94, 0x75, 0x19, 0x46, 0xf0, 0x36, + 0xc4, 0x4e, 0x3a, 0x06, 0xb6, 0x49, 0x4c, 0xb2, 0x43, 0xe7, 0x26, 0x9e, 0x3c, 0x7b, 0xf4, 0xe4, + 0xe7, 0xf0, 0x2e, 0x78, 0xf5, 0x8b, 0xf8, 0x01, 0x3c, 0x49, 0x92, 0x69, 0xbb, 0xda, 0xd3, 0xf6, + 0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xb9, 0x94, 0x2f, 0x20, 0x18, 0x82, 0x62, 0xc0, 0x64, + 0x49, 0x1a, 0x9d, 0x7c, 0x03, 0x70, 0xcb, 0xf5, 0xe2, 0x5d, 0x18, 0x7a, 0x71, 0xc5, 0xc9, 0xb9, + 0x5f, 0x6d, 0x54, 0x8c, 0xdc, 0xd8, 0x8c, 0x9c, 0xd3, 0xf8, 0xc0, 0xa1, 0x2c, 0x98, 0x36, 0xe3, + 0xc0, 0xa1, 0x3c, 0xe8, 0x51, 0xfc, 0xd5, 0x20, 0x7b, 0x35, 0x36, 0xf3, 0x25, 0xab, 0x55, 0x41, + 0x78, 0x43, 0x6d, 0xc6, 0x09, 0xd3, 0xe6, 0xf0, 0xf9, 0xd7, 0x1f, 0x9f, 0x77, 0x0f, 0xe0, 0x93, + 0x7f, 0xc6, 0x3d, 0xf5, 0x4d, 0xe8, 0xf4, 0x7f, 0xe8, 0x49, 0x06, 0xc3, 0x95, 0x93, 0x8a, 0x87, + 0x70, 0x33, 0x7f, 0x5d, 0xbe, 0x8a, 0xee, 0xc4, 0xdb, 0x70, 0x38, 0x9d, 0x95, 0xc7, 0xc5, 0xec, + 0xc5, 0x49, 0x04, 0x6c, 0x75, 0xfc, 0xb6, 0xaf, 0x82, 0xc3, 0xa7, 0x36, 0x33, 0x85, 0x8f, 0xd7, + 0xcd, 0xcc, 0xdf, 0x7c, 0xff, 0xf8, 0xf3, 0xd7, 0x20, 0x88, 0x02, 0xf8, 0x8c, 0x09, 0xbf, 0xa1, + 0x54, 0xe2, 0xa2, 0x5b, 0xe7, 0xdc, 0xf3, 0x9d, 0xa9, 0xec, 0xfd, 0xe6, 0xf6, 0x15, 0xcd, 0xc1, + 0xbb, 0x81, 0x7b, 0x4e, 0xd9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0xca, 0x4d, 0x96, 0x3a, + 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.validate.go new file mode 100644 index 000000000..136d5b5d7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.pb.validate.go @@ -0,0 +1,212 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.proto + +package envoy_extensions_filters_http_ip_tagging_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ip_tagging_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on IPTagging with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IPTagging) Validate() error { + if m == nil { + return nil + } + + if _, ok := IPTagging_RequestType_name[int32(m.GetRequestType())]; !ok { + return IPTaggingValidationError{ + field: "RequestType", + reason: "value must be one of the defined enum values", + } + } + + if len(m.GetIpTags()) < 1 { + return IPTaggingValidationError{ + field: "IpTags", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetIpTags() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IPTaggingValidationError{ + field: fmt.Sprintf("IpTags[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IPTaggingValidationError is the validation error returned by +// IPTagging.Validate if the designated constraints aren't met. +type IPTaggingValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IPTaggingValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IPTaggingValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IPTaggingValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IPTaggingValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IPTaggingValidationError) ErrorName() string { return "IPTaggingValidationError" } + +// Error satisfies the builtin error interface +func (e IPTaggingValidationError) 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 %sIPTagging.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IPTaggingValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IPTaggingValidationError{} + +// Validate checks the field values on IPTagging_IPTag with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *IPTagging_IPTag) Validate() error { + if m == nil { + return nil + } + + // no validation rules for IpTagName + + for idx, item := range m.GetIpList() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IPTagging_IPTagValidationError{ + field: fmt.Sprintf("IpList[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IPTagging_IPTagValidationError is the validation error returned by +// IPTagging_IPTag.Validate if the designated constraints aren't met. +type IPTagging_IPTagValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IPTagging_IPTagValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IPTagging_IPTagValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IPTagging_IPTagValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IPTagging_IPTagValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IPTagging_IPTagValidationError) ErrorName() string { return "IPTagging_IPTagValidationError" } + +// Error satisfies the builtin error interface +func (e IPTagging_IPTagValidationError) 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 %sIPTagging_IPTag.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IPTagging_IPTagValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IPTagging_IPTagValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.go new file mode 100644 index 000000000..606191a67 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.go @@ -0,0 +1,781 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/jwt_authn/v3/config.proto + +package envoy_extensions_filters_http_jwt_authn_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type JwtProvider struct { + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"` + // Types that are valid to be assigned to JwksSourceSpecifier: + // *JwtProvider_RemoteJwks + // *JwtProvider_LocalJwks + JwksSourceSpecifier isJwtProvider_JwksSourceSpecifier `protobuf_oneof:"jwks_source_specifier"` + Forward bool `protobuf:"varint,5,opt,name=forward,proto3" json:"forward,omitempty"` + FromHeaders []*JwtHeader `protobuf:"bytes,6,rep,name=from_headers,json=fromHeaders,proto3" json:"from_headers,omitempty"` + FromParams []string `protobuf:"bytes,7,rep,name=from_params,json=fromParams,proto3" json:"from_params,omitempty"` + ForwardPayloadHeader string `protobuf:"bytes,8,opt,name=forward_payload_header,json=forwardPayloadHeader,proto3" json:"forward_payload_header,omitempty"` + PayloadInMetadata string `protobuf:"bytes,9,opt,name=payload_in_metadata,json=payloadInMetadata,proto3" json:"payload_in_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtProvider) Reset() { *m = JwtProvider{} } +func (m *JwtProvider) String() string { return proto.CompactTextString(m) } +func (*JwtProvider) ProtoMessage() {} +func (*JwtProvider) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{0} +} + +func (m *JwtProvider) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtProvider.Unmarshal(m, b) +} +func (m *JwtProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtProvider.Marshal(b, m, deterministic) +} +func (m *JwtProvider) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtProvider.Merge(m, src) +} +func (m *JwtProvider) XXX_Size() int { + return xxx_messageInfo_JwtProvider.Size(m) +} +func (m *JwtProvider) XXX_DiscardUnknown() { + xxx_messageInfo_JwtProvider.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtProvider proto.InternalMessageInfo + +func (m *JwtProvider) GetIssuer() string { + if m != nil { + return m.Issuer + } + return "" +} + +func (m *JwtProvider) GetAudiences() []string { + if m != nil { + return m.Audiences + } + return nil +} + +type isJwtProvider_JwksSourceSpecifier interface { + isJwtProvider_JwksSourceSpecifier() +} + +type JwtProvider_RemoteJwks struct { + RemoteJwks *RemoteJwks `protobuf:"bytes,3,opt,name=remote_jwks,json=remoteJwks,proto3,oneof"` +} + +type JwtProvider_LocalJwks struct { + LocalJwks *v3.DataSource `protobuf:"bytes,4,opt,name=local_jwks,json=localJwks,proto3,oneof"` +} + +func (*JwtProvider_RemoteJwks) isJwtProvider_JwksSourceSpecifier() {} + +func (*JwtProvider_LocalJwks) isJwtProvider_JwksSourceSpecifier() {} + +func (m *JwtProvider) GetJwksSourceSpecifier() isJwtProvider_JwksSourceSpecifier { + if m != nil { + return m.JwksSourceSpecifier + } + return nil +} + +func (m *JwtProvider) GetRemoteJwks() *RemoteJwks { + if x, ok := m.GetJwksSourceSpecifier().(*JwtProvider_RemoteJwks); ok { + return x.RemoteJwks + } + return nil +} + +func (m *JwtProvider) GetLocalJwks() *v3.DataSource { + if x, ok := m.GetJwksSourceSpecifier().(*JwtProvider_LocalJwks); ok { + return x.LocalJwks + } + return nil +} + +func (m *JwtProvider) GetForward() bool { + if m != nil { + return m.Forward + } + return false +} + +func (m *JwtProvider) GetFromHeaders() []*JwtHeader { + if m != nil { + return m.FromHeaders + } + return nil +} + +func (m *JwtProvider) GetFromParams() []string { + if m != nil { + return m.FromParams + } + return nil +} + +func (m *JwtProvider) GetForwardPayloadHeader() string { + if m != nil { + return m.ForwardPayloadHeader + } + return "" +} + +func (m *JwtProvider) GetPayloadInMetadata() string { + if m != nil { + return m.PayloadInMetadata + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*JwtProvider) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*JwtProvider_RemoteJwks)(nil), + (*JwtProvider_LocalJwks)(nil), + } +} + +type RemoteJwks struct { + HttpUri *v3.HttpUri `protobuf:"bytes,1,opt,name=http_uri,json=httpUri,proto3" json:"http_uri,omitempty"` + CacheDuration *duration.Duration `protobuf:"bytes,2,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoteJwks) Reset() { *m = RemoteJwks{} } +func (m *RemoteJwks) String() string { return proto.CompactTextString(m) } +func (*RemoteJwks) ProtoMessage() {} +func (*RemoteJwks) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{1} +} + +func (m *RemoteJwks) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoteJwks.Unmarshal(m, b) +} +func (m *RemoteJwks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoteJwks.Marshal(b, m, deterministic) +} +func (m *RemoteJwks) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteJwks.Merge(m, src) +} +func (m *RemoteJwks) XXX_Size() int { + return xxx_messageInfo_RemoteJwks.Size(m) +} +func (m *RemoteJwks) XXX_DiscardUnknown() { + xxx_messageInfo_RemoteJwks.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoteJwks proto.InternalMessageInfo + +func (m *RemoteJwks) GetHttpUri() *v3.HttpUri { + if m != nil { + return m.HttpUri + } + return nil +} + +func (m *RemoteJwks) GetCacheDuration() *duration.Duration { + if m != nil { + return m.CacheDuration + } + return nil +} + +type JwtHeader struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ValuePrefix string `protobuf:"bytes,2,opt,name=value_prefix,json=valuePrefix,proto3" json:"value_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtHeader) Reset() { *m = JwtHeader{} } +func (m *JwtHeader) String() string { return proto.CompactTextString(m) } +func (*JwtHeader) ProtoMessage() {} +func (*JwtHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{2} +} + +func (m *JwtHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtHeader.Unmarshal(m, b) +} +func (m *JwtHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtHeader.Marshal(b, m, deterministic) +} +func (m *JwtHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtHeader.Merge(m, src) +} +func (m *JwtHeader) XXX_Size() int { + return xxx_messageInfo_JwtHeader.Size(m) +} +func (m *JwtHeader) XXX_DiscardUnknown() { + xxx_messageInfo_JwtHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtHeader proto.InternalMessageInfo + +func (m *JwtHeader) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *JwtHeader) GetValuePrefix() string { + if m != nil { + return m.ValuePrefix + } + return "" +} + +type ProviderWithAudiences struct { + ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` + Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProviderWithAudiences) Reset() { *m = ProviderWithAudiences{} } +func (m *ProviderWithAudiences) String() string { return proto.CompactTextString(m) } +func (*ProviderWithAudiences) ProtoMessage() {} +func (*ProviderWithAudiences) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{3} +} + +func (m *ProviderWithAudiences) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProviderWithAudiences.Unmarshal(m, b) +} +func (m *ProviderWithAudiences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProviderWithAudiences.Marshal(b, m, deterministic) +} +func (m *ProviderWithAudiences) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProviderWithAudiences.Merge(m, src) +} +func (m *ProviderWithAudiences) XXX_Size() int { + return xxx_messageInfo_ProviderWithAudiences.Size(m) +} +func (m *ProviderWithAudiences) XXX_DiscardUnknown() { + xxx_messageInfo_ProviderWithAudiences.DiscardUnknown(m) +} + +var xxx_messageInfo_ProviderWithAudiences proto.InternalMessageInfo + +func (m *ProviderWithAudiences) GetProviderName() string { + if m != nil { + return m.ProviderName + } + return "" +} + +func (m *ProviderWithAudiences) GetAudiences() []string { + if m != nil { + return m.Audiences + } + return nil +} + +type JwtRequirement struct { + // Types that are valid to be assigned to RequiresType: + // *JwtRequirement_ProviderName + // *JwtRequirement_ProviderAndAudiences + // *JwtRequirement_RequiresAny + // *JwtRequirement_RequiresAll + // *JwtRequirement_AllowMissingOrFailed + // *JwtRequirement_AllowMissing + RequiresType isJwtRequirement_RequiresType `protobuf_oneof:"requires_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirement) Reset() { *m = JwtRequirement{} } +func (m *JwtRequirement) String() string { return proto.CompactTextString(m) } +func (*JwtRequirement) ProtoMessage() {} +func (*JwtRequirement) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{4} +} + +func (m *JwtRequirement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirement.Unmarshal(m, b) +} +func (m *JwtRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirement.Marshal(b, m, deterministic) +} +func (m *JwtRequirement) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirement.Merge(m, src) +} +func (m *JwtRequirement) XXX_Size() int { + return xxx_messageInfo_JwtRequirement.Size(m) +} +func (m *JwtRequirement) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirement.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirement proto.InternalMessageInfo + +type isJwtRequirement_RequiresType interface { + isJwtRequirement_RequiresType() +} + +type JwtRequirement_ProviderName struct { + ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3,oneof"` +} + +type JwtRequirement_ProviderAndAudiences struct { + ProviderAndAudiences *ProviderWithAudiences `protobuf:"bytes,2,opt,name=provider_and_audiences,json=providerAndAudiences,proto3,oneof"` +} + +type JwtRequirement_RequiresAny struct { + RequiresAny *JwtRequirementOrList `protobuf:"bytes,3,opt,name=requires_any,json=requiresAny,proto3,oneof"` +} + +type JwtRequirement_RequiresAll struct { + RequiresAll *JwtRequirementAndList `protobuf:"bytes,4,opt,name=requires_all,json=requiresAll,proto3,oneof"` +} + +type JwtRequirement_AllowMissingOrFailed struct { + AllowMissingOrFailed *empty.Empty `protobuf:"bytes,5,opt,name=allow_missing_or_failed,json=allowMissingOrFailed,proto3,oneof"` +} + +type JwtRequirement_AllowMissing struct { + AllowMissing *empty.Empty `protobuf:"bytes,6,opt,name=allow_missing,json=allowMissing,proto3,oneof"` +} + +func (*JwtRequirement_ProviderName) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_ProviderAndAudiences) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_RequiresAny) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_RequiresAll) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_AllowMissingOrFailed) isJwtRequirement_RequiresType() {} + +func (*JwtRequirement_AllowMissing) isJwtRequirement_RequiresType() {} + +func (m *JwtRequirement) GetRequiresType() isJwtRequirement_RequiresType { + if m != nil { + return m.RequiresType + } + return nil +} + +func (m *JwtRequirement) GetProviderName() string { + if x, ok := m.GetRequiresType().(*JwtRequirement_ProviderName); ok { + return x.ProviderName + } + return "" +} + +func (m *JwtRequirement) GetProviderAndAudiences() *ProviderWithAudiences { + if x, ok := m.GetRequiresType().(*JwtRequirement_ProviderAndAudiences); ok { + return x.ProviderAndAudiences + } + return nil +} + +func (m *JwtRequirement) GetRequiresAny() *JwtRequirementOrList { + if x, ok := m.GetRequiresType().(*JwtRequirement_RequiresAny); ok { + return x.RequiresAny + } + return nil +} + +func (m *JwtRequirement) GetRequiresAll() *JwtRequirementAndList { + if x, ok := m.GetRequiresType().(*JwtRequirement_RequiresAll); ok { + return x.RequiresAll + } + return nil +} + +func (m *JwtRequirement) GetAllowMissingOrFailed() *empty.Empty { + if x, ok := m.GetRequiresType().(*JwtRequirement_AllowMissingOrFailed); ok { + return x.AllowMissingOrFailed + } + return nil +} + +func (m *JwtRequirement) GetAllowMissing() *empty.Empty { + if x, ok := m.GetRequiresType().(*JwtRequirement_AllowMissing); ok { + return x.AllowMissing + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*JwtRequirement) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*JwtRequirement_ProviderName)(nil), + (*JwtRequirement_ProviderAndAudiences)(nil), + (*JwtRequirement_RequiresAny)(nil), + (*JwtRequirement_RequiresAll)(nil), + (*JwtRequirement_AllowMissingOrFailed)(nil), + (*JwtRequirement_AllowMissing)(nil), + } +} + +type JwtRequirementOrList struct { + Requirements []*JwtRequirement `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirementOrList) Reset() { *m = JwtRequirementOrList{} } +func (m *JwtRequirementOrList) String() string { return proto.CompactTextString(m) } +func (*JwtRequirementOrList) ProtoMessage() {} +func (*JwtRequirementOrList) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{5} +} + +func (m *JwtRequirementOrList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirementOrList.Unmarshal(m, b) +} +func (m *JwtRequirementOrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirementOrList.Marshal(b, m, deterministic) +} +func (m *JwtRequirementOrList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirementOrList.Merge(m, src) +} +func (m *JwtRequirementOrList) XXX_Size() int { + return xxx_messageInfo_JwtRequirementOrList.Size(m) +} +func (m *JwtRequirementOrList) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirementOrList.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirementOrList proto.InternalMessageInfo + +func (m *JwtRequirementOrList) GetRequirements() []*JwtRequirement { + if m != nil { + return m.Requirements + } + return nil +} + +type JwtRequirementAndList struct { + Requirements []*JwtRequirement `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtRequirementAndList) Reset() { *m = JwtRequirementAndList{} } +func (m *JwtRequirementAndList) String() string { return proto.CompactTextString(m) } +func (*JwtRequirementAndList) ProtoMessage() {} +func (*JwtRequirementAndList) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{6} +} + +func (m *JwtRequirementAndList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtRequirementAndList.Unmarshal(m, b) +} +func (m *JwtRequirementAndList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtRequirementAndList.Marshal(b, m, deterministic) +} +func (m *JwtRequirementAndList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtRequirementAndList.Merge(m, src) +} +func (m *JwtRequirementAndList) XXX_Size() int { + return xxx_messageInfo_JwtRequirementAndList.Size(m) +} +func (m *JwtRequirementAndList) XXX_DiscardUnknown() { + xxx_messageInfo_JwtRequirementAndList.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtRequirementAndList proto.InternalMessageInfo + +func (m *JwtRequirementAndList) GetRequirements() []*JwtRequirement { + if m != nil { + return m.Requirements + } + return nil +} + +type RequirementRule struct { + Match *v31.RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Requires *JwtRequirement `protobuf:"bytes,2,opt,name=requires,proto3" json:"requires,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequirementRule) Reset() { *m = RequirementRule{} } +func (m *RequirementRule) String() string { return proto.CompactTextString(m) } +func (*RequirementRule) ProtoMessage() {} +func (*RequirementRule) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{7} +} + +func (m *RequirementRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequirementRule.Unmarshal(m, b) +} +func (m *RequirementRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequirementRule.Marshal(b, m, deterministic) +} +func (m *RequirementRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequirementRule.Merge(m, src) +} +func (m *RequirementRule) XXX_Size() int { + return xxx_messageInfo_RequirementRule.Size(m) +} +func (m *RequirementRule) XXX_DiscardUnknown() { + xxx_messageInfo_RequirementRule.DiscardUnknown(m) +} + +var xxx_messageInfo_RequirementRule proto.InternalMessageInfo + +func (m *RequirementRule) GetMatch() *v31.RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *RequirementRule) GetRequires() *JwtRequirement { + if m != nil { + return m.Requires + } + return nil +} + +type FilterStateRule struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Requires map[string]*JwtRequirement `protobuf:"bytes,3,rep,name=requires,proto3" json:"requires,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterStateRule) Reset() { *m = FilterStateRule{} } +func (m *FilterStateRule) String() string { return proto.CompactTextString(m) } +func (*FilterStateRule) ProtoMessage() {} +func (*FilterStateRule) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{8} +} + +func (m *FilterStateRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterStateRule.Unmarshal(m, b) +} +func (m *FilterStateRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterStateRule.Marshal(b, m, deterministic) +} +func (m *FilterStateRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterStateRule.Merge(m, src) +} +func (m *FilterStateRule) XXX_Size() int { + return xxx_messageInfo_FilterStateRule.Size(m) +} +func (m *FilterStateRule) XXX_DiscardUnknown() { + xxx_messageInfo_FilterStateRule.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterStateRule proto.InternalMessageInfo + +func (m *FilterStateRule) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FilterStateRule) GetRequires() map[string]*JwtRequirement { + if m != nil { + return m.Requires + } + return nil +} + +type JwtAuthentication struct { + Providers map[string]*JwtProvider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Rules []*RequirementRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + FilterStateRules *FilterStateRule `protobuf:"bytes,3,opt,name=filter_state_rules,json=filterStateRules,proto3" json:"filter_state_rules,omitempty"` + BypassCorsPreflight bool `protobuf:"varint,4,opt,name=bypass_cors_preflight,json=bypassCorsPreflight,proto3" json:"bypass_cors_preflight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JwtAuthentication) Reset() { *m = JwtAuthentication{} } +func (m *JwtAuthentication) String() string { return proto.CompactTextString(m) } +func (*JwtAuthentication) ProtoMessage() {} +func (*JwtAuthentication) Descriptor() ([]byte, []int) { + return fileDescriptor_733511ccb445d825, []int{9} +} + +func (m *JwtAuthentication) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JwtAuthentication.Unmarshal(m, b) +} +func (m *JwtAuthentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JwtAuthentication.Marshal(b, m, deterministic) +} +func (m *JwtAuthentication) XXX_Merge(src proto.Message) { + xxx_messageInfo_JwtAuthentication.Merge(m, src) +} +func (m *JwtAuthentication) XXX_Size() int { + return xxx_messageInfo_JwtAuthentication.Size(m) +} +func (m *JwtAuthentication) XXX_DiscardUnknown() { + xxx_messageInfo_JwtAuthentication.DiscardUnknown(m) +} + +var xxx_messageInfo_JwtAuthentication proto.InternalMessageInfo + +func (m *JwtAuthentication) GetProviders() map[string]*JwtProvider { + if m != nil { + return m.Providers + } + return nil +} + +func (m *JwtAuthentication) GetRules() []*RequirementRule { + if m != nil { + return m.Rules + } + return nil +} + +func (m *JwtAuthentication) GetFilterStateRules() *FilterStateRule { + if m != nil { + return m.FilterStateRules + } + return nil +} + +func (m *JwtAuthentication) GetBypassCorsPreflight() bool { + if m != nil { + return m.BypassCorsPreflight + } + return false +} + +func init() { + proto.RegisterType((*JwtProvider)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtProvider") + proto.RegisterType((*RemoteJwks)(nil), "envoy.extensions.filters.http.jwt_authn.v3.RemoteJwks") + proto.RegisterType((*JwtHeader)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtHeader") + proto.RegisterType((*ProviderWithAudiences)(nil), "envoy.extensions.filters.http.jwt_authn.v3.ProviderWithAudiences") + proto.RegisterType((*JwtRequirement)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement") + proto.RegisterType((*JwtRequirementOrList)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtRequirementOrList") + proto.RegisterType((*JwtRequirementAndList)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtRequirementAndList") + proto.RegisterType((*RequirementRule)(nil), "envoy.extensions.filters.http.jwt_authn.v3.RequirementRule") + proto.RegisterType((*FilterStateRule)(nil), "envoy.extensions.filters.http.jwt_authn.v3.FilterStateRule") + proto.RegisterMapType((map[string]*JwtRequirement)(nil), "envoy.extensions.filters.http.jwt_authn.v3.FilterStateRule.RequiresEntry") + proto.RegisterType((*JwtAuthentication)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication") + proto.RegisterMapType((map[string]*JwtProvider)(nil), "envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication.ProvidersEntry") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/jwt_authn/v3/config.proto", fileDescriptor_733511ccb445d825) +} + +var fileDescriptor_733511ccb445d825 = []byte{ + // 1255 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4b, 0x6f, 0x1b, 0x37, + 0x10, 0xf6, 0xca, 0x2f, 0x69, 0x64, 0x27, 0x0e, 0x13, 0x27, 0xaa, 0xf3, 0x52, 0x14, 0x14, 0x30, + 0x8a, 0x62, 0x05, 0x28, 0x2f, 0x57, 0x4e, 0x5a, 0x4b, 0x79, 0x54, 0x31, 0xe2, 0x46, 0xd9, 0xa0, + 0xaf, 0xd3, 0x82, 0xd6, 0x52, 0x16, 0x93, 0xd5, 0x72, 0x4b, 0x72, 0xa5, 0xe8, 0xd6, 0x63, 0xd0, + 0x63, 0x8f, 0xbd, 0xf6, 0xdc, 0x3f, 0xd0, 0x63, 0x81, 0x16, 0x41, 0x6f, 0xf9, 0x0f, 0xbd, 0xf7, + 0x5a, 0xe4, 0x54, 0x90, 0xcb, 0x95, 0xb4, 0xb6, 0x90, 0x76, 0x9d, 0xa2, 0x37, 0x2e, 0x87, 0xf3, + 0xf1, 0x9b, 0x6f, 0x66, 0x38, 0x0b, 0xb7, 0x48, 0x30, 0x60, 0xa3, 0x2a, 0x79, 0x21, 0x49, 0x20, + 0x28, 0x0b, 0x44, 0xb5, 0x4b, 0x7d, 0x49, 0xb8, 0xa8, 0xf6, 0xa4, 0x0c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c, 0x6c, + 0x51, 0x16, 0x93, 0x0a, 0x39, 0x7b, 0x31, 0xca, 0xc0, 0xaf, 0x59, 0xbc, 0xab, 0xef, 0x6e, 0xab, + 0x51, 0xd6, 0xb6, 0xf6, 0x97, 0xf4, 0x4c, 0xbb, 0xf6, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x41, + 0x37, 0x4a, 0xa1, 0x80, 0x0e, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.validate.go new file mode 100644 index 000000000..ac1f8a805 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3/config.pb.validate.go @@ -0,0 +1,992 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/jwt_authn/v3/config.proto + +package envoy_extensions_filters_http_jwt_authn_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on JwtProvider with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *JwtProvider) Validate() error { + if m == nil { + return nil + } + + if len(m.GetIssuer()) < 1 { + return JwtProviderValidationError{ + field: "Issuer", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for Forward + + for idx, item := range m.GetFromHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: fmt.Sprintf("FromHeaders[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for ForwardPayloadHeader + + // no validation rules for PayloadInMetadata + + switch m.JwksSourceSpecifier.(type) { + + case *JwtProvider_RemoteJwks: + + if v, ok := interface{}(m.GetRemoteJwks()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: "RemoteJwks", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtProvider_LocalJwks: + + if v, ok := interface{}(m.GetLocalJwks()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtProviderValidationError{ + field: "LocalJwks", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return JwtProviderValidationError{ + field: "JwksSourceSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// JwtProviderValidationError is the validation error returned by +// JwtProvider.Validate if the designated constraints aren't met. +type JwtProviderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtProviderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtProviderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtProviderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtProviderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtProviderValidationError) ErrorName() string { return "JwtProviderValidationError" } + +// Error satisfies the builtin error interface +func (e JwtProviderValidationError) 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 %sJwtProvider.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtProviderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtProviderValidationError{} + +// Validate checks the field values on RemoteJwks with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RemoteJwks) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHttpUri()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RemoteJwksValidationError{ + field: "HttpUri", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCacheDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RemoteJwksValidationError{ + field: "CacheDuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RemoteJwksValidationError is the validation error returned by +// RemoteJwks.Validate if the designated constraints aren't met. +type RemoteJwksValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RemoteJwksValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RemoteJwksValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RemoteJwksValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RemoteJwksValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RemoteJwksValidationError) ErrorName() string { return "RemoteJwksValidationError" } + +// Error satisfies the builtin error interface +func (e RemoteJwksValidationError) 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 %sRemoteJwks.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RemoteJwksValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RemoteJwksValidationError{} + +// Validate checks the field values on JwtHeader with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *JwtHeader) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return JwtHeaderValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for ValuePrefix + + return nil +} + +// JwtHeaderValidationError is the validation error returned by +// JwtHeader.Validate if the designated constraints aren't met. +type JwtHeaderValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtHeaderValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtHeaderValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtHeaderValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtHeaderValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtHeaderValidationError) ErrorName() string { return "JwtHeaderValidationError" } + +// Error satisfies the builtin error interface +func (e JwtHeaderValidationError) 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 %sJwtHeader.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtHeaderValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtHeaderValidationError{} + +// Validate checks the field values on ProviderWithAudiences with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProviderWithAudiences) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ProviderName + + return nil +} + +// ProviderWithAudiencesValidationError is the validation error returned by +// ProviderWithAudiences.Validate if the designated constraints aren't met. +type ProviderWithAudiencesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProviderWithAudiencesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProviderWithAudiencesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProviderWithAudiencesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProviderWithAudiencesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProviderWithAudiencesValidationError) ErrorName() string { + return "ProviderWithAudiencesValidationError" +} + +// Error satisfies the builtin error interface +func (e ProviderWithAudiencesValidationError) 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 %sProviderWithAudiences.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProviderWithAudiencesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProviderWithAudiencesValidationError{} + +// Validate checks the field values on JwtRequirement with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *JwtRequirement) Validate() error { + if m == nil { + return nil + } + + switch m.RequiresType.(type) { + + case *JwtRequirement_ProviderName: + // no validation rules for ProviderName + + case *JwtRequirement_ProviderAndAudiences: + + if v, ok := interface{}(m.GetProviderAndAudiences()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "ProviderAndAudiences", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_RequiresAny: + + if v, ok := interface{}(m.GetRequiresAny()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "RequiresAny", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_RequiresAll: + + if v, ok := interface{}(m.GetRequiresAll()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "RequiresAll", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_AllowMissingOrFailed: + + if v, ok := interface{}(m.GetAllowMissingOrFailed()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "AllowMissingOrFailed", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *JwtRequirement_AllowMissing: + + if v, ok := interface{}(m.GetAllowMissing()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementValidationError{ + field: "AllowMissing", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementValidationError is the validation error returned by +// JwtRequirement.Validate if the designated constraints aren't met. +type JwtRequirementValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementValidationError) ErrorName() string { return "JwtRequirementValidationError" } + +// Error satisfies the builtin error interface +func (e JwtRequirementValidationError) 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 %sJwtRequirement.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementValidationError{} + +// Validate checks the field values on JwtRequirementOrList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *JwtRequirementOrList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRequirements()) < 2 { + return JwtRequirementOrListValidationError{ + field: "Requirements", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRequirements() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementOrListValidationError{ + field: fmt.Sprintf("Requirements[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementOrListValidationError is the validation error returned by +// JwtRequirementOrList.Validate if the designated constraints aren't met. +type JwtRequirementOrListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementOrListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementOrListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementOrListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementOrListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementOrListValidationError) ErrorName() string { + return "JwtRequirementOrListValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtRequirementOrListValidationError) 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 %sJwtRequirementOrList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementOrListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementOrListValidationError{} + +// Validate checks the field values on JwtRequirementAndList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *JwtRequirementAndList) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRequirements()) < 2 { + return JwtRequirementAndListValidationError{ + field: "Requirements", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRequirements() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtRequirementAndListValidationError{ + field: fmt.Sprintf("Requirements[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// JwtRequirementAndListValidationError is the validation error returned by +// JwtRequirementAndList.Validate if the designated constraints aren't met. +type JwtRequirementAndListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtRequirementAndListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtRequirementAndListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtRequirementAndListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtRequirementAndListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtRequirementAndListValidationError) ErrorName() string { + return "JwtRequirementAndListValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtRequirementAndListValidationError) 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 %sJwtRequirementAndList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtRequirementAndListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtRequirementAndListValidationError{} + +// Validate checks the field values on RequirementRule with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RequirementRule) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RequirementRuleValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RequirementRuleValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequires()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RequirementRuleValidationError{ + field: "Requires", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RequirementRuleValidationError is the validation error returned by +// RequirementRule.Validate if the designated constraints aren't met. +type RequirementRuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RequirementRuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RequirementRuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RequirementRuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RequirementRuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RequirementRuleValidationError) ErrorName() string { return "RequirementRuleValidationError" } + +// Error satisfies the builtin error interface +func (e RequirementRuleValidationError) 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 %sRequirementRule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RequirementRuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RequirementRuleValidationError{} + +// Validate checks the field values on FilterStateRule with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *FilterStateRule) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return FilterStateRuleValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + for key, val := range m.GetRequires() { + _ = val + + // no validation rules for Requires[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterStateRuleValidationError{ + field: fmt.Sprintf("Requires[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FilterStateRuleValidationError is the validation error returned by +// FilterStateRule.Validate if the designated constraints aren't met. +type FilterStateRuleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterStateRuleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterStateRuleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterStateRuleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterStateRuleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterStateRuleValidationError) ErrorName() string { return "FilterStateRuleValidationError" } + +// Error satisfies the builtin error interface +func (e FilterStateRuleValidationError) 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 %sFilterStateRule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterStateRuleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterStateRuleValidationError{} + +// Validate checks the field values on JwtAuthentication with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *JwtAuthentication) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetProviders() { + _ = val + + // no validation rules for Providers[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: fmt.Sprintf("Providers[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: fmt.Sprintf("Rules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetFilterStateRules()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return JwtAuthenticationValidationError{ + field: "FilterStateRules", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for BypassCorsPreflight + + return nil +} + +// JwtAuthenticationValidationError is the validation error returned by +// JwtAuthentication.Validate if the designated constraints aren't met. +type JwtAuthenticationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e JwtAuthenticationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e JwtAuthenticationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e JwtAuthenticationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e JwtAuthenticationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e JwtAuthenticationValidationError) ErrorName() string { + return "JwtAuthenticationValidationError" +} + +// Error satisfies the builtin error interface +func (e JwtAuthenticationValidationError) 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 %sJwtAuthentication.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = JwtAuthenticationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = JwtAuthenticationValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.go new file mode 100644 index 000000000..786536339 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/lua/v3/lua.proto + +package envoy_extensions_filters_http_lua_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Lua struct { + InlineCode string `protobuf:"bytes,1,opt,name=inline_code,json=inlineCode,proto3" json:"inline_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Lua) Reset() { *m = Lua{} } +func (m *Lua) String() string { return proto.CompactTextString(m) } +func (*Lua) ProtoMessage() {} +func (*Lua) Descriptor() ([]byte, []int) { + return fileDescriptor_9c60a8216ed71fb8, []int{0} +} + +func (m *Lua) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Lua.Unmarshal(m, b) +} +func (m *Lua) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Lua.Marshal(b, m, deterministic) +} +func (m *Lua) XXX_Merge(src proto.Message) { + xxx_messageInfo_Lua.Merge(m, src) +} +func (m *Lua) XXX_Size() int { + return xxx_messageInfo_Lua.Size(m) +} +func (m *Lua) XXX_DiscardUnknown() { + xxx_messageInfo_Lua.DiscardUnknown(m) +} + +var xxx_messageInfo_Lua proto.InternalMessageInfo + +func (m *Lua) GetInlineCode() string { + if m != nil { + return m.InlineCode + } + return "" +} + +func init() { + proto.RegisterType((*Lua)(nil), "envoy.extensions.filters.http.lua.v3.Lua") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/lua/v3/lua.proto", fileDescriptor_9c60a8216ed71fb8) +} + +var fileDescriptor_9c60a8216ed71fb8 = []byte{ + // 253 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4b, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0xcf, 0x29, 0x4d, 0xd4, 0x2f, 0x33, + 0x06, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2a, 0x60, 0xf5, 0x7a, 0x08, 0xf5, 0x7a, + 0x50, 0xf5, 0x7a, 0x20, 0xf5, 0x7a, 0x20, 0x85, 0x65, 0xc6, 0x52, 0xb2, 0xa5, 0x29, 0x05, 0x89, + 0xfa, 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89, 0x25, 0x60, 0x53, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, + 0x21, 0x86, 0x48, 0x29, 0x62, 0x48, 0x97, 0xa5, 0x16, 0x81, 0x4c, 0xcb, 0xcc, 0x4b, 0x87, 0x2a, + 0x11, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0x49, 0xd5, 0x87, 0x31, 0x20, 0x12, 0x4a, 0xd1, + 0x5c, 0xcc, 0x3e, 0xa5, 0x89, 0x42, 0x1a, 0x5c, 0xdc, 0x99, 0x79, 0x39, 0x99, 0x79, 0xa9, 0xf1, + 0xc9, 0xf9, 0x29, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0xec, 0xbf, 0x9c, 0x58, 0x8a, + 0x98, 0x14, 0x18, 0x83, 0xb8, 0x20, 0x72, 0xce, 0xf9, 0x29, 0xa9, 0x56, 0x5a, 0xb3, 0x8e, 0x76, + 0xc8, 0xa9, 0x72, 0x29, 0x43, 0x1c, 0x9e, 0x9c, 0x9f, 0x97, 0x96, 0x99, 0x0e, 0x75, 0x34, 0x92, + 0x9b, 0x8d, 0xf4, 0x7c, 0x4a, 0x13, 0x9d, 0x3c, 0x76, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, + 0xc4, 0x65, 0x94, 0x99, 0x0f, 0x09, 0x9a, 0x82, 0xa2, 0xfc, 0x8a, 0x4a, 0x3d, 0x62, 0x7c, 0xed, + 0xc4, 0xe1, 0x53, 0x9a, 0x18, 0x00, 0x72, 0x64, 0x00, 0x63, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x53, 0x01, 0x76, 0x60, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.validate.go new file mode 100644 index 000000000..14c741d22 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3/lua.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/lua/v3/lua.proto + +package envoy_extensions_filters_http_lua_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _lua_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Lua with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Lua) Validate() error { + if m == nil { + return nil + } + + if len(m.GetInlineCode()) < 1 { + return LuaValidationError{ + field: "InlineCode", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// LuaValidationError is the validation error returned by Lua.Validate if the +// designated constraints aren't met. +type LuaValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LuaValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LuaValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LuaValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LuaValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LuaValidationError) ErrorName() string { return "LuaValidationError" } + +// Error satisfies the builtin error interface +func (e LuaValidationError) 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 %sLua.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LuaValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LuaValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.go new file mode 100644 index 000000000..78d516e1a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.go @@ -0,0 +1,80 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/on_demand/v3/on_demand.proto + +package envoy_extensions_filters_http_on_demand_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OnDemand struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OnDemand) Reset() { *m = OnDemand{} } +func (m *OnDemand) String() string { return proto.CompactTextString(m) } +func (*OnDemand) ProtoMessage() {} +func (*OnDemand) Descriptor() ([]byte, []int) { + return fileDescriptor_ea492b8a9902099a, []int{0} +} + +func (m *OnDemand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OnDemand.Unmarshal(m, b) +} +func (m *OnDemand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OnDemand.Marshal(b, m, deterministic) +} +func (m *OnDemand) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnDemand.Merge(m, src) +} +func (m *OnDemand) XXX_Size() int { + return xxx_messageInfo_OnDemand.Size(m) +} +func (m *OnDemand) XXX_DiscardUnknown() { + xxx_messageInfo_OnDemand.DiscardUnknown(m) +} + +var xxx_messageInfo_OnDemand proto.InternalMessageInfo + +func init() { + proto.RegisterType((*OnDemand)(nil), "envoy.extensions.filters.http.on_demand.v3.OnDemand") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/on_demand/v3/on_demand.proto", fileDescriptor_ea492b8a9902099a) +} + +var fileDescriptor_ea492b8a9902099a = []byte{ + // 221 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4a, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0xcf, 0xcf, 0x8b, 0x4f, 0x49, 0xcd, + 0x4d, 0xcc, 0x4b, 0xd1, 0x2f, 0x33, 0x46, 0x70, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xb4, + 0xc0, 0x7a, 0xf5, 0x10, 0x7a, 0xf5, 0xa0, 0x7a, 0xf5, 0x40, 0x7a, 0xf5, 0x10, 0xca, 0xcb, 0x8c, + 0xa5, 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0xc0, 0xf6, + 0x14, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0x8c, 0x92, 0x52, 0xc4, 0x90, 0x2e, 0x4b, 0x2d, 0x02, + 0x99, 0x99, 0x99, 0x97, 0x0e, 0x55, 0x22, 0x5e, 0x96, 0x98, 0x93, 0x99, 0x92, 0x58, 0x92, 0xaa, + 0x0f, 0x63, 0x40, 0x24, 0x94, 0x1c, 0xb9, 0x38, 0xfc, 0xf3, 0x5c, 0xc0, 0x36, 0x59, 0x99, 0xce, + 0x3a, 0xda, 0x21, 0x67, 0xc0, 0xa5, 0x07, 0x71, 0x59, 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0x3a, 0xd4, + 0x55, 0x18, 0x8e, 0x32, 0xd2, 0x83, 0x69, 0x73, 0x0a, 0xde, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, + 0x00, 0x13, 0x97, 0x45, 0x66, 0x3e, 0x44, 0x73, 0x41, 0x51, 0x7e, 0x45, 0xa5, 0x1e, 0xf1, 0x3e, + 0x74, 0xe2, 0x85, 0x99, 0x16, 0x00, 0x72, 0x55, 0x00, 0x63, 0x12, 0x1b, 0xd8, 0x79, 0xc6, 0x80, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x33, 0xef, 0xe0, 0xe5, 0x63, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.validate.go new file mode 100644 index 000000000..106660e3e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3/on_demand.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/on_demand/v3/on_demand.proto + +package envoy_extensions_filters_http_on_demand_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _on_demand_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OnDemand with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *OnDemand) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OnDemandValidationError is the validation error returned by +// OnDemand.Validate if the designated constraints aren't met. +type OnDemandValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OnDemandValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OnDemandValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OnDemandValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OnDemandValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OnDemandValidationError) ErrorName() string { return "OnDemandValidationError" } + +// Error satisfies the builtin error interface +func (e OnDemandValidationError) 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 %sOnDemand.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OnDemandValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OnDemandValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.go new file mode 100644 index 000000000..36cc09b4b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/original_src/v3/original_src.proto + +package envoy_extensions_filters_http_original_src_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalSrc struct { + Mark uint32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalSrc) Reset() { *m = OriginalSrc{} } +func (m *OriginalSrc) String() string { return proto.CompactTextString(m) } +func (*OriginalSrc) ProtoMessage() {} +func (*OriginalSrc) Descriptor() ([]byte, []int) { + return fileDescriptor_ac73f7eba2c8a298, []int{0} +} + +func (m *OriginalSrc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalSrc.Unmarshal(m, b) +} +func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalSrc.Marshal(b, m, deterministic) +} +func (m *OriginalSrc) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalSrc.Merge(m, src) +} +func (m *OriginalSrc) XXX_Size() int { + return xxx_messageInfo_OriginalSrc.Size(m) +} +func (m *OriginalSrc) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalSrc.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalSrc proto.InternalMessageInfo + +func (m *OriginalSrc) GetMark() uint32 { + if m != nil { + return m.Mark + } + return 0 +} + +func init() { + proto.RegisterType((*OriginalSrc)(nil), "envoy.extensions.filters.http.original_src.v3.OriginalSrc") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/original_src/v3/original_src.proto", fileDescriptor_ac73f7eba2c8a298) +} + +var fileDescriptor_ac73f7eba2c8a298 = []byte{ + // 250 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a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x49, 0xe1, 0xe0, 0x24, 0x80, + 0x64, 0x66, 0x00, 0xc8, 0xf9, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x7f, 0x18, 0x03, 0x02, 0x00, 0x00, + 0xff, 0xff, 0xe5, 0x13, 0x4c, 0x75, 0x95, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.validate.go new file mode 100644 index 000000000..ebdd1ae88 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3/original_src.pb.validate.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/original_src/v3/original_src.proto + +package envoy_extensions_filters_http_original_src_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_src_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalSrc with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalSrc) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Mark + + return nil +} + +// OriginalSrcValidationError is the validation error returned by +// OriginalSrc.Validate if the designated constraints aren't met. +type OriginalSrcValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalSrcValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalSrcValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalSrcValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalSrcValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalSrcValidationError) ErrorName() string { return "OriginalSrcValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalSrcValidationError) 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 %sOriginalSrc.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalSrcValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalSrcValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.go new file mode 100644 index 000000000..dd78c277b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_http_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"` + RequestType string `protobuf:"bytes,3,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitedAsResourceExhausted bool `protobuf:"varint,6,opt,name=rate_limited_as_resource_exhausted,json=rateLimitedAsResourceExhausted,proto3" json:"rate_limited_as_resource_exhausted,omitempty"` + RateLimitService *v3.RateLimitServiceConfig `protobuf:"bytes,7,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_bf645dbc1fee5d54, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetStage() uint32 { + if m != nil { + return m.Stage + } + return 0 +} + +func (m *RateLimit) GetRequestType() string { + if m != nil { + return m.RequestType + } + return "" +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitedAsResourceExhausted() bool { + if m != nil { + return m.RateLimitedAsResourceExhausted + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.extensions.filters.http.ratelimit.v3.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto", fileDescriptor_bf645dbc1fee5d54) +} + +var fileDescriptor_bf645dbc1fee5d54 = []byte{ + // 499 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x3d, 0x8f, 0xd3, 0x40, + 0x10, 0xc5, 0xbe, 0x7c, 0xdd, 0x1e, 0x1f, 0xc1, 0x0d, 0xe6, 0xc4, 0x85, 0xdc, 0xd1, 0x44, 0x29, + 0xd6, 0x90, 0x14, 0x20, 0xa8, 0x30, 0xa1, 0x41, 0x20, 0x9d, 0x96, 0xeb, 0xad, 0x4d, 0x3c, 0x49, + 0x56, 0x72, 0x76, 0xcd, 0xee, 0xd8, 0x8a, 0x3b, 0x4a, 0xc4, 0x4f, 0xe0, 0xa7, 0xd0, 0x23, 0xd1, + 0xf2, 0x17, 0xf8, 0x19, 0xa9, 0x50, 0xd6, 0x76, 0xac, 0x3b, 0x9a, 0xeb, 0x76, 0x66, 0xde, 0x7b, + 0x3b, 0x7a, 0xf3, 0xc8, 0x1b, 0x90, 0xb9, 0x2a, 0x02,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bc, 0xfa, 0xf9, 0xf5, 0xf7, 0x9f, 0x8e, 0xdb, 0x77, 0xc9, 0x2b, 0xa1, 0xca, + 0x9d, 0x52, 0xad, 0xb6, 0x05, 0xbd, 0x7d, 0x90, 0xc3, 0xfb, 0x07, 0xb9, 0xcb, 0xfd, 0x11, 0x2e, + 0x9d, 0x79, 0xc7, 0x5e, 0x63, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x88, 0x52, 0x02, 0x9a, 0x4c, + 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.validate.go new file mode 100644 index 000000000..dcac204fa --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3/rate_limit.pb.validate.go @@ -0,0 +1,160 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_http_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetStage() > 10 { + return RateLimitValidationError{ + field: "Stage", + reason: "value must be less than or equal to 10", + } + } + + if _, ok := _RateLimit_RequestType_InLookup[m.GetRequestType()]; !ok { + return RateLimitValidationError{ + field: "RequestType", + reason: "value must be in list [internal external both ]", + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + // no validation rules for RateLimitedAsResourceExhausted + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} + +var _RateLimit_RequestType_InLookup = map[string]struct{}{ + "internal": {}, + "external": {}, + "both": {}, + "": {}, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.go new file mode 100644 index 000000000..4f04cfe6e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/router/v3/router.proto + +package envoy_extensions_filters_http_router_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Router struct { + DynamicStats *wrappers.BoolValue `protobuf:"bytes,1,opt,name=dynamic_stats,json=dynamicStats,proto3" json:"dynamic_stats,omitempty"` + StartChildSpan bool `protobuf:"varint,2,opt,name=start_child_span,json=startChildSpan,proto3" json:"start_child_span,omitempty"` + UpstreamLog []*v3.AccessLog `protobuf:"bytes,3,rep,name=upstream_log,json=upstreamLog,proto3" json:"upstream_log,omitempty"` + SuppressEnvoyHeaders bool `protobuf:"varint,4,opt,name=suppress_envoy_headers,json=suppressEnvoyHeaders,proto3" json:"suppress_envoy_headers,omitempty"` + StrictCheckHeaders []string `protobuf:"bytes,5,rep,name=strict_check_headers,json=strictCheckHeaders,proto3" json:"strict_check_headers,omitempty"` + RespectExpectedRqTimeout bool `protobuf:"varint,6,opt,name=respect_expected_rq_timeout,json=respectExpectedRqTimeout,proto3" json:"respect_expected_rq_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Router) Reset() { *m = Router{} } +func (m *Router) String() string { return proto.CompactTextString(m) } +func (*Router) ProtoMessage() {} +func (*Router) Descriptor() ([]byte, []int) { + return fileDescriptor_4dc46a0c2ce4e43c, []int{0} +} + +func (m *Router) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Router.Unmarshal(m, b) +} +func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Router.Marshal(b, m, deterministic) +} +func (m *Router) XXX_Merge(src proto.Message) { + xxx_messageInfo_Router.Merge(m, src) +} +func (m *Router) XXX_Size() int { + return xxx_messageInfo_Router.Size(m) +} +func (m *Router) XXX_DiscardUnknown() { + xxx_messageInfo_Router.DiscardUnknown(m) +} + +var xxx_messageInfo_Router proto.InternalMessageInfo + +func (m *Router) GetDynamicStats() *wrappers.BoolValue { + if m != nil { + return m.DynamicStats + } + return nil +} + +func (m *Router) GetStartChildSpan() bool { + if m != nil { + return m.StartChildSpan + } + return false +} + +func (m *Router) GetUpstreamLog() []*v3.AccessLog { + if m != nil { + return m.UpstreamLog + } + return nil +} + +func (m *Router) GetSuppressEnvoyHeaders() bool { + if m != nil { + return m.SuppressEnvoyHeaders + } + return false +} + +func (m *Router) GetStrictCheckHeaders() []string { + if m != nil { + return m.StrictCheckHeaders + } + return nil +} + +func (m *Router) GetRespectExpectedRqTimeout() bool { + if m != nil { + return m.RespectExpectedRqTimeout + } + return false +} + +func init() { + proto.RegisterType((*Router)(nil), "envoy.extensions.filters.http.router.v3.Router") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/router/v3/router.proto", fileDescriptor_4dc46a0c2ce4e43c) +} + +var fileDescriptor_4dc46a0c2ce4e43c = []byte{ + // 542 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4f, 0x8b, 0xd3, 0x40, + 0x14, 0x67, 0xb6, 0x6b, 0xd1, 0x74, 0x95, 0x12, 0x57, 0x0d, 0x15, 0x4b, 0x5d, 0x44, 0xbb, 0x48, + 0x26, 0xd2, 0xae, 0x17, 0x41, 0xc4, 0x2e, 0x8b, 0x1e, 0x16, 0x59, 0xb2, 0xe2, 0x35, 0xcc, 0x26, + 0xaf, 0xe9, 0x60, 0x3a, 0x33, 0x9d, 0x99, 0xc4, 0xf6, 0xe6, 0x49, 0x14, 0x3c, 0x88, 0x78, 0xf2, + 0x3b, 0xf8, 0x05, 0xbc, 0x8b, 0x5e, 0xfd, 0x3a, 0x9e, 0x64, 0x66, 0x92, 0x5d, 0x8b, 0x1e, 0x3c, + 0x65, 0xe6, 0xfd, 0xfe, 0xbc, 0x5f, 0x5e, 0x5e, 0xbc, 0x3d, 0x60, 0x15, 0x5f, 0x45, 0xb0, 0xd4, + 0xc0, 0x14, 0xe5, 0x4c, 0x45, 0x53, 0x5a, 0x68, 0x90, 0x2a, 0x9a, 0x69, 0x2d, 0x22, 0xc9, 0x4b, + 0x0d, 0x32, 0xaa, 0xc6, 0xf5, 0x09, 0x0b, 0xc9, 0x35, 0xf7, 0xef, 0x58, 0x15, 0x3e, 0x53, 0xe1, + 0x5a, 0x85, 0x8d, 0x0a, 0xd7, 0xdc, 0x6a, 0xdc, 0xdb, 0x75, 0xf6, 0x29, 0x67, 0x53, 0x9a, 0x47, + 0x24, 0x4d, 0x41, 0xa9, 0x82, 0xe7, 0xc6, 0xf0, 0xf4, 0xe2, 0x3c, 0x7b, 0xfd, 0x9c, 0xf3, 0xbc, + 0x80, 0xc8, 0xde, 0x4e, 0xca, 0x69, 0xf4, 0x4a, 0x12, 0x21, 0x8c, 0xa7, 0xc3, 0x6f, 0x94, 0x99,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x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.validate.go new file mode 100644 index 000000000..2f595b799 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3/router.pb.validate.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/router/v3/router.proto + +package envoy_extensions_filters_http_router_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _router_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Router with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Router) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDynamicStats()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouterValidationError{ + field: "DynamicStats", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for StartChildSpan + + for idx, item := range m.GetUpstreamLog() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouterValidationError{ + field: fmt.Sprintf("UpstreamLog[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for SuppressEnvoyHeaders + + for idx, item := range m.GetStrictCheckHeaders() { + _, _ = idx, item + + if _, ok := _Router_StrictCheckHeaders_InLookup[item]; !ok { + return RouterValidationError{ + field: fmt.Sprintf("StrictCheckHeaders[%v]", idx), + reason: "value must be in list [x-envoy-upstream-rq-timeout-ms x-envoy-upstream-rq-per-try-timeout-ms x-envoy-max-retries x-envoy-retry-grpc-on x-envoy-retry-on]", + } + } + + } + + // no validation rules for RespectExpectedRqTimeout + + return nil +} + +// 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{} + +var _Router_StrictCheckHeaders_InLookup = map[string]struct{}{ + "x-envoy-upstream-rq-timeout-ms": {}, + "x-envoy-upstream-rq-per-try-timeout-ms": {}, + "x-envoy-max-retries": {}, + "x-envoy-retry-grpc-on": {}, + "x-envoy-retry-on": {}, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.go new file mode 100644 index 000000000..03a19de06 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.go @@ -0,0 +1,133 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/squash/v3/squash.proto + +package envoy_extensions_filters_http_squash_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Squash struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + AttachmentTemplate *_struct.Struct `protobuf:"bytes,2,opt,name=attachment_template,json=attachmentTemplate,proto3" json:"attachment_template,omitempty"` + RequestTimeout *duration.Duration `protobuf:"bytes,3,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"` + AttachmentTimeout *duration.Duration `protobuf:"bytes,4,opt,name=attachment_timeout,json=attachmentTimeout,proto3" json:"attachment_timeout,omitempty"` + AttachmentPollPeriod *duration.Duration `protobuf:"bytes,5,opt,name=attachment_poll_period,json=attachmentPollPeriod,proto3" json:"attachment_poll_period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Squash) Reset() { *m = Squash{} } +func (m *Squash) String() string { return proto.CompactTextString(m) } +func (*Squash) ProtoMessage() {} +func (*Squash) Descriptor() ([]byte, []int) { + return fileDescriptor_2dba825384a5c607, []int{0} +} + +func (m *Squash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Squash.Unmarshal(m, b) +} +func (m *Squash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Squash.Marshal(b, m, deterministic) +} +func (m *Squash) XXX_Merge(src proto.Message) { + xxx_messageInfo_Squash.Merge(m, src) +} +func (m *Squash) XXX_Size() int { + return xxx_messageInfo_Squash.Size(m) +} +func (m *Squash) XXX_DiscardUnknown() { + xxx_messageInfo_Squash.DiscardUnknown(m) +} + +var xxx_messageInfo_Squash proto.InternalMessageInfo + +func (m *Squash) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *Squash) GetAttachmentTemplate() *_struct.Struct { + if m != nil { + return m.AttachmentTemplate + } + return nil +} + +func (m *Squash) GetRequestTimeout() *duration.Duration { + if m != nil { + return m.RequestTimeout + } + return nil +} + +func (m *Squash) GetAttachmentTimeout() *duration.Duration { + if m != nil { + return m.AttachmentTimeout + } + return nil +} + +func (m *Squash) GetAttachmentPollPeriod() *duration.Duration { + if m != nil { + return m.AttachmentPollPeriod + } + return nil +} + +func init() { + proto.RegisterType((*Squash)(nil), "envoy.extensions.filters.http.squash.v3.Squash") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/squash/v3/squash.proto", fileDescriptor_2dba825384a5c607) +} + +var fileDescriptor_2dba825384a5c607 = []byte{ + // 391 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x3f, 0x0f, 0x12, 0x31, + 0x18, 0xc6, 0x73, 0x07, 0x42, 0x2c, 0x89, 0x7f, 0x4e, 0x23, 0x27, 0x51, 0x02, 0x2e, 0x62, 0x4c, + 0x5a, 0x03, 0xba, 0x38, 0x5e, 0x1c, 0x98, 0xf4, 0x02, 0xec, 0xa4, 0xdc, 0x95, 0xa3, 0x49, 0x69, + 0x8f, 0xf6, 0xed, 0x05, 0x36, 0x27, 0xe3, 0x67, 0xf0, 0xa3, 0xb8, 0x9b, 0xb8, 0xfa, 0x75, 0x9c, + 0x0c, 0xbd, 0x12, 0x50,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59, 0x78, 0x24, 0x4a, 0xd0, 0x7d, + 0xcd, 0x76, 0x96, 0x19, 0x58, 0x02, 0xdf, 0x32, 0x65, 0x21, 0x6e, 0x38, 0xcb, 0xd3, 0x2b, 0xcb, + 0x07, 0xff, 0x55, 0xb3, 0x7b, 0x9e, 0x58, 0xd4, 0x40, 0x34, 0x45, 0xd1, 0x65, 0x1b, 0xaf, 0x69, + 0xde, 0xd2, 0x3c, 0xbc, 0xa8, 0xe3, 0x4d, 0x9f, 0xd0, 0x93, 0x0b, 0x53, 0xa9, 0x84, 0x58, 0x96, + 0x4c, 0x73, 0x95, 0xc7, 0x77, 0x6e, 0xd9, 0x1e, 0x9f, 0xc1, 0x54, 0x09, 0x91, 0x3a, 0xec, 0xfd, + 0x9b, 0x6f, 0x3f, 0xbe, 0xf6, 0x5f, 0xa3, 0x57, 0xf5, 0x7e, 0x64, 0x4a, 0xae, 0x79, 0xe1, 0x77, + 0xe3, 0xef, 0xd5, 0x18, 0xe3, 0xfa, 0xf7, 0x93, 0x8f, 0xdf, 0x3f, 0xff, 0xfc, 0xd5, 0x0a, 0x1f, + 0x84, 0xe8, 0x1d, 0x57, 0xd8, 0x71, 0xa5, 0x56, 0xfb, 0x03, 0xfe, 0xcf, 0x15, 0x4b, 0x3a, 0xb5, + 0x28, 0x3d, 0x36, 0x4c, 0x83, 0x55, 0xcb, 0x55, 0x9d, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0xb8, + 0xbf, 0x42, 0xbe, 0xd9, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.validate.go new file mode 100644 index 000000000..041dd98c5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3/squash.pb.validate.go @@ -0,0 +1,148 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/squash/v3/squash.proto + +package envoy_extensions_filters_http_squash_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _squash_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Squash with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Squash) Validate() error { + if m == nil { + return nil + } + + if len(m.GetCluster()) < 1 { + return SquashValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetAttachmentTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentTemplate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequestTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "RequestTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAttachmentTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAttachmentPollPeriod()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SquashValidationError{ + field: "AttachmentPollPeriod", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SquashValidationError is the validation error returned by Squash.Validate if +// the designated constraints aren't met. +type SquashValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SquashValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SquashValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SquashValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SquashValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SquashValidationError) ErrorName() string { return "SquashValidationError" } + +// Error satisfies the builtin error interface +func (e SquashValidationError) 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 %sSquash.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SquashValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SquashValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.go new file mode 100644 index 000000000..b181d02fa --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.go @@ -0,0 +1,93 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/http/tap/v3/tap.proto + +package envoy_extensions_filters_http_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Tap struct { + CommonConfig *v3.CommonExtensionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Tap) Reset() { *m = Tap{} } +func (m *Tap) String() string { return proto.CompactTextString(m) } +func (*Tap) ProtoMessage() {} +func (*Tap) Descriptor() ([]byte, []int) { + return fileDescriptor_184267ac15318ad7, []int{0} +} + +func (m *Tap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tap.Unmarshal(m, b) +} +func (m *Tap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tap.Marshal(b, m, deterministic) +} +func (m *Tap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tap.Merge(m, src) +} +func (m *Tap) XXX_Size() int { + return xxx_messageInfo_Tap.Size(m) +} +func (m *Tap) XXX_DiscardUnknown() { + xxx_messageInfo_Tap.DiscardUnknown(m) +} + +var xxx_messageInfo_Tap proto.InternalMessageInfo + +func (m *Tap) GetCommonConfig() *v3.CommonExtensionConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func init() { + proto.RegisterType((*Tap)(nil), "envoy.extensions.filters.http.tap.v3.Tap") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/http/tap/v3/tap.proto", fileDescriptor_184267ac15318ad7) +} + +var fileDescriptor_184267ac15318ad7 = []byte{ + // 287 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4b, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x28, 0x29, 0x29, 0xd0, 0x2f, 0x49, 0x2c, 0xd0, 0x2f, 0x33, + 0x06, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2a, 0x60, 0xf5, 0x7a, 0x08, 0xf5, 0x7a, + 0x50, 0xf5, 0x7a, 0x20, 0xf5, 0x7a, 0x20, 0x85, 0x65, 0xc6, 0x52, 0xda, 0x18, 0xa6, 0x26, 0xe7, + 0xe7, 0xe6, 0xe6, 0xe7, 0xc1, 0xcc, 0x83, 0xf0, 0x20, 0x46, 0x4a, 0xc9, 0x96, 0xa6, 0x14, 0x24, + 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x80, 0x15, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, + 0x43, 0xa5, 0x15, 0x31, 0xa4, 0xcb, 0x52, 0x8b, 0x40, 0x86, 0x66, 0xe6, 0xa5, 0x43, 0x95, 0x88, + 0x97, 0x25, 0xe6, 0x64, 0xa6, 0x24, 0x96, 0xa4, 0xea, 0xc3, 0x18, 0x10, 0x09, 0xa5, 0x39, 0x8c, + 0x5c, 0xcc, 0x21, 0x89, 0x05, 0x42, 0x29, 0x5c, 0xbc, 0x10, 0x2b, 0xe3, 0x93, 0xf3, 0xf3, 0xd2, + 0x32, 0xd3, 0x25, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x4c, 0xf5, 0x30, 0x7c, 0x03, 0x75, 0x19, + 0xc4, 0x1f, 0x7a, 0xce, 0x60, 0x9e, 0x2b, 0x4c, 0xda, 0x19, 0xac, 0xd9, 0x89, 0xe3, 0x97, 0x13, + 0x6b, 0x17, 0x23, 0x93, 0x00, 0x63, 0x10, 0x0f, 0x44, 0x39, 0x44, 0xdc, 0x4a, 0x7f, 0xd6, 0xd1, + 0x0e, 0x39, 0x2d, 0x2e, 0x0d, 0x88, 0xa1, 0x10, 0x9b, 0xa0, 0xc1, 0x83, 0x14, 0x3a, 0x46, 0x89, + 0x39, 0x05, 0x19, 0x89, 0x7a, 0x21, 0x89, 0x05, 0x4e, 0x1e, 0xbb, 0x1a, 0x4e, 0x5c, 0x64, 0x63, + 0x12, 0x60, 0xe2, 0x32, 0xca, 0xcc, 0x87, 0xb8, 0xa5, 0xa0, 0x28, 0xbf, 0xa2, 0x52, 0x8f, 0x98, + 0x40, 0x76, 0xe2, 0x08, 0x49, 0x2c, 0x08, 0x00, 0x79, 0x33, 0x80, 0x31, 0x89, 0x0d, 0xec, 0x5f, + 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xc2, 0xa9, 0x20, 0xcf, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.validate.go new file mode 100644 index 000000000..4dbb5be28 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3/tap.pb.validate.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/http/tap/v3/tap.proto + +package envoy_extensions_filters_http_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Tap with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tap) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TapValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapValidationError is the validation error returned by Tap.Validate if the +// designated constraints aren't met. +type TapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapValidationError) ErrorName() string { return "TapValidationError" } + +// Error satisfies the builtin error interface +func (e TapValidationError) 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 %sTap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.go new file mode 100644 index 000000000..0e0e58d8d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/listener/http_inspector/v3/http_inspector.proto + +package envoy_extensions_filters_listener_http_inspector_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HttpInspector struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpInspector) Reset() { *m = HttpInspector{} } +func (m *HttpInspector) String() string { return proto.CompactTextString(m) } +func (*HttpInspector) ProtoMessage() {} +func (*HttpInspector) Descriptor() ([]byte, []int) { + return fileDescriptor_ec49bb714f19fafd, []int{0} +} + +func (m *HttpInspector) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpInspector.Unmarshal(m, b) +} +func (m *HttpInspector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpInspector.Marshal(b, m, deterministic) +} +func (m *HttpInspector) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpInspector.Merge(m, src) +} +func (m *HttpInspector) XXX_Size() int { + return xxx_messageInfo_HttpInspector.Size(m) +} +func (m *HttpInspector) XXX_DiscardUnknown() { + xxx_messageInfo_HttpInspector.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpInspector proto.InternalMessageInfo + +func init() { + proto.RegisterType((*HttpInspector)(nil), "envoy.extensions.filters.listener.http_inspector.v3.HttpInspector") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/listener/http_inspector/v3/http_inspector.proto", fileDescriptor_ec49bb714f19fafd) +} + +var fileDescriptor_ec49bb714f19fafd = []byte{ + // 221 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xf2, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0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ec, 0x7e, 0x63, 0x40, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x16, 0x99, 0x5b, 0x82, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.validate.go new file mode 100644 index 000000000..02fafad1a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3/http_inspector.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/listener/http_inspector/v3/http_inspector.proto + +package envoy_extensions_filters_listener_http_inspector_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _http_inspector_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HttpInspector with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HttpInspector) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// HttpInspectorValidationError is the validation error returned by +// HttpInspector.Validate if the designated constraints aren't met. +type HttpInspectorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpInspectorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpInspectorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpInspectorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpInspectorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpInspectorValidationError) ErrorName() string { return "HttpInspectorValidationError" } + +// Error satisfies the builtin error interface +func (e HttpInspectorValidationError) 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 %sHttpInspector.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpInspectorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpInspectorValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.go new file mode 100644 index 000000000..e3df51c4d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/listener/original_dst/v3/original_dst.proto + +package envoy_extensions_filters_listener_original_dst_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalDst struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalDst) Reset() { *m = OriginalDst{} } +func (m *OriginalDst) String() string { return proto.CompactTextString(m) } +func (*OriginalDst) ProtoMessage() {} +func (*OriginalDst) Descriptor() ([]byte, []int) { + return fileDescriptor_a4f08b98c629d032, []int{0} +} + +func (m *OriginalDst) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalDst.Unmarshal(m, b) +} +func (m *OriginalDst) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalDst.Marshal(b, m, deterministic) +} +func (m *OriginalDst) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalDst.Merge(m, src) +} +func (m *OriginalDst) XXX_Size() int { + return xxx_messageInfo_OriginalDst.Size(m) +} +func (m *OriginalDst) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalDst.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalDst proto.InternalMessageInfo + +func init() { + proto.RegisterType((*OriginalDst)(nil), "envoy.extensions.filters.listener.original_dst.v3.OriginalDst") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/listener/original_dst/v3/original_dst.proto", fileDescriptor_a4f08b98c629d032) +} + +var fileDescriptor_a4f08b98c629d032 = []byte{ + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x49, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0xc9, 0x2c, 0x2e, 0x49, 0xcd, 0x4b, 0x2d, 0xd2, 0xcf, 0x2f, + 0xca, 0x4c, 0xcf, 0xcc, 0x4b, 0xcc, 0x89, 0x4f, 0x29, 0x2e, 0xd1, 0x2f, 0x33, 0x46, 0xe1, 0xeb, + 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x19, 0x82, 0x4d, 0xd1, 0x43, 0x98, 0xa2, 0x07, 0x35, 0x45, + 0x0f, 0x66, 0x8a, 0x1e, 0x8a, 0xae, 0x32, 0x63, 0x29, 0xd9, 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, + 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x12, 0xb0, 0xc5, 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x13, + 0xa5, 0x14, 0x31, 0xa4, 0xcb, 0x52, 0x8b, 0x40, 0x46, 0x67, 0xe6, 0xa5, 0x43, 0x94, 0x28, 0xf9, + 0x71, 0x71, 0xfb, 0x43, 0x0d, 0x75, 0x29, 0x2e, 0xb1, 0xb2, 0x9f, 0x75, 0xb4, 0x43, 0xce, 0x8a, + 0xcb, 0x02, 0xe2, 0x94, 0xe4, 0xfc, 0xbc, 0xb4, 0xcc, 0x74, 0xa8, 0x33, 0x70, 0xb9, 0xc2, 0x48, + 0x0f, 0xc9, 0x00, 0xa7, 0xd8, 0x5d, 0x0d, 0x27, 0x2e, 0xb2, 0x31, 0x09, 0x30, 0x71, 0xd9, 0x67, + 0xe6, 0xeb, 0x81, 0x8d, 0x29, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x23, 0xd9, 0x73, 0x4e, 0x02, 0x48, + 0xe6, 0x06, 0x80, 0x1c, 0x1b, 0xc0, 0x98, 0xc4, 0x06, 0x76, 0xb5, 0x31, 0x20, 0x00, 0x00, 0xff, + 0xff, 0x8d, 0xb3, 0xf1, 0xd8, 0x72, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.validate.go new file mode 100644 index 000000000..d5a601450 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3/original_dst.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/listener/original_dst/v3/original_dst.proto + +package envoy_extensions_filters_listener_original_dst_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_dst_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalDst with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalDst) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// OriginalDstValidationError is the validation error returned by +// OriginalDst.Validate if the designated constraints aren't met. +type OriginalDstValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalDstValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalDstValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalDstValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalDstValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalDstValidationError) ErrorName() string { return "OriginalDstValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalDstValidationError) 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 %sOriginalDst.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalDstValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalDstValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.go new file mode 100644 index 000000000..79ad0cff2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.go @@ -0,0 +1,100 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/listener/original_src/v3/original_src.proto + +package envoy_extensions_filters_listener_original_src_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OriginalSrc struct { + BindPort bool `protobuf:"varint,1,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"` + Mark uint32 `protobuf:"varint,2,opt,name=mark,proto3" json:"mark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OriginalSrc) Reset() { *m = OriginalSrc{} } +func (m *OriginalSrc) String() string { return proto.CompactTextString(m) } +func (*OriginalSrc) ProtoMessage() {} +func (*OriginalSrc) Descriptor() ([]byte, []int) { + return fileDescriptor_0a2d80cee6a73e34, []int{0} +} + +func (m *OriginalSrc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OriginalSrc.Unmarshal(m, b) +} +func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OriginalSrc.Marshal(b, m, deterministic) +} +func (m *OriginalSrc) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginalSrc.Merge(m, src) +} +func (m *OriginalSrc) XXX_Size() int { + return xxx_messageInfo_OriginalSrc.Size(m) +} +func (m *OriginalSrc) XXX_DiscardUnknown() { + xxx_messageInfo_OriginalSrc.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginalSrc proto.InternalMessageInfo + +func (m *OriginalSrc) GetBindPort() bool { + if m != nil { + return m.BindPort + } + return false +} + +func (m *OriginalSrc) GetMark() uint32 { + if m != nil { + return m.Mark + } + return 0 +} + +func init() { + proto.RegisterType((*OriginalSrc)(nil), "envoy.extensions.filters.listener.original_src.v3.OriginalSrc") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/listener/original_src/v3/original_src.proto", fileDescriptor_0a2d80cee6a73e34) +} + +var fileDescriptor_0a2d80cee6a73e34 = []byte{ + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x31, 0x4b, 0xc3, 0x40, + 0x14, 0xc7, 0x49, 0x91, 0x52, 0x4f, 0x84, 0x92, 0xc5, 0x52, 0x51, 0xaa, 0x53, 0xa7, 0x3b, 0x6a, + 0x36, 0x07, 0x95, 0xa2, 0xb3, 0xa1, 0xce, 0x52, 0xae, 0xc9, 0x35, 0x1e, 0xc6, 0xf7, 0xc2, 0xbb, + 0xd7, 0xd0, 0x6e, 0x2e, 0x82, 0x9f, 0xc1, 0x8f, 0xe2, 0x2e, 0xb8, 0xfa, 0x8d, 0x24, 0x97, 0x14, + 0x5b, 0xc4, 0xc1, 0xed, 0xdd, 0xfd, 0xef, 0x7e, 0x7f, 0x7e, 0x4f, 0x5c, 0x1b, 0x28, 0x71, 0xa5, + 0xcc, 0x92, 0x0d, 0x38, 0x8b, 0xe0, 0xd4, 0xdc, 0xe6, 0x6c, 0xc8, 0xa9, 0xdc, 0x3a,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01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.validate.go new file mode 100644 index 000000000..af5b08d52 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3/original_src.pb.validate.go @@ -0,0 +1,106 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/listener/original_src/v3/original_src.proto + +package envoy_extensions_filters_listener_original_src_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _original_src_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OriginalSrc with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OriginalSrc) Validate() error { + if m == nil { + return nil + } + + // no validation rules for BindPort + + // no validation rules for Mark + + return nil +} + +// OriginalSrcValidationError is the validation error returned by +// OriginalSrc.Validate if the designated constraints aren't met. +type OriginalSrcValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OriginalSrcValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OriginalSrcValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OriginalSrcValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OriginalSrcValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OriginalSrcValidationError) ErrorName() string { return "OriginalSrcValidationError" } + +// Error satisfies the builtin error interface +func (e OriginalSrcValidationError) 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 %sOriginalSrc.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OriginalSrcValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OriginalSrcValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.go new file mode 100644 index 000000000..cebde1182 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto + +package envoy_extensions_filters_listener_proxy_protocol_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ProxyProtocol struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProxyProtocol) Reset() { *m = ProxyProtocol{} } +func (m *ProxyProtocol) String() string { return proto.CompactTextString(m) } +func (*ProxyProtocol) ProtoMessage() {} +func (*ProxyProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_91b868ea4a8a7063, []int{0} +} + +func (m *ProxyProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProxyProtocol.Unmarshal(m, b) +} +func (m *ProxyProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProxyProtocol.Marshal(b, m, deterministic) +} +func (m *ProxyProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProxyProtocol.Merge(m, src) +} +func (m *ProxyProtocol) XXX_Size() int { + return xxx_messageInfo_ProxyProtocol.Size(m) +} +func (m *ProxyProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_ProxyProtocol.DiscardUnknown(m) +} + +var xxx_messageInfo_ProxyProtocol proto.InternalMessageInfo + +func init() { + proto.RegisterType((*ProxyProtocol)(nil), "envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto", fileDescriptor_91b868ea4a8a7063) +} + +var fileDescriptor_91b868ea4a8a7063 = []byte{ + // 212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xf2, 0x48, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0xc9, 0x2c, 0x2e, 0x49, 0xcd, 0x4b, 0x2d, 0xd2, 0x2f, 0x28, + 0xca, 0xaf, 0xa8, 0x8c, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0xce, 0xcf, 0xd1, 0x2f, 0x33, 0x46, + 0x13, 0xd1, 0x03, 0x33, 0x84, 0x8c, 0xc1, 0x26, 0xe9, 0x21, 0x4c, 0xd2, 0x83, 0x9a, 0xa4, 0x07, + 0x33, 0x49, 0x0f, 0x4d, 0x5f, 0x99, 0xb1, 0x94, 0x6c, 0x69, 0x4a, 0x41, 0xa2, 0x7e, 0x62, 0x5e, + 0x5e, 0x7e, 0x49, 0x62, 0x09, 0xd8, 0xfa, 0xe2, 0x92, 0xc4, 0x92, 0xd2, 0x62, 0x88, 0x99, 0x52, + 0x8a, 0x18, 0xd2, 0x65, 0xa9, 0x45, 0x20, 0xc3, 0x33, 0xf3, 0xd2, 0x21, 0x4a, 0x94, 0x42, 0xb8, + 0x78, 0x03, 0x40, 0xc6, 0x06, 0x40, 0x4d, 0xb5, 0x72, 0x9e, 0x75, 0xb4, 0x43, 0xce, 0x8e, 0xcb, + 0x06, 0xe2, 0x9c, 0xe4, 0xfc, 0xbc, 0xb4, 0xcc, 0x74, 0xa8, 0x53, 0x70, 0xbb, 0xc4, 0x48, 0x0f, + 0xc5, 0x10, 0xa7, 0xc4, 0x5d, 0x0d, 0x27, 0x2e, 0xb2, 0x31, 0x09, 0x30, 0x71, 0x39, 0x66, 0xe6, + 0xeb, 0x81, 0x8d, 0x02, 0x6b, 0xd1, 0x23, 0xc3, 0x93, 0x4e, 0x42, 0x28, 0x66, 0x83, 0xe9, 0x00, + 0xc6, 0x24, 0x36, 0xb0, 0x12, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xbf, 0xf6, 0xba, + 0x82, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.validate.go new file mode 100644 index 000000000..fce9137b1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.validate.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto + +package envoy_extensions_filters_listener_proxy_protocol_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _proxy_protocol_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ProxyProtocol with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ProxyProtocol) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProxyProtocolValidationError is the validation error returned by +// ProxyProtocol.Validate if the designated constraints aren't met. +type ProxyProtocolValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProxyProtocolValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProxyProtocolValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProxyProtocolValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProxyProtocolValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProxyProtocolValidationError) ErrorName() string { return "ProxyProtocolValidationError" } + +// Error satisfies the builtin error interface +func (e ProxyProtocolValidationError) 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 %sProxyProtocol.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProxyProtocolValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProxyProtocolValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.go new file mode 100644 index 000000000..d435a8133 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.proto + +package envoy_extensions_filters_network_client_ssl_auth_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ClientSSLAuth struct { + AuthApiCluster string `protobuf:"bytes,1,opt,name=auth_api_cluster,json=authApiCluster,proto3" json:"auth_api_cluster,omitempty"` + StatPrefix string `protobuf:"bytes,2,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + RefreshDelay *duration.Duration `protobuf:"bytes,3,opt,name=refresh_delay,json=refreshDelay,proto3" json:"refresh_delay,omitempty"` + IpWhiteList []*v3.CidrRange `protobuf:"bytes,4,rep,name=ip_white_list,json=ipWhiteList,proto3" json:"ip_white_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientSSLAuth) Reset() { *m = ClientSSLAuth{} } +func (m *ClientSSLAuth) String() string { return proto.CompactTextString(m) } +func (*ClientSSLAuth) ProtoMessage() {} +func (*ClientSSLAuth) Descriptor() ([]byte, []int) { + return fileDescriptor_30ad74cf4e5256d1, []int{0} +} + +func (m *ClientSSLAuth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientSSLAuth.Unmarshal(m, b) +} +func (m *ClientSSLAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientSSLAuth.Marshal(b, m, deterministic) +} +func (m *ClientSSLAuth) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientSSLAuth.Merge(m, src) +} +func (m *ClientSSLAuth) XXX_Size() int { + return xxx_messageInfo_ClientSSLAuth.Size(m) +} +func (m *ClientSSLAuth) XXX_DiscardUnknown() { + xxx_messageInfo_ClientSSLAuth.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientSSLAuth proto.InternalMessageInfo + +func (m *ClientSSLAuth) GetAuthApiCluster() string { + if m != nil { + return m.AuthApiCluster + } + return "" +} + +func (m *ClientSSLAuth) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ClientSSLAuth) GetRefreshDelay() *duration.Duration { + if m != nil { + return m.RefreshDelay + } + return nil +} + +func (m *ClientSSLAuth) GetIpWhiteList() []*v3.CidrRange { + if m != nil { + return m.IpWhiteList + } + return nil +} + +func init() { + proto.RegisterType((*ClientSSLAuth)(nil), "envoy.extensions.filters.network.client_ssl_auth.v3.ClientSSLAuth") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.proto", fileDescriptor_30ad74cf4e5256d1) +} + +var fileDescriptor_30ad74cf4e5256d1 = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00,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, 0x00, 0xd3, 0x52, 0x7e, 0xff, 0xfc, 0xf3, 0xd7, 0x59, 0x7c, 0x1e, 0xb3, 0x05, 0x9a, + 0x30, 0xbe, 0xb1, 0x66, 0xbb, 0xe3, 0x8f, 0x78, 0x24, 0xcb, 0x64, 0xc8, 0x76, 0xca, 0x67, 0xaf, + 0x3c, 0x84, 0x55, 0x74, 0x7f, 0xd6, 0xd3, 0x48, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x8a, + 0xd3, 0x15, 0xc3, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.validate.go new file mode 100644 index 000000000..ccbb7ead1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.pb.validate.go @@ -0,0 +1,141 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/client_ssl_auth/v3/client_ssl_auth.proto + +package envoy_extensions_filters_network_client_ssl_auth_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _client_ssl_auth_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClientSSLAuth with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClientSSLAuth) Validate() error { + if m == nil { + return nil + } + + if len(m.GetAuthApiCluster()) < 1 { + return ClientSSLAuthValidationError{ + field: "AuthApiCluster", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetStatPrefix()) < 1 { + return ClientSSLAuthValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRefreshDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientSSLAuthValidationError{ + field: "RefreshDelay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetIpWhiteList() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientSSLAuthValidationError{ + field: fmt.Sprintf("IpWhiteList[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientSSLAuthValidationError is the validation error returned by +// ClientSSLAuth.Validate if the designated constraints aren't met. +type ClientSSLAuthValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientSSLAuthValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientSSLAuthValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientSSLAuthValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientSSLAuthValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientSSLAuthValidationError) ErrorName() string { return "ClientSSLAuthValidationError" } + +// Error satisfies the builtin error interface +func (e ClientSSLAuthValidationError) 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 %sClientSSLAuth.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientSSLAuthValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientSSLAuthValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.go new file mode 100644 index 000000000..b9ee8211f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/direct_response/v3/config.proto + +package envoy_extensions_filters_network_direct_response_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Config struct { + Response *v3.DataSource `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_5ec2699568213c18, []int{0} +} + +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) +} +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) +} +func (m *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(m, src) +} +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) +} + +var xxx_messageInfo_Config proto.InternalMessageInfo + +func (m *Config) GetResponse() *v3.DataSource { + if m != nil { + return m.Response + } + return nil +} + +func init() { + proto.RegisterType((*Config)(nil), "envoy.extensions.filters.network.direct_response.v3.Config") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/direct_response/v3/config.proto", fileDescriptor_5ec2699568213c18) +} + +var fileDescriptor_5ec2699568213c18 = []byte{ + // 268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0xd0, 0xb1, 0x4a, 0x43, 0x31, + 0x14, 0x06, 0x60, 0x6e, 0x87, 0x8b, 0xa4, 0x8b, 0x74, 0x92, 0x82, 0x5a, 0x9d, 0x9c, 0x4e, 0xa0, + 0x41, 0x04, 0xe9, 0xa0, 0xd5, 0x07, 0x28, 0xba, 0xb9, 0x48, 0x7a, 0x7b, 0x2a, 0x41, 0xc9, 0xb9, + 0x24, 0xe7, 0xc6, 0xde, 0xcd, 0xc1, 0xc1, 0x67, 0xf0, 0x51, 0xdc, 0x05, 0x57, 0xdf, 0x48, 0x6e, + 0x12, 0x15, 0x15, 0x97, 0xce, 0xe1, 0x7c, 0xff, 0xff, 0x47, 0x9c, 0xa0, 0x0d, 0xd4, 0x4a, 0x5c, + 0x31, 0x5a, 0x6f, 0xc8, 0x7a, 0xb9, 0x34, 0x77, 0x8c, 0xce, 0x4b, 0x8b, 0x7c, 0x4f, 0xee, 0x56, + 0x2e, 0x8c, 0xc3, 0x8a, 0xaf, 0x1d, 0xfa, 0x9a, 0xac, 0x47, 0x19, 0x94, 0xac, 0xc8, 0x2e, 0xcd, + 0x0d, 0xd4, 0x8e, 0x98, 0x06, 0x2a, 0x0a, 0xf0, 0x2d, 0x40, 0x16, 0x20, 0x0b, 0xf0, 0x4b, 0x80, + 0xa0, 0x86, 0xbb, 0x29, 0x36, 0x41, 0xb2, 0x22, 0x17, 0xdd, 0xb9, 0xf6, 0x98, 0xd4, 0xe1, 0x76, + 0xb3, 0xa8, 0xb5, 0xd4, 0xd6, 0x12, 0x6b, 0x8e, 0xbd, 0x3c, 0x6b, 0x6e, 0x7c, 0x7e, 0xde, 0xfb, + 0xf3, 0x1c, 0xd0, 0x75, 0xe9, 0xc6, 0xe6, 0x5e, 0xfb, 0x8f, 0x85, 0x28, 0xcf, 0xa2, 0x3f, 0x98, + 0x88, 0x8d, 0xcf, 0xf0, 0xad, 0x62, 0x54, 0x1c, 0xf4, 0xc7, 0x23, 0x48, 0xad, 0xf3, 0x92, 0xae, + 0x00, 0x04, 0x05, 0xe7, 0x9a, 0xf5, 0x25, 0x35, 0xae, 0xc2, 0x8b, 0xaf, 0x8b, 0xe3, 0xc9, 0xf3, + 0xeb, 0xd3, 0xce, 0x91, 0x38, 0xfc, 0x71, 0x91, 0x36, 0xfe, 0x3f, 0x71, 0x0c, 0x29, 0x7b, 0x7a, + 0xf5, 0xf2, 0xf0, 0xf6, 0x5e, 0xf6, 0x36, 0x7b, 0xe2, 0xd4, 0x50, 0x4a, 0xad, 0x1d, 0xad, 0x5a, + 0x58, 0xe3, 0xdb, 0xa6, 0xfd, 0x84, 0xce, 0xba, 0x81, 0xb3, 0x62, 0x5e, 0xc6, 0xa5, 0xea, 0x23, + 0x00, 0x00, 0xff, 0xff, 0x97, 0x12, 0xd5, 0x47, 0xc5, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.validate.go new file mode 100644 index 000000000..a8bc7591b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3/config.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/direct_response/v3/config.proto + +package envoy_extensions_filters_network_direct_response_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Config with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Config) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigValidationError{ + field: "Response", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConfigValidationError is the validation error returned by Config.Validate if +// the designated constraints aren't met. +type ConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConfigValidationError) ErrorName() string { return "ConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ConfigValidationError) 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 %sConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.go new file mode 100644 index 000000000..841593330 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.go @@ -0,0 +1,80 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/router/v3/router.proto + +package envoy_extensions_filters_network_dubbo_proxy_router_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Router struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Router) Reset() { *m = Router{} } +func (m *Router) String() string { return proto.CompactTextString(m) } +func (*Router) ProtoMessage() {} +func (*Router) Descriptor() ([]byte, []int) { + return fileDescriptor_f76296a126b240a4, []int{0} +} + +func (m *Router) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Router.Unmarshal(m, b) +} +func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Router.Marshal(b, m, deterministic) +} +func (m *Router) XXX_Merge(src proto.Message) { + xxx_messageInfo_Router.Merge(m, src) +} +func (m *Router) XXX_Size() int { + return xxx_messageInfo_Router.Size(m) +} +func (m *Router) XXX_DiscardUnknown() { + xxx_messageInfo_Router.DiscardUnknown(m) +} + +var xxx_messageInfo_Router proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Router)(nil), "envoy.extensions.filters.network.dubbo_proxy.router.v3.Router") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/dubbo_proxy/router/v3/router.proto", fileDescriptor_f76296a126b240a4) +} + +var fileDescriptor_f76296a126b240a4 = []byte{ + // 226 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x4f, 0x29, 0x4d, + 0x4a, 0xca, 0x8f, 0x2f, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x2f, 0xca, 0x2f, 0x2d, 0x49, 0x2d, 0xd2, + 0x2f, 0x33, 0x86, 0xb2, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xcc, 0xc0, 0x86, 0xe8, 0x21, + 0x0c, 0xd1, 0x83, 0x1a, 0xa2, 0x07, 0x35, 0x44, 0x0f, 0xc9, 0x10, 0x3d, 0xa8, 0xd6, 0x32, 0x63, + 0x29, 0xd9, 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, 0x12, 0xb0, 0xe5, + 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x63, 0xa5, 0x14, 0x31, 0xa4, 0xcb, 0x52, 0x8b, 0x40, + 0xe6, 0x67, 0xe6, 0xa5, 0x43, 0x94, 0x28, 0x39, 0x72, 0xb1, 0x05, 0x81, 0x8d, 0xb3, 0x32, 0x9f, + 0x75, 0xb4, 0x43, 0xce, 0x88, 0xcb, 0x00, 0xe2, 0x94, 0xe4, 0xfc, 0xbc, 0xb4, 0xcc, 0x74, 0xa8, + 0x33, 0x20, 0xb6, 0xc3, 0xed, 0x35, 0x4a, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd4, 0x83, 0x68, 0x74, + 0x8a, 0xdd, 0xd5, 0x70, 0xe2, 0x22, 0x1b, 0x93, 0x00, 0x13, 0x97, 0x4b, 0x66, 0xbe, 0x1e, 0x58, + 0x3b, 0xc4, 0x9d, 0xe4, 0x79, 0xca, 0x89, 0x1b, 0x62, 0x6e, 0x00, 0xc8, 0x7d, 0x01, 0x8c, 0x49, + 0x6c, 0x60, 0x87, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x98, 0x93, 0x99, 0x69, 0x01, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.validate.go new file mode 100644 index 000000000..56ab58a4c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/router/v3/router.proto + +package envoy_extensions_filters_network_dubbo_proxy_router_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _router_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Router with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Router) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// 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/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.go new file mode 100644 index 000000000..cb820ce48 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.go @@ -0,0 +1,233 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.proto + +package envoy_extensions_filters_network_dubbo_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ProtocolType int32 + +const ( + ProtocolType_Dubbo ProtocolType = 0 +) + +var ProtocolType_name = map[int32]string{ + 0: "Dubbo", +} + +var ProtocolType_value = map[string]int32{ + "Dubbo": 0, +} + +func (x ProtocolType) String() string { + return proto.EnumName(ProtocolType_name, int32(x)) +} + +func (ProtocolType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c0aa79721abd555e, []int{0} +} + +type SerializationType int32 + +const ( + SerializationType_Hessian2 SerializationType = 0 +) + +var SerializationType_name = map[int32]string{ + 0: "Hessian2", +} + +var SerializationType_value = map[string]int32{ + "Hessian2": 0, +} + +func (x SerializationType) String() string { + return proto.EnumName(SerializationType_name, int32(x)) +} + +func (SerializationType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c0aa79721abd555e, []int{1} +} + +type DubboProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + ProtocolType ProtocolType `protobuf:"varint,2,opt,name=protocol_type,json=protocolType,proto3,enum=envoy.extensions.filters.network.dubbo_proxy.v3.ProtocolType" json:"protocol_type,omitempty"` + SerializationType SerializationType `protobuf:"varint,3,opt,name=serialization_type,json=serializationType,proto3,enum=envoy.extensions.filters.network.dubbo_proxy.v3.SerializationType" json:"serialization_type,omitempty"` + RouteConfig []*RouteConfiguration `protobuf:"bytes,4,rep,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + DubboFilters []*DubboFilter `protobuf:"bytes,5,rep,name=dubbo_filters,json=dubboFilters,proto3" json:"dubbo_filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DubboProxy) Reset() { *m = DubboProxy{} } +func (m *DubboProxy) String() string { return proto.CompactTextString(m) } +func (*DubboProxy) ProtoMessage() {} +func (*DubboProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_c0aa79721abd555e, []int{0} +} + +func (m *DubboProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DubboProxy.Unmarshal(m, b) +} +func (m *DubboProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DubboProxy.Marshal(b, m, deterministic) +} +func (m *DubboProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_DubboProxy.Merge(m, src) +} +func (m *DubboProxy) XXX_Size() int { + return xxx_messageInfo_DubboProxy.Size(m) +} +func (m *DubboProxy) XXX_DiscardUnknown() { + xxx_messageInfo_DubboProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_DubboProxy proto.InternalMessageInfo + +func (m *DubboProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *DubboProxy) GetProtocolType() ProtocolType { + if m != nil { + return m.ProtocolType + } + return ProtocolType_Dubbo +} + +func (m *DubboProxy) GetSerializationType() SerializationType { + if m != nil { + return m.SerializationType + } + return SerializationType_Hessian2 +} + +func (m *DubboProxy) GetRouteConfig() []*RouteConfiguration { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *DubboProxy) GetDubboFilters() []*DubboFilter { + if m != nil { + return m.DubboFilters + } + return nil +} + +type DubboFilter struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Config *any.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DubboFilter) Reset() { *m = DubboFilter{} } +func (m *DubboFilter) String() string { return proto.CompactTextString(m) } +func (*DubboFilter) ProtoMessage() {} +func (*DubboFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_c0aa79721abd555e, []int{1} +} + +func (m *DubboFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DubboFilter.Unmarshal(m, b) +} +func (m *DubboFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DubboFilter.Marshal(b, m, deterministic) +} +func (m *DubboFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_DubboFilter.Merge(m, src) +} +func (m *DubboFilter) XXX_Size() int { + return xxx_messageInfo_DubboFilter.Size(m) +} +func (m *DubboFilter) XXX_DiscardUnknown() { + xxx_messageInfo_DubboFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_DubboFilter proto.InternalMessageInfo + +func (m *DubboFilter) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DubboFilter) GetConfig() *any.Any { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.extensions.filters.network.dubbo_proxy.v3.ProtocolType", ProtocolType_name, ProtocolType_value) + proto.RegisterEnum("envoy.extensions.filters.network.dubbo_proxy.v3.SerializationType", SerializationType_name, SerializationType_value) + proto.RegisterType((*DubboProxy)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.DubboProxy") + proto.RegisterType((*DubboFilter)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.DubboFilter") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.proto", fileDescriptor_c0aa79721abd555e) +} + +var fileDescriptor_c0aa79721abd555e = []byte{ + // 504 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x6f, 0xd3, 0x30, + 0x1c, 0xc5, 0x97,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0x7a, 0x35, 0x07, 0xf8, 0x10, 0xb4, 0x39, 0xf9, 0x40, 0xb7, 0xcb, 0x62, 0x36, 0xe1, 0x13, + 0xd0, 0x75, 0xaf, 0x56, 0xf6, 0xa3, 0x17, 0xdc, 0x47, 0xb6, 0xe6, 0xe8, 0xba, 0xe6, 0xe8, 0x82, + 0x17, 0x91, 0x3b, 0x73, 0x36, 0x2b, 0xe3, 0x3d, 0x07, 0xe7, 0xb7, 0x8b, 0x67, 0xf3, 0x9c, 0x1e, + 0x01, 0xbf, 0xde, 0x29, 0xb8, 0x0f, 0x3a, 0x46, 0xee, 0xef, 0x9c, 0x1e, 0x83, 0xc3, 0x1b, 0xb3, + 0x87, 0x3e, 0xd8, 0x7b, 0x45, 0x95, 0x62, 0x84, 0x07, 0xfd, 0x9d, 0xf0, 0xed, 0xaf, 0x2f, 0x7f, + 0xfe, 0x76, 0x5b, 0xfd, 0x16, 0x98, 0x32, 0x61, 0x5f, 0xde, 0x7a, 0x35, 0x1c, 0x42, 0x78, 0xaf, + 0x7a, 0x32, 0x13, 0x67, 0xee, 0x2d, 0xbb, 0xe6, 0xd2, 0x93, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xfe, 0x3b, 0x67, 0xb6, 0x9c, 0x04, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.validate.go new file mode 100644 index 000000000..fba547340 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.pb.validate.go @@ -0,0 +1,234 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.proto + +package envoy_extensions_filters_network_dubbo_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _dubbo_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on DubboProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DubboProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return DubboProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocolType())]; !ok { + return DubboProxyValidationError{ + field: "ProtocolType", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := SerializationType_name[int32(m.GetSerializationType())]; !ok { + return DubboProxyValidationError{ + field: "SerializationType", + reason: "value must be one of the defined enum values", + } + } + + for idx, item := range m.GetRouteConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboProxyValidationError{ + field: fmt.Sprintf("RouteConfig[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetDubboFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboProxyValidationError{ + field: fmt.Sprintf("DubboFilters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DubboProxyValidationError is the validation error returned by +// DubboProxy.Validate if the designated constraints aren't met. +type DubboProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DubboProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DubboProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DubboProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DubboProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DubboProxyValidationError) ErrorName() string { return "DubboProxyValidationError" } + +// Error satisfies the builtin error interface +func (e DubboProxyValidationError) 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 %sDubboProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DubboProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DubboProxyValidationError{} + +// Validate checks the field values on DubboFilter with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DubboFilter) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return DubboFilterValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DubboFilterValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DubboFilterValidationError is the validation error returned by +// DubboFilter.Validate if the designated constraints aren't met. +type DubboFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DubboFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DubboFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DubboFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DubboFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DubboFilterValidationError) ErrorName() string { return "DubboFilterValidationError" } + +// Error satisfies the builtin error interface +func (e DubboFilterValidationError) 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 %sDubboFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DubboFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DubboFilterValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.go new file mode 100644 index 000000000..d16c351fc --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.go @@ -0,0 +1,467 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/v3/route.proto + +package envoy_extensions_filters_network_dubbo_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + v32 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RouteConfiguration struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteConfiguration) Reset() { *m = RouteConfiguration{} } +func (m *RouteConfiguration) String() string { return proto.CompactTextString(m) } +func (*RouteConfiguration) ProtoMessage() {} +func (*RouteConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{0} +} + +func (m *RouteConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteConfiguration.Unmarshal(m, b) +} +func (m *RouteConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteConfiguration.Marshal(b, m, deterministic) +} +func (m *RouteConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteConfiguration.Merge(m, src) +} +func (m *RouteConfiguration) XXX_Size() int { + return xxx_messageInfo_RouteConfiguration.Size(m) +} +func (m *RouteConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_RouteConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteConfiguration proto.InternalMessageInfo + +func (m *RouteConfiguration) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RouteConfiguration) GetInterface() string { + if m != nil { + return m.Interface + } + return "" +} + +func (m *RouteConfiguration) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +func (m *RouteConfiguration) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *RouteConfiguration) GetRoutes() []*Route { + if m != nil { + return m.Routes + } + return nil +} + +type Route struct { + Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Route) Reset() { *m = Route{} } +func (m *Route) String() string { return proto.CompactTextString(m) } +func (*Route) ProtoMessage() {} +func (*Route) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{1} +} + +func (m *Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Route.Unmarshal(m, b) +} +func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Route.Marshal(b, m, deterministic) +} +func (m *Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_Route.Merge(m, src) +} +func (m *Route) XXX_Size() int { + return xxx_messageInfo_Route.Size(m) +} +func (m *Route) XXX_DiscardUnknown() { + xxx_messageInfo_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_Route proto.InternalMessageInfo + +func (m *Route) GetMatch() *RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *Route) GetRoute() *RouteAction { + if m != nil { + return m.Route + } + return nil +} + +type RouteMatch struct { + Method *MethodMatch `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` + Headers []*v3.HeaderMatcher `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteMatch) Reset() { *m = RouteMatch{} } +func (m *RouteMatch) String() string { return proto.CompactTextString(m) } +func (*RouteMatch) ProtoMessage() {} +func (*RouteMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{2} +} + +func (m *RouteMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteMatch.Unmarshal(m, b) +} +func (m *RouteMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteMatch.Marshal(b, m, deterministic) +} +func (m *RouteMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteMatch.Merge(m, src) +} +func (m *RouteMatch) XXX_Size() int { + return xxx_messageInfo_RouteMatch.Size(m) +} +func (m *RouteMatch) XXX_DiscardUnknown() { + xxx_messageInfo_RouteMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteMatch proto.InternalMessageInfo + +func (m *RouteMatch) GetMethod() *MethodMatch { + if m != nil { + return m.Method + } + return nil +} + +func (m *RouteMatch) GetHeaders() []*v3.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +type RouteAction struct { + // Types that are valid to be assigned to ClusterSpecifier: + // *RouteAction_Cluster + // *RouteAction_WeightedClusters + ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteAction) Reset() { *m = RouteAction{} } +func (m *RouteAction) String() string { return proto.CompactTextString(m) } +func (*RouteAction) ProtoMessage() {} +func (*RouteAction) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{3} +} + +func (m *RouteAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteAction.Unmarshal(m, b) +} +func (m *RouteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteAction.Marshal(b, m, deterministic) +} +func (m *RouteAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteAction.Merge(m, src) +} +func (m *RouteAction) XXX_Size() int { + return xxx_messageInfo_RouteAction.Size(m) +} +func (m *RouteAction) XXX_DiscardUnknown() { + xxx_messageInfo_RouteAction.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteAction proto.InternalMessageInfo + +type isRouteAction_ClusterSpecifier interface { + isRouteAction_ClusterSpecifier() +} + +type RouteAction_Cluster struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` +} + +type RouteAction_WeightedClusters struct { + WeightedClusters *v3.WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` +} + +func (*RouteAction_Cluster) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_WeightedClusters) isRouteAction_ClusterSpecifier() {} + +func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier { + if m != nil { + return m.ClusterSpecifier + } + return nil +} + +func (m *RouteAction) GetCluster() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_Cluster); ok { + return x.Cluster + } + return "" +} + +func (m *RouteAction) GetWeightedClusters() *v3.WeightedCluster { + if x, ok := m.GetClusterSpecifier().(*RouteAction_WeightedClusters); ok { + return x.WeightedClusters + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteAction) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteAction_Cluster)(nil), + (*RouteAction_WeightedClusters)(nil), + } +} + +type MethodMatch struct { + Name *v31.StringMatcher `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ParamsMatch map[uint32]*MethodMatch_ParameterMatchSpecifier `protobuf:"bytes,2,rep,name=params_match,json=paramsMatch,proto3" json:"params_match,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodMatch) Reset() { *m = MethodMatch{} } +func (m *MethodMatch) String() string { return proto.CompactTextString(m) } +func (*MethodMatch) ProtoMessage() {} +func (*MethodMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{4} +} + +func (m *MethodMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodMatch.Unmarshal(m, b) +} +func (m *MethodMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodMatch.Marshal(b, m, deterministic) +} +func (m *MethodMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodMatch.Merge(m, src) +} +func (m *MethodMatch) XXX_Size() int { + return xxx_messageInfo_MethodMatch.Size(m) +} +func (m *MethodMatch) XXX_DiscardUnknown() { + xxx_messageInfo_MethodMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodMatch proto.InternalMessageInfo + +func (m *MethodMatch) GetName() *v31.StringMatcher { + if m != nil { + return m.Name + } + return nil +} + +func (m *MethodMatch) GetParamsMatch() map[uint32]*MethodMatch_ParameterMatchSpecifier { + if m != nil { + return m.ParamsMatch + } + return nil +} + +type MethodMatch_ParameterMatchSpecifier struct { + // Types that are valid to be assigned to ParameterMatchSpecifier: + // *MethodMatch_ParameterMatchSpecifier_ExactMatch + // *MethodMatch_ParameterMatchSpecifier_RangeMatch + ParameterMatchSpecifier isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier `protobuf_oneof:"parameter_match_specifier"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodMatch_ParameterMatchSpecifier) Reset() { *m = MethodMatch_ParameterMatchSpecifier{} } +func (m *MethodMatch_ParameterMatchSpecifier) String() string { return proto.CompactTextString(m) } +func (*MethodMatch_ParameterMatchSpecifier) ProtoMessage() {} +func (*MethodMatch_ParameterMatchSpecifier) Descriptor() ([]byte, []int) { + return fileDescriptor_96150343ae7318d9, []int{4, 0} +} + +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Unmarshal(m, b) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Marshal(b, m, deterministic) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Merge(m, src) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_Size() int { + return xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.Size(m) +} +func (m *MethodMatch_ParameterMatchSpecifier) XXX_DiscardUnknown() { + xxx_messageInfo_MethodMatch_ParameterMatchSpecifier.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodMatch_ParameterMatchSpecifier proto.InternalMessageInfo + +type isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier interface { + isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() +} + +type MethodMatch_ParameterMatchSpecifier_ExactMatch struct { + ExactMatch string `protobuf:"bytes,3,opt,name=exact_match,json=exactMatch,proto3,oneof"` +} + +type MethodMatch_ParameterMatchSpecifier_RangeMatch struct { + RangeMatch *v32.Int64Range `protobuf:"bytes,4,opt,name=range_match,json=rangeMatch,proto3,oneof"` +} + +func (*MethodMatch_ParameterMatchSpecifier_ExactMatch) isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() { +} + +func (*MethodMatch_ParameterMatchSpecifier_RangeMatch) isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier() { +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetParameterMatchSpecifier() isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier { + if m != nil { + return m.ParameterMatchSpecifier + } + return nil +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetExactMatch() string { + if x, ok := m.GetParameterMatchSpecifier().(*MethodMatch_ParameterMatchSpecifier_ExactMatch); ok { + return x.ExactMatch + } + return "" +} + +func (m *MethodMatch_ParameterMatchSpecifier) GetRangeMatch() *v32.Int64Range { + if x, ok := m.GetParameterMatchSpecifier().(*MethodMatch_ParameterMatchSpecifier_RangeMatch); ok { + return x.RangeMatch + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MethodMatch_ParameterMatchSpecifier) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MethodMatch_ParameterMatchSpecifier_ExactMatch)(nil), + (*MethodMatch_ParameterMatchSpecifier_RangeMatch)(nil), + } +} + +func init() { + proto.RegisterType((*RouteConfiguration)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.RouteConfiguration") + proto.RegisterType((*Route)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.Route") + proto.RegisterType((*RouteMatch)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.RouteMatch") + proto.RegisterType((*RouteAction)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.RouteAction") + proto.RegisterType((*MethodMatch)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.MethodMatch") + proto.RegisterMapType((map[uint32]*MethodMatch_ParameterMatchSpecifier)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.MethodMatch.ParamsMatchEntry") + proto.RegisterType((*MethodMatch_ParameterMatchSpecifier)(nil), "envoy.extensions.filters.network.dubbo_proxy.v3.MethodMatch.ParameterMatchSpecifier") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/dubbo_proxy/v3/route.proto", fileDescriptor_96150343ae7318d9) +} + +var fileDescriptor_96150343ae7318d9 = []byte{ + // 776 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x6b, 0xe3, 0x46, + 0x14, 0x8e, 0xe4, 0xc8, 0x69, 0x9e, 0x5a, 0x70, 0x86, 0x42, 0x14, 0xf7, 0x07, 0x89, 0x29, 0x25, + 0x87, 0x22, 0x51, 0xbb, 0x84, 0xe0, 0xfc, 0x80, 0xda, 0x04, 0xd2, 0x82, 0x4b, 0x50, 0x92, 0xf6, + 0x90, 0x82, 0x99, 0xc8, 0x63, 0x5b, 0x8d, 0x2d, 0x89, 0xd1, 0x48, 0x89, 0x6f, 0xed, 0xad, 0x94, + 0x9e, 0x4a, 0x4f, 0xfb, 0xa7, 0xec, 0x7d, 0x61, 0xaf, 0xfb, 0x17, 0xec, 0x6d, 0xff, 0x82, 0x3d, + 0x2c, 0x7b, 0x5a, 0xe6, 0xcd, 0x38, 0x56, 0xd6, 0xbb, 0x07, 0x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xa4, 0x1e, 0x82, + 0x8d, 0x83, 0x54, 0xa7, 0xac, 0xa2, 0xe2, 0xad, 0xa2, 0xe2, 0xbc, 0xe1, 0xfe, 0x14, 0x89, 0xbd, + 0x1f, 0x7c, 0x99, 0x26, 0xab, 0x31, 0x1f, 0xab, 0x9b, 0x57, 0xd2, 0x97, 0x5f, 0xe1, 0x62, 0x61, + 0x5f, 0xe6, 0xf4, 0xcd, 0xb3, 0x6f, 0x7d, 0x01, 0x5b, 0xc9, 0x74, 0x4b, 0xd1, 0x9b, 0xf9, 0x56, + 0xfd, 0xdf, 0x80, 0xca, 0xfb, 0x8d, 0x21, 0x15, 0x28, 0xdd, 0xb0, 0x09, 0xda, 0xf6, 0x99, 0x2f, + 0x97, 0xe4, 0x0f, 0xb0, 0x72, 0x3a, 0xca, 0xa6, 0x13, 0xe4, 0xe2, 0xf1, 0x46, 0xcc, 0x13, 0xf5, + 0xd5, 0x11, 0x4d, 0x73, 0xdf, 0x58, 0xfe, 0xa2, 0x16, 0xce, 0x69, 0x5d, 0x3e, 0xfd, 0xf3, 0xf9, + 0x8b, 0xb2, 0x59, 0x31, 0xe1, 0x28, 0x8c, 0x15, 0x63, 0x95, 0xbd, 0x20, 0xf9, 0x96, 0x9a, 0x4f, + 0x67, 0xf2, 0x3f, 0x76, 0x66, 0x5c, 0x97, 0xf1, 0x87, 0xd6, 0x78, 0x17, 0x00, 0x00, 0xff, 0xff, + 0x8a, 0x4a, 0x15, 0x67, 0x08, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.validate.go new file mode 100644 index 000000000..256ff9b73 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3/route.pb.validate.go @@ -0,0 +1,583 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/dubbo_proxy/v3/route.proto + +package envoy_extensions_filters_network_dubbo_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _route_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RouteConfiguration with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RouteConfiguration) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Interface + + // no validation rules for Group + + // no validation rules for Version + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteConfigurationValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on Route with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Route) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RouteValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetRoute() == nil { + return RouteValidationError{ + field: "Route", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Route", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RouteValidationError is the validation error returned by Route.Validate if +// the designated constraints aren't met. +type RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteValidationError) ErrorName() string { return "RouteValidationError" } + +// Error satisfies the builtin error interface +func (e RouteValidationError) 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 %sRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteValidationError{} + +// Validate checks the field values on RouteMatch with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RouteMatch) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMethod()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: "Method", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RouteMatchValidationError is the validation error returned by +// RouteMatch.Validate if the designated constraints aren't met. +type RouteMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteMatchValidationError) ErrorName() string { return "RouteMatchValidationError" } + +// Error satisfies the builtin error interface +func (e RouteMatchValidationError) 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 %sRouteMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteMatchValidationError{} + +// Validate checks the field values on RouteAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RouteAction) Validate() error { + if m == nil { + return nil + } + + switch m.ClusterSpecifier.(type) { + + case *RouteAction_Cluster: + // no validation rules for Cluster + + case *RouteAction_WeightedClusters: + + 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: + return RouteActionValidationError{ + field: "ClusterSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on MethodMatch with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *MethodMatch) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetName()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatchValidationError{ + field: "Name", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for key, val := range m.GetParamsMatch() { + _ = val + + // no validation rules for ParamsMatch[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatchValidationError{ + field: fmt.Sprintf("ParamsMatch[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MethodMatchValidationError is the validation error returned by +// MethodMatch.Validate if the designated constraints aren't met. +type MethodMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MethodMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MethodMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MethodMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MethodMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MethodMatchValidationError) ErrorName() string { return "MethodMatchValidationError" } + +// Error satisfies the builtin error interface +func (e MethodMatchValidationError) 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 %sMethodMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MethodMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MethodMatchValidationError{} + +// Validate checks the field values on MethodMatch_ParameterMatchSpecifier with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *MethodMatch_ParameterMatchSpecifier) Validate() error { + if m == nil { + return nil + } + + switch m.ParameterMatchSpecifier.(type) { + + case *MethodMatch_ParameterMatchSpecifier_ExactMatch: + // no validation rules for ExactMatch + + case *MethodMatch_ParameterMatchSpecifier_RangeMatch: + + if v, ok := interface{}(m.GetRangeMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MethodMatch_ParameterMatchSpecifierValidationError{ + field: "RangeMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MethodMatch_ParameterMatchSpecifierValidationError is the validation error +// returned by MethodMatch_ParameterMatchSpecifier.Validate if the designated +// constraints aren't met. +type MethodMatch_ParameterMatchSpecifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MethodMatch_ParameterMatchSpecifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MethodMatch_ParameterMatchSpecifierValidationError) ErrorName() string { + return "MethodMatch_ParameterMatchSpecifierValidationError" +} + +// Error satisfies the builtin error interface +func (e MethodMatch_ParameterMatchSpecifierValidationError) 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 %sMethodMatch_ParameterMatchSpecifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MethodMatch_ParameterMatchSpecifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MethodMatch_ParameterMatchSpecifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.go new file mode 100644 index 000000000..2b6aba622 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/echo/v3/echo.proto + +package envoy_extensions_filters_network_echo_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Echo struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Echo) Reset() { *m = Echo{} } +func (m *Echo) String() string { return proto.CompactTextString(m) } +func (*Echo) ProtoMessage() {} +func (*Echo) Descriptor() ([]byte, []int) { + return fileDescriptor_b528562088ca01a3, []int{0} +} + +func (m *Echo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Echo.Unmarshal(m, b) +} +func (m *Echo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Echo.Marshal(b, m, deterministic) +} +func (m *Echo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Echo.Merge(m, src) +} +func (m *Echo) XXX_Size() int { + return xxx_messageInfo_Echo.Size(m) +} +func (m *Echo) XXX_DiscardUnknown() { + xxx_messageInfo_Echo.DiscardUnknown(m) +} + +var xxx_messageInfo_Echo proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Echo)(nil), "envoy.extensions.filters.network.echo.v3.Echo") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/echo/v3/echo.proto", fileDescriptor_b528562088ca01a3) +} + +var fileDescriptor_b528562088ca01a3 = []byte{ + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x4f, 0x4d, 0xce, + 0xc8, 0xd7, 0x2f, 0x33, 0x06, 0xd3, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x1a, 0x60, 0x4d, + 0x7a, 0x08, 0x4d, 0x7a, 0x50, 0x4d, 0x7a, 0x50, 0x4d, 0x7a, 0x60, 0xc5, 0x65, 0xc6, 0x52, 0xb2, + 0xa5, 0x29, 0x05, 0x89, 0xfa, 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89, 0x25, 0x60, 0xe3, 0x8b, 0x4b, + 0x12, 0x4b, 0x4a, 0x8b, 0x21, 0x06, 0x49, 0x29, 0x62, 0x48, 0x97, 0xa5, 0x16, 0x81, 0x4c, 0xcc, + 0xcc, 0x4b, 0x87, 0x28, 0x51, 0x32, 0xe7, 0x62, 0x71, 0x4d, 0xce, 0xc8, 0xb7, 0xd2, 0x9f, 0x75, + 0xb4, 0x43, 0x4e, 0x8b, 0x0b, 0x6a, 0x75, 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0x3a, 0xd4, 0x5a, 0x34, + 0x5b, 0x8d, 0xf4, 0x40, 0x1a, 0x9c, 0x7c, 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc4, + 0x65, 0x96, 0x99, 0xaf, 0x07, 0xd6, 0x56, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0xac, 0xe3, 0x9d, + 0x38, 0x41, 0xe6, 0x04, 0x80, 0x5c, 0x11, 0xc0, 0x98, 0xc4, 0x06, 0x76, 0x8e, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0x38, 0xa2, 0xb0, 0xeb, 0x31, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.validate.go new file mode 100644 index 000000000..b4467388d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3/echo.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/echo/v3/echo.proto + +package envoy_extensions_filters_network_echo_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _echo_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Echo with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Echo) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EchoValidationError is the validation error returned by Echo.Validate if the +// designated constraints aren't met. +type EchoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EchoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EchoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EchoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EchoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EchoValidationError) ErrorName() string { return "EchoValidationError" } + +// Error satisfies the builtin error interface +func (e EchoValidationError) 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 %sEcho.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EchoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EchoValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.go new file mode 100644 index 000000000..27a4454ce --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.go @@ -0,0 +1,124 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/ext_authz/v3/ext_authz.proto + +package envoy_extensions_filters_network_ext_authz_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ExtAuthz struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + FailureModeAllow bool `protobuf:"varint,3,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"` + IncludePeerCertificate bool `protobuf:"varint,4,opt,name=include_peer_certificate,json=includePeerCertificate,proto3" json:"include_peer_certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtAuthz) Reset() { *m = ExtAuthz{} } +func (m *ExtAuthz) String() string { return proto.CompactTextString(m) } +func (*ExtAuthz) ProtoMessage() {} +func (*ExtAuthz) Descriptor() ([]byte, []int) { + return fileDescriptor_c579db07d85696d8, []int{0} +} + +func (m *ExtAuthz) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtAuthz.Unmarshal(m, b) +} +func (m *ExtAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtAuthz.Marshal(b, m, deterministic) +} +func (m *ExtAuthz) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtAuthz.Merge(m, src) +} +func (m *ExtAuthz) XXX_Size() int { + return xxx_messageInfo_ExtAuthz.Size(m) +} +func (m *ExtAuthz) XXX_DiscardUnknown() { + xxx_messageInfo_ExtAuthz.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtAuthz proto.InternalMessageInfo + +func (m *ExtAuthz) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ExtAuthz) GetGrpcService() *v3.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func (m *ExtAuthz) GetFailureModeAllow() bool { + if m != nil { + return m.FailureModeAllow + } + return false +} + +func (m *ExtAuthz) GetIncludePeerCertificate() bool { + if m != nil { + return m.IncludePeerCertificate + } + return false +} + +func init() { + proto.RegisterType((*ExtAuthz)(nil), "envoy.extensions.filters.network.ext_authz.v3.ExtAuthz") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/ext_authz/v3/ext_authz.proto", fileDescriptor_c579db07d85696d8) +} + +var fileDescriptor_c579db07d85696d8 = []byte{ + // 388 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x31, 0x6b, 0xdb, 0x40, + 0x1c, 0xc5, 0x91, 0x6a, 0x5c, 0xf7, 0xdc, 0x82, 0xd1, 0xd0, 0x0a, 0x43, 0x8b, 0xdc, 0xa5, 0x1a, + 0xda, 0x13, 0xb5, 0x16, 0xd3, 0xd2, 0xc1, 0x6a, 0x4b, 0xa7, 0x82, 0x70, 0xa1, 0xab, 0xb8, 0x9c, + 0xfe, 0x52, 0x8e, 0x28, 0x77, 0xe2, 0x74, 0x92, 0xe5, 0x4c, 0x19, 0xf3, 0x19, 0x42, 0x3e, 0x49, + 0xf6, 0x40, 0xd6, 0x7c, 0x9d, 0x4c, 0xe1, 0x74, 0x32, 0x4a, 0x48, 0x96, 0x6c, 0x3a, 0xfd, 0xee, + 0xbd, 0x7b, 0xff, 0xf7, 0x47, 0x3f, 0x80, 0x37, 0x62, 0x17, 0x40, 0xab, 0x80, 0x57, 0x4c, 0xf0, + 0x2a, 0xc8, 0x58, 0xa1, 0x40, 0x56, 0x01, 0x07, 0xb5, 0x15, 0xf2, 0x48, 0xa3, 0x84, 0xd4, 0xea, + 0xf0, 0x24, 0x68, 0xc2, 0xe1, 0x80, 0x4b, 0x29, 0x94, 0x70, 0xbe, 0x74, 0x72, 0x3c, 0xc8, 0x71, + 0x2f, 0xc7, 0xbd, 0x1c, 0x0f, 0x8a, 0x26, 0x9c, 0x7f, 0x32, 0xaf, 0x51, 0xc1, 0x33, 0x96, 0x07, + 0x54, 0x48, 0xd0, 0xa6, 0xb9, 0x2c, 0x69, 0x52, 0x81, 0x6c, 0x18, 0x05, 0xe3, 0x3b, 0x7f, 0x5f, + 0xa7, 0x25, 0x09, 0x08, 0xe7, 0x42, 0x11, 0xd5, 0xc5, 0xaa, 0x14, 0x51, 0x75, 0xd5, 0xe3, 0xc5, + 0x23, 0xdc, 0x80, 0xd4, 0xef, 0x33, 0x9e, 0xf7, 0x57, 0xde, 0x35, 0xa4, 0x60, 0x29, 0x51, 0x10, + 0xec, 0x3f, 0x0c, 0xf8, 0x78, 0x61, 0xa3, 0xc9, 0xef, 0x56, 0xad, 0x75, 0x26, 0xc7, 0x47, 0x53, + 0x6d, 0x9c, 0x94, 0x12, 0x32, 0xd6, 0xba, 0x96, 0x67, 0xf9, 0xaf, 0xa2, 0x97, 0xb7, 0xd1, 0x48, + 0xda, 0x9e, 0xb5, 0x41, 0x9a, 0xc5, 0x1d, 0x72, 0x7e, 0xa1, 0xd7, 0xf7, 0x73, 0xba, 0xb6, 0x67, + 0xf9, 0xd3, 0xe5, 0x02, 0x9b, 0x02, 0xcc, 0x44, 0x58, 0x4f, 0x84, 0x9b, 0x10, 0xff, 0x91, 0x25, + 0xfd, 0x67, 0x2e, 0x6e, 0xa6, 0xf9, 0x70, 0x70, 0x3e, 0x23, 0x27, 0x23, 0xac, 0xa8, 0x25, 0x24, + 0xc7, 0x22, 0x85, 0x84, 0x14, 0x85, 0xd8, 0xba, 0x2f, 0x3c, 0xcb, 0x9f, 0x6c, 0x66, 0x3d, 0xf9, + 0x2b, 0x52, 0x58, 0xeb, 0xff, 0xce, 0x0a, 0xb9, 0x8c, 0xd3, 0xa2, 0x4e, 0x21, 0x29, 0x01, 0x64, + 0x42, 0x41, 0x2a, 0x96, 0x31, 0x4a, 0x14, 0xb8, 0xa3, 0x4e, 0xf3, 0xb6, 0xe7, 0x31, 0x80, 0xfc, + 0x39, 0xd0, 0x6f, 0xab, 0xf3, 0xab, 0xb3, 0x0f, 0x21, 0xfa, 0xfa, 0x20, 0x9d, 0x59, 0xcd, 0x53, + 0x9b, 0x59, 0xe2, 0x7d, 0x23, 0xd1, 0xff, 0xcb, 0xd3, 0xeb, 0x9b, 0xb1, 0x3d, 0xb3, 0xd1, 0x77, + 0x26, 0xcc, 0x74, 0xa5, 0x14, 0xed, 0x0e, 0x3f, 0x6b, 0xd3, 0xd1, 0x9b, 0xbd, 0x61, 0xac, 0x4b, + 0x8f, 0xad, 0x83, 0x71, 0xd7, 0x7e, 0x78, 0x17, 0x00, 0x00, 0xff, 0xff, 0x74, 0xfb, 0x28, 0x3d, + 0x71, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.validate.go new file mode 100644 index 000000000..723410db6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3/ext_authz.pb.validate.go @@ -0,0 +1,122 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/ext_authz/v3/ext_authz.proto + +package envoy_extensions_filters_network_ext_authz_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _ext_authz_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ExtAuthz with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ExtAuthz) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return ExtAuthzValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtAuthzValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeAllow + + // no validation rules for IncludePeerCertificate + + return nil +} + +// ExtAuthzValidationError is the validation error returned by +// ExtAuthz.Validate if the designated constraints aren't met. +type ExtAuthzValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtAuthzValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtAuthzValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtAuthzValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtAuthzValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtAuthzValidationError) ErrorName() string { return "ExtAuthzValidationError" } + +// Error satisfies the builtin error interface +func (e ExtAuthzValidationError) 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 %sExtAuthz.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtAuthzValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtAuthzValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.go new file mode 100644 index 000000000..ea28bf1f8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.proto + +package envoy_extensions_filters_network_kafka_broker_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type KafkaBroker struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KafkaBroker) Reset() { *m = KafkaBroker{} } +func (m *KafkaBroker) String() string { return proto.CompactTextString(m) } +func (*KafkaBroker) ProtoMessage() {} +func (*KafkaBroker) Descriptor() ([]byte, []int) { + return fileDescriptor_4c0a5d572866d713, []int{0} +} + +func (m *KafkaBroker) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KafkaBroker.Unmarshal(m, b) +} +func (m *KafkaBroker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KafkaBroker.Marshal(b, m, deterministic) +} +func (m *KafkaBroker) XXX_Merge(src proto.Message) { + xxx_messageInfo_KafkaBroker.Merge(m, src) +} +func (m *KafkaBroker) XXX_Size() int { + return xxx_messageInfo_KafkaBroker.Size(m) +} +func (m *KafkaBroker) XXX_DiscardUnknown() { + xxx_messageInfo_KafkaBroker.DiscardUnknown(m) +} + +var xxx_messageInfo_KafkaBroker proto.InternalMessageInfo + +func (m *KafkaBroker) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func init() { + proto.RegisterType((*KafkaBroker)(nil), "envoy.extensions.filters.network.kafka_broker.v3.KafkaBroker") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.proto", fileDescriptor_4c0a5d572866d713) +} + +var fileDescriptor_4c0a5d572866d713 = []byte{ + // 271 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4e, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x4f, 0xcb, 0xcc, + 0x29, 0x49, 0x2d, 0x2a, 0xd6, 0xcf, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0xcf, 0x4e, 0x4c, + 0xcb, 0x4e, 0x8c, 0x4f, 0x2a, 0xca, 0xcf, 0x4e, 0x2d, 0xd2, 0x2f, 0x33, 0x46, 0xe1, 0xeb, 0x15, + 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x19, 0x80, 0x0d, 0xd1, 0x43, 0x18, 0xa2, 0x07, 0x35, 0x44, 0x0f, + 0x6a, 0x88, 0x1e, 0x8a, 0xa6, 0x32, 0x63, 0x29, 0xd9, 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, + 0xbc, 0xfc, 0x92, 0xc4, 0x12, 0xb0, 0xb5, 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x03, 0xa5, + 0x14, 0x31, 0xa4, 0xcb, 0x52, 0x8b, 0x40, 0x26, 0x67, 0xe6, 0xa5, 0x43, 0x95, 0x88, 0x97, 0x25, + 0xe6, 0x64, 0xa6, 0x24, 0x96, 0xa4, 0xea, 0xc3, 0x18, 0x10, 0x09, 0xa5, 0x5a, 0x2e, 0x6e, 0x6f, + 0x90, 0x6d, 0x4e, 0x60, 0xcb, 0x84, 0x34, 0xb8, 0xb8, 0x41, 0x46, 0xc7, 0x17, 0x14, 0xa5, 0xa6, + 0x65, 0x56, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0xb1, 0xff, 0x72, 0x62, 0x29, 0x62, 0x52, + 0x60, 0x0c, 0xe2, 0x02, 0xc9, 0x05, 0x80, 0xa5, 0xac, 0x5c, 0x66, 0x1d, 0xed, 0x90, 0xb3, 0xe7, + 0xb2, 0x85, 0x78, 0x26, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x1d, 0xea, 0x11, 0x1c, 0xfe, 0x30, 0x4a, + 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd4, 0x43, 0xb2, 0xcf, 0x29, 0x66, 0x57, 0xc3, 0x89, 0x8b, 0x6c, + 0x4c, 0x02, 0x4c, 0x5c, 0x76, 0x99, 0xf9, 0x7a, 0x60, 0xb3, 0x0a, 0x8a, 0xf2, 0x2b, 0x2a, 0xf5, + 0x48, 0x0d, 0x23, 0x27, 0x01, 0x24, 0x63, 0x03, 0x40, 0x5e, 0x0b, 0x60, 0x4c, 0x62, 0x03, 0xfb, + 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x48, 0xd6, 0x6c, 0xb7, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.validate.go new file mode 100644 index 000000000..4e9f50298 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/kafka_broker/v3/kafka_broker.proto + +package envoy_extensions_filters_network_kafka_broker_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _kafka_broker_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on KafkaBroker with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *KafkaBroker) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return KafkaBrokerValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// KafkaBrokerValidationError is the validation error returned by +// KafkaBroker.Validate if the designated constraints aren't met. +type KafkaBrokerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e KafkaBrokerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e KafkaBrokerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e KafkaBrokerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e KafkaBrokerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e KafkaBrokerValidationError) ErrorName() string { return "KafkaBrokerValidationError" } + +// Error satisfies the builtin error interface +func (e KafkaBrokerValidationError) 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 %sKafkaBroker.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = KafkaBrokerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = KafkaBrokerValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.go new file mode 100644 index 000000000..2eb0e681d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.proto + +package envoy_extensions_filters_network_local_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LocalRateLimit struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + TokenBucket *v3.TokenBucket `protobuf:"bytes,2,opt,name=token_bucket,json=tokenBucket,proto3" json:"token_bucket,omitempty"` + RuntimeEnabled *v31.RuntimeFeatureFlag `protobuf:"bytes,3,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRateLimit) Reset() { *m = LocalRateLimit{} } +func (m *LocalRateLimit) String() string { return proto.CompactTextString(m) } +func (*LocalRateLimit) ProtoMessage() {} +func (*LocalRateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_ffceb0cea724f411, []int{0} +} + +func (m *LocalRateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocalRateLimit.Unmarshal(m, b) +} +func (m *LocalRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocalRateLimit.Marshal(b, m, deterministic) +} +func (m *LocalRateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRateLimit.Merge(m, src) +} +func (m *LocalRateLimit) XXX_Size() int { + return xxx_messageInfo_LocalRateLimit.Size(m) +} +func (m *LocalRateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRateLimit proto.InternalMessageInfo + +func (m *LocalRateLimit) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *LocalRateLimit) GetTokenBucket() *v3.TokenBucket { + if m != nil { + return m.TokenBucket + } + return nil +} + +func (m *LocalRateLimit) GetRuntimeEnabled() *v31.RuntimeFeatureFlag { + if m != nil { + return m.RuntimeEnabled + } + return nil +} + +func init() { + proto.RegisterType((*LocalRateLimit)(nil), "envoy.extensions.filters.network.local_ratelimit.v3.LocalRateLimit") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.proto", fileDescriptor_ffceb0cea724f411) +} + +var fileDescriptor_ffceb0cea724f411 = []byte{ + // 401 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x3f, 0xaf, 0xd3, 0x30, + 0x14, 0xc5, 0x95, 0x00, 0x0f, 0x70, 0xd1, 0xe3, 0x29, 0x0c, 0x54, 0x91, 0x80, 0xc0, 0x94, 0xc9, + 0x96, 0x5e, 0x36, 0x36, 0x82, 0xde, 0x43, 0x7a, 0xea, 0x50, 0x22, 0xf6, 0xc8, 0x49, 0x6f, 0x8b, + 0x55, 0xd7, 0x8e, 0x9c, 0x9b, 0xd0, 0x6e, 0x8c, 0x88, 0x8f, 0xc0, 0xc8, 0xc7, 0x60, 0x47, 0x62, + 0xe5, 0xeb, 0x74, 0x42, 0xfe, 0x83, 0xda, 0x02, 0x13, 0x5b, 0x74, 0xcf, 0xf1, 0xcf, 0xc7, 0xf7, + 0x84, 0xdc, 0x80, 0x1a, 0xf5, 0x8e, 0xc1, 0x16, 0x41, 0xf5, 0x42, 0xab, 0x9e, 0x2d, 0x85, 0x44, + 0x30, 0x3d, 0x53, 0x80, 0x1f, 0xb4, 0x59, 0x33, 0xa9, 0x5b, 0x2e, 0x6b, 0xc3, 0x11, 0xa4, 0xd8, + 0x08, 0x64, 0x63, 0x71, 0x34, 0xaa, 0xdd, 0x8c, 0x76, 0x46, 0xa3, 0x4e, 0x0a, 0xc7, 0xa2, 0x07, + 0x16, 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b, 0xac, 0xbc, 0xf9, 0x1a, 0x38, 0x0e, 0x06, 0xae, 0x25, 0x5f, + 0x55, 0xe7, 0x01, 0x70, 0xe5, 0xcf, 0xbf, 0xbc, 0xf9, 0xf2, 0xfd, 0xd3, 0xd3, 0x2b, 0xf2, 0xfa, + 0xe4, 0xbc, 0xaf, 0xeb, 0x1f, 0x6d, 0x85, 0x9a, 0xc7, 0x4b, 0x2e, 0xbb, 0xf7, 0x9c, 0x9e, 0x6e, + 0xa4, 0x6c, 0xbe, 0x7d, 0xfc, 0xf1, 0xf3, 0x2c, 0xbe, 0x88, 0xc9, 0x2b, 0xa1, 0x7d, 0xa2, 0xce, + 0xe8, 0xed, 0x8e, 0xfe, 0xc7, 0xff, 0x50, 0x3e, 0x3a, 0x85, 0xcf, 0x6d, 0x0d, 0xf3, 0xa8, 0x39, + 0x73, 0x7d, 0x14, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x19, 0xce, 0x5a, 0x12, 0xb0, 0x02, 0x00, + 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.validate.go new file mode 100644 index 000000000..a591d92ac --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.validate.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.proto + +package envoy_extensions_filters_network_local_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _local_rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on LocalRateLimit with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LocalRateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return LocalRateLimitValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetTokenBucket() == nil { + return LocalRateLimitValidationError{ + field: "TokenBucket", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTokenBucket()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalRateLimitValidationError{ + field: "TokenBucket", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRuntimeEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalRateLimitValidationError{ + field: "RuntimeEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LocalRateLimitValidationError is the validation error returned by +// LocalRateLimit.Validate if the designated constraints aren't met. +type LocalRateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LocalRateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LocalRateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LocalRateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LocalRateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LocalRateLimitValidationError) ErrorName() string { return "LocalRateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e LocalRateLimitValidationError) 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 %sLocalRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LocalRateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LocalRateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.go new file mode 100644 index 000000000..38f884672 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.go @@ -0,0 +1,123 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto + +package envoy_extensions_filters_network_mongo_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MongoProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + Delay *v3.FaultDelay `protobuf:"bytes,3,opt,name=delay,proto3" json:"delay,omitempty"` + EmitDynamicMetadata bool `protobuf:"varint,4,opt,name=emit_dynamic_metadata,json=emitDynamicMetadata,proto3" json:"emit_dynamic_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MongoProxy) Reset() { *m = MongoProxy{} } +func (m *MongoProxy) String() string { return proto.CompactTextString(m) } +func (*MongoProxy) ProtoMessage() {} +func (*MongoProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_60ec9b7c3b00e562, []int{0} +} + +func (m *MongoProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MongoProxy.Unmarshal(m, b) +} +func (m *MongoProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MongoProxy.Marshal(b, m, deterministic) +} +func (m *MongoProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MongoProxy.Merge(m, src) +} +func (m *MongoProxy) XXX_Size() int { + return xxx_messageInfo_MongoProxy.Size(m) +} +func (m *MongoProxy) XXX_DiscardUnknown() { + xxx_messageInfo_MongoProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_MongoProxy proto.InternalMessageInfo + +func (m *MongoProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *MongoProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func (m *MongoProxy) GetDelay() *v3.FaultDelay { + if m != nil { + return m.Delay + } + return nil +} + +func (m *MongoProxy) GetEmitDynamicMetadata() bool { + if m != nil { + return m.EmitDynamicMetadata + } + return false +} + +func init() { + proto.RegisterType((*MongoProxy)(nil), "envoy.extensions.filters.network.mongo_proxy.v3.MongoProxy") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto", fileDescriptor_60ec9b7c3b00e562) +} + +var fileDescriptor_60ec9b7c3b00e562 = []byte{ + // 373 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xb1, 0x4b, 0xe4, 0x40, + 0x14, 0xc6, 0x49, 0x6e, 0x6f, 0xef, 0x76, 0xb6, 0xb8, 0x23, 0xc7, 0x71, 0x61, 0x61, 0x8f, 0x68, + 0x95, 0x6a, 0x06, 0x36, 0x2b, 0x82, 0x68, 0x61, 0x58, 0x2c, 0xc4, 0x85, 0x90, 0xd2, 0x26, 0x8c, + 0xc9, 0x24, 0x0c, 0x26, 0xf3, 0x42, 0x32, 0x1b, 0x37, 0x9d, 0xa5, 0xbd, 0x9d, 0x7f, 0x8a, 0xbd, + 0x60, 0xeb, 0xbf, 0x63, 0x25, 0x93, 0x89, 0xec, 0x82, 0x6e, 0x61, 0xf7, 0x92, 0xef, 0xbd, 0xdf, + 0xf7, 0xe6, 0x7b, 0xe8, 0x94, 0x89, 0x06, 0x5a, 0xc2, 0xd6, 0x92, 0x89, 0x9a, 0x83, 0xa8, 0x49, + 0xca, 0x73, 0xc9, 0xaa, 0x9a, 0x08, 0x26, 0x6f, 0xa0, 0xba, 0x26, 0x05, 0x88, 0x0c, 0xa2, 0xb2, + 0x82, 0x75, 0x4b, 0x1a, 0x6f, 0xfb, 0x13, 0x97, 0x15, 0x48, 0xb0, 0x48, 0x87, 0xc0, 0x1b, 0x04, + 0xee, 0x11, 0xb8, 0x47, 0xe0, 0xed, 0x99, 0xc6, 0x9b, 0xcc, 0x77, 0x7a, 0xc6, 0x50, 0x14, 0x20, + 0x48, 0x4a, 0x57, 0xb9, 0x54, 0x66, 0x5d, 0xa1, 0x6d, 0x26, 0xd3, 0x55, 0x52, 0x52, 0x42, 0x85, + 0x00, 0x49, 0x65, 0x37, 0x55, 0x4b, 0x2a, 0x57, 0x75, 0x2f, 0xef, 0x7d, 0x90, 0x1b, 0x56, 0x29, + 0x3a, 0x17, 0x59, 0xdf, 0xf2, 0xaf, 0xa1, 0x39, 0x4f, 0xa8, 0x64, 0xe4, 0xbd, 0xd0, 0xc2, 0xfe, + 0xbd, 0x89, 0xd0, 0x52, 0xed, 0x18, 0xa8, 0x15, 0x2d, 0x17, 0x8d, 0x15, 0x3a, 0x2a, 0x2b, 0x96, + 0xf2, 0xb5, 0x6d, 0x38, 0x86, 0x3b, 0xf2, 0x7f, 0xbc, 0xfa, 0x83, 0xca, 0x74, 0x8c, 0x10, 0x29, + 0x2d, 0xe8, 0x24, 0x6b, 0x8a, 0x10, 0x8d, 0x63, 0x56, 0xd7, 0x51, 0x0e, 0x99, 0x6d, 0xaa, 0xc6, + 0x70, 0xa4, 0xff, 0x5c, 0x40, 0x66, 0x9d, 0xa3, 0xef, 0x09, 0xcb, 0x69, 0x6b, 0x7f, 0x73, 0x0c, + 0x77, 0x3c, 0x9b, 0xe3, 0x9d, 0x49, 0xe9, 0x87, 0x63, 0xfd, 0xde, 0xc6, 0xc3, 0x67, 0xaa, 0x58, + 0xa8, 0xd9, 0x50, 0x23, 0xac, 0x19, 0xfa, 0xcb, 0x0a, 0x2e, 0xa3, 0xa4, 0x15, 0xb4, 0xe0, 0x71, + 0x54, 0x30, 0x49, 0x13, 0x2a, 0xa9, 0x3d, 0x70, 0x0c, 0xf7, 0x67, 0xf8, 0x47, 0x89, 0x0b, 0xad, + 0x2d, 0x7b, 0xe9, 0xe8, 0xf8, 0xe1, 0xe9, 0xee, 0xff, 0x21, 0x3a, 0xd0, 0xb6, 0x31, 0x88, 0x94, + 0x67, 0xbd, 0xe5, 0xe7, 0xb7, 0x99, 0xe1, 0x4d, 0x0c, 0xfe, 0xe5, 0xe3, 0xed, 0xf3, 0xcb, 0xd0, + 0xfc, 0x6d, 0xa2, 0x13, 0x0e, 0x7a, 0x75, 0xdd, 0xf6, 0xc5, 0x7b, 0xfb, 0xbf, 0x36, 0xd0, 0x40, + 0xe5, 0x1d, 0x18, 0x57, 0xc3, 0x2e, 0x78, 0xef, 0x2d, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x39, 0x0c, + 0xaa, 0x7f, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.validate.go new file mode 100644 index 000000000..58b57bd62 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.pb.validate.go @@ -0,0 +1,122 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto + +package envoy_extensions_filters_network_mongo_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mongo_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MongoProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MongoProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return MongoProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + if v, ok := interface{}(m.GetDelay()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MongoProxyValidationError{ + field: "Delay", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EmitDynamicMetadata + + return nil +} + +// MongoProxyValidationError is the validation error returned by +// MongoProxy.Validate if the designated constraints aren't met. +type MongoProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MongoProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MongoProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MongoProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MongoProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MongoProxyValidationError) ErrorName() string { return "MongoProxyValidationError" } + +// Error satisfies the builtin error interface +func (e MongoProxyValidationError) 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 %sMongoProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MongoProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MongoProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.go new file mode 100644 index 000000000..0e5d9237c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.proto + +package envoy_extensions_filters_network_mysql_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type MySQLProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MySQLProxy) Reset() { *m = MySQLProxy{} } +func (m *MySQLProxy) String() string { return proto.CompactTextString(m) } +func (*MySQLProxy) ProtoMessage() {} +func (*MySQLProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_8896af45b7c675fb, []int{0} +} + +func (m *MySQLProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MySQLProxy.Unmarshal(m, b) +} +func (m *MySQLProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MySQLProxy.Marshal(b, m, deterministic) +} +func (m *MySQLProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MySQLProxy.Merge(m, src) +} +func (m *MySQLProxy) XXX_Size() int { + return xxx_messageInfo_MySQLProxy.Size(m) +} +func (m *MySQLProxy) XXX_DiscardUnknown() { + xxx_messageInfo_MySQLProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_MySQLProxy proto.InternalMessageInfo + +func (m *MySQLProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *MySQLProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func init() { + proto.RegisterType((*MySQLProxy)(nil), "envoy.extensions.filters.network.mysql_proxy.v3.MySQLProxy") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.proto", fileDescriptor_8896af45b7c675fb) +} + +var fileDescriptor_8896af45b7c675fb = []byte{ + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xb1, 0x4e, 0xc3, 0x30, + 0x14, 0x45, 0x95, 0x08, 0x15, 0xd5, 0x0c, 0xa0, 0x2c, 0x54, 0x95, 0x8a, 0x0a, 0x53, 0x27, 0x5b, + 0x55, 0x36, 0x50, 0x07, 0x32, 0xb7, 0x52, 0x28, 0x1b, 0x4b, 0x64, 0x52, 0x27, 0x58, 0x04, 0xbf, + 0x60, 0xbb, 0x26, 0xd9, 0x18, 0xf9, 0x05, 0xf8, 0x14, 0x76, 0x24, 0x56, 0x7e, 0x87, 0x09, 0xd9, + 0x0e, 0x6a, 0x25, 0x58, 0xba, 0xe5, 0xe5, 0x5e, 0x9f, 0xe7, 0x63, 0x74, 0xc9, 0x84, 0x81, 0x96, + 0xb0, 0x46, 0x33, 0xa1, 0x38, 0x08, 0x45, 0x0a, 0x5e, 0x69, 0x26, 0x15, 0x11, 0x4c, 0x3f, 0x81, + 0xbc, 0x27, 0x0f, 0xad, 0x7a, 0xac, 0xb2, 0x5a, 0x42, 0xd3, 0x12, 0x13, 0x6f, 0x8f, 0xb8, 0x96, + 0xa0, 0x21, 0x22, 0x0e, 0x81, 0x37, 0x08, 0xdc, 0x21, 0x70, 0x87, 0xc0, 0xdb, 0x67, 0x4c, 0x3c, + 0x1c, 0xad, 0x57, 0x35, 0x25, 0x54, 0x08, 0xd0, 0x54, 0xbb, 0x9d, 0x4a, 0x53, 0xbd, 0x56, 0x9e, + 0x37, 0x3c, 0xfd, 0x13, 0x1b, 0x26, 0x2d, 0x98, 0x8b, 0xb2, 0xab, 0x1c, 0x1b, 0x5a, 0xf1, 0x15, + 0xd5, 0x8c, 0xfc, 0x7e, 0xf8, 0xe0, 0xec, 0x35, 0x40, 0x68, 0xd1, 0x5e, 0x5f, 0xcd, 0x53, 0xbb, + 0x2c, 0x9a, 0xa0, 0x03, 0x8b, 0xce, 0x6a, 0xc9, 0x0a, 0xde, 0x0c, 0x82, 0x71, 0x30, 0xe9, 0x27, + 0xfb, 0xdf, 0xc9, 0x9e, 0x0c, 0xc7, 0xc1, 0x12, 0xd9, 0x2c, 0x75, 0x51, 0x34, 0x42, 0x88, 0xe6, + 0x39, 0x53, 0x2a, 0xab, 0xa0, 0x1c, 0x84, 0xb6, 0xb8, 0xec, 0xfb, 0x3f, 0x73, 0x28, 0xcf, 0x93, + 0xb7, 0x8f, 0x97, 0x93, 0x19, 0xba, 0xf0, 0xaa, 0x39, 0x88, 0x82, 0x97, 0x9d, 0xe6, 0xff, 0x96, + 0x53, 0x5a, 0xd5, 0x77, 0x74, 0x8a, 0x37, 0x97, 0x49, 0x6e, 0xde, 0x9f, 0x3f, 0xbf, 0x7a, 0xe1, + 0x51, 0x88, 0x66, 0x1c, 0xb0, 0x23, 0xf9, 0xf2, 0x8e, 0xef, 0x97, 0x1c, 0x2e, 0xec, 0xec, 0xa0, + 0xa9, 0xb5, 0x4e, 0x83, 0xdb, 0x9e, 0xd3, 0x8f, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xe7, + 0x24, 0xba, 0xcf, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.validate.go new file mode 100644 index 000000000..66e74bd05 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.pb.validate.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.proto + +package envoy_extensions_filters_network_mysql_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _mysql_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on MySQLProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *MySQLProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return MySQLProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + return nil +} + +// MySQLProxyValidationError is the validation error returned by +// MySQLProxy.Validate if the designated constraints aren't met. +type MySQLProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MySQLProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MySQLProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MySQLProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MySQLProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MySQLProxyValidationError) ErrorName() string { return "MySQLProxyValidationError" } + +// Error satisfies the builtin error interface +func (e MySQLProxyValidationError) 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 %sMySQLProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MySQLProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MySQLProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.go new file mode 100644 index 000000000..b4a80e1c7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.go @@ -0,0 +1,147 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_network_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Descriptors []*v3.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors,proto3" json:"descriptors,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitService *v31.RateLimitServiceConfig `protobuf:"bytes,6,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_e38327ef84621b99, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetDescriptors() []*v3.RateLimitDescriptor { + if m != nil { + return m.Descriptors + } + return nil +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v31.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.extensions.filters.network.ratelimit.v3.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/ratelimit/v3/rate_limit.proto", fileDescriptor_e38327ef84621b99) +} + +var fileDescriptor_e38327ef84621b99 = []byte{ + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xb1, 0x8e, 0xd3, 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ff, 0xb8, 0xe1, + 0x63, 0x47, 0x79, 0x67, 0x67, 0xec, 0x19, 0xdf, 0x89, 0x33, 0x26, 0xf1, 0x58, 0xdf, 0x9a, 0xb8, + 0xb8, 0xf8, 0x79, 0xf5, 0xed, 0xfc, 0x15, 0x0d, 0xf7, 0x44, 0xbb, 0x4e, 0xee, 0x55, 0xb2, 0x6f, + 0x71, 0x33, 0xdd, 0x2d, 0x89, 0x3e, 0xfd, 0xfa, 0xfa, 0xfb, 0xcf, 0xc0, 0x19, 0x3b, 0xf4, 0x8d, + 0xc4, 0xce, 0x56, 0xa9, 0x71, 0xb5, 0x66, 0xff, 0x55, 0xf2, 0xe8, 0xce, 0x56, 0x71, 0xde, 0xc6, + 0x37, 0x27, 0x97, 0x03, 0x9b, 0x63, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x5f, 0xb0, 0x38, + 0x6e, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.validate.go new file mode 100644 index 000000000..780e7caf7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.validate.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_network_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return RateLimitValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if len(m.GetDescriptors()) < 1 { + return RateLimitValidationError{ + field: "Descriptors", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetDescriptors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: fmt.Sprintf("Descriptors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.go new file mode 100644 index 000000000..03806b4c2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.go @@ -0,0 +1,554 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.proto + +package envoy_extensions_filters_network_redis_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RedisProxy_ConnPoolSettings_ReadPolicy int32 + +const ( + RedisProxy_ConnPoolSettings_MASTER RedisProxy_ConnPoolSettings_ReadPolicy = 0 + RedisProxy_ConnPoolSettings_PREFER_MASTER RedisProxy_ConnPoolSettings_ReadPolicy = 1 + RedisProxy_ConnPoolSettings_REPLICA RedisProxy_ConnPoolSettings_ReadPolicy = 2 + RedisProxy_ConnPoolSettings_PREFER_REPLICA RedisProxy_ConnPoolSettings_ReadPolicy = 3 + RedisProxy_ConnPoolSettings_ANY RedisProxy_ConnPoolSettings_ReadPolicy = 4 +) + +var RedisProxy_ConnPoolSettings_ReadPolicy_name = map[int32]string{ + 0: "MASTER", + 1: "PREFER_MASTER", + 2: "REPLICA", + 3: "PREFER_REPLICA", + 4: "ANY", +} + +var RedisProxy_ConnPoolSettings_ReadPolicy_value = map[string]int32{ + "MASTER": 0, + "PREFER_MASTER": 1, + "REPLICA": 2, + "PREFER_REPLICA": 3, + "ANY": 4, +} + +func (x RedisProxy_ConnPoolSettings_ReadPolicy) String() string { + return proto.EnumName(RedisProxy_ConnPoolSettings_ReadPolicy_name, int32(x)) +} + +func (RedisProxy_ConnPoolSettings_ReadPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0, 0, 0} +} + +type RedisProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + HiddenEnvoyDeprecatedCluster string `protobuf:"bytes,2,opt,name=hidden_envoy_deprecated_cluster,json=hiddenEnvoyDeprecatedCluster,proto3" json:"hidden_envoy_deprecated_cluster,omitempty"` // Deprecated: Do not use. + Settings *RedisProxy_ConnPoolSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"` + LatencyInMicros bool `protobuf:"varint,4,opt,name=latency_in_micros,json=latencyInMicros,proto3" json:"latency_in_micros,omitempty"` + PrefixRoutes *RedisProxy_PrefixRoutes `protobuf:"bytes,5,opt,name=prefix_routes,json=prefixRoutes,proto3" json:"prefix_routes,omitempty"` + DownstreamAuthPassword *v3.DataSource `protobuf:"bytes,6,opt,name=downstream_auth_password,json=downstreamAuthPassword,proto3" json:"downstream_auth_password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy) Reset() { *m = RedisProxy{} } +func (m *RedisProxy) String() string { return proto.CompactTextString(m) } +func (*RedisProxy) ProtoMessage() {} +func (*RedisProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0} +} + +func (m *RedisProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy.Unmarshal(m, b) +} +func (m *RedisProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy.Marshal(b, m, deterministic) +} +func (m *RedisProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy.Merge(m, src) +} +func (m *RedisProxy) XXX_Size() int { + return xxx_messageInfo_RedisProxy.Size(m) +} +func (m *RedisProxy) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy proto.InternalMessageInfo + +func (m *RedisProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +// Deprecated: Do not use. +func (m *RedisProxy) GetHiddenEnvoyDeprecatedCluster() string { + if m != nil { + return m.HiddenEnvoyDeprecatedCluster + } + return "" +} + +func (m *RedisProxy) GetSettings() *RedisProxy_ConnPoolSettings { + if m != nil { + return m.Settings + } + return nil +} + +func (m *RedisProxy) GetLatencyInMicros() bool { + if m != nil { + return m.LatencyInMicros + } + return false +} + +func (m *RedisProxy) GetPrefixRoutes() *RedisProxy_PrefixRoutes { + if m != nil { + return m.PrefixRoutes + } + return nil +} + +func (m *RedisProxy) GetDownstreamAuthPassword() *v3.DataSource { + if m != nil { + return m.DownstreamAuthPassword + } + return nil +} + +type RedisProxy_ConnPoolSettings struct { + OpTimeout *duration.Duration `protobuf:"bytes,1,opt,name=op_timeout,json=opTimeout,proto3" json:"op_timeout,omitempty"` + EnableHashtagging bool `protobuf:"varint,2,opt,name=enable_hashtagging,json=enableHashtagging,proto3" json:"enable_hashtagging,omitempty"` + EnableRedirection bool `protobuf:"varint,3,opt,name=enable_redirection,json=enableRedirection,proto3" json:"enable_redirection,omitempty"` + MaxBufferSizeBeforeFlush uint32 `protobuf:"varint,4,opt,name=max_buffer_size_before_flush,json=maxBufferSizeBeforeFlush,proto3" json:"max_buffer_size_before_flush,omitempty"` + BufferFlushTimeout *duration.Duration `protobuf:"bytes,5,opt,name=buffer_flush_timeout,json=bufferFlushTimeout,proto3" json:"buffer_flush_timeout,omitempty"` + MaxUpstreamUnknownConnections *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=max_upstream_unknown_connections,json=maxUpstreamUnknownConnections,proto3" json:"max_upstream_unknown_connections,omitempty"` + EnableCommandStats bool `protobuf:"varint,8,opt,name=enable_command_stats,json=enableCommandStats,proto3" json:"enable_command_stats,omitempty"` + ReadPolicy RedisProxy_ConnPoolSettings_ReadPolicy `protobuf:"varint,7,opt,name=read_policy,json=readPolicy,proto3,enum=envoy.extensions.filters.network.redis_proxy.v3.RedisProxy_ConnPoolSettings_ReadPolicy" json:"read_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_ConnPoolSettings) Reset() { *m = RedisProxy_ConnPoolSettings{} } +func (m *RedisProxy_ConnPoolSettings) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_ConnPoolSettings) ProtoMessage() {} +func (*RedisProxy_ConnPoolSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0, 0} +} + +func (m *RedisProxy_ConnPoolSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Unmarshal(m, b) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Marshal(b, m, deterministic) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_ConnPoolSettings.Merge(m, src) +} +func (m *RedisProxy_ConnPoolSettings) XXX_Size() int { + return xxx_messageInfo_RedisProxy_ConnPoolSettings.Size(m) +} +func (m *RedisProxy_ConnPoolSettings) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_ConnPoolSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_ConnPoolSettings proto.InternalMessageInfo + +func (m *RedisProxy_ConnPoolSettings) GetOpTimeout() *duration.Duration { + if m != nil { + return m.OpTimeout + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableHashtagging() bool { + if m != nil { + return m.EnableHashtagging + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableRedirection() bool { + if m != nil { + return m.EnableRedirection + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetMaxBufferSizeBeforeFlush() uint32 { + if m != nil { + return m.MaxBufferSizeBeforeFlush + } + return 0 +} + +func (m *RedisProxy_ConnPoolSettings) GetBufferFlushTimeout() *duration.Duration { + if m != nil { + return m.BufferFlushTimeout + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetMaxUpstreamUnknownConnections() *wrappers.UInt32Value { + if m != nil { + return m.MaxUpstreamUnknownConnections + } + return nil +} + +func (m *RedisProxy_ConnPoolSettings) GetEnableCommandStats() bool { + if m != nil { + return m.EnableCommandStats + } + return false +} + +func (m *RedisProxy_ConnPoolSettings) GetReadPolicy() RedisProxy_ConnPoolSettings_ReadPolicy { + if m != nil { + return m.ReadPolicy + } + return RedisProxy_ConnPoolSettings_MASTER +} + +type RedisProxy_PrefixRoutes struct { + Routes []*RedisProxy_PrefixRoutes_Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` + CaseInsensitive bool `protobuf:"varint,2,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"` + HiddenEnvoyDeprecatedCatchAllCluster string `protobuf:"bytes,3,opt,name=hidden_envoy_deprecated_catch_all_cluster,json=hiddenEnvoyDeprecatedCatchAllCluster,proto3" json:"hidden_envoy_deprecated_catch_all_cluster,omitempty"` // Deprecated: Do not use. + CatchAllRoute *RedisProxy_PrefixRoutes_Route `protobuf:"bytes,4,opt,name=catch_all_route,json=catchAllRoute,proto3" json:"catch_all_route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes) Reset() { *m = RedisProxy_PrefixRoutes{} } +func (m *RedisProxy_PrefixRoutes) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_PrefixRoutes) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0, 1} +} + +func (m *RedisProxy_PrefixRoutes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes.Size(m) +} +func (m *RedisProxy_PrefixRoutes) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes) GetRoutes() []*RedisProxy_PrefixRoutes_Route { + if m != nil { + return m.Routes + } + return nil +} + +func (m *RedisProxy_PrefixRoutes) GetCaseInsensitive() bool { + if m != nil { + return m.CaseInsensitive + } + return false +} + +// Deprecated: Do not use. +func (m *RedisProxy_PrefixRoutes) GetHiddenEnvoyDeprecatedCatchAllCluster() string { + if m != nil { + return m.HiddenEnvoyDeprecatedCatchAllCluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes) GetCatchAllRoute() *RedisProxy_PrefixRoutes_Route { + if m != nil { + return m.CatchAllRoute + } + return nil +} + +type RedisProxy_PrefixRoutes_Route struct { + Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + RemovePrefix bool `protobuf:"varint,2,opt,name=remove_prefix,json=removePrefix,proto3" json:"remove_prefix,omitempty"` + Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` + RequestMirrorPolicy []*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy `protobuf:"bytes,4,rep,name=request_mirror_policy,json=requestMirrorPolicy,proto3" json:"request_mirror_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes_Route) Reset() { *m = RedisProxy_PrefixRoutes_Route{} } +func (m *RedisProxy_PrefixRoutes_Route) String() string { return proto.CompactTextString(m) } +func (*RedisProxy_PrefixRoutes_Route) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes_Route) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0, 1, 0} +} + +func (m *RedisProxy_PrefixRoutes_Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route.Size(m) +} +func (m *RedisProxy_PrefixRoutes_Route) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes_Route proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes_Route) GetPrefix() string { + if m != nil { + return m.Prefix + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route) GetRemovePrefix() bool { + if m != nil { + return m.RemovePrefix + } + return false +} + +func (m *RedisProxy_PrefixRoutes_Route) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route) GetRequestMirrorPolicy() []*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy { + if m != nil { + return m.RequestMirrorPolicy + } + return nil +} + +type RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + RuntimeFraction *v3.RuntimeFractionalPercent `protobuf:"bytes,2,opt,name=runtime_fraction,json=runtimeFraction,proto3" json:"runtime_fraction,omitempty"` + ExcludeReadCommands bool `protobuf:"varint,3,opt,name=exclude_read_commands,json=excludeReadCommands,proto3" json:"exclude_read_commands,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Reset() { + *m = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy{} +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) String() string { + return proto.CompactTextString(m) +} +func (*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) ProtoMessage() {} +func (*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{0, 1, 0, 0} +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Unmarshal(m, b) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Marshal(b, m, deterministic) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Merge(m, src) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_Size() int { + return xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Size(m) +} +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy proto.InternalMessageInfo + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetRuntimeFraction() *v3.RuntimeFractionalPercent { + if m != nil { + return m.RuntimeFraction + } + return nil +} + +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) GetExcludeReadCommands() bool { + if m != nil { + return m.ExcludeReadCommands + } + return false +} + +type RedisProtocolOptions struct { + AuthPassword *v3.DataSource `protobuf:"bytes,1,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RedisProtocolOptions) Reset() { *m = RedisProtocolOptions{} } +func (m *RedisProtocolOptions) String() string { return proto.CompactTextString(m) } +func (*RedisProtocolOptions) ProtoMessage() {} +func (*RedisProtocolOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_2438571bcc1970a0, []int{1} +} + +func (m *RedisProtocolOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RedisProtocolOptions.Unmarshal(m, b) +} +func (m *RedisProtocolOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RedisProtocolOptions.Marshal(b, m, deterministic) +} +func (m *RedisProtocolOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedisProtocolOptions.Merge(m, src) +} +func (m *RedisProtocolOptions) XXX_Size() int { + return xxx_messageInfo_RedisProtocolOptions.Size(m) +} +func (m *RedisProtocolOptions) XXX_DiscardUnknown() { + xxx_messageInfo_RedisProtocolOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_RedisProtocolOptions proto.InternalMessageInfo + +func (m *RedisProtocolOptions) GetAuthPassword() *v3.DataSource { + if m != nil { + return m.AuthPassword + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.extensions.filters.network.redis_proxy.v3.RedisProxy_ConnPoolSettings_ReadPolicy", RedisProxy_ConnPoolSettings_ReadPolicy_name, RedisProxy_ConnPoolSettings_ReadPolicy_value) + proto.RegisterType((*RedisProxy)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProxy") + proto.RegisterType((*RedisProxy_ConnPoolSettings)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.ConnPoolSettings") + proto.RegisterType((*RedisProxy_PrefixRoutes)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes") + proto.RegisterType((*RedisProxy_PrefixRoutes_Route)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route") + proto.RegisterType((*RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy") + proto.RegisterType((*RedisProtocolOptions)(nil), "envoy.extensions.filters.network.redis_proxy.v3.RedisProtocolOptions") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.proto", fileDescriptor_2438571bcc1970a0) +} + +var fileDescriptor_2438571bcc1970a0 = []byte{ + // 1187 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0x1b, 0x45, + 0x1b, 0x7f, 0xd7, 0x49, 0x1c, 0xf7, 0x49, 0xd2, 0xb8, 0x93, 0xb6, 0xaf, 0x89, 0xfa, 0xe1, 0xb6, + 0x1c, 0x52, 0x24, 0xd6, 0xc8, 0x11, 0x42, 0x8a, 0xf8, 0x90, 0x9d, 0x0f, 0x25, 0xd0, 0xb4, 0xd6, + 0xa4, 0x01, 0x15, 0x21, 0x56, 0xe3, 0xdd, 0xb1, 0xbd, 0xea, 0x7a, 0x66, 0x99, 0x99, 0x75, 0x9c, + 0x9e, 0xaa, 0x4a, 0x48, 0x08, 0xc4, 0x95, 0x03, 0x67, 0x4e, 0x08, 0xce, 0x54, 0xdc, 0x91, 0x10, + 0x37, 0xf8, 0x43, 0x38, 0x70, 0xec, 0x09, 0xcd, 0xc7, 0xda, 0x4e, 0x93, 0x02, 0x6d, 0x73, 0xb2, + 0xe7, 0xf9, 0xf8, 0x3d, 0x1f, 0x33, 0xbf, 0xe7, 0x59, 0x68, 0x50, 0x36, 0xe0, 0x87, 0x35, 0x3a, + 0x54, 0x94, 0xc9, 0x98, 0x33, 0x59, 0xeb, 0xc4, 0x89, 0xa2, 0x42, 0xd6, 0x18, 0x55, 0x07, 0x5c, + 0xdc, 0xaf, 0x09, 0x1a, 0xc5, 0x32, 0x48, 0x05, 0x1f, 0x1e, 0xd6, 0x06, 0xab, 0x93, 0x47, 0x3f, + 0x15, 0x5c, 0x71, 0x54, 0x33, 0x10, 0xfe, 0x18, 0xc2, 0x77, 0x10, 0xbe, 0x83, 0xf0, 0x27, 0x7d, + 0x06, 0xab, 0xcb, 0x57, 0x6d, 0xcc, 0x90, 0xb3, 0x4e, 0xdc, 0xad, 0x85, 0x5c, 0x50, 0x0d, 0xdc, + 0x26, 0x92, 0x5a, 0xc4, 0xe5, 0x2b, 0x5d, 0xce, 0xbb, 0x09, 0xad, 0x99, 0x53, 0x3b, 0xeb, 0xd4, + 0xa2, 0x4c, 0x10, 0x15, 0x73, 0xf6, 0x2c, 0xfd, 0x81, 0x20, 0x69, 0xaa, 0x23, 0x5a, 0xfd, 0x0d, + 0x1b, 0x80, 0x30, 0xc6, 0x95, 0xf1, 0x93, 0xb5, 0x88, 0xa6, 0x82, 0x86, 0x93, 0x20, 0xd5, 0x2c, + 0x4a, 0xc9, 0x11, 0x1b, 0xa9, 0xf3, 0x57, 0xf1, 0x20, 0x4f, 0xe3, 0xf2, 0x71, 0x0b, 0x45, 0x54, + 0x96, 0x47, 0xb9, 0x76, 0x4c, 0x3d, 0xa0, 0x42, 0x37, 0x20, 0x66, 0x5d, 0x67, 0xf2, 0xff, 0x01, + 0x49, 0xe2, 0x88, 0x28, 0x5a, 0xcb, 0xff, 0x58, 0xc5, 0xf5, 0xaf, 0x97, 0x00, 0xb0, 0xee, 0x4a, + 0x4b, 0x37, 0x05, 0xad, 0xc0, 0x9c, 0x86, 0x0e, 0x52, 0x41, 0x3b, 0xf1, 0xb0, 0xe2, 0x55, 0xbd, + 0x95, 0x33, 0xcd, 0xd9, 0x27, 0xcd, 0x69, 0x51, 0xa8, 0x7a, 0x18, 0xb4, 0xae, 0x65, 0x54, 0xe8, + 0x0e, 0x5c, 0xed, 0xc5, 0x51, 0x44, 0x59, 0x60, 0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, 0x2c, 0xd2, 0x83, 0x99, 0x44, 0xf9, 0xe8, 0x91, 0x6e, 0x34, 0x2f, 0x39, + 0xa5, 0x66, 0xb8, 0x1b, 0x3d, 0x72, 0x2d, 0xd4, 0xd4, 0xfc, 0x14, 0x3e, 0x79, 0x31, 0x6a, 0xfe, + 0xb7, 0x1e, 0xae, 0xdd, 0xd1, 0x41, 0xde, 0x87, 0xed, 0xd3, 0x0a, 0xb2, 0xb6, 0xa3, 0x01, 0x37, + 0xa0, 0xf9, 0xf2, 0x80, 0x6b, 0x6f, 0x6b, 0xa8, 0xb7, 0xe0, 0xcd, 0x17, 0x82, 0xba, 0xfe, 0xa3, + 0x07, 0xe7, 0xf3, 0xa3, 0xe2, 0x21, 0x4f, 0xee, 0xa4, 0x76, 0x01, 0xec, 0xc2, 0xc2, 0xd1, 0x8f, + 0x00, 0xef, 0x39, 0x3f, 0x02, 0xe6, 0xc9, 0xc4, 0xea, 0x5f, 0xdb, 0xd2, 0x59, 0x36, 0xe0, 0xbd, + 0x17, 0xc8, 0x72, 0x32, 0xad, 0xe6, 0xc7, 0x3f, 0x3f, 0xfc, 0xf5, 0xf7, 0x62, 0xa1, 0x5c, 0x80, + 0x77, 0x62, 0x6e, 0x73, 0xb1, 0x0e, 0xcf, 0x49, 0xa4, 0xe6, 0xe2, 0xb8, 0x09, 0x26, 0x46, 0xcb, + 0x6b, 0x17, 0xcd, 0xa2, 0x5c, 0xfd, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x38, 0x74, 0x0c, 0xbb, 0x1b, + 0x0c, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.validate.go new file mode 100644 index 000000000..701482377 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.validate.go @@ -0,0 +1,621 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.proto + +package envoy_extensions_filters_network_redis_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _redis_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RedisProxy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RedisProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return RedisProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for HiddenEnvoyDeprecatedCluster + + if m.GetSettings() == nil { + return RedisProxyValidationError{ + field: "Settings", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetSettings()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "Settings", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for LatencyInMicros + + if v, ok := interface{}(m.GetPrefixRoutes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "PrefixRoutes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDownstreamAuthPassword()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxyValidationError{ + field: "DownstreamAuthPassword", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProxyValidationError is the validation error returned by +// RedisProxy.Validate if the designated constraints aren't met. +type RedisProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxyValidationError) ErrorName() string { return "RedisProxyValidationError" } + +// Error satisfies the builtin error interface +func (e RedisProxyValidationError) 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 %sRedisProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxyValidationError{} + +// Validate checks the field values on RedisProtocolOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProtocolOptions) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAuthPassword()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProtocolOptionsValidationError{ + field: "AuthPassword", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProtocolOptionsValidationError is the validation error returned by +// RedisProtocolOptions.Validate if the designated constraints aren't met. +type RedisProtocolOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProtocolOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProtocolOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProtocolOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProtocolOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProtocolOptionsValidationError) ErrorName() string { + return "RedisProtocolOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProtocolOptionsValidationError) 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 %sRedisProtocolOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProtocolOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProtocolOptionsValidationError{} + +// Validate checks the field values on RedisProxy_ConnPoolSettings with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_ConnPoolSettings) Validate() error { + if m == nil { + return nil + } + + if m.GetOpTimeout() == nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "OpTimeout", + reason: "value is required", + } + } + + // no validation rules for EnableHashtagging + + // no validation rules for EnableRedirection + + // no validation rules for MaxBufferSizeBeforeFlush + + if v, ok := interface{}(m.GetBufferFlushTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "BufferFlushTimeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMaxUpstreamUnknownConnections()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "MaxUpstreamUnknownConnections", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableCommandStats + + if _, ok := RedisProxy_ConnPoolSettings_ReadPolicy_name[int32(m.GetReadPolicy())]; !ok { + return RedisProxy_ConnPoolSettingsValidationError{ + field: "ReadPolicy", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// RedisProxy_ConnPoolSettingsValidationError is the validation error returned +// by RedisProxy_ConnPoolSettings.Validate if the designated constraints +// aren't met. +type RedisProxy_ConnPoolSettingsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_ConnPoolSettingsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_ConnPoolSettingsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_ConnPoolSettingsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_ConnPoolSettingsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_ConnPoolSettingsValidationError) ErrorName() string { + return "RedisProxy_ConnPoolSettingsValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_ConnPoolSettingsValidationError) 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 %sRedisProxy_ConnPoolSettings.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_ConnPoolSettingsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_ConnPoolSettingsValidationError{} + +// Validate checks the field values on RedisProxy_PrefixRoutes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_PrefixRoutes) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutesValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for CaseInsensitive + + // no validation rules for HiddenEnvoyDeprecatedCatchAllCluster + + if v, ok := interface{}(m.GetCatchAllRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutesValidationError{ + field: "CatchAllRoute", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RedisProxy_PrefixRoutesValidationError is the validation error returned by +// RedisProxy_PrefixRoutes.Validate if the designated constraints aren't met. +type RedisProxy_PrefixRoutesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_PrefixRoutesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutesValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutesValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutesValidationError) 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 %sRedisProxy_PrefixRoutes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutesValidationError{} + +// Validate checks the field values on RedisProxy_PrefixRoutes_Route with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RedisProxy_PrefixRoutes_Route) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Prefix + + // no validation rules for RemovePrefix + + if len(m.GetCluster()) < 1 { + return RedisProxy_PrefixRoutes_RouteValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + for idx, item := range m.GetRequestMirrorPolicy() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutes_RouteValidationError{ + field: fmt.Sprintf("RequestMirrorPolicy[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RedisProxy_PrefixRoutes_RouteValidationError is the validation error +// returned by RedisProxy_PrefixRoutes_Route.Validate if the designated +// constraints aren't met. +type RedisProxy_PrefixRoutes_RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RedisProxy_PrefixRoutes_RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutes_RouteValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutes_RouteValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutes_RouteValidationError) 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 %sRedisProxy_PrefixRoutes_Route.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutes_RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutes_RouteValidationError{} + +// Validate checks the field values on +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetCluster()) < 1 { + return RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRuntimeFraction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{ + field: "RuntimeFraction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ExcludeReadCommands + + return nil +} + +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError is the +// validation error returned by +// RedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.Validate if the +// designated constraints aren't met. +type RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) ErrorName() string { + return "RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError" +} + +// Error satisfies the builtin error interface +func (e RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError) 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 %sRedisProxy_PrefixRoutes_Route_RequestMirrorPolicy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RedisProxy_PrefixRoutes_Route_RequestMirrorPolicyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.go new file mode 100644 index 000000000..dd958df5f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimit struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` + FailureModeDeny bool `protobuf:"varint,4,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` + RateLimitService *v3.RateLimitServiceConfig `protobuf:"bytes,5,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_920e335ffb05829c, []int{0} +} + +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimit.Unmarshal(m, b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimit.Size(m) +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimit) GetStage() uint32 { + if m != nil { + return m.Stage + } + return 0 +} + +func (m *RateLimit) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *RateLimit) GetFailureModeDeny() bool { + if m != nil { + return m.FailureModeDeny + } + return false +} + +func (m *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig { + if m != nil { + return m.RateLimitService + } + return nil +} + +func init() { + proto.RegisterType((*RateLimit)(nil), "envoy.extensions.filters.network.thrift_proxy.filters.ratelimit.v3.RateLimit") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.proto", fileDescriptor_920e335ffb05829c) +} + +var fileDescriptor_920e335ffb05829c = []byte{ + // 436 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xb1, 0x6e, 0xd4, 0x40, + 0x10, 0xd5, 0x9a, 0xdc, 0x25, 0x59, 0x04, 0x1c, 0x6e, 0x30, 0x91, 0x12, 0x0c, 0x34, 0xa7, 0x14, + 0xbb, 0x4a, 0xae, 0x41, 0x69, 0x90, 0x4c, 0x4a, 0x90, 0x4e, 0xce, 0x07, 0x58, 0x9b, 0x78, 0xec, + 0xac, 0xf0, 0xed, 0x9c, 0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b, 0xc5, + 0xce, 0xd9, 0xe5, 0xd8, 0x6d, 0x78, 0xf6, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xb1, 0x3f, 0xe9, + 0x0a, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.validate.go new file mode 100644 index 000000000..89c5eeb74 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.pb.validate.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.proto + +package envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rate_limit_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimit with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RateLimit) Validate() error { + if m == nil { + return nil + } + + if len(m.GetDomain()) < 1 { + return RateLimitValidationError{ + field: "Domain", + reason: "value length must be at least 1 bytes", + } + } + + if m.GetStage() > 10 { + return RateLimitValidationError{ + field: "Stage", + reason: "value must be less than or equal to 10", + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for FailureModeDeny + + if m.GetRateLimitService() == nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRateLimitService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitValidationError{ + field: "RateLimitService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RateLimitValidationError is the validation error returned by +// RateLimit.Validate if the designated constraints aren't met. +type RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitValidationError) ErrorName() string { return "RateLimitValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitValidationError) 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 %sRateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.go new file mode 100644 index 000000000..caeffbf73 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.go @@ -0,0 +1,497 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/v3/route.proto + +package envoy_extensions_filters_network_thrift_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RouteConfiguration struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteConfiguration) Reset() { *m = RouteConfiguration{} } +func (m *RouteConfiguration) String() string { return proto.CompactTextString(m) } +func (*RouteConfiguration) ProtoMessage() {} +func (*RouteConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{0} +} + +func (m *RouteConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteConfiguration.Unmarshal(m, b) +} +func (m *RouteConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteConfiguration.Marshal(b, m, deterministic) +} +func (m *RouteConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteConfiguration.Merge(m, src) +} +func (m *RouteConfiguration) XXX_Size() int { + return xxx_messageInfo_RouteConfiguration.Size(m) +} +func (m *RouteConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_RouteConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteConfiguration proto.InternalMessageInfo + +func (m *RouteConfiguration) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RouteConfiguration) GetRoutes() []*Route { + if m != nil { + return m.Routes + } + return nil +} + +type Route struct { + Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Route) Reset() { *m = Route{} } +func (m *Route) String() string { return proto.CompactTextString(m) } +func (*Route) ProtoMessage() {} +func (*Route) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{1} +} + +func (m *Route) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Route.Unmarshal(m, b) +} +func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Route.Marshal(b, m, deterministic) +} +func (m *Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_Route.Merge(m, src) +} +func (m *Route) XXX_Size() int { + return xxx_messageInfo_Route.Size(m) +} +func (m *Route) XXX_DiscardUnknown() { + xxx_messageInfo_Route.DiscardUnknown(m) +} + +var xxx_messageInfo_Route proto.InternalMessageInfo + +func (m *Route) GetMatch() *RouteMatch { + if m != nil { + return m.Match + } + return nil +} + +func (m *Route) GetRoute() *RouteAction { + if m != nil { + return m.Route + } + return nil +} + +type RouteMatch struct { + // Types that are valid to be assigned to MatchSpecifier: + // *RouteMatch_MethodName + // *RouteMatch_ServiceName + MatchSpecifier isRouteMatch_MatchSpecifier `protobuf_oneof:"match_specifier"` + Invert bool `protobuf:"varint,3,opt,name=invert,proto3" json:"invert,omitempty"` + Headers []*v3.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteMatch) Reset() { *m = RouteMatch{} } +func (m *RouteMatch) String() string { return proto.CompactTextString(m) } +func (*RouteMatch) ProtoMessage() {} +func (*RouteMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{2} +} + +func (m *RouteMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteMatch.Unmarshal(m, b) +} +func (m *RouteMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteMatch.Marshal(b, m, deterministic) +} +func (m *RouteMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteMatch.Merge(m, src) +} +func (m *RouteMatch) XXX_Size() int { + return xxx_messageInfo_RouteMatch.Size(m) +} +func (m *RouteMatch) XXX_DiscardUnknown() { + xxx_messageInfo_RouteMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteMatch proto.InternalMessageInfo + +type isRouteMatch_MatchSpecifier interface { + isRouteMatch_MatchSpecifier() +} + +type RouteMatch_MethodName struct { + MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3,oneof"` +} + +type RouteMatch_ServiceName struct { + ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3,oneof"` +} + +func (*RouteMatch_MethodName) isRouteMatch_MatchSpecifier() {} + +func (*RouteMatch_ServiceName) isRouteMatch_MatchSpecifier() {} + +func (m *RouteMatch) GetMatchSpecifier() isRouteMatch_MatchSpecifier { + if m != nil { + return m.MatchSpecifier + } + return nil +} + +func (m *RouteMatch) GetMethodName() string { + if x, ok := m.GetMatchSpecifier().(*RouteMatch_MethodName); ok { + return x.MethodName + } + return "" +} + +func (m *RouteMatch) GetServiceName() string { + if x, ok := m.GetMatchSpecifier().(*RouteMatch_ServiceName); ok { + return x.ServiceName + } + return "" +} + +func (m *RouteMatch) GetInvert() bool { + if m != nil { + return m.Invert + } + return false +} + +func (m *RouteMatch) GetHeaders() []*v3.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteMatch) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteMatch_MethodName)(nil), + (*RouteMatch_ServiceName)(nil), + } +} + +type RouteAction struct { + // Types that are valid to be assigned to ClusterSpecifier: + // *RouteAction_Cluster + // *RouteAction_WeightedClusters + // *RouteAction_ClusterHeader + ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"` + MetadataMatch *v31.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + RateLimits []*v3.RateLimit `protobuf:"bytes,4,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"` + StripServiceName bool `protobuf:"varint,5,opt,name=strip_service_name,json=stripServiceName,proto3" json:"strip_service_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RouteAction) Reset() { *m = RouteAction{} } +func (m *RouteAction) String() string { return proto.CompactTextString(m) } +func (*RouteAction) ProtoMessage() {} +func (*RouteAction) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{3} +} + +func (m *RouteAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RouteAction.Unmarshal(m, b) +} +func (m *RouteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RouteAction.Marshal(b, m, deterministic) +} +func (m *RouteAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RouteAction.Merge(m, src) +} +func (m *RouteAction) XXX_Size() int { + return xxx_messageInfo_RouteAction.Size(m) +} +func (m *RouteAction) XXX_DiscardUnknown() { + xxx_messageInfo_RouteAction.DiscardUnknown(m) +} + +var xxx_messageInfo_RouteAction proto.InternalMessageInfo + +type isRouteAction_ClusterSpecifier interface { + isRouteAction_ClusterSpecifier() +} + +type RouteAction_Cluster struct { + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"` +} + +type RouteAction_WeightedClusters struct { + WeightedClusters *WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"` +} + +type RouteAction_ClusterHeader struct { + ClusterHeader string `protobuf:"bytes,6,opt,name=cluster_header,json=clusterHeader,proto3,oneof"` +} + +func (*RouteAction_Cluster) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_WeightedClusters) isRouteAction_ClusterSpecifier() {} + +func (*RouteAction_ClusterHeader) isRouteAction_ClusterSpecifier() {} + +func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier { + if m != nil { + return m.ClusterSpecifier + } + return nil +} + +func (m *RouteAction) GetCluster() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_Cluster); ok { + return x.Cluster + } + return "" +} + +func (m *RouteAction) GetWeightedClusters() *WeightedCluster { + if x, ok := m.GetClusterSpecifier().(*RouteAction_WeightedClusters); ok { + return x.WeightedClusters + } + return nil +} + +func (m *RouteAction) GetClusterHeader() string { + if x, ok := m.GetClusterSpecifier().(*RouteAction_ClusterHeader); ok { + return x.ClusterHeader + } + return "" +} + +func (m *RouteAction) GetMetadataMatch() *v31.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func (m *RouteAction) GetRateLimits() []*v3.RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +func (m *RouteAction) GetStripServiceName() bool { + if m != nil { + return m.StripServiceName + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RouteAction) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RouteAction_Cluster)(nil), + (*RouteAction_WeightedClusters)(nil), + (*RouteAction_ClusterHeader)(nil), + } +} + +type WeightedCluster struct { + Clusters []*WeightedCluster_ClusterWeight `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WeightedCluster) Reset() { *m = WeightedCluster{} } +func (m *WeightedCluster) String() string { return proto.CompactTextString(m) } +func (*WeightedCluster) ProtoMessage() {} +func (*WeightedCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{4} +} + +func (m *WeightedCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WeightedCluster.Unmarshal(m, b) +} +func (m *WeightedCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WeightedCluster.Marshal(b, m, deterministic) +} +func (m *WeightedCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_WeightedCluster.Merge(m, src) +} +func (m *WeightedCluster) XXX_Size() int { + return xxx_messageInfo_WeightedCluster.Size(m) +} +func (m *WeightedCluster) XXX_DiscardUnknown() { + xxx_messageInfo_WeightedCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_WeightedCluster proto.InternalMessageInfo + +func (m *WeightedCluster) GetClusters() []*WeightedCluster_ClusterWeight { + if m != nil { + return m.Clusters + } + return nil +} + +type WeightedCluster_ClusterWeight struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Weight *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` + MetadataMatch *v31.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WeightedCluster_ClusterWeight) Reset() { *m = WeightedCluster_ClusterWeight{} } +func (m *WeightedCluster_ClusterWeight) String() string { return proto.CompactTextString(m) } +func (*WeightedCluster_ClusterWeight) ProtoMessage() {} +func (*WeightedCluster_ClusterWeight) Descriptor() ([]byte, []int) { + return fileDescriptor_77b9ee5a656d870d, []int{4, 0} +} + +func (m *WeightedCluster_ClusterWeight) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Unmarshal(m, b) +} +func (m *WeightedCluster_ClusterWeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Marshal(b, m, deterministic) +} +func (m *WeightedCluster_ClusterWeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_WeightedCluster_ClusterWeight.Merge(m, src) +} +func (m *WeightedCluster_ClusterWeight) XXX_Size() int { + return xxx_messageInfo_WeightedCluster_ClusterWeight.Size(m) +} +func (m *WeightedCluster_ClusterWeight) XXX_DiscardUnknown() { + xxx_messageInfo_WeightedCluster_ClusterWeight.DiscardUnknown(m) +} + +var xxx_messageInfo_WeightedCluster_ClusterWeight proto.InternalMessageInfo + +func (m *WeightedCluster_ClusterWeight) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *WeightedCluster_ClusterWeight) GetWeight() *wrappers.UInt32Value { + if m != nil { + return m.Weight + } + return nil +} + +func (m *WeightedCluster_ClusterWeight) GetMetadataMatch() *v31.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func init() { + proto.RegisterType((*RouteConfiguration)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration") + proto.RegisterType((*Route)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.Route") + proto.RegisterType((*RouteMatch)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.RouteMatch") + proto.RegisterType((*RouteAction)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.RouteAction") + proto.RegisterType((*WeightedCluster)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.WeightedCluster") + proto.RegisterType((*WeightedCluster_ClusterWeight)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.WeightedCluster.ClusterWeight") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/thrift_proxy/v3/route.proto", fileDescriptor_77b9ee5a656d870d) +} + +var fileDescriptor_77b9ee5a656d870d = []byte{ + // 803 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xf3, 0x44, + 0x14, 0xad, 0x9d, 0x26, 0x0d, 0x37, 0xb4, 0x4d, 0x67, 0x51, 0xa2, 0x02, 0x25, 0x4d, 0x59, 0x44, + 0xa8, 0xb2, 0x4b, 0xb2, 0xa8, 0x88, 0xda, 0xa0, 0x24, 0x05, 0x05, 0x41, 0x69, 0x31, 0xa2, 0x6c, + 0x40, 0xd6, 0xd4, 0x99, 0x24, 0x16, 0x89, 0xc7, 0x1a, 0x8f, 0x9d, 0x76, 0xc7, 0x82, 0x05, 0x74, + 0xc9, 0x92, 0x47, 0x61, 0x0f, 0x62, 0xcb, 0x13, 0xf0, 0x06, 0xac, 0x51, 0x57, 0x68, 0x7e, 0x9c, + 0x9f, 0x56, 0xfd, 0xa4, 0xa4, 0xdf, 0x2a, 0x93, 0x99, 0x7b, 0xcf, 0x3d, 0xf7, 0x9c, 0x3b, 0x63, + 0x38, 0x25, 0x41, 0x42, 0xef, 0x6c, 0x72, 0xcb, 0x49, 0x10, 0xf9, 0x34, 0x88, 0xec, 0xbe, 0x3f, + 0xe2, 0x84, 0x45, 0x76, 0x40, 0xf8, 0x84, 0xb2, 0x1f, 0x6c, 0x3e, 0x64, 0x7e, 0x9f, 0xbb, 0x21, + 0xa3, 0xb7, 0x77, 0x76, 0x52, 0xb7, 0x19, 0x8d, 0x39, 0xb1, 0x42, 0x46, 0x39, 0x45, 0xc7, 0x32, + 0xdb, 0x9a, 0x65, 0x5b, 0x3a, 0xdb, 0xd2, 0xd9, 0xd6, 0x7c, 0xb6, 0x95, 0xd4, 0xf7, 0xde, 0x53, + 0xf5, 0x3c, 0x1a, 0xf4, 0xfd, 0x81, 0xed, 0x51, 0x46, 0x04, 0xe6, 0x0d, 0x8e, 0x34, 0xe4, 0xde, + 0xd1, 0x42, 0x80, 0x2c, 0x36, 0xad, 0xea, 0x7a, 0x74, 0x1c, 0xd2, 0x80, 0x04, 0x3c, 0xd2, 0xd1, + 0xfb, 0x03, 0x4a, 0x07, 0x23, 0x62, 0xcb, 0x7f, 0x37, 0x71, 0xdf, 0x9e, 0x30, 0x1c, 0x86, 0x82, + 0x80, 0x3a, 0x7f, 0x37, 0xee, 0x85, 0xd8, 0xc6, 0x41, 0x40, 0x39, 0xe6, 0xb2, 0xbd, 0x88, 0x63, + 0x1e, 0xa7, 0xc7, 0x07, 0x4f, 0x8e, 0x13, 0xc2, 0x44, 0x23, 0x7e, 0x30, 0xd0, 0x21, 0x6f, 0x25, + 0x78, 0xe4, 0xf7, 0xb0, 0x60, 0xa1, 0x17, 0xea, 0xa0, 0xf2, 0xa7, 0x01, 0xc8, 0x11, 0xac, 0x3a, + 0x92, 0x6a, 0xcc, 0x24, 0x02, 0x42, 0xb0, 0x1e, 0xe0, 0x31, 0x29, 0x19, 0x65, 0xa3, 0xfa, 0x86, + 0x23, 0xd7, 0xe8, 0x12, 0x72, 0x92, 0x7f, 0x54, 0x32, 0xcb, 0x99, 0x6a, 0xa1, 0x76, 0x62, 0x2d, + 0xab, 0x9b, 0x25, 0x2b, 0x39, 0x1a, 0xa6, 0xf1, 0xf9, 0x6f, 0x7f, 0xfc, 0xbc, 0xff, 0x29, 0x9c, + 0x2b, 0x18, 0xa5, 0x95, 0x86, 0x78, 0x06, 0xa1, 0x86, 0x47, 0xe1, 0x10, 0x7f, 0x68, 0x3d, 0x65, + 0x5c, 0xf9, 0xc9, 0x84, 0xac, 0xdc, 0x46, 0xdf, 0x41, 0x76, 0x8c, 0xb9, 0x37, 0x94, 0xe4, 0x0b, + 0xb5, 0xd3, 0x15, 0x69, 0x5e, 0x08, 0x8c, 0x76, 0xfe, 0xa1, 0x9d, 0xbd, 0x37, 0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 0x2b, 0xfd, 0x24, 0x58, 0xdf, 0x7c, + 0x16, 0xf0, 0x7a, 0xed, 0x1a, 0x8f, 0x62, 0x22, 0x93, 0x3f, 0x30, 0xab, 0x86, 0xa3, 0x93, 0x5e, + 0xd3, 0x40, 0x34, 0xae, 0x85, 0x3f, 0x5f, 0xc1, 0xe5, 0xf2, 0xfe, 0xbc, 0x52, 0xa0, 0x46, 0x57, + 0xe0, 0x76, 0xa0, 0xf5, 0x62, 0xdc, 0xf6, 0xf5, 0xef, 0x3f, 0xfe, 0xf5, 0x77, 0xce, 0x2c, 0x9a, + 0xd0, 0xf4, 0xa9, 0x6a, 0x4e, 0x65, 0x2c, 0x6b, 0x69, 0x5b, 0xbd, 0x92, 0x57, 0x42, 0xde, 0x2b, + 0xe3, 0x26, 0x27, 0x75, 0xae, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x64, 0xc8, 0x3c, 0x59, 0x49, + 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.validate.go new file mode 100644 index 000000000..cfa85309b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/route.pb.validate.go @@ -0,0 +1,631 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/v3/route.proto + +package envoy_extensions_filters_network_thrift_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _route_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RouteConfiguration with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RouteConfiguration) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + for idx, item := range m.GetRoutes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteConfigurationValidationError{ + field: fmt.Sprintf("Routes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on Route with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Route) Validate() error { + if m == nil { + return nil + } + + if m.GetMatch() == nil { + return RouteValidationError{ + field: "Match", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Match", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetRoute() == nil { + return RouteValidationError{ + field: "Route", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetRoute()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteValidationError{ + field: "Route", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RouteValidationError is the validation error returned by Route.Validate if +// the designated constraints aren't met. +type RouteValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteValidationError) ErrorName() string { return "RouteValidationError" } + +// Error satisfies the builtin error interface +func (e RouteValidationError) 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 %sRoute.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteValidationError{} + +// Validate checks the field values on RouteMatch with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RouteMatch) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Invert + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.MatchSpecifier.(type) { + + case *RouteMatch_MethodName: + // no validation rules for MethodName + + case *RouteMatch_ServiceName: + // no validation rules for ServiceName + + default: + return RouteMatchValidationError{ + field: "MatchSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// RouteMatchValidationError is the validation error returned by +// RouteMatch.Validate if the designated constraints aren't met. +type RouteMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RouteMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RouteMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RouteMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RouteMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RouteMatchValidationError) ErrorName() string { return "RouteMatchValidationError" } + +// Error satisfies the builtin error interface +func (e RouteMatchValidationError) 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 %sRouteMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RouteMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RouteMatchValidationError{} + +// Validate checks the field values on RouteAction with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RouteAction) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteActionValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetRateLimits() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RouteActionValidationError{ + field: fmt.Sprintf("RateLimits[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for StripServiceName + + switch m.ClusterSpecifier.(type) { + + case *RouteAction_Cluster: + + if len(m.GetCluster()) < 1 { + return RouteActionValidationError{ + field: "Cluster", + reason: "value length must be at least 1 bytes", + } + } + + case *RouteAction_WeightedClusters: + + 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, + } + } + } + + case *RouteAction_ClusterHeader: + + if len(m.GetClusterHeader()) < 1 { + return RouteActionValidationError{ + field: "ClusterHeader", + reason: "value length must be at least 1 bytes", + } + } + + default: + return RouteActionValidationError{ + field: "ClusterSpecifier", + reason: "value is required", + } + + } + + return nil +} + +// 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{} + +// Validate checks the field values on WeightedCluster with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WeightedCluster) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return WeightedClusterValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetClusters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WeightedClusterValidationError{ + field: fmt.Sprintf("Clusters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WeightedClusterValidationError is the validation error returned by +// WeightedCluster.Validate if the designated constraints aren't met. +type WeightedClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WeightedClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WeightedClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WeightedClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WeightedClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WeightedClusterValidationError) ErrorName() string { return "WeightedClusterValidationError" } + +// Error satisfies the builtin error interface +func (e WeightedClusterValidationError) 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 %sWeightedCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WeightedClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WeightedClusterValidationError{} + +// Validate checks the field values on WeightedCluster_ClusterWeight with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WeightedCluster_ClusterWeight) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return WeightedCluster_ClusterWeightValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if wrapper := m.GetWeight(); wrapper != nil { + + if wrapper.GetValue() < 1 { + return WeightedCluster_ClusterWeightValidationError{ + field: "Weight", + reason: "value must be greater than or equal to 1", + } + } + + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WeightedCluster_ClusterWeightValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WeightedCluster_ClusterWeightValidationError is the validation error +// returned by WeightedCluster_ClusterWeight.Validate if the designated +// constraints aren't met. +type WeightedCluster_ClusterWeightValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WeightedCluster_ClusterWeightValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WeightedCluster_ClusterWeightValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WeightedCluster_ClusterWeightValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WeightedCluster_ClusterWeightValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WeightedCluster_ClusterWeightValidationError) ErrorName() string { + return "WeightedCluster_ClusterWeightValidationError" +} + +// Error satisfies the builtin error interface +func (e WeightedCluster_ClusterWeightValidationError) 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 %sWeightedCluster_ClusterWeight.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WeightedCluster_ClusterWeightValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WeightedCluster_ClusterWeightValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.go new file mode 100644 index 000000000..172bb2e8f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.go @@ -0,0 +1,356 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.proto + +package envoy_extensions_filters_network_thrift_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TransportType int32 + +const ( + TransportType_AUTO_TRANSPORT TransportType = 0 + TransportType_FRAMED TransportType = 1 + TransportType_UNFRAMED TransportType = 2 + TransportType_HEADER TransportType = 3 +) + +var TransportType_name = map[int32]string{ + 0: "AUTO_TRANSPORT", + 1: "FRAMED", + 2: "UNFRAMED", + 3: "HEADER", +} + +var TransportType_value = map[string]int32{ + "AUTO_TRANSPORT": 0, + "FRAMED": 1, + "UNFRAMED": 2, + "HEADER": 3, +} + +func (x TransportType) String() string { + return proto.EnumName(TransportType_name, int32(x)) +} + +func (TransportType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a5befaf4ce0c1223, []int{0} +} + +type ProtocolType int32 + +const ( + ProtocolType_AUTO_PROTOCOL ProtocolType = 0 + ProtocolType_BINARY ProtocolType = 1 + ProtocolType_LAX_BINARY ProtocolType = 2 + ProtocolType_COMPACT ProtocolType = 3 + ProtocolType_TWITTER ProtocolType = 4 +) + +var ProtocolType_name = map[int32]string{ + 0: "AUTO_PROTOCOL", + 1: "BINARY", + 2: "LAX_BINARY", + 3: "COMPACT", + 4: "TWITTER", +} + +var ProtocolType_value = map[string]int32{ + "AUTO_PROTOCOL": 0, + "BINARY": 1, + "LAX_BINARY": 2, + "COMPACT": 3, + "TWITTER": 4, +} + +func (x ProtocolType) String() string { + return proto.EnumName(ProtocolType_name, int32(x)) +} + +func (ProtocolType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a5befaf4ce0c1223, []int{1} +} + +type ThriftProxy struct { + Transport TransportType `protobuf:"varint,2,opt,name=transport,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.TransportType" json:"transport,omitempty"` + Protocol ProtocolType `protobuf:"varint,3,opt,name=protocol,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType" json:"protocol,omitempty"` + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + RouteConfig *RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"` + ThriftFilters []*ThriftFilter `protobuf:"bytes,5,rep,name=thrift_filters,json=thriftFilters,proto3" json:"thrift_filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftProxy) Reset() { *m = ThriftProxy{} } +func (m *ThriftProxy) String() string { return proto.CompactTextString(m) } +func (*ThriftProxy) ProtoMessage() {} +func (*ThriftProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_a5befaf4ce0c1223, []int{0} +} + +func (m *ThriftProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftProxy.Unmarshal(m, b) +} +func (m *ThriftProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftProxy.Marshal(b, m, deterministic) +} +func (m *ThriftProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftProxy.Merge(m, src) +} +func (m *ThriftProxy) XXX_Size() int { + return xxx_messageInfo_ThriftProxy.Size(m) +} +func (m *ThriftProxy) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftProxy proto.InternalMessageInfo + +func (m *ThriftProxy) GetTransport() TransportType { + if m != nil { + return m.Transport + } + return TransportType_AUTO_TRANSPORT +} + +func (m *ThriftProxy) GetProtocol() ProtocolType { + if m != nil { + return m.Protocol + } + return ProtocolType_AUTO_PROTOCOL +} + +func (m *ThriftProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ThriftProxy) GetRouteConfig() *RouteConfiguration { + if m != nil { + return m.RouteConfig + } + return nil +} + +func (m *ThriftProxy) GetThriftFilters() []*ThriftFilter { + if m != nil { + return m.ThriftFilters + } + return nil +} + +type ThriftFilter struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to ConfigType: + // *ThriftFilter_HiddenEnvoyDeprecatedConfig + // *ThriftFilter_TypedConfig + ConfigType isThriftFilter_ConfigType `protobuf_oneof:"config_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftFilter) Reset() { *m = ThriftFilter{} } +func (m *ThriftFilter) String() string { return proto.CompactTextString(m) } +func (*ThriftFilter) ProtoMessage() {} +func (*ThriftFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_a5befaf4ce0c1223, []int{1} +} + +func (m *ThriftFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftFilter.Unmarshal(m, b) +} +func (m *ThriftFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftFilter.Marshal(b, m, deterministic) +} +func (m *ThriftFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftFilter.Merge(m, src) +} +func (m *ThriftFilter) XXX_Size() int { + return xxx_messageInfo_ThriftFilter.Size(m) +} +func (m *ThriftFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftFilter proto.InternalMessageInfo + +func (m *ThriftFilter) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isThriftFilter_ConfigType interface { + isThriftFilter_ConfigType() +} + +type ThriftFilter_HiddenEnvoyDeprecatedConfig struct { + HiddenEnvoyDeprecatedConfig *_struct.Struct `protobuf:"bytes,2,opt,name=hidden_envoy_deprecated_config,json=hiddenEnvoyDeprecatedConfig,proto3,oneof"` +} + +type ThriftFilter_TypedConfig struct { + TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` +} + +func (*ThriftFilter_HiddenEnvoyDeprecatedConfig) isThriftFilter_ConfigType() {} + +func (*ThriftFilter_TypedConfig) isThriftFilter_ConfigType() {} + +func (m *ThriftFilter) GetConfigType() isThriftFilter_ConfigType { + if m != nil { + return m.ConfigType + } + return nil +} + +// Deprecated: Do not use. +func (m *ThriftFilter) GetHiddenEnvoyDeprecatedConfig() *_struct.Struct { + if x, ok := m.GetConfigType().(*ThriftFilter_HiddenEnvoyDeprecatedConfig); ok { + return x.HiddenEnvoyDeprecatedConfig + } + return nil +} + +func (m *ThriftFilter) GetTypedConfig() *any.Any { + if x, ok := m.GetConfigType().(*ThriftFilter_TypedConfig); ok { + return x.TypedConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ThriftFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ThriftFilter_HiddenEnvoyDeprecatedConfig)(nil), + (*ThriftFilter_TypedConfig)(nil), + } +} + +type ThriftProtocolOptions struct { + Transport TransportType `protobuf:"varint,1,opt,name=transport,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.TransportType" json:"transport,omitempty"` + Protocol ProtocolType `protobuf:"varint,2,opt,name=protocol,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThriftProtocolOptions) Reset() { *m = ThriftProtocolOptions{} } +func (m *ThriftProtocolOptions) String() string { return proto.CompactTextString(m) } +func (*ThriftProtocolOptions) ProtoMessage() {} +func (*ThriftProtocolOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_a5befaf4ce0c1223, []int{2} +} + +func (m *ThriftProtocolOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThriftProtocolOptions.Unmarshal(m, b) +} +func (m *ThriftProtocolOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThriftProtocolOptions.Marshal(b, m, deterministic) +} +func (m *ThriftProtocolOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThriftProtocolOptions.Merge(m, src) +} +func (m *ThriftProtocolOptions) XXX_Size() int { + return xxx_messageInfo_ThriftProtocolOptions.Size(m) +} +func (m *ThriftProtocolOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ThriftProtocolOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ThriftProtocolOptions proto.InternalMessageInfo + +func (m *ThriftProtocolOptions) GetTransport() TransportType { + if m != nil { + return m.Transport + } + return TransportType_AUTO_TRANSPORT +} + +func (m *ThriftProtocolOptions) GetProtocol() ProtocolType { + if m != nil { + return m.Protocol + } + return ProtocolType_AUTO_PROTOCOL +} + +func init() { + proto.RegisterEnum("envoy.extensions.filters.network.thrift_proxy.v3.TransportType", TransportType_name, TransportType_value) + proto.RegisterEnum("envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType", ProtocolType_name, ProtocolType_value) + proto.RegisterType((*ThriftProxy)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.ThriftProxy") + proto.RegisterType((*ThriftFilter)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter") + proto.RegisterType((*ThriftProtocolOptions)(nil), "envoy.extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.proto", fileDescriptor_a5befaf4ce0c1223) +} + +var fileDescriptor_a5befaf4ce0c1223 = []byte{ + // 684 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0x6b, 0x27, 0xfd, 0x37, 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 0x71, 0xd4, 0xa8, 0xab, 0x12, 0x2a, 0xc0, 0xd2, 0x49, + 0x2b, 0x8b, 0xe4, 0x24, 0x73, 0xd0, 0x30, 0xea, 0x0d, 0xac, 0xe6, 0x36, 0x4f, 0xa1, 0x30, 0x29, + 0x1f, 0xdd, 0x81, 0xa2, 0x20, 0xd9, 0xd8, 0x72, 0xac, 0x9a, 0x75, 0x98, 0x82, 0xcc, 0x66, 0xcb, + 0xc0, 0xaf, 0x55, 0x09, 0x95, 0x00, 0x0e, 0x8d, 0x57, 0x6e, 0x16, 0xcb, 0x48, 0x81, 0xc5, 0x9a, + 0x75, 0x64, 0x1b, 0x35, 0x47, 0xcd, 0x25, 0x81, 0x73, 0xda, 0x74, 0x9c, 0x06, 0x56, 0xf3, 0xe6, + 0x9b, 0xef, 0x1f, 0x7e, 0xfe, 0x5a, 0x90, 0x55, 0x19, 0x76, 0x03, 0x9a, 0x7a, 0x9a, 0xf6, 0x36, + 0xab, 0xbd, 0xa6, 0x3a, 0xb1, 0x56, 0x42, 0xab, 0x2d, 0x9d, 0x2d, 0x08, 0x6f, 0xb7, 0x7f, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xd9, 0x9e, 0x4b, 0x0c, 0xce, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.validate.go new file mode 100644 index 000000000..4c602a5c8 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.validate.go @@ -0,0 +1,329 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.proto + +package envoy_extensions_filters_network_thrift_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _thrift_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ThriftProxy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ThriftProxy) Validate() error { + if m == nil { + return nil + } + + if _, ok := TransportType_name[int32(m.GetTransport())]; !ok { + return ThriftProxyValidationError{ + field: "Transport", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocol())]; !ok { + return ThriftProxyValidationError{ + field: "Protocol", + reason: "value must be one of the defined enum values", + } + } + + if len(m.GetStatPrefix()) < 1 { + return ThriftProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftProxyValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetThriftFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftProxyValidationError{ + field: fmt.Sprintf("ThriftFilters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ThriftProxyValidationError is the validation error returned by +// ThriftProxy.Validate if the designated constraints aren't met. +type ThriftProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftProxyValidationError) ErrorName() string { return "ThriftProxyValidationError" } + +// Error satisfies the builtin error interface +func (e ThriftProxyValidationError) 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 %sThriftProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftProxyValidationError{} + +// Validate checks the field values on ThriftFilter with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ThriftFilter) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return ThriftFilterValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + switch m.ConfigType.(type) { + + case *ThriftFilter_HiddenEnvoyDeprecatedConfig: + + if v, ok := interface{}(m.GetHiddenEnvoyDeprecatedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftFilterValidationError{ + field: "HiddenEnvoyDeprecatedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ThriftFilter_TypedConfig: + + if v, ok := interface{}(m.GetTypedConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ThriftFilterValidationError{ + field: "TypedConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ThriftFilterValidationError is the validation error returned by +// ThriftFilter.Validate if the designated constraints aren't met. +type ThriftFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftFilterValidationError) ErrorName() string { return "ThriftFilterValidationError" } + +// Error satisfies the builtin error interface +func (e ThriftFilterValidationError) 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 %sThriftFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftFilterValidationError{} + +// Validate checks the field values on ThriftProtocolOptions with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ThriftProtocolOptions) Validate() error { + if m == nil { + return nil + } + + if _, ok := TransportType_name[int32(m.GetTransport())]; !ok { + return ThriftProtocolOptionsValidationError{ + field: "Transport", + reason: "value must be one of the defined enum values", + } + } + + if _, ok := ProtocolType_name[int32(m.GetProtocol())]; !ok { + return ThriftProtocolOptionsValidationError{ + field: "Protocol", + reason: "value must be one of the defined enum values", + } + } + + return nil +} + +// ThriftProtocolOptionsValidationError is the validation error returned by +// ThriftProtocolOptions.Validate if the designated constraints aren't met. +type ThriftProtocolOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ThriftProtocolOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ThriftProtocolOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ThriftProtocolOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ThriftProtocolOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ThriftProtocolOptionsValidationError) ErrorName() string { + return "ThriftProtocolOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e ThriftProtocolOptionsValidationError) 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 %sThriftProtocolOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ThriftProtocolOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ThriftProtocolOptionsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.go new file mode 100644 index 000000000..c05f32a59 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.go @@ -0,0 +1,115 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.proto + +package envoy_extensions_filters_network_zookeeper_proxy_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ZooKeeperProxy struct { + StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` + AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"` + MaxPacketBytes *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=max_packet_bytes,json=maxPacketBytes,proto3" json:"max_packet_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ZooKeeperProxy) Reset() { *m = ZooKeeperProxy{} } +func (m *ZooKeeperProxy) String() string { return proto.CompactTextString(m) } +func (*ZooKeeperProxy) ProtoMessage() {} +func (*ZooKeeperProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_8c9f1bab8219a3e6, []int{0} +} + +func (m *ZooKeeperProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ZooKeeperProxy.Unmarshal(m, b) +} +func (m *ZooKeeperProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ZooKeeperProxy.Marshal(b, m, deterministic) +} +func (m *ZooKeeperProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZooKeeperProxy.Merge(m, src) +} +func (m *ZooKeeperProxy) XXX_Size() int { + return xxx_messageInfo_ZooKeeperProxy.Size(m) +} +func (m *ZooKeeperProxy) XXX_DiscardUnknown() { + xxx_messageInfo_ZooKeeperProxy.DiscardUnknown(m) +} + +var xxx_messageInfo_ZooKeeperProxy proto.InternalMessageInfo + +func (m *ZooKeeperProxy) GetStatPrefix() string { + if m != nil { + return m.StatPrefix + } + return "" +} + +func (m *ZooKeeperProxy) GetAccessLog() string { + if m != nil { + return m.AccessLog + } + return "" +} + +func (m *ZooKeeperProxy) GetMaxPacketBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxPacketBytes + } + return nil +} + +func init() { + proto.RegisterType((*ZooKeeperProxy)(nil), "envoy.extensions.filters.network.zookeeper_proxy.v3.ZooKeeperProxy") +} + +func init() { + proto.RegisterFile("envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.proto", fileDescriptor_8c9f1bab8219a3e6) +} + +var fileDescriptor_8c9f1bab8219a3e6 = []byte{ + // 370 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xc1, 0xaa, 0xd3, 0x40, + 0x14, 0x86, 0x49, 0x94, 0x4a, 0xa7, 0x50, 0x4a, 0x5c, 0x58, 0x8a, 0x2d, 0xd5, 0x55, 0x57, 0x33, + 0xb4, 0xd9, 0xb9, 0x33, 0xa2, 0x50, 0x75, 0x11, 0x0a, 0xba, 0xe8, 0x26, 0x4c, 0xd2, 0x93, 0x18, + 0x9a, 0xce, 0x19, 0x26, 0x93, 0x34, 0x75, 0xe5, 0xd2, 0x67, 0xf0, 0x51, 0xdc, 0x0b, 0x6e, 0x7d, + 0x10, 0x5f, 0xc0, 0x95, 0xcc, 0x24, 0xe1, 0x72, 0x7b, 0xb9, 0x9b, 0xbb, 0x0b, 0xff, 0x7f, 0xfe, + 0x2f, 0xe7, 0x3f, 0x43, 0xb6, 0x20, 0x6a, 0xbc, 0x30, 0x68, 0x34, 0x88, 0x32, 0x47, 0x51, 0xb2, + 0x34, 0x2f, 0x34, 0xa8, 0x92, 0x09, 0xd0, 0x67, 0x54, 0x47, 0xf6, 0x15, 0xf1, 0x08, 0x20, 0x41, + 0x45, 0x52, 0x61, 0x73, 0x61, 0xb5, 0x7f, 0x2d, 0x51, 0xa9, 0x50, 0xa3, 0xe7, 0x5b, 0x14, 0xbd, + 0x41, 0xd1, 0x0e, 0x45, 0x3b, 0x14, 0xbd, 0xce, 0xd5, 0xfe, 0x6c, 0x91, 0x21, 0x66, 0x05, 0x30, + 0x8b, 0x88, 0xab, 0x94, 0x9d, 0x15, 0x97, 0xd2, 0x84, 0xac, 0x32, 0x9b, 0x57, 0x07, 0xc9, 0x19, + 0x17, 0x02, 0x35, 0xd7, 0x76, 0xbf, 0x52, 0x73, 0x5d, 0xf5, 0xf6, 0x8b, 0x3b, 0x76, 0x0d, 0xca, + 0xfc, 0x3c, 0x17, 0x59, 0x37, 0xf2, 0xac, 0xe6, 0x45, 0x7e, 0xe0, 0x1a, 0x58, 0xff, 0xd1, 0x1a, + 0x2f, 0xff, 0x3a, 0x64, 0xbc, 0x47, 0xfc, 0x60, 0x37, 0x0a, 0xcd, 0x42, 0xde, 0x8a, 0x8c, 0x0c, + 0x3e, 0x92, 0x0a, 0xd2, 0xbc, 0x99, 0x3a, 0x4b, 0x67, 0x35, 0x0c, 0x9e, 0xfc, 0x0b, 0x1e, 0x2b, + 0x77, 0xe9, 0xec, 0x88, 0xf1, 0x42, 0x6b, 0x79, 0x73, 0x42, 0x78, 0x92, 0x40, 0x59, 0x46, 0x05, + 0x66, 0x53, 0xd7, 0x0c, 0xee, 0x86, 0xad, 0xf2, 0x11, 0x33, 0xef, 0x1d, 0x99, 0x9c, 0x78, 0x13, + 0x49, 0x9e, 0x1c, 0x41, 0x47, 0xf1, 0x45, 0x43, 0x39, 0x7d, 0xb4, 0x74, 0x56, 0xa3, 0xcd, 0x73, + 0xda, 0x36, 0xa6, 0x7d, 0x63, 0xfa, 0x69, 0x2b, 0xb4, 0xbf, 0xf9, 0xcc, 0x8b, 0x0a, 0x76, 0xe3, + 0x13, 0x6f, 0x42, 0x1b, 0x0a, 0x4c, 0xe6, 0xd5, 0xfb, 0x1f, 0xbf, 0xbe, 0x2f, 0xde, 0x92, 0x37, + 0xed, 0x69, 0x13, 0x14, 0x69, 0x9e, 0x75, 0x67, 0xbd, 0xff, 0xaa, 0x6b, 0x5e, 0xc8, 0x2f, 0x7c, + 0x4d, 0x6f, 0x97, 0x0b, 0xe2, 0x9f, 0xdf, 0x7e, 0xff, 0x19, 0xb8, 0x13, 0x97, 0xbc, 0xce, 0x91, + 0x5a, 0x62, 0x1b, 0x78, 0xc0, 0xbb, 0x05, 0x4f, 0xf7, 0xbd, 0x66, 0xe1, 0xa1, 0x29, 0x13, 0x3a, + 0xf1, 0xc0, 0xb6, 0xf2, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x95, 0x1c, 0x2f, 0x31, 0x57, 0x02, + 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.validate.go new file mode 100644 index 000000000..4a617f7a5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.pb.validate.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/filters/network/zookeeper_proxy/v3/zookeeper_proxy.proto + +package envoy_extensions_filters_network_zookeeper_proxy_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _zookeeper_proxy_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ZooKeeperProxy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ZooKeeperProxy) Validate() error { + if m == nil { + return nil + } + + if len(m.GetStatPrefix()) < 1 { + return ZooKeeperProxyValidationError{ + field: "StatPrefix", + reason: "value length must be at least 1 bytes", + } + } + + // no validation rules for AccessLog + + if v, ok := interface{}(m.GetMaxPacketBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ZooKeeperProxyValidationError{ + field: "MaxPacketBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ZooKeeperProxyValidationError is the validation error returned by +// ZooKeeperProxy.Validate if the designated constraints aren't met. +type ZooKeeperProxyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ZooKeeperProxyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ZooKeeperProxyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ZooKeeperProxyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ZooKeeperProxyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ZooKeeperProxyValidationError) ErrorName() string { return "ZooKeeperProxyValidationError" } + +// Error satisfies the builtin error interface +func (e ZooKeeperProxyValidationError) 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 %sZooKeeperProxy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ZooKeeperProxyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ZooKeeperProxyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.go new file mode 100644 index 000000000..cb77c1112 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.proto + +package envoy_extensions_retry_host_omit_host_metadata_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OmitHostMetadataConfig struct { + MetadataMatch *v3.Metadata `protobuf:"bytes,1,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OmitHostMetadataConfig) Reset() { *m = OmitHostMetadataConfig{} } +func (m *OmitHostMetadataConfig) String() string { return proto.CompactTextString(m) } +func (*OmitHostMetadataConfig) ProtoMessage() {} +func (*OmitHostMetadataConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a928fca8ecf14d98, []int{0} +} + +func (m *OmitHostMetadataConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OmitHostMetadataConfig.Unmarshal(m, b) +} +func (m *OmitHostMetadataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OmitHostMetadataConfig.Marshal(b, m, deterministic) +} +func (m *OmitHostMetadataConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_OmitHostMetadataConfig.Merge(m, src) +} +func (m *OmitHostMetadataConfig) XXX_Size() int { + return xxx_messageInfo_OmitHostMetadataConfig.Size(m) +} +func (m *OmitHostMetadataConfig) XXX_DiscardUnknown() { + xxx_messageInfo_OmitHostMetadataConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_OmitHostMetadataConfig proto.InternalMessageInfo + +func (m *OmitHostMetadataConfig) GetMetadataMatch() *v3.Metadata { + if m != nil { + return m.MetadataMatch + } + return nil +} + +func init() { + proto.RegisterType((*OmitHostMetadataConfig)(nil), "envoy.extensions.retry.host.omit_host_metadata.v3.OmitHostMetadataConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.proto", fileDescriptor_a928fca8ecf14d98) +} + +var fileDescriptor_a928fca8ecf14d98 = []byte{ + // 284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x0a, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x4a, 0x2d, + 0x29, 0xaa, 0xd4, 0xcf, 0xc8, 0x2f, 0x2e, 0xd1, 0xcf, 0xcf, 0xcd, 0x2c, 0x89, 0x07, 0xb1, 0xe2, + 0x73, 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0xf5, 0xcb, 0x8c, 0xb1, 0x88, 0xc6, 0x27, 0xe7, + 0xe7, 0xa5, 0x65, 0xa6, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x19, 0x82, 0x8d, 0xd4, 0x43, + 0x18, 0xa9, 0x07, 0x36, 0x52, 0x0f, 0xa4, 0x45, 0x0f, 0x53, 0xb3, 0x5e, 0x99, 0xb1, 0x94, 0x3c, + 0xc4, 0x15, 0x10, 0x63, 0xf4, 0x93, 0xf3, 0x8b, 0x52, 0x41, 0x16, 0x25, 0x25, 0x16, 0xa7, 0x42, + 0xcc, 0x94, 0x92, 0x2d, 0x4d, 0x29, 0x48, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0x01, + 0x3b, 0xb3, 0xb8, 0x24, 0xb1, 0xa4, 0xb4, 0x18, 0x2a, 0xad, 0x88, 0x21, 0x5d, 0x96, 0x5a, 0x04, + 0xb2, 0x3b, 0x33, 0x0f, 0xea, 0x2a, 0xa5, 0xe5, 0x8c, 0x5c, 0x62, 0xfe, 0xb9, 0x99, 0x25, 0x1e, + 0xf9, 0xc5, 0x25, 0xbe, 0x50, 0xab, 0x9d, 0xc1, 0xf6, 0x09, 0xb9, 0x72, 0xf1, 0xc1, 0x7d, 0x92, + 0x9b, 0x58, 0x92, 0x9c, 0x21, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa7, 0x07, 0xf1, 0x09, + 0xd4, 0x77, 0x20, 0x67, 0xe9, 0x95, 0x19, 0xeb, 0xc1, 0x74, 0x07, 0xf1, 0xc2, 0x74, 0xf9, 0x82, + 0x34, 0x59, 0xb9, 0xcd, 0x3a, 0xda, 0x21, 0xe7, 0xc8, 0x65, 0x8f, 0xa2, 0x09, 0xe2, 0x75, 0x6c, + 0xbe, 0x36, 0xd2, 0xc3, 0xee, 0x1c, 0xa7, 0x8c, 0x5d, 0x0d, 0x27, 0x2e, 0xb2, 0x31, 0x09, 0x30, + 0x71, 0xd9, 0x67, 0xe6, 0x43, 0x9c, 0x50, 0x50, 0x94, 0x5f, 0x51, 0xa9, 0x47, 0x72, 0xb8, 0x3a, + 0x49, 0x63, 0xb7, 0x22, 0x00, 0x14, 0x22, 0x01, 0x8c, 0x49, 0x6c, 0xe0, 0xa0, 0x31, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x8a, 0x82, 0xd1, 0x5a, 0x05, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.validate.go new file mode 100644 index 000000000..06dade2d6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.pb.validate.go @@ -0,0 +1,114 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/retry/host/omit_host_metadata/v3/omit_host_metadata_config.proto + +package envoy_extensions_retry_host_omit_host_metadata_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _omit_host_metadata_config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on OmitHostMetadataConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OmitHostMetadataConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadataMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OmitHostMetadataConfigValidationError{ + field: "MetadataMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// OmitHostMetadataConfigValidationError is the validation error returned by +// OmitHostMetadataConfig.Validate if the designated constraints aren't met. +type OmitHostMetadataConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OmitHostMetadataConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OmitHostMetadataConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OmitHostMetadataConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OmitHostMetadataConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OmitHostMetadataConfigValidationError) ErrorName() string { + return "OmitHostMetadataConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e OmitHostMetadataConfigValidationError) 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 %sOmitHostMetadataConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OmitHostMetadataConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OmitHostMetadataConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.go new file mode 100644 index 000000000..527331ab4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.proto + +package envoy_extensions_retry_priority_previous_priorities_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type PreviousPrioritiesConfig struct { + UpdateFrequency int32 `protobuf:"varint,1,opt,name=update_frequency,json=updateFrequency,proto3" json:"update_frequency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PreviousPrioritiesConfig) Reset() { *m = PreviousPrioritiesConfig{} } +func (m *PreviousPrioritiesConfig) String() string { return proto.CompactTextString(m) } +func (*PreviousPrioritiesConfig) ProtoMessage() {} +func (*PreviousPrioritiesConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1b022e36ffd9806c, []int{0} +} + +func (m *PreviousPrioritiesConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PreviousPrioritiesConfig.Unmarshal(m, b) +} +func (m *PreviousPrioritiesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PreviousPrioritiesConfig.Marshal(b, m, deterministic) +} +func (m *PreviousPrioritiesConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PreviousPrioritiesConfig.Merge(m, src) +} +func (m *PreviousPrioritiesConfig) XXX_Size() int { + return xxx_messageInfo_PreviousPrioritiesConfig.Size(m) +} +func (m *PreviousPrioritiesConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PreviousPrioritiesConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PreviousPrioritiesConfig proto.InternalMessageInfo + +func (m *PreviousPrioritiesConfig) GetUpdateFrequency() int32 { + if m != nil { + return m.UpdateFrequency + } + return 0 +} + +func init() { + proto.RegisterType((*PreviousPrioritiesConfig)(nil), "envoy.extensions.retry.priority.previous_priorities.v3.PreviousPrioritiesConfig") +} + +func init() { + proto.RegisterFile("envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.proto", fileDescriptor_1b022e36ffd9806c) +} + +var fileDescriptor_1b022e36ffd9806c = []byte{ + // 277 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x0a, 0x4f, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x4a, 0x2d, + 0x29, 0xaa, 0xd4, 0x2f, 0x28, 0xca, 0xcc, 0x2f, 0xca, 0x2c, 0x01, 0x31, 0x52, 0xcb, 0x32, 0xf3, + 0x4b, 0x8b, 0xe3, 0xa1, 0x22, 0x99, 0xa9, 0xc5, 0xfa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+ 0x8a, 0xf2, 0x2b, 0x2a, 0xf5, 0xc8, 0x0b, 0x43, 0x27, 0x59, 0x5c, 0x36, 0x05, 0x80, 0xc2, 0x21, + 0x80, 0x31, 0x89, 0x0d, 0x1c, 0x20, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xeb, 0x6b, + 0xc4, 0xfe, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.validate.go new file mode 100644 index 000000000..0b80d742e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.proto + +package envoy_extensions_retry_priority_previous_priorities_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _previous_priorities_config_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on PreviousPrioritiesConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PreviousPrioritiesConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetUpdateFrequency() <= 0 { + return PreviousPrioritiesConfigValidationError{ + field: "UpdateFrequency", + reason: "value must be greater than 0", + } + } + + return nil +} + +// PreviousPrioritiesConfigValidationError is the validation error returned by +// PreviousPrioritiesConfig.Validate if the designated constraints aren't met. +type PreviousPrioritiesConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PreviousPrioritiesConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PreviousPrioritiesConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PreviousPrioritiesConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PreviousPrioritiesConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PreviousPrioritiesConfigValidationError) ErrorName() string { + return "PreviousPrioritiesConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e PreviousPrioritiesConfigValidationError) 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 %sPreviousPrioritiesConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PreviousPrioritiesConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PreviousPrioritiesConfigValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.go new file mode 100644 index 000000000..511c55ec2 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/alts/v3/alts.proto + +package envoy_extensions_transport_sockets_alts_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Alts struct { + HandshakerService string `protobuf:"bytes,1,opt,name=handshaker_service,json=handshakerService,proto3" json:"handshaker_service,omitempty"` + PeerServiceAccounts []string `protobuf:"bytes,2,rep,name=peer_service_accounts,json=peerServiceAccounts,proto3" json:"peer_service_accounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Alts) Reset() { *m = Alts{} } +func (m *Alts) String() string { return proto.CompactTextString(m) } +func (*Alts) ProtoMessage() {} +func (*Alts) Descriptor() ([]byte, []int) { + return fileDescriptor_3b780b78c099503e, []int{0} +} + +func (m *Alts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Alts.Unmarshal(m, b) +} +func (m *Alts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Alts.Marshal(b, m, deterministic) +} +func (m *Alts) XXX_Merge(src proto.Message) { + xxx_messageInfo_Alts.Merge(m, src) +} +func (m *Alts) XXX_Size() int { + return xxx_messageInfo_Alts.Size(m) +} +func (m *Alts) XXX_DiscardUnknown() { + xxx_messageInfo_Alts.DiscardUnknown(m) +} + +var xxx_messageInfo_Alts proto.InternalMessageInfo + +func (m *Alts) GetHandshakerService() string { + if m != nil { + return m.HandshakerService + } + return "" +} + +func (m *Alts) GetPeerServiceAccounts() []string { + if m != nil { + return m.PeerServiceAccounts + } + return nil +} + +func init() { + proto.RegisterType((*Alts)(nil), "envoy.extensions.transport_sockets.alts.v3.Alts") +} + +func init() { + proto.RegisterFile("envoy/extensions/transport_sockets/alts/v3/alts.proto", fileDescriptor_3b780b78c099503e) +} + +var fileDescriptor_3b780b78c099503e = []byte{ + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xc1, 0x4a, 0xc3, 0x30, + 0x1c, 0xc6, 0x69, 0x1d, 0x93, 0xe5, 0xa4, 0x15, 0x71, 0x0c, 0x94, 0xe9, 0x69, 0x78, 0x48, 0x70, + 0xc5, 0x21, 0xde, 0xd6, 0x17, 0x70, 0xcc, 0x07, 0x28, 0x7f, 0xdb, 0xb8, 0x86, 0x95, 0x24, 0x24, + 0xff, 0x86, 0xed, 0xe6, 0xd1, 0x67, 0xf0, 0x11, 0x7c, 0x04, 0xef, 0x82, 0x57, 0x5f, 0xc7, 0x93, + 0x34, 0xad, 0xf4, 0xd0, 0x8b, 0xa7, 0x04, 0xbe, 0xef, 0xf7, 0x25, 0xdf, 0x47, 0x6e, 0xb9, 0x74, + 0x6a, 0xcf, 0xf8, 0x0e, 0xb9, 0xb4, 0x42, 0x49, 0xcb, 0xd0, 0x80, 0xb4, 0x5a, 0x19, 0x4c, 0xad, + 0xca, 0xb6, 0x1c, 0x2d, 0x83, 0x12, 0x2d, 0x73, 0xb1, 0x3f, 0xa9, 0x36, 0x0a, 0x55, 0x74, 0xed, + 0x31, 0xda, 0x61, 0xb4, 0x87, 0x51, 0x6f, 0x77, 0xf1, 0xe4, 0xbc, 0xca, 0x35, 0x30, 0x90, 0x52, + 0x21, 0xa0, 0x7f, 0xc2, 0x22, 0x60, 0xd5, 0x46, 0x4d, 0x2e, 0x7b, 0xb2, 0xe3, 0xa6, 0xce, 0x14, + 0x72, 0xd3, 0x5a, 0xce, 0x1c, 0x94, 0x22, 0x07, 0xe4, 0xec, 0xef, 0xd2, 0x08, 0x57, 0xef, 0x01, + 0x19, 0x2c, 0x4b, 0xb4, 0xd1, 0x82, 0x44, 0x05, 0xc8, 0xdc, 0x16, 0xb0, 0xe5, 0x26, 0xb5, 0xdc, + 0x38, 0x91, 0xf1, 0x71, 0x30, 0x0d, 0x66, 0xa3, 0xe4, 0xf0, 0x27, 0x19, 0x98, 0x70, 0x1a, 0xac, + 0x8f, 0x3b, 0xcb, 0x63, 0xe3, 0x88, 0xe6, 0xe4, 0x54, 0xf3, 0x8e, 0x48, 0x21, 0xcb, 0x54, 0x25, + 0xd1, 0x8e, 0xc3, 0xe9, 0xc1, 0x6c, 0xb4, 0x3e, 0xa9, 0xc5, 0xd6, 0xbb, 0x6c, 0xa5, 0xfb, 0xc5, + 0xdb, 0xe7, 0xeb, 0xc5, 0x0d, 0x61, 0xcd, 0x04, 0x99, 0x92, 0xcf, 0x62, 0xd3, 0xab, 0xdf, 0xb6, + 0x9f, 0x43, 0xa9, 0x0b, 0xa0, 0xf5, 0x1f, 0x93, 0x87, 0x8f, 0x97, 0xaf, 0xef, 0x61, 0x78, 0x14, + 0x92, 0x3b, 0xa1, 0xa8, 0xa7, 0xb5, 0x51, 0xbb, 0x3d, 0xfd, 0xff, 0x96, 0xc9, 0xa8, 0x4e, 0x5a, + 0xd5, 0xdd, 0x57, 0xc1, 0xd3, 0xd0, 0x8f, 0x10, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xb3, + 0x35, 0xfd, 0xc4, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.validate.go new file mode 100644 index 000000000..1681b1832 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3/alts.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/alts/v3/alts.proto + +package envoy_extensions_transport_sockets_alts_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _alts_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Alts with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Alts) Validate() error { + if m == nil { + return nil + } + + if len(m.GetHandshakerService()) < 1 { + return AltsValidationError{ + field: "HandshakerService", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// AltsValidationError is the validation error returned by Alts.Validate if the +// designated constraints aren't met. +type AltsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AltsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AltsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AltsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AltsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AltsValidationError) ErrorName() string { return "AltsValidationError" } + +// Error satisfies the builtin error interface +func (e AltsValidationError) 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 %sAlts.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AltsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AltsValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.go new file mode 100644 index 000000000..9d02f0ae7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.proto + +package envoy_extensions_transport_sockets_raw_buffer_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RawBuffer struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBuffer) Reset() { *m = RawBuffer{} } +func (m *RawBuffer) String() string { return proto.CompactTextString(m) } +func (*RawBuffer) ProtoMessage() {} +func (*RawBuffer) Descriptor() ([]byte, []int) { + return fileDescriptor_36bb97f3739449ce, []int{0} +} + +func (m *RawBuffer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawBuffer.Unmarshal(m, b) +} +func (m *RawBuffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawBuffer.Marshal(b, m, deterministic) +} +func (m *RawBuffer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBuffer.Merge(m, src) +} +func (m *RawBuffer) XXX_Size() int { + return xxx_messageInfo_RawBuffer.Size(m) +} +func (m *RawBuffer) XXX_DiscardUnknown() { + xxx_messageInfo_RawBuffer.DiscardUnknown(m) +} + +var xxx_messageInfo_RawBuffer proto.InternalMessageInfo + +func init() { + proto.RegisterType((*RawBuffer)(nil), "envoy.extensions.transport_sockets.raw_buffer.v3.RawBuffer") +} + +func init() { + proto.RegisterFile("envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.proto", fileDescriptor_36bb97f3739449ce) +} + +var fileDescriptor_36bb97f3739449ce = []byte{ + // 213 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4c, 0xcd, 0x2b, 0xcb, + 0xaf, 0xd4, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x29, 0x4a, + 0xcc, 0x2b, 0x2e, 0xc8, 0x2f, 0x2a, 0x89, 0x2f, 0xce, 0x4f, 0xce, 0x4e, 0x2d, 0x29, 0xd6, 0x2f, + 0x4a, 0x2c, 0x8f, 0x4f, 0x2a, 0x4d, 0x4b, 0x4b, 0x2d, 0xd2, 0x2f, 0x33, 0x46, 0xe2, 0xe9, 0x15, + 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x19, 0x80, 0x8d, 0xd0, 0x43, 0x18, 0xa1, 0x87, 0x61, 0x84, 0x1e, + 0x92, 0xa6, 0x32, 0x63, 0x29, 0xd9, 0xd2, 0x94, 0x82, 0x44, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, + 0xc4, 0x12, 0xb0, 0xa5, 0xc5, 0x25, 0x89, 0x25, 0xa5, 0xc5, 0x10, 0x03, 0xa5, 0x14, 0x31, 0xa4, + 0xcb, 0x52, 0x8b, 0x40, 0x26, 0x67, 0xe6, 0xa5, 0x43, 0x94, 0x28, 0x79, 0x72, 0x71, 0x06, 0x25, + 0x96, 0x3b, 0x81, 0x4d, 0xb4, 0xb2, 0x99, 0x75, 0xb4, 0x43, 0xce, 0x9c, 0xcb, 0x14, 0xe2, 0x8e, + 0xe4, 0xfc, 0xbc, 0xb4, 0xcc, 0x74, 0x0c, 0x37, 0xa0, 0x38, 0xc1, 0x48, 0x0f, 0xae, 0xdb, 0x29, + 0x6a, 0x57, 0xc3, 0x89, 0x8b, 0x6c, 0x4c, 0x02, 0x4c, 0x5c, 0x76, 0x99, 0xf9, 0x7a, 0x60, 0x33, + 0x0a, 0x8a, 0xf2, 0x2b, 0x2a, 0xf5, 0x48, 0xf5, 0x96, 0x13, 0x1f, 0xdc, 0xd0, 0x00, 0x90, 0x23, + 0x03, 0x18, 0x93, 0xd8, 0xc0, 0xae, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x81, 0x67, 0x84, + 0xc0, 0x66, 0x01, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.validate.go new file mode 100644 index 000000000..287d9ee4e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/raw_buffer/v3/raw_buffer.proto + +package envoy_extensions_transport_sockets_raw_buffer_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _raw_buffer_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RawBuffer with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RawBuffer) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RawBufferValidationError is the validation error returned by +// RawBuffer.Validate if the designated constraints aren't met. +type RawBufferValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RawBufferValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RawBufferValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RawBufferValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RawBufferValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RawBufferValidationError) ErrorName() string { return "RawBufferValidationError" } + +// Error satisfies the builtin error interface +func (e RawBufferValidationError) 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 %sRawBuffer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RawBufferValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RawBufferValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.go new file mode 100644 index 000000000..8fc83779c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/tap/v3/tap.proto + +package envoy_extensions_transport_sockets_tap_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Tap struct { + CommonConfig *v3.CommonExtensionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` + TransportSocket *v31.TransportSocket `protobuf:"bytes,2,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Tap) Reset() { *m = Tap{} } +func (m *Tap) String() string { return proto.CompactTextString(m) } +func (*Tap) ProtoMessage() {} +func (*Tap) Descriptor() ([]byte, []int) { + return fileDescriptor_5e115889d24f02d1, []int{0} +} + +func (m *Tap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tap.Unmarshal(m, b) +} +func (m *Tap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tap.Marshal(b, m, deterministic) +} +func (m *Tap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tap.Merge(m, src) +} +func (m *Tap) XXX_Size() int { + return xxx_messageInfo_Tap.Size(m) +} +func (m *Tap) XXX_DiscardUnknown() { + xxx_messageInfo_Tap.DiscardUnknown(m) +} + +var xxx_messageInfo_Tap proto.InternalMessageInfo + +func (m *Tap) GetCommonConfig() *v3.CommonExtensionConfig { + if m != nil { + return m.CommonConfig + } + return nil +} + +func (m *Tap) GetTransportSocket() *v31.TransportSocket { + if m != nil { + return m.TransportSocket + } + return nil +} + +func init() { + proto.RegisterType((*Tap)(nil), "envoy.extensions.transport_sockets.tap.v3.Tap") +} + +func init() { + proto.RegisterFile("envoy/extensions/transport_sockets/tap/v3/tap.proto", fileDescriptor_5e115889d24f02d1) +} + +var fileDescriptor_5e115889d24f02d1 = []byte{ + // 330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x3d, 0x4b, 0xc3, 0x40, + 0x18, 0x26, 0x11, 0x4b, 0x89, 0x8a, 0xa5, 0x8b, 0xa5, 0xe0, 0x27, 0x08, 0x8a, 0x78, 0x07, 0x8d, + 0x22, 0x38, 0xa6, 0x38, 0x0a, 0x45, 0x33, 0xb9, 0x94, 0xb7, 0xe9, 0x59, 0x83, 0xed, 0xbd, 0x47, + 0xee, 0x1a, 0xda, 0xcd, 0x51, 0xfc, 0x09, 0xfe, 0x14, 0x77, 0xc1, 0xd5, 0xbf, 0x23, 0x08, 0x72, + 0xf7, 0x26, 0x68, 0x9b, 0xc5, 0x29, 0xb9, 0x3c, 0x9f, 0xf7, 0x24, 0x08, 0x85, 0xcc, 0x71, 0xce, + 0xc5, 0xcc, 0x08, 0xa9, 0x53, 0x94, 0x9a, 0x9b, 0x0c, 0xa4, 0x56, 0x98, 0x99, 0xbe, 0xc6, 0xe4, + 0x51, 0x18, 0xcd, 0x0d, 0x28, 0x9e, 0x87, 0xf6, 0xc1, 0x54, 0x86, 0x06, 0x9b, 0xc7, 0x4e, 0xc4, + 0x7e, 0x45, 0xac, 0x22, 0x62, 0x96, 0x9d, 0x87, 0xed, 0x5d, 0xf2, 0x4f, 0x50, 0xde, 0xa7, 0x23, + 0x9e, 0x60, 0x26, 0xac, 0xd5, 0x00, 0xb4, 0x20, 0xaf, 0xf6, 0x49, 0xa5, 0x40, 0x82, 0x93, 0x09, + 0xca, 0x32, 0x95, 0x4e, 0x05, 0x79, 0x7b, 0x3a, 0x54, 0xc0, 0x41, 0x4a, 0x34, 0x60, 0x1c, 0x59, + 0x1b, 0x30, 0x53, 0x5d, 0xc0, 0xfb, 0x15, 0x38, 0x17, 0x99, 0x35, 0x4d, 0xe5, 0xa8, 0xa0, 0x6c, + 0xe5, 0x30, 0x4e, 0x87, 0x60, 0x04, 0x2f, 0x5f, 0x08, 0x38, 0xf8, 0xf6, 0x82, 0x95, 0x18, 0x54, + 0x73, 0x18, 0x6c, 0x50, 0x64, 0x9f, 0x3a, 0xb7, 0xbc, 0x3d, 0xef, 0x68, 0xad, 0x73, 0xce, 0x2a, + 0x77, 0x2e, 0x9a, 0xd1, 0x45, 0x59, 0xd7, 0x9d, 0xae, 0x4a, 0xb8, 0xeb, 0xc4, 0x51, 0xfd, 0x2b, + 0x5a, 0x7d, 0xf1, 0xfc, 0x86, 0x77, 0xb3, 0x4e, 0x74, 0xfa, 0xde, 0xbc, 0x0b, 0x1a, 0xcb, 0x93, + 0xb5, 0x7c, 0x17, 0x74, 0x58, 0x04, 0x51, 0x3a, 0xb3, 0x8b, 0x59, 0xfb, 0xb8, 0x64, 0xdf, 0x3a, + 0xf2, 0x1f, 0xe3, 0x4d, 0xb3, 0x08, 0x5d, 0x9e, 0xbd, 0xbe, 0x3f, 0xef, 0xf0, 0xe0, 0x74, 0xc1, + 0x67, 0x39, 0x8d, 0x6a, 0x77, 0x60, 0xac, 0x1e, 0x80, 0xc5, 0xa0, 0xa2, 0xeb, 0xb7, 0xa7, 0x8f, + 0xcf, 0x9a, 0xdf, 0xf0, 0x83, 0x8b, 0x14, 0xa9, 0x83, 0xca, 0x70, 0x36, 0x67, 0xff, 0xfe, 0xd7, + 0x51, 0x3d, 0x06, 0xd5, 0xb3, 0x63, 0xf6, 0xbc, 0x41, 0xcd, 0xad, 0x1a, 0xfe, 0x04, 0x00, 0x00, + 0xff, 0xff, 0x56, 0xf9, 0x21, 0x22, 0x60, 0x02, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.validate.go new file mode 100644 index 000000000..d9359a8bd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3/tap.pb.validate.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/transport_sockets/tap/v3/tap.proto + +package envoy_extensions_transport_sockets_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Tap with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tap) Validate() error { + if m == nil { + return nil + } + + if m.GetCommonConfig() == nil { + return TapValidationError{ + field: "CommonConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetCommonConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "CommonConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetTransportSocket() == nil { + return TapValidationError{ + field: "TransportSocket", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetTransportSocket()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapValidationError{ + field: "TransportSocket", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapValidationError is the validation error returned by Tap.Validate if the +// designated constraints aren't met. +type TapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapValidationError) ErrorName() string { return "TapValidationError" } + +// Error satisfies the builtin error interface +func (e TapValidationError) 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 %sTap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.go new file mode 100644 index 000000000..0106ec8ee --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.go @@ -0,0 +1,279 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/extensions/wasm/v3/wasm.proto + +package envoy_extensions_wasm_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type VmConfig struct { + VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` + Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + Code *v3.AsyncDataSource `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` + Configuration *any.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"` + AllowPrecompiled bool `protobuf:"varint,5,opt,name=allow_precompiled,json=allowPrecompiled,proto3" json:"allow_precompiled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VmConfig) Reset() { *m = VmConfig{} } +func (m *VmConfig) String() string { return proto.CompactTextString(m) } +func (*VmConfig) ProtoMessage() {} +func (*VmConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_fb6accf9c32c7c2b, []int{0} +} + +func (m *VmConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VmConfig.Unmarshal(m, b) +} +func (m *VmConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VmConfig.Marshal(b, m, deterministic) +} +func (m *VmConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VmConfig.Merge(m, src) +} +func (m *VmConfig) XXX_Size() int { + return xxx_messageInfo_VmConfig.Size(m) +} +func (m *VmConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VmConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VmConfig proto.InternalMessageInfo + +func (m *VmConfig) GetVmId() string { + if m != nil { + return m.VmId + } + return "" +} + +func (m *VmConfig) GetRuntime() string { + if m != nil { + return m.Runtime + } + return "" +} + +func (m *VmConfig) GetCode() *v3.AsyncDataSource { + if m != nil { + return m.Code + } + return nil +} + +func (m *VmConfig) GetConfiguration() *any.Any { + if m != nil { + return m.Configuration + } + return nil +} + +func (m *VmConfig) GetAllowPrecompiled() bool { + if m != nil { + return m.AllowPrecompiled + } + return false +} + +type PluginConfig struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + // Types that are valid to be assigned to VmConfig: + // *PluginConfig_InlineVmConfig + VmConfig isPluginConfig_VmConfig `protobuf_oneof:"vm_config"` + Configuration *any.Any `protobuf:"bytes,5,opt,name=configuration,proto3" json:"configuration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PluginConfig) Reset() { *m = PluginConfig{} } +func (m *PluginConfig) String() string { return proto.CompactTextString(m) } +func (*PluginConfig) ProtoMessage() {} +func (*PluginConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_fb6accf9c32c7c2b, []int{1} +} + +func (m *PluginConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PluginConfig.Unmarshal(m, b) +} +func (m *PluginConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PluginConfig.Marshal(b, m, deterministic) +} +func (m *PluginConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PluginConfig.Merge(m, src) +} +func (m *PluginConfig) XXX_Size() int { + return xxx_messageInfo_PluginConfig.Size(m) +} +func (m *PluginConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PluginConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PluginConfig proto.InternalMessageInfo + +func (m *PluginConfig) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *PluginConfig) GetGroupName() string { + if m != nil { + return m.GroupName + } + return "" +} + +type isPluginConfig_VmConfig interface { + isPluginConfig_VmConfig() +} + +type PluginConfig_InlineVmConfig struct { + InlineVmConfig *VmConfig `protobuf:"bytes,3,opt,name=inline_vm_config,json=inlineVmConfig,proto3,oneof"` +} + +func (*PluginConfig_InlineVmConfig) isPluginConfig_VmConfig() {} + +func (m *PluginConfig) GetVmConfig() isPluginConfig_VmConfig { + if m != nil { + return m.VmConfig + } + return nil +} + +func (m *PluginConfig) GetInlineVmConfig() *VmConfig { + if x, ok := m.GetVmConfig().(*PluginConfig_InlineVmConfig); ok { + return x.InlineVmConfig + } + return nil +} + +func (m *PluginConfig) GetConfiguration() *any.Any { + if m != nil { + return m.Configuration + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PluginConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PluginConfig_InlineVmConfig)(nil), + } +} + +type WasmService struct { + Config *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + Singleton bool `protobuf:"varint,2,opt,name=singleton,proto3" json:"singleton,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WasmService) Reset() { *m = WasmService{} } +func (m *WasmService) String() string { return proto.CompactTextString(m) } +func (*WasmService) ProtoMessage() {} +func (*WasmService) Descriptor() ([]byte, []int) { + return fileDescriptor_fb6accf9c32c7c2b, []int{2} +} + +func (m *WasmService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WasmService.Unmarshal(m, b) +} +func (m *WasmService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WasmService.Marshal(b, m, deterministic) +} +func (m *WasmService) XXX_Merge(src proto.Message) { + xxx_messageInfo_WasmService.Merge(m, src) +} +func (m *WasmService) XXX_Size() int { + return xxx_messageInfo_WasmService.Size(m) +} +func (m *WasmService) XXX_DiscardUnknown() { + xxx_messageInfo_WasmService.DiscardUnknown(m) +} + +var xxx_messageInfo_WasmService proto.InternalMessageInfo + +func (m *WasmService) GetConfig() *PluginConfig { + if m != nil { + return m.Config + } + return nil +} + +func (m *WasmService) GetSingleton() bool { + if m != nil { + return m.Singleton + } + return false +} + +func init() { + proto.RegisterType((*VmConfig)(nil), "envoy.extensions.wasm.v3.VmConfig") + proto.RegisterType((*PluginConfig)(nil), "envoy.extensions.wasm.v3.PluginConfig") + proto.RegisterType((*WasmService)(nil), "envoy.extensions.wasm.v3.WasmService") +} + +func init() { + proto.RegisterFile("envoy/extensions/wasm/v3/wasm.proto", fileDescriptor_fb6accf9c32c7c2b) +} + +var fileDescriptor_fb6accf9c32c7c2b = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0x49, 0x68, 0xbb, 0xf6, 0x2d, 0xa0, 0x12, 0x90, 0x08, 0x13, 0x83, 0xae, 0xb0, 0x52, + 0x04, 0x38, 0xd2, 0x7a, 0xa2, 0x12, 0x48, 0x2b, 0x1c, 0xe0, 0x32, 0x55, 0x99, 0x04, 0xc7, 0xca, + 0x4d, 0xbc, 0x60, 0x29, 0xb1, 0x23, 0xc7, 0xf1, 0xd6, 0x1b, 0x47, 0x38, 0x72, 0x84, 0x8f, 0xc2, + 0x1d, 0x89, 0x2b, 0x5f, 0x87, 0x13, 0xb2, 0x9d, 0xfe, 0x99, 0xa6, 0x48, 0x3b, 0x35, 0x7d, 0x9f, + 0xf7, 0x89, 0x9f, 0xe7, 0xe7, 0xc0, 0x63, 0xc2, 0x14, 0x5f, 0x06, 0xe4, 0x5c, 0x12, 0x56, 0x50, + 0xce, 0x8a, 0xe0, 0x0c, 0x17, 0x59, 0xa0, 0xc6, 0xe6, 0x17, 0xe5, 0x82, 0x4b, 0xee, 0xf9, 0x66, + 0x09, 0x6d, 0x96, 0x90, 0x11, 0xd5, 0x78, 0xf7, 0x91, 0xb5, 0x47, 0x9c, 0x9d, 0xd2, 0x24, 0x88, + 0xb8, 0x20, 0xda, 0xba, 0xc0, 0x05, 0xb1, 0xd6, 0xdd, 0xfb, 0x09, 0xe7, 0x49, 0x4a, 0x02, 0xf3, + 0x6f, 0x51, 0x9e, 0x06, 0x98, 0x2d, 0x2b, 0x69, 0xaf, 0x8c, 0x73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 0xff, 0x4e, 0xd9, 0x03, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.validate.go new file mode 100644 index 000000000..fc058e1a6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3/wasm.pb.validate.go @@ -0,0 +1,304 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/extensions/wasm/v3/wasm.proto + +package envoy_extensions_wasm_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _wasm_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on VmConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *VmConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for VmId + + if len(m.GetRuntime()) < 1 { + return VmConfigValidationError{ + field: "Runtime", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetCode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VmConfigValidationError{ + field: "Code", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VmConfigValidationError{ + field: "Configuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for AllowPrecompiled + + return nil +} + +// VmConfigValidationError is the validation error returned by +// VmConfig.Validate if the designated constraints aren't met. +type VmConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VmConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VmConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VmConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VmConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VmConfigValidationError) ErrorName() string { return "VmConfigValidationError" } + +// Error satisfies the builtin error interface +func (e VmConfigValidationError) 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 %sVmConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VmConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VmConfigValidationError{} + +// Validate checks the field values on PluginConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PluginConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for GroupName + + if v, ok := interface{}(m.GetConfiguration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PluginConfigValidationError{ + field: "Configuration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.VmConfig.(type) { + + case *PluginConfig_InlineVmConfig: + + if v, ok := interface{}(m.GetInlineVmConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PluginConfigValidationError{ + field: "InlineVmConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PluginConfigValidationError is the validation error returned by +// PluginConfig.Validate if the designated constraints aren't met. +type PluginConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PluginConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PluginConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PluginConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PluginConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PluginConfigValidationError) ErrorName() string { return "PluginConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PluginConfigValidationError) 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 %sPluginConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PluginConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PluginConfigValidationError{} + +// Validate checks the field values on WasmService with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WasmService) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WasmServiceValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Singleton + + return nil +} + +// WasmServiceValidationError is the validation error returned by +// WasmService.Validate if the designated constraints aren't met. +type WasmServiceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WasmServiceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WasmServiceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WasmServiceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WasmServiceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WasmServiceValidationError) ErrorName() string { return "WasmServiceValidationError" } + +// Error satisfies the builtin error interface +func (e WasmServiceValidationError) 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 %sWasmService.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WasmServiceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WasmServiceValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.go new file mode 100644 index 000000000..8cb76052c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.go @@ -0,0 +1,442 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/accesslog/v2/als.proto + +package envoy_service_accesslog_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2 "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamAccessLogsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsResponse) Reset() { *m = StreamAccessLogsResponse{} } +func (m *StreamAccessLogsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsResponse) ProtoMessage() {} +func (*StreamAccessLogsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e4f3a3a69261b513, []int{0} +} + +func (m *StreamAccessLogsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsResponse.Unmarshal(m, b) +} +func (m *StreamAccessLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsResponse.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsResponse.Merge(m, src) +} +func (m *StreamAccessLogsResponse) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsResponse.Size(m) +} +func (m *StreamAccessLogsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsResponse proto.InternalMessageInfo + +type StreamAccessLogsMessage struct { + Identifier *StreamAccessLogsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + // Types that are valid to be assigned to LogEntries: + // *StreamAccessLogsMessage_HttpLogs + // *StreamAccessLogsMessage_TcpLogs + LogEntries isStreamAccessLogsMessage_LogEntries `protobuf_oneof:"log_entries"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage) Reset() { *m = StreamAccessLogsMessage{} } +func (m *StreamAccessLogsMessage) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsMessage) ProtoMessage() {} +func (*StreamAccessLogsMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_e4f3a3a69261b513, []int{1} +} + +func (m *StreamAccessLogsMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage.Merge(m, src) +} +func (m *StreamAccessLogsMessage) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage.Size(m) +} +func (m *StreamAccessLogsMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage) GetIdentifier() *StreamAccessLogsMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +type isStreamAccessLogsMessage_LogEntries interface { + isStreamAccessLogsMessage_LogEntries() +} + +type StreamAccessLogsMessage_HttpLogs struct { + HttpLogs *StreamAccessLogsMessage_HTTPAccessLogEntries `protobuf:"bytes,2,opt,name=http_logs,json=httpLogs,proto3,oneof"` +} + +type StreamAccessLogsMessage_TcpLogs struct { + TcpLogs *StreamAccessLogsMessage_TCPAccessLogEntries `protobuf:"bytes,3,opt,name=tcp_logs,json=tcpLogs,proto3,oneof"` +} + +func (*StreamAccessLogsMessage_HttpLogs) isStreamAccessLogsMessage_LogEntries() {} + +func (*StreamAccessLogsMessage_TcpLogs) isStreamAccessLogsMessage_LogEntries() {} + +func (m *StreamAccessLogsMessage) GetLogEntries() isStreamAccessLogsMessage_LogEntries { + if m != nil { + return m.LogEntries + } + return nil +} + +func (m *StreamAccessLogsMessage) GetHttpLogs() *StreamAccessLogsMessage_HTTPAccessLogEntries { + if x, ok := m.GetLogEntries().(*StreamAccessLogsMessage_HttpLogs); ok { + return x.HttpLogs + } + return nil +} + +func (m *StreamAccessLogsMessage) GetTcpLogs() *StreamAccessLogsMessage_TCPAccessLogEntries { + if x, ok := m.GetLogEntries().(*StreamAccessLogsMessage_TcpLogs); ok { + return x.TcpLogs + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StreamAccessLogsMessage) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*StreamAccessLogsMessage_HttpLogs)(nil), + (*StreamAccessLogsMessage_TcpLogs)(nil), + } +} + +type StreamAccessLogsMessage_Identifier struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + LogName string `protobuf:"bytes,2,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_Identifier) Reset() { *m = StreamAccessLogsMessage_Identifier{} } +func (m *StreamAccessLogsMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsMessage_Identifier) ProtoMessage() {} +func (*StreamAccessLogsMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_e4f3a3a69261b513, []int{1, 0} +} + +func (m *StreamAccessLogsMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_Identifier.Merge(m, src) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Size(m) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_Identifier proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_Identifier) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *StreamAccessLogsMessage_Identifier) GetLogName() string { + if m != nil { + return m.LogName + } + return "" +} + +type StreamAccessLogsMessage_HTTPAccessLogEntries struct { + LogEntry []*v2.HTTPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) Reset() { + *m = StreamAccessLogsMessage_HTTPAccessLogEntries{} +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) String() string { + return proto.CompactTextString(m) +} +func (*StreamAccessLogsMessage_HTTPAccessLogEntries) ProtoMessage() {} +func (*StreamAccessLogsMessage_HTTPAccessLogEntries) Descriptor() ([]byte, []int) { + return fileDescriptor_e4f3a3a69261b513, []int{1, 1} +} + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Merge(m, src) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Size(m) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) GetLogEntry() []*v2.HTTPAccessLogEntry { + if m != nil { + return m.LogEntry + } + return nil +} + +type StreamAccessLogsMessage_TCPAccessLogEntries struct { + LogEntry []*v2.TCPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) Reset() { + *m = StreamAccessLogsMessage_TCPAccessLogEntries{} +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) String() string { + return proto.CompactTextString(m) +} +func (*StreamAccessLogsMessage_TCPAccessLogEntries) ProtoMessage() {} +func (*StreamAccessLogsMessage_TCPAccessLogEntries) Descriptor() ([]byte, []int) { + return fileDescriptor_e4f3a3a69261b513, []int{1, 2} +} + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Merge(m, src) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Size(m) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) GetLogEntry() []*v2.TCPAccessLogEntry { + if m != nil { + return m.LogEntry + } + return nil +} + +func init() { + proto.RegisterType((*StreamAccessLogsResponse)(nil), "envoy.service.accesslog.v2.StreamAccessLogsResponse") + proto.RegisterType((*StreamAccessLogsMessage)(nil), "envoy.service.accesslog.v2.StreamAccessLogsMessage") + proto.RegisterType((*StreamAccessLogsMessage_Identifier)(nil), "envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier") + proto.RegisterType((*StreamAccessLogsMessage_HTTPAccessLogEntries)(nil), "envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries") + proto.RegisterType((*StreamAccessLogsMessage_TCPAccessLogEntries)(nil), "envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries") +} + +func init() { + proto.RegisterFile("envoy/service/accesslog/v2/als.proto", fileDescriptor_e4f3a3a69261b513) +} + +var fileDescriptor_e4f3a3a69261b513 = []byte{ + // 493 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x77, 0xda, 0xdd, 0x6d, 0xfa, 0x7a, 0x29, 0xa3, 0xd0, 0x12, 0x14, 0x4a, 0x11, 0x2c, + 0x0a, 0x09, 0x64, 0xf5, 0x2a, 0x34, 0x22, 0x56, 0xd0, 0xa5, 0x66, 0x7b, 0x76, 0x99, 0x4d, 0x9e, + 0xd9, 0x91, 0x74, 0x26, 0x64, 0x66, 0x83, 0xbd, 0xe9, 0x4d, 0x3c, 0x7a, 0xf0, 0xe2, 0x37, 0xf1, + 0x13, 0x78, 0xf5, 0xdb, 0xc8, 0x9e, 0x64, 0x26, 0xd9, 0xa8, 0xdd, 0x56, 0xd8, 0xde, 0x42, 0xe6, + 0xff, 0x7e, 0xbf, 0x79, 0x33, 0xf3, 0xe0, 0x1e, 0x8a, 0x52, 0xae, 0x7c, 0x85, 0x45, 0xc9, 0x63, + 0xf4, 0x59, 0x1c, 0xa3, 0x52, 0x99, 0x4c, 0xfd, 0x32, 0xf0, 0x59, 0xa6, 0xbc, 0xbc, 0x90, 0x5a, + 0x52, 0xd7, 0xa6, 0xbc, 0x3a, 0xe5, 0x35, 0x29, 0xaf, 0x0c, 0xdc, 0x3b, 0x15, 0x81, 0xe5, 0xdc,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, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// AccessLogServiceClient is the client API for AccessLogService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AccessLogServiceClient interface { + StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) +} + +type accessLogServiceClient struct { + cc *grpc.ClientConn +} + +func NewAccessLogServiceClient(cc *grpc.ClientConn) AccessLogServiceClient { + return &accessLogServiceClient{cc} +} + +func (c *accessLogServiceClient) StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_AccessLogService_serviceDesc.Streams[0], "/envoy.service.accesslog.v2.AccessLogService/StreamAccessLogs", opts...) + if err != nil { + return nil, err + } + x := &accessLogServiceStreamAccessLogsClient{stream} + return x, nil +} + +type AccessLogService_StreamAccessLogsClient interface { + Send(*StreamAccessLogsMessage) error + CloseAndRecv() (*StreamAccessLogsResponse, error) + grpc.ClientStream +} + +type accessLogServiceStreamAccessLogsClient struct { + grpc.ClientStream +} + +func (x *accessLogServiceStreamAccessLogsClient) Send(m *StreamAccessLogsMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *accessLogServiceStreamAccessLogsClient) CloseAndRecv() (*StreamAccessLogsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamAccessLogsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// AccessLogServiceServer is the server API for AccessLogService service. +type AccessLogServiceServer interface { + StreamAccessLogs(AccessLogService_StreamAccessLogsServer) error +} + +// UnimplementedAccessLogServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAccessLogServiceServer struct { +} + +func (*UnimplementedAccessLogServiceServer) StreamAccessLogs(srv AccessLogService_StreamAccessLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamAccessLogs not implemented") +} + +func RegisterAccessLogServiceServer(s *grpc.Server, srv AccessLogServiceServer) { + s.RegisterService(&_AccessLogService_serviceDesc, srv) +} + +func _AccessLogService_StreamAccessLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(AccessLogServiceServer).StreamAccessLogs(&accessLogServiceStreamAccessLogsServer{stream}) +} + +type AccessLogService_StreamAccessLogsServer interface { + SendAndClose(*StreamAccessLogsResponse) error + Recv() (*StreamAccessLogsMessage, error) + grpc.ServerStream +} + +type accessLogServiceStreamAccessLogsServer struct { + grpc.ServerStream +} + +func (x *accessLogServiceStreamAccessLogsServer) SendAndClose(m *StreamAccessLogsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *accessLogServiceStreamAccessLogsServer) Recv() (*StreamAccessLogsMessage, error) { + m := new(StreamAccessLogsMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _AccessLogService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.accesslog.v2.AccessLogService", + HandlerType: (*AccessLogServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamAccessLogs", + Handler: _AccessLogService_StreamAccessLogs_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/accesslog/v2/als.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.validate.go new file mode 100644 index 000000000..c7fa23d85 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2/als.pb.validate.go @@ -0,0 +1,488 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/accesslog/v2/als.proto + +package envoy_service_accesslog_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _als_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamAccessLogsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamAccessLogsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamAccessLogsResponseValidationError is the validation error returned by +// StreamAccessLogsResponse.Validate if the designated constraints aren't met. +type StreamAccessLogsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsResponseValidationError) ErrorName() string { + return "StreamAccessLogsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsResponseValidationError) 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 %sStreamAccessLogsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsResponseValidationError{} + +// Validate checks the field values on StreamAccessLogsMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamAccessLogsMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.LogEntries.(type) { + + case *StreamAccessLogsMessage_HttpLogs: + + if v, ok := interface{}(m.GetHttpLogs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "HttpLogs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *StreamAccessLogsMessage_TcpLogs: + + if v, ok := interface{}(m.GetTcpLogs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "TcpLogs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return StreamAccessLogsMessageValidationError{ + field: "LogEntries", + reason: "value is required", + } + + } + + return nil +} + +// StreamAccessLogsMessageValidationError is the validation error returned by +// StreamAccessLogsMessage.Validate if the designated constraints aren't met. +type StreamAccessLogsMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessageValidationError) ErrorName() string { + return "StreamAccessLogsMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessageValidationError) 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 %sStreamAccessLogsMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessageValidationError{} + +// Validate checks the field values on StreamAccessLogsMessage_Identifier with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *StreamAccessLogsMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetLogName()) < 1 { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "LogName", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// StreamAccessLogsMessage_IdentifierValidationError is the validation error +// returned by StreamAccessLogsMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamAccessLogsMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_IdentifierValidationError) ErrorName() string { + return "StreamAccessLogsMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_IdentifierValidationError) 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 %sStreamAccessLogsMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_IdentifierValidationError{} + +// Validate checks the field values on +// StreamAccessLogsMessage_HTTPAccessLogEntries with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogEntry()) < 1 { + return StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{ + field: "LogEntry", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetLogEntry() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{ + field: fmt.Sprintf("LogEntry[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError is the +// validation error returned by +// StreamAccessLogsMessage_HTTPAccessLogEntries.Validate if the designated +// constraints aren't met. +type StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) ErrorName() string { + return "StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) 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 %sStreamAccessLogsMessage_HTTPAccessLogEntries.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{} + +// Validate checks the field values on +// StreamAccessLogsMessage_TCPAccessLogEntries with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogEntry()) < 1 { + return StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{ + field: "LogEntry", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetLogEntry() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{ + field: fmt.Sprintf("LogEntry[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamAccessLogsMessage_TCPAccessLogEntriesValidationError is the validation +// error returned by StreamAccessLogsMessage_TCPAccessLogEntries.Validate if +// the designated constraints aren't met. +type StreamAccessLogsMessage_TCPAccessLogEntriesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) ErrorName() string { + return "StreamAccessLogsMessage_TCPAccessLogEntriesValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) 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 %sStreamAccessLogsMessage_TCPAccessLogEntries.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.go new file mode 100644 index 000000000..ed1c78254 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.go @@ -0,0 +1,448 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/accesslog/v3/als.proto + +package envoy_service_accesslog_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamAccessLogsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsResponse) Reset() { *m = StreamAccessLogsResponse{} } +func (m *StreamAccessLogsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsResponse) ProtoMessage() {} +func (*StreamAccessLogsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7df9b8b42f8221f5, []int{0} +} + +func (m *StreamAccessLogsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsResponse.Unmarshal(m, b) +} +func (m *StreamAccessLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsResponse.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsResponse.Merge(m, src) +} +func (m *StreamAccessLogsResponse) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsResponse.Size(m) +} +func (m *StreamAccessLogsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsResponse proto.InternalMessageInfo + +type StreamAccessLogsMessage struct { + Identifier *StreamAccessLogsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + // Types that are valid to be assigned to LogEntries: + // *StreamAccessLogsMessage_HttpLogs + // *StreamAccessLogsMessage_TcpLogs + LogEntries isStreamAccessLogsMessage_LogEntries `protobuf_oneof:"log_entries"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage) Reset() { *m = StreamAccessLogsMessage{} } +func (m *StreamAccessLogsMessage) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsMessage) ProtoMessage() {} +func (*StreamAccessLogsMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_7df9b8b42f8221f5, []int{1} +} + +func (m *StreamAccessLogsMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage.Merge(m, src) +} +func (m *StreamAccessLogsMessage) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage.Size(m) +} +func (m *StreamAccessLogsMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage) GetIdentifier() *StreamAccessLogsMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +type isStreamAccessLogsMessage_LogEntries interface { + isStreamAccessLogsMessage_LogEntries() +} + +type StreamAccessLogsMessage_HttpLogs struct { + HttpLogs *StreamAccessLogsMessage_HTTPAccessLogEntries `protobuf:"bytes,2,opt,name=http_logs,json=httpLogs,proto3,oneof"` +} + +type StreamAccessLogsMessage_TcpLogs struct { + TcpLogs *StreamAccessLogsMessage_TCPAccessLogEntries `protobuf:"bytes,3,opt,name=tcp_logs,json=tcpLogs,proto3,oneof"` +} + +func (*StreamAccessLogsMessage_HttpLogs) isStreamAccessLogsMessage_LogEntries() {} + +func (*StreamAccessLogsMessage_TcpLogs) isStreamAccessLogsMessage_LogEntries() {} + +func (m *StreamAccessLogsMessage) GetLogEntries() isStreamAccessLogsMessage_LogEntries { + if m != nil { + return m.LogEntries + } + return nil +} + +func (m *StreamAccessLogsMessage) GetHttpLogs() *StreamAccessLogsMessage_HTTPAccessLogEntries { + if x, ok := m.GetLogEntries().(*StreamAccessLogsMessage_HttpLogs); ok { + return x.HttpLogs + } + return nil +} + +func (m *StreamAccessLogsMessage) GetTcpLogs() *StreamAccessLogsMessage_TCPAccessLogEntries { + if x, ok := m.GetLogEntries().(*StreamAccessLogsMessage_TcpLogs); ok { + return x.TcpLogs + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StreamAccessLogsMessage) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*StreamAccessLogsMessage_HttpLogs)(nil), + (*StreamAccessLogsMessage_TcpLogs)(nil), + } +} + +type StreamAccessLogsMessage_Identifier struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + LogName string `protobuf:"bytes,2,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_Identifier) Reset() { *m = StreamAccessLogsMessage_Identifier{} } +func (m *StreamAccessLogsMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamAccessLogsMessage_Identifier) ProtoMessage() {} +func (*StreamAccessLogsMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_7df9b8b42f8221f5, []int{1, 0} +} + +func (m *StreamAccessLogsMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_Identifier.Merge(m, src) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_Identifier.Size(m) +} +func (m *StreamAccessLogsMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_Identifier proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_Identifier) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *StreamAccessLogsMessage_Identifier) GetLogName() string { + if m != nil { + return m.LogName + } + return "" +} + +type StreamAccessLogsMessage_HTTPAccessLogEntries struct { + LogEntry []*v31.HTTPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) Reset() { + *m = StreamAccessLogsMessage_HTTPAccessLogEntries{} +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) String() string { + return proto.CompactTextString(m) +} +func (*StreamAccessLogsMessage_HTTPAccessLogEntries) ProtoMessage() {} +func (*StreamAccessLogsMessage_HTTPAccessLogEntries) Descriptor() ([]byte, []int) { + return fileDescriptor_7df9b8b42f8221f5, []int{1, 1} +} + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Merge(m, src) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.Size(m) +} +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_HTTPAccessLogEntries proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) GetLogEntry() []*v31.HTTPAccessLogEntry { + if m != nil { + return m.LogEntry + } + return nil +} + +type StreamAccessLogsMessage_TCPAccessLogEntries struct { + LogEntry []*v31.TCPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) Reset() { + *m = StreamAccessLogsMessage_TCPAccessLogEntries{} +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) String() string { + return proto.CompactTextString(m) +} +func (*StreamAccessLogsMessage_TCPAccessLogEntries) ProtoMessage() {} +func (*StreamAccessLogsMessage_TCPAccessLogEntries) Descriptor() ([]byte, []int) { + return fileDescriptor_7df9b8b42f8221f5, []int{1, 2} +} + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Unmarshal(m, b) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Marshal(b, m, deterministic) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Merge(m, src) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_Size() int { + return xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.Size(m) +} +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) XXX_DiscardUnknown() { + xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamAccessLogsMessage_TCPAccessLogEntries proto.InternalMessageInfo + +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) GetLogEntry() []*v31.TCPAccessLogEntry { + if m != nil { + return m.LogEntry + } + return nil +} + +func init() { + proto.RegisterType((*StreamAccessLogsResponse)(nil), "envoy.service.accesslog.v3.StreamAccessLogsResponse") + proto.RegisterType((*StreamAccessLogsMessage)(nil), "envoy.service.accesslog.v3.StreamAccessLogsMessage") + proto.RegisterType((*StreamAccessLogsMessage_Identifier)(nil), "envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier") + proto.RegisterType((*StreamAccessLogsMessage_HTTPAccessLogEntries)(nil), "envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries") + proto.RegisterType((*StreamAccessLogsMessage_TCPAccessLogEntries)(nil), "envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries") +} + +func init() { + proto.RegisterFile("envoy/service/accesslog/v3/als.proto", fileDescriptor_7df9b8b42f8221f5) +} + +var fileDescriptor_7df9b8b42f8221f5 = []byte{ + // 578 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x8b, 0xd3, 0x4e, + 0x18, 0xc6, 0x77, 0xb2, 0xfb, 0xdd, 0x66, 0xdf, 0x5e, 0xca, 0x7c, 0x85, 0x2d, 0x01, 0xb5, 0x16, + 0xc1, 0xa2, 0x90, 0x40, 0xbb, 0x82, 0x16, 0x54, 0x1a, 0x7f, 0x6c, 0x17, 0xdc, 0x52, 0xb3, 0xc5, + 0xa3, 0xcb, 0x6c, 0x32, 0x1b, 0x07, 0xd2, 0x99, 0x92, 0x99, 0x0d, 0xf6, 0xa6, 0xb7, 0xc5, 0xa3, + 0x07, 0x0f, 0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d, + 0x10, 0xa6, 0x69, 0xa4, 0x0f, 0xc8, 0x30, 0x91, 0xa7, 0xa3, 0xa4, 0xdf, 0xba, 0x03, 0x6d, 0xf9, + 0x00, 0xf6, 0xd7, 0xb0, 0x5c, 0xe6, 0xd1, 0xfa, 0x82, 0xe0, 0xff, 0x92, 0x95, 0xe0, 0x17, 0x8b, + 0xde, 0x6f, 0x2f, 0xf5, 0x3e, 0x0f, 0x28, 0xb7, 0x7e, 0xa8, 0xad, 0xf7, 0xe1, 0xd9, 0x1a, 0xd6, + 0x4b, 0x1c, 0x76, 0xef, 0x6b, 0xdc, 0x1e, 0xb4, 0x57, 0xc7, 0xb9, 0x18, 0xaa, 0xb3, 0x70, 0x3a, + 0xeb, 0xe6, 0x4f, 0x17, 0xb5, 0x3f, 0x22, 0xa8, 0x15, 0x95, 0x47, 0x19, 0x0d, 0xbf, 0x43, 0x50, + 0x9b, 0x87, 0xe0, 0xce, 0x1a, 0xd7, 0xde, 0xda, 0x5b, 0xa5, 0xa9, 0x78, 0x58, 0x36, 0x5a, 0xc8, + 0xed, 0x5d, 0xbc, 0xfd, 0xfe, 0x63, 0xdb, 0xa8, 0x19, 0xd0, 0x62, 0x22, 0xa3, 0x4c, 0x62, 0xf1, + 0x66, 0xfa, 0x0f, 0xa0, 0x6b, 0xf6, 0x22, 0x39, 0xd4, 0x4f, 0xde, 0x10, 0x9d, 0x23, 0x74, 0xb2, + 0x9d, 0x3e, 0x7f, 0x9d, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x13, 0x97, 0x10, 0x5b, 0xe7, 0x05, + 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// AccessLogServiceClient is the client API for AccessLogService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AccessLogServiceClient interface { + StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) +} + +type accessLogServiceClient struct { + cc *grpc.ClientConn +} + +func NewAccessLogServiceClient(cc *grpc.ClientConn) AccessLogServiceClient { + return &accessLogServiceClient{cc} +} + +func (c *accessLogServiceClient) StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_AccessLogService_serviceDesc.Streams[0], "/envoy.service.accesslog.v3.AccessLogService/StreamAccessLogs", opts...) + if err != nil { + return nil, err + } + x := &accessLogServiceStreamAccessLogsClient{stream} + return x, nil +} + +type AccessLogService_StreamAccessLogsClient interface { + Send(*StreamAccessLogsMessage) error + CloseAndRecv() (*StreamAccessLogsResponse, error) + grpc.ClientStream +} + +type accessLogServiceStreamAccessLogsClient struct { + grpc.ClientStream +} + +func (x *accessLogServiceStreamAccessLogsClient) Send(m *StreamAccessLogsMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *accessLogServiceStreamAccessLogsClient) CloseAndRecv() (*StreamAccessLogsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamAccessLogsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// AccessLogServiceServer is the server API for AccessLogService service. +type AccessLogServiceServer interface { + StreamAccessLogs(AccessLogService_StreamAccessLogsServer) error +} + +// UnimplementedAccessLogServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAccessLogServiceServer struct { +} + +func (*UnimplementedAccessLogServiceServer) StreamAccessLogs(srv AccessLogService_StreamAccessLogsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamAccessLogs not implemented") +} + +func RegisterAccessLogServiceServer(s *grpc.Server, srv AccessLogServiceServer) { + s.RegisterService(&_AccessLogService_serviceDesc, srv) +} + +func _AccessLogService_StreamAccessLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(AccessLogServiceServer).StreamAccessLogs(&accessLogServiceStreamAccessLogsServer{stream}) +} + +type AccessLogService_StreamAccessLogsServer interface { + SendAndClose(*StreamAccessLogsResponse) error + Recv() (*StreamAccessLogsMessage, error) + grpc.ServerStream +} + +type accessLogServiceStreamAccessLogsServer struct { + grpc.ServerStream +} + +func (x *accessLogServiceStreamAccessLogsServer) SendAndClose(m *StreamAccessLogsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *accessLogServiceStreamAccessLogsServer) Recv() (*StreamAccessLogsMessage, error) { + m := new(StreamAccessLogsMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _AccessLogService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.accesslog.v3.AccessLogService", + HandlerType: (*AccessLogServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamAccessLogs", + Handler: _AccessLogService_StreamAccessLogs_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/accesslog/v3/als.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.validate.go new file mode 100644 index 000000000..591db1276 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3/als.pb.validate.go @@ -0,0 +1,488 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/accesslog/v3/als.proto + +package envoy_service_accesslog_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _als_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamAccessLogsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamAccessLogsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamAccessLogsResponseValidationError is the validation error returned by +// StreamAccessLogsResponse.Validate if the designated constraints aren't met. +type StreamAccessLogsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsResponseValidationError) ErrorName() string { + return "StreamAccessLogsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsResponseValidationError) 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 %sStreamAccessLogsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsResponseValidationError{} + +// Validate checks the field values on StreamAccessLogsMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamAccessLogsMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.LogEntries.(type) { + + case *StreamAccessLogsMessage_HttpLogs: + + if v, ok := interface{}(m.GetHttpLogs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "HttpLogs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *StreamAccessLogsMessage_TcpLogs: + + if v, ok := interface{}(m.GetTcpLogs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessageValidationError{ + field: "TcpLogs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return StreamAccessLogsMessageValidationError{ + field: "LogEntries", + reason: "value is required", + } + + } + + return nil +} + +// StreamAccessLogsMessageValidationError is the validation error returned by +// StreamAccessLogsMessage.Validate if the designated constraints aren't met. +type StreamAccessLogsMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessageValidationError) ErrorName() string { + return "StreamAccessLogsMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessageValidationError) 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 %sStreamAccessLogsMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessageValidationError{} + +// Validate checks the field values on StreamAccessLogsMessage_Identifier with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *StreamAccessLogsMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetLogName()) < 1 { + return StreamAccessLogsMessage_IdentifierValidationError{ + field: "LogName", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// StreamAccessLogsMessage_IdentifierValidationError is the validation error +// returned by StreamAccessLogsMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamAccessLogsMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_IdentifierValidationError) ErrorName() string { + return "StreamAccessLogsMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_IdentifierValidationError) 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 %sStreamAccessLogsMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_IdentifierValidationError{} + +// Validate checks the field values on +// StreamAccessLogsMessage_HTTPAccessLogEntries with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *StreamAccessLogsMessage_HTTPAccessLogEntries) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogEntry()) < 1 { + return StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{ + field: "LogEntry", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetLogEntry() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{ + field: fmt.Sprintf("LogEntry[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError is the +// validation error returned by +// StreamAccessLogsMessage_HTTPAccessLogEntries.Validate if the designated +// constraints aren't met. +type StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) ErrorName() string { + return "StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError) 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 %sStreamAccessLogsMessage_HTTPAccessLogEntries.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_HTTPAccessLogEntriesValidationError{} + +// Validate checks the field values on +// StreamAccessLogsMessage_TCPAccessLogEntries with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *StreamAccessLogsMessage_TCPAccessLogEntries) Validate() error { + if m == nil { + return nil + } + + if len(m.GetLogEntry()) < 1 { + return StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{ + field: "LogEntry", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetLogEntry() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{ + field: fmt.Sprintf("LogEntry[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamAccessLogsMessage_TCPAccessLogEntriesValidationError is the validation +// error returned by StreamAccessLogsMessage_TCPAccessLogEntries.Validate if +// the designated constraints aren't met. +type StreamAccessLogsMessage_TCPAccessLogEntriesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) ErrorName() string { + return "StreamAccessLogsMessage_TCPAccessLogEntriesValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamAccessLogsMessage_TCPAccessLogEntriesValidationError) 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 %sStreamAccessLogsMessage_TCPAccessLogEntries.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamAccessLogsMessage_TCPAccessLogEntriesValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.go new file mode 100644 index 000000000..338664f0b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.go @@ -0,0 +1,392 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/auth/v2/attribute_context.proto + +package envoy_service_auth_v2 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AttributeContext struct { + Source *AttributeContext_Peer `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Destination *AttributeContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` + Request *AttributeContext_Request `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` + ContextExtensions map[string]string `protobuf:"bytes,10,rep,name=context_extensions,json=contextExtensions,proto3" json:"context_extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MetadataContext *core.Metadata `protobuf:"bytes,11,opt,name=metadata_context,json=metadataContext,proto3" json:"metadata_context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext) Reset() { *m = AttributeContext{} } +func (m *AttributeContext) String() string { return proto.CompactTextString(m) } +func (*AttributeContext) ProtoMessage() {} +func (*AttributeContext) Descriptor() ([]byte, []int) { + return fileDescriptor_a6030c9468e3591b, []int{0} +} + +func (m *AttributeContext) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext.Unmarshal(m, b) +} +func (m *AttributeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext.Marshal(b, m, deterministic) +} +func (m *AttributeContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext.Merge(m, src) +} +func (m *AttributeContext) XXX_Size() int { + return xxx_messageInfo_AttributeContext.Size(m) +} +func (m *AttributeContext) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext proto.InternalMessageInfo + +func (m *AttributeContext) GetSource() *AttributeContext_Peer { + if m != nil { + return m.Source + } + return nil +} + +func (m *AttributeContext) GetDestination() *AttributeContext_Peer { + if m != nil { + return m.Destination + } + return nil +} + +func (m *AttributeContext) GetRequest() *AttributeContext_Request { + if m != nil { + return m.Request + } + return nil +} + +func (m *AttributeContext) GetContextExtensions() map[string]string { + if m != nil { + return m.ContextExtensions + } + return nil +} + +func (m *AttributeContext) GetMetadataContext() *core.Metadata { + if m != nil { + return m.MetadataContext + } + return nil +} + +type AttributeContext_Peer struct { + Address *core.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"` + Certificate string `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_Peer) Reset() { *m = AttributeContext_Peer{} } +func (m *AttributeContext_Peer) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_Peer) ProtoMessage() {} +func (*AttributeContext_Peer) Descriptor() ([]byte, []int) { + return fileDescriptor_a6030c9468e3591b, []int{0, 0} +} + +func (m *AttributeContext_Peer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_Peer.Unmarshal(m, b) +} +func (m *AttributeContext_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_Peer.Marshal(b, m, deterministic) +} +func (m *AttributeContext_Peer) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_Peer.Merge(m, src) +} +func (m *AttributeContext_Peer) XXX_Size() int { + return xxx_messageInfo_AttributeContext_Peer.Size(m) +} +func (m *AttributeContext_Peer) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_Peer.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_Peer proto.InternalMessageInfo + +func (m *AttributeContext_Peer) GetAddress() *core.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *AttributeContext_Peer) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *AttributeContext_Peer) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *AttributeContext_Peer) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *AttributeContext_Peer) GetCertificate() string { + if m != nil { + return m.Certificate + } + return "" +} + +type AttributeContext_Request struct { + Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + Http *AttributeContext_HttpRequest `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_Request) Reset() { *m = AttributeContext_Request{} } +func (m *AttributeContext_Request) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_Request) ProtoMessage() {} +func (*AttributeContext_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_a6030c9468e3591b, []int{0, 1} +} + +func (m *AttributeContext_Request) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_Request.Unmarshal(m, b) +} +func (m *AttributeContext_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_Request.Marshal(b, m, deterministic) +} +func (m *AttributeContext_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_Request.Merge(m, src) +} +func (m *AttributeContext_Request) XXX_Size() int { + return xxx_messageInfo_AttributeContext_Request.Size(m) +} +func (m *AttributeContext_Request) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_Request proto.InternalMessageInfo + +func (m *AttributeContext_Request) GetTime() *timestamp.Timestamp { + if m != nil { + return m.Time + } + return nil +} + +func (m *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest { + if m != nil { + return m.Http + } + return nil +} + +type AttributeContext_HttpRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` + Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"` + Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` + Fragment string `protobuf:"bytes,8,opt,name=fragment,proto3" json:"fragment,omitempty"` + Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` + Protocol string `protobuf:"bytes,10,opt,name=protocol,proto3" json:"protocol,omitempty"` + Body string `protobuf:"bytes,11,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_HttpRequest) Reset() { *m = AttributeContext_HttpRequest{} } +func (m *AttributeContext_HttpRequest) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_HttpRequest) ProtoMessage() {} +func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a6030c9468e3591b, []int{0, 2} +} + +func (m *AttributeContext_HttpRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_HttpRequest.Unmarshal(m, b) +} +func (m *AttributeContext_HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_HttpRequest.Marshal(b, m, deterministic) +} +func (m *AttributeContext_HttpRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_HttpRequest.Merge(m, src) +} +func (m *AttributeContext_HttpRequest) XXX_Size() int { + return xxx_messageInfo_AttributeContext_HttpRequest.Size(m) +} +func (m *AttributeContext_HttpRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_HttpRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_HttpRequest proto.InternalMessageInfo + +func (m *AttributeContext_HttpRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetMethod() string { + if m != nil { + return m.Method + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetHeaders() map[string]string { + if m != nil { + return m.Headers + } + return nil +} + +func (m *AttributeContext_HttpRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetHost() string { + if m != nil { + return m.Host + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetScheme() string { + if m != nil { + return m.Scheme + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetFragment() string { + if m != nil { + return m.Fragment + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *AttributeContext_HttpRequest) GetProtocol() string { + if m != nil { + return m.Protocol + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +func init() { + proto.RegisterType((*AttributeContext)(nil), "envoy.service.auth.v2.AttributeContext") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v2.AttributeContext.ContextExtensionsEntry") + proto.RegisterType((*AttributeContext_Peer)(nil), "envoy.service.auth.v2.AttributeContext.Peer") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v2.AttributeContext.Peer.LabelsEntry") + proto.RegisterType((*AttributeContext_Request)(nil), "envoy.service.auth.v2.AttributeContext.Request") + proto.RegisterType((*AttributeContext_HttpRequest)(nil), "envoy.service.auth.v2.AttributeContext.HttpRequest") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v2.AttributeContext.HttpRequest.HeadersEntry") +} + +func init() { + proto.RegisterFile("envoy/service/auth/v2/attribute_context.proto", fileDescriptor_a6030c9468e3591b) +} + +var fileDescriptor_a6030c9468e3591b = []byte{ + // 668 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x56, 0x7e, 0x9a, 0x34, 0x13, 0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, 0x71, 0xe9, 0x1b, 0x76, 0x2d, 0xbe, + 0x60, 0xd0, 0xe9, 0xd7, 0xb6, 0x1a, 0x89, 0xb5, 0x0d, 0xde, 0x8e, 0x3f, 0x95, 0x93, 0x00, 0x1c, + 0xbe, 0xf2, 0x0d, 0x7e, 0x24, 0xb3, 0xb9, 0x3d, 0x8e, 0x4e, 0x62, 0xed, 0x70, 0x17, 0xee, 0x2c, + 0xb6, 0x73, 0xa3, 0x55, 0x38, 0x80, 0xf5, 0xe5, 0x57, 0x7a, 0x13, 0x96, 0xfd, 0xa3, 0x5f, 0x5f, + 0x7f, 0xff, 0x69, 0xd5, 0x7b, 0x35, 0x78, 0x22, 0xa4, 0x93, 0xa3, 0x50, 0xf2, 0x62, 0xbe, 0x5c, + 0x99, 0xfd, 0xb5, 0xab, 0xd2, 0x0c, 0x4d, 0x7b, 0xc3, 0xda, 0xa8, 0x65, 0xfb, 0xdc, 0xfe, 0x1b, + 0x00, 0x00, 0xff, 0xff, 0xd1, 0xda, 0x79, 0x9c, 0x39, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.validate.go new file mode 100644 index 000000000..5b85f8732 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/attribute_context.pb.validate.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/auth/v2/attribute_context.proto + +package envoy_service_auth_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _attribute_context_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AttributeContext with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AttributeContext) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Source", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDestination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Destination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ContextExtensions + + if v, ok := interface{}(m.GetMetadataContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "MetadataContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AttributeContextValidationError is the validation error returned by +// AttributeContext.Validate if the designated constraints aren't met. +type AttributeContextValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContextValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContextValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContextValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContextValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContextValidationError) ErrorName() string { return "AttributeContextValidationError" } + +// Error satisfies the builtin error interface +func (e AttributeContextValidationError) 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 %sAttributeContext.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContextValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContextValidationError{} + +// Validate checks the field values on AttributeContext_Peer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_Peer) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_PeerValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Service + + // no validation rules for Labels + + // no validation rules for Principal + + // no validation rules for Certificate + + return nil +} + +// AttributeContext_PeerValidationError is the validation error returned by +// AttributeContext_Peer.Validate if the designated constraints aren't met. +type AttributeContext_PeerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_PeerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_PeerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_PeerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_PeerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_PeerValidationError) ErrorName() string { + return "AttributeContext_PeerValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_PeerValidationError) 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 %sAttributeContext_Peer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_PeerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_PeerValidationError{} + +// Validate checks the field values on AttributeContext_Request with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_Request) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_RequestValidationError{ + field: "Time", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetHttp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_RequestValidationError{ + field: "Http", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AttributeContext_RequestValidationError is the validation error returned by +// AttributeContext_Request.Validate if the designated constraints aren't met. +type AttributeContext_RequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_RequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_RequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_RequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_RequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_RequestValidationError) ErrorName() string { + return "AttributeContext_RequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_RequestValidationError) 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 %sAttributeContext_Request.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_RequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_RequestValidationError{} + +// Validate checks the field values on AttributeContext_HttpRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_HttpRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + // no validation rules for Method + + // no validation rules for Headers + + // no validation rules for Path + + // no validation rules for Host + + // no validation rules for Scheme + + // no validation rules for Query + + // no validation rules for Fragment + + // no validation rules for Size + + // no validation rules for Protocol + + // no validation rules for Body + + return nil +} + +// AttributeContext_HttpRequestValidationError is the validation error returned +// by AttributeContext_HttpRequest.Validate if the designated constraints +// aren't met. +type AttributeContext_HttpRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_HttpRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_HttpRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_HttpRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_HttpRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_HttpRequestValidationError) ErrorName() string { + return "AttributeContext_HttpRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_HttpRequestValidationError) 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 %sAttributeContext_HttpRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_HttpRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_HttpRequestValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.go new file mode 100644 index 000000000..3a0266947 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.go @@ -0,0 +1,378 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/auth/v2/external_auth.proto + +package envoy_service_auth_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _type "github.com/envoyproxy/go-control-plane/envoy/type" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + 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" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CheckRequest struct { + Attributes *AttributeContext `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckRequest) Reset() { *m = CheckRequest{} } +func (m *CheckRequest) String() string { return proto.CompactTextString(m) } +func (*CheckRequest) ProtoMessage() {} +func (*CheckRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5257cfee93a30acb, []int{0} +} + +func (m *CheckRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckRequest.Unmarshal(m, b) +} +func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic) +} +func (m *CheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckRequest.Merge(m, src) +} +func (m *CheckRequest) XXX_Size() int { + return xxx_messageInfo_CheckRequest.Size(m) +} +func (m *CheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckRequest proto.InternalMessageInfo + +func (m *CheckRequest) GetAttributes() *AttributeContext { + if m != nil { + return m.Attributes + } + return nil +} + +type DeniedHttpResponse struct { + Status *_type.HttpStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Headers []*core.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeniedHttpResponse) Reset() { *m = DeniedHttpResponse{} } +func (m *DeniedHttpResponse) String() string { return proto.CompactTextString(m) } +func (*DeniedHttpResponse) ProtoMessage() {} +func (*DeniedHttpResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5257cfee93a30acb, []int{1} +} + +func (m *DeniedHttpResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeniedHttpResponse.Unmarshal(m, b) +} +func (m *DeniedHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeniedHttpResponse.Marshal(b, m, deterministic) +} +func (m *DeniedHttpResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeniedHttpResponse.Merge(m, src) +} +func (m *DeniedHttpResponse) XXX_Size() int { + return xxx_messageInfo_DeniedHttpResponse.Size(m) +} +func (m *DeniedHttpResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeniedHttpResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeniedHttpResponse proto.InternalMessageInfo + +func (m *DeniedHttpResponse) GetStatus() *_type.HttpStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *DeniedHttpResponse) GetHeaders() []*core.HeaderValueOption { + if m != nil { + return m.Headers + } + return nil +} + +func (m *DeniedHttpResponse) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +type OkHttpResponse struct { + Headers []*core.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OkHttpResponse) Reset() { *m = OkHttpResponse{} } +func (m *OkHttpResponse) String() string { return proto.CompactTextString(m) } +func (*OkHttpResponse) ProtoMessage() {} +func (*OkHttpResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5257cfee93a30acb, []int{2} +} + +func (m *OkHttpResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OkHttpResponse.Unmarshal(m, b) +} +func (m *OkHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OkHttpResponse.Marshal(b, m, deterministic) +} +func (m *OkHttpResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OkHttpResponse.Merge(m, src) +} +func (m *OkHttpResponse) XXX_Size() int { + return xxx_messageInfo_OkHttpResponse.Size(m) +} +func (m *OkHttpResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OkHttpResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OkHttpResponse proto.InternalMessageInfo + +func (m *OkHttpResponse) GetHeaders() []*core.HeaderValueOption { + if m != nil { + return m.Headers + } + return nil +} + +type CheckResponse struct { + Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // Types that are valid to be assigned to HttpResponse: + // *CheckResponse_DeniedResponse + // *CheckResponse_OkResponse + HttpResponse isCheckResponse_HttpResponse `protobuf_oneof:"http_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckResponse) Reset() { *m = CheckResponse{} } +func (m *CheckResponse) String() string { return proto.CompactTextString(m) } +func (*CheckResponse) ProtoMessage() {} +func (*CheckResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5257cfee93a30acb, []int{3} +} + +func (m *CheckResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckResponse.Unmarshal(m, b) +} +func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic) +} +func (m *CheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckResponse.Merge(m, src) +} +func (m *CheckResponse) XXX_Size() int { + return xxx_messageInfo_CheckResponse.Size(m) +} +func (m *CheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckResponse proto.InternalMessageInfo + +func (m *CheckResponse) GetStatus() *status.Status { + if m != nil { + return m.Status + } + return nil +} + +type isCheckResponse_HttpResponse interface { + isCheckResponse_HttpResponse() +} + +type CheckResponse_DeniedResponse struct { + DeniedResponse *DeniedHttpResponse `protobuf:"bytes,2,opt,name=denied_response,json=deniedResponse,proto3,oneof"` +} + +type CheckResponse_OkResponse struct { + OkResponse *OkHttpResponse `protobuf:"bytes,3,opt,name=ok_response,json=okResponse,proto3,oneof"` +} + +func (*CheckResponse_DeniedResponse) isCheckResponse_HttpResponse() {} + +func (*CheckResponse_OkResponse) isCheckResponse_HttpResponse() {} + +func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse { + if m != nil { + return m.HttpResponse + } + return nil +} + +func (m *CheckResponse) GetDeniedResponse() *DeniedHttpResponse { + if x, ok := m.GetHttpResponse().(*CheckResponse_DeniedResponse); ok { + return x.DeniedResponse + } + return nil +} + +func (m *CheckResponse) GetOkResponse() *OkHttpResponse { + if x, ok := m.GetHttpResponse().(*CheckResponse_OkResponse); ok { + return x.OkResponse + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CheckResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CheckResponse_DeniedResponse)(nil), + (*CheckResponse_OkResponse)(nil), + } +} + +func init() { + proto.RegisterType((*CheckRequest)(nil), "envoy.service.auth.v2.CheckRequest") + proto.RegisterType((*DeniedHttpResponse)(nil), "envoy.service.auth.v2.DeniedHttpResponse") + proto.RegisterType((*OkHttpResponse)(nil), "envoy.service.auth.v2.OkHttpResponse") + proto.RegisterType((*CheckResponse)(nil), "envoy.service.auth.v2.CheckResponse") +} + +func init() { + proto.RegisterFile("envoy/service/auth/v2/external_auth.proto", fileDescriptor_5257cfee93a30acb) +} + +var fileDescriptor_5257cfee93a30acb = []byte{ + // 500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x6e, 0x13, 0x3f, + 0x10, 0xc6, 0xe3, 0xe4, 0xdf, 0xfc, 0xc1, 0x21, 0x6d, 0xb1, 0x04, 0x8d, 0x22, 0x90, 0xa2, 0xb4, + 0x88, 0x14, 0x09, 0x5b, 0x0a, 0x17, 0x4e, 0x48, 0x4d, 0xa9, 0xc8, 0xad, 0xd1, 0x52, 0xc1, 0x31, + 0x72, 0x76, 0x47, 0xcd, 0x2a, 0xd1, 0xda, 0xd8, 0xb3, 0xab, 0x84, 0x13, 0x47, 0xc4, 0x63, 0xf0, + 0x18, 0x3c, 0x01, 0x57, 0xde, 0x83, 0x27, 0xe0, 0x84, 0xd6, 0x76, 0x42, 0x03, 0x09, 0x17, 0x6e, + 0xd6, 0xce, 0xf7, 0xfd, 0x3c, 0xdf, 0x78, 0x96, 0x9e, 0x42, 0x56, 0xa8, 0xa5, 0xb0, 0x60, 0x8a, + 0x34, 0x06, 0x21, 0x73, 0x9c, 0x8a, 0xa2, 0x2f, 0x60, 0x81, 0x60, 0x32, 0x39, 0x1f, 0x97, 0x1f, + 0xb8, 0x36, 0x0a, 0x15, 0xbb, 0xe7, 0xa4, 0x3c, 0x48, 0xb9, 0xab, 0x14, 0xfd, 0xf6, 0x03, 0x4f, + 0x90, 0x3a, 0x2d, 0x8d, 0xb1, 0x32, 0x20, 0x26, 0xd2, 0x82, 0x37, 0xb5, 0x9f, 0x6e, 0xe7, 0x4b, + 0x44, 0x93, 0x4e, 0x72, 0x84, 0x71, 0xac, 0x32, 0x84, 0x05, 0x06, 0x79, 0x80, 0xe1, 0x52, 0x83, + 0x98, 0x22, 0xea, 0xb1, 0x45, 0x89, 0xb9, 0x0d, 0xd5, 0xa3, 0x6b, 0xa5, 0xae, 0xe7, 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0x43, 0x6e, 0x74, 0xcc, 0x7d, 0xda, 0x75, 0xc6, 0x2b, 0x7a, 0x90, + 0xb8, 0x99, 0x8d, 0x4d, 0xb0, 0xb7, 0xaa, 0xce, 0x74, 0xba, 0xe3, 0x09, 0xfe, 0x9c, 0xf0, 0xb0, + 0x12, 0xed, 0x7b, 0xc6, 0xba, 0x83, 0x21, 0x6d, 0xa8, 0xd9, 0x2f, 0x62, 0xcd, 0x11, 0x1f, 0xed, + 0x20, 0x6e, 0xce, 0x63, 0x58, 0x89, 0xa8, 0x5a, 0x67, 0x19, 0x1c, 0xd0, 0xa6, 0xdb, 0xc9, 0x15, + 0xab, 0x0f, 0xb4, 0x79, 0x96, 0xe3, 0x54, 0x99, 0xf4, 0xbd, 0x5b, 0x3b, 0x76, 0x45, 0xf7, 0x5c, + 0x7c, 0x76, 0xbc, 0x83, 0x7f, 0x73, 0xdb, 0xda, 0x27, 0x7f, 0x17, 0xf9, 0x4b, 0xba, 0x95, 0xc1, + 0xc5, 0x97, 0x0f, 0x5f, 0xbf, 0xd5, 0xab, 0x87, 0x84, 0x1e, 0xa7, 0xca, 0x7b, 0xb4, 0x51, 0x8b, + 0xe5, 0x76, 0xfb, 0xe0, 0xee, 0x45, 0xf8, 0x79, 0xcb, 0xde, 0x46, 0xe5, 0x9e, 0x8f, 0xc8, 0x47, + 0x42, 0x26, 0x75, 0xb7, 0xf3, 0xcf, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x1b, 0x7b, 0xd5, + 0xf3, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// AuthorizationClient is the client API for Authorization service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AuthorizationClient interface { + Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) +} + +type authorizationClient struct { + cc *grpc.ClientConn +} + +func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient { + return &authorizationClient{cc} +} + +func (c *authorizationClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { + out := new(CheckResponse) + err := c.cc.Invoke(ctx, "/envoy.service.auth.v2.Authorization/Check", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthorizationServer is the server API for Authorization service. +type AuthorizationServer interface { + Check(context.Context, *CheckRequest) (*CheckResponse, error) +} + +// UnimplementedAuthorizationServer can be embedded to have forward compatible implementations. +type UnimplementedAuthorizationServer struct { +} + +func (*UnimplementedAuthorizationServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented") +} + +func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer) { + s.RegisterService(&_Authorization_serviceDesc, srv) +} + +func _Authorization_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthorizationServer).Check(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.auth.v2.Authorization/Check", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthorizationServer).Check(ctx, req.(*CheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Authorization_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.auth.v2.Authorization", + HandlerType: (*AuthorizationServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Check", + Handler: _Authorization_Check_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "envoy/service/auth/v2/external_auth.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.validate.go new file mode 100644 index 000000000..d68cf17ab --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2/external_auth.pb.validate.go @@ -0,0 +1,396 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/auth/v2/external_auth.proto + +package envoy_service_auth_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _external_auth_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CheckRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckRequestValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CheckRequestValidationError is the validation error returned by +// CheckRequest.Validate if the designated constraints aren't met. +type CheckRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckRequestValidationError) ErrorName() string { return "CheckRequestValidationError" } + +// Error satisfies the builtin error interface +func (e CheckRequestValidationError) 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 %sCheckRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckRequestValidationError{} + +// Validate checks the field values on DeniedHttpResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeniedHttpResponse) Validate() error { + if m == nil { + return nil + } + + if m.GetStatus() == nil { + return DeniedHttpResponseValidationError{ + field: "Status", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DeniedHttpResponseValidationError{ + field: "Status", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DeniedHttpResponseValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Body + + return nil +} + +// DeniedHttpResponseValidationError is the validation error returned by +// DeniedHttpResponse.Validate if the designated constraints aren't met. +type DeniedHttpResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeniedHttpResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeniedHttpResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeniedHttpResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeniedHttpResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeniedHttpResponseValidationError) ErrorName() string { + return "DeniedHttpResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e DeniedHttpResponseValidationError) 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 %sDeniedHttpResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeniedHttpResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeniedHttpResponseValidationError{} + +// Validate checks the field values on OkHttpResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OkHttpResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OkHttpResponseValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OkHttpResponseValidationError is the validation error returned by +// OkHttpResponse.Validate if the designated constraints aren't met. +type OkHttpResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OkHttpResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OkHttpResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OkHttpResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OkHttpResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OkHttpResponseValidationError) ErrorName() string { return "OkHttpResponseValidationError" } + +// Error satisfies the builtin error interface +func (e OkHttpResponseValidationError) 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 %sOkHttpResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OkHttpResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OkHttpResponseValidationError{} + +// Validate checks the field values on CheckResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "Status", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.HttpResponse.(type) { + + case *CheckResponse_DeniedResponse: + + if v, ok := interface{}(m.GetDeniedResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "DeniedResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CheckResponse_OkResponse: + + if v, ok := interface{}(m.GetOkResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "OkResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CheckResponseValidationError is the validation error returned by +// CheckResponse.Validate if the designated constraints aren't met. +type CheckResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckResponseValidationError) ErrorName() string { return "CheckResponseValidationError" } + +// Error satisfies the builtin error interface +func (e CheckResponseValidationError) 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 %sCheckResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.go new file mode 100644 index 000000000..7e392f730 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/auth/v2alpha/external_auth.proto + +package envoy_service_auth_v2alpha + +import ( + context "context" + fmt "fmt" + v2 "github.com/envoyproxy/go-control-plane/envoy/service/auth/v2" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { + proto.RegisterFile("envoy/service/auth/v2alpha/external_auth.proto", fileDescriptor_878c0ddb0c43de8d) +} + +var fileDescriptor_878c0ddb0c43de8d = []byte{ + // 176 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xce, 0xb1, 0x0e, 0x82, 0x30, + 0x10, 0x06, 0xe0, 0x30, 0xe8, 0xd0, 0xc4, 0x85, 0x91, 0x55, 0x07, 0x5d, 0xae, 0x09, 0x8e, 0x4e, + 0xc2, 0x0b, 0x10, 0x5e, 0xc0, 0x54, 0x72, 0x49, 0x1b, 0x49, 0xaf, 0xb6, 0x07, 0x01, 0x9f, 0xc0, + 0xc7, 0x36, 0x54, 0xc6, 0xea, 0x7a, 0xff, 0x97, 0xff, 0x7e, 0x01, 0x68, 0x47, 0x9a, 0x65, 0x40, + 0x3f, 0x9a, 0x0e, 0xa5, 0x1a, 0x58, 0xcb, 0xb1, 0x54, 0xbd, 0xd3, 0x4a, 0xe2, 0xc4, 0xe8, 0xad, + 0xea, 0x6f, 0xcb, 0x15, 0x9c, 0x27, 0xa6, 0xbc, 0x88, 0x1e, 0x56, 0x0f, 0x31, 0x59, 0x7d, 0x71, + 0x4a, 0x76, 0xa5, 0x6a, 0xca, 0x4e, 0xec, 0xae, 0x03, 0x6b, 0xf2, 0xe6, 0xa5, 0xd8, 0x90, 0xcd, + 0x5b, 0xb1, 0xa9, 0x35, 0x76, 0x8f, 0x7c, 0x0f, 0xc9, 0x0f, 0x10, 0xd3, 0x16, 0x9f, 0x03, 0x06, + 0x2e, 0x0e, 0xff, 0x51, 0x70, 0x64, 0x03, 0x56, 0x17, 0x71, 0x34, 0xf4, 0x95, 0xce, 0xd3, 0x34, + 0xc3, 0xef, 0xed, 0x95, 0xa8, 0xd1, 0x73, 0x68, 0x96, 0x71, 0x4d, 0xf6, 0xce, 0xb2, 0xfb, 0x36, + 0x0e, 0x3d, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xed, 0xe3, 0x41, 0xb2, 0x21, 0x01, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// AuthorizationClient is the client API for Authorization service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AuthorizationClient interface { + Check(ctx context.Context, in *v2.CheckRequest, opts ...grpc.CallOption) (*v2.CheckResponse, error) +} + +type authorizationClient struct { + cc *grpc.ClientConn +} + +func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient { + return &authorizationClient{cc} +} + +func (c *authorizationClient) Check(ctx context.Context, in *v2.CheckRequest, opts ...grpc.CallOption) (*v2.CheckResponse, error) { + out := new(v2.CheckResponse) + err := c.cc.Invoke(ctx, "/envoy.service.auth.v2alpha.Authorization/Check", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthorizationServer is the server API for Authorization service. +type AuthorizationServer interface { + Check(context.Context, *v2.CheckRequest) (*v2.CheckResponse, error) +} + +// UnimplementedAuthorizationServer can be embedded to have forward compatible implementations. +type UnimplementedAuthorizationServer struct { +} + +func (*UnimplementedAuthorizationServer) Check(ctx context.Context, req *v2.CheckRequest) (*v2.CheckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Check not implemented") +} + +func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer) { + s.RegisterService(&_Authorization_serviceDesc, srv) +} + +func _Authorization_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v2.CheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthorizationServer).Check(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.auth.v2alpha.Authorization/Check", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthorizationServer).Check(ctx, req.(*v2.CheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Authorization_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.auth.v2alpha.Authorization", + HandlerType: (*AuthorizationServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Check", + Handler: _Authorization_Check_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "envoy/service/auth/v2alpha/external_auth.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.validate.go new file mode 100644 index 000000000..c52620a2d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha/external_auth.pb.validate.go @@ -0,0 +1,37 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/auth/v2alpha/external_auth.proto + +package envoy_service_auth_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _external_auth_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.go new file mode 100644 index 000000000..01e450d70 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.go @@ -0,0 +1,397 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/auth/v3/attribute_context.proto + +package envoy_service_auth_v3 + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AttributeContext struct { + Source *AttributeContext_Peer `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Destination *AttributeContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` + Request *AttributeContext_Request `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` + ContextExtensions map[string]string `protobuf:"bytes,10,rep,name=context_extensions,json=contextExtensions,proto3" json:"context_extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MetadataContext *v3.Metadata `protobuf:"bytes,11,opt,name=metadata_context,json=metadataContext,proto3" json:"metadata_context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext) Reset() { *m = AttributeContext{} } +func (m *AttributeContext) String() string { return proto.CompactTextString(m) } +func (*AttributeContext) ProtoMessage() {} +func (*AttributeContext) Descriptor() ([]byte, []int) { + return fileDescriptor_2a621374f4ae6edf, []int{0} +} + +func (m *AttributeContext) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext.Unmarshal(m, b) +} +func (m *AttributeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext.Marshal(b, m, deterministic) +} +func (m *AttributeContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext.Merge(m, src) +} +func (m *AttributeContext) XXX_Size() int { + return xxx_messageInfo_AttributeContext.Size(m) +} +func (m *AttributeContext) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext proto.InternalMessageInfo + +func (m *AttributeContext) GetSource() *AttributeContext_Peer { + if m != nil { + return m.Source + } + return nil +} + +func (m *AttributeContext) GetDestination() *AttributeContext_Peer { + if m != nil { + return m.Destination + } + return nil +} + +func (m *AttributeContext) GetRequest() *AttributeContext_Request { + if m != nil { + return m.Request + } + return nil +} + +func (m *AttributeContext) GetContextExtensions() map[string]string { + if m != nil { + return m.ContextExtensions + } + return nil +} + +func (m *AttributeContext) GetMetadataContext() *v3.Metadata { + if m != nil { + return m.MetadataContext + } + return nil +} + +type AttributeContext_Peer struct { + Address *v3.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"` + Certificate string `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_Peer) Reset() { *m = AttributeContext_Peer{} } +func (m *AttributeContext_Peer) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_Peer) ProtoMessage() {} +func (*AttributeContext_Peer) Descriptor() ([]byte, []int) { + return fileDescriptor_2a621374f4ae6edf, []int{0, 0} +} + +func (m *AttributeContext_Peer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_Peer.Unmarshal(m, b) +} +func (m *AttributeContext_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_Peer.Marshal(b, m, deterministic) +} +func (m *AttributeContext_Peer) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_Peer.Merge(m, src) +} +func (m *AttributeContext_Peer) XXX_Size() int { + return xxx_messageInfo_AttributeContext_Peer.Size(m) +} +func (m *AttributeContext_Peer) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_Peer.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_Peer proto.InternalMessageInfo + +func (m *AttributeContext_Peer) GetAddress() *v3.Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *AttributeContext_Peer) GetService() string { + if m != nil { + return m.Service + } + return "" +} + +func (m *AttributeContext_Peer) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *AttributeContext_Peer) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *AttributeContext_Peer) GetCertificate() string { + if m != nil { + return m.Certificate + } + return "" +} + +type AttributeContext_Request struct { + Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + Http *AttributeContext_HttpRequest `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_Request) Reset() { *m = AttributeContext_Request{} } +func (m *AttributeContext_Request) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_Request) ProtoMessage() {} +func (*AttributeContext_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_2a621374f4ae6edf, []int{0, 1} +} + +func (m *AttributeContext_Request) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_Request.Unmarshal(m, b) +} +func (m *AttributeContext_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_Request.Marshal(b, m, deterministic) +} +func (m *AttributeContext_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_Request.Merge(m, src) +} +func (m *AttributeContext_Request) XXX_Size() int { + return xxx_messageInfo_AttributeContext_Request.Size(m) +} +func (m *AttributeContext_Request) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_Request proto.InternalMessageInfo + +func (m *AttributeContext_Request) GetTime() *timestamp.Timestamp { + if m != nil { + return m.Time + } + return nil +} + +func (m *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest { + if m != nil { + return m.Http + } + return nil +} + +type AttributeContext_HttpRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` + Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"` + Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` + Fragment string `protobuf:"bytes,8,opt,name=fragment,proto3" json:"fragment,omitempty"` + Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` + Protocol string `protobuf:"bytes,10,opt,name=protocol,proto3" json:"protocol,omitempty"` + Body string `protobuf:"bytes,11,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttributeContext_HttpRequest) Reset() { *m = AttributeContext_HttpRequest{} } +func (m *AttributeContext_HttpRequest) String() string { return proto.CompactTextString(m) } +func (*AttributeContext_HttpRequest) ProtoMessage() {} +func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2a621374f4ae6edf, []int{0, 2} +} + +func (m *AttributeContext_HttpRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttributeContext_HttpRequest.Unmarshal(m, b) +} +func (m *AttributeContext_HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttributeContext_HttpRequest.Marshal(b, m, deterministic) +} +func (m *AttributeContext_HttpRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeContext_HttpRequest.Merge(m, src) +} +func (m *AttributeContext_HttpRequest) XXX_Size() int { + return xxx_messageInfo_AttributeContext_HttpRequest.Size(m) +} +func (m *AttributeContext_HttpRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeContext_HttpRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeContext_HttpRequest proto.InternalMessageInfo + +func (m *AttributeContext_HttpRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetMethod() string { + if m != nil { + return m.Method + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetHeaders() map[string]string { + if m != nil { + return m.Headers + } + return nil +} + +func (m *AttributeContext_HttpRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetHost() string { + if m != nil { + return m.Host + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetScheme() string { + if m != nil { + return m.Scheme + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetFragment() string { + if m != nil { + return m.Fragment + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *AttributeContext_HttpRequest) GetProtocol() string { + if m != nil { + return m.Protocol + } + return "" +} + +func (m *AttributeContext_HttpRequest) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +func init() { + proto.RegisterType((*AttributeContext)(nil), "envoy.service.auth.v3.AttributeContext") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v3.AttributeContext.ContextExtensionsEntry") + proto.RegisterType((*AttributeContext_Peer)(nil), "envoy.service.auth.v3.AttributeContext.Peer") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v3.AttributeContext.Peer.LabelsEntry") + proto.RegisterType((*AttributeContext_Request)(nil), "envoy.service.auth.v3.AttributeContext.Request") + proto.RegisterType((*AttributeContext_HttpRequest)(nil), "envoy.service.auth.v3.AttributeContext.HttpRequest") + proto.RegisterMapType((map[string]string)(nil), "envoy.service.auth.v3.AttributeContext.HttpRequest.HeadersEntry") +} + +func init() { + proto.RegisterFile("envoy/service/auth/v3/attribute_context.proto", fileDescriptor_2a621374f4ae6edf) +} + +var fileDescriptor_2a621374f4ae6edf = []byte{ + // 742 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xdb, 0x46, + 0x10, 0x85, 0x3e, 0x2c, 0x59, 0xc3, 0xa2, 0x55, 0x17, 0xb5, 0x41, 0x10, 0xb5, 0xab, 0xba, 0x40, + 0x21, 0xa0, 0x35, 0x59, 0x48, 0x2d, 0x6a, 0xeb, 0x50, 0xd4, 0xae, 0xdd, 0xda, 0x40, 0x5b, 0x08, + 0x44, 0x4e, 0xb9, 0x18, 0x2b, 0x72, 0x24, 0x2d, 0x22, 0x71, 0xe9, 0xdd, 0xa5, 0x60, 0xe5, 0x94, + 0x63, 0x7e, 0x43, 0xfe, 0x49, 0x72, 0xc8, 0x2d, 0x40, 0xae, 0xb9, 0xe6, 0xb7, 0xe4, 0x10, 0xec, + 0x07, 0x1d, 0xc1, 0xd1, 0x41, 0xf6, 0x49, 0x3b, 0xcb, 0x37, 0x6f, 0x67, 0xde, 0x9b, 0x11, 0x1c, + 0x62, 0xb6, 0xe0, 0xcb, 0x48, 0xa2, 0x58, 0xb0, 0x04, 0x23, 0x5a, 0xa8, 0x69, 0xb4, 0xe8, 0x47, + 0x54, 0x29, 0xc1, 0x46, 0x85, 0xc2, 0xab, 0x84, 0x67, 0x0a, 0x6f, 0x54, 0x98, 0x0b, 0xae, 0x38, + 0xd9, 0x31, 0xf0, 0xd0, 0xc1, 0x43, 0x0d, 0x0f, 0x17, 0xfd, 0xe0, 0xc0, 0xb2, 0x24, 0x3c, 0x1b, + 0xb3, 0x49, 0x94, 0x70, 0x81, 0x86, 0x24, 0x4d, 0x05, 0x4a, 0x69, 0x53, 0x83, 0xef, 0xd6, 0x62, + 0x46, 0x54, 0x62, 0x09, 0x98, 0x70, 0x3e, 0x99, 0x61, 0x64, 0xa2, 0x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, 0x97, 0x60, 0xa8, + 0x85, 0x1c, 0x56, 0x46, 0x0d, 0xa3, 0x68, 0xff, 0x63, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x58, + 0xa5, 0xbc, 0x3d, 0x07, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.validate.go new file mode 100644 index 000000000..c93c483f4 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/attribute_context.pb.validate.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/auth/v3/attribute_context.proto + +package envoy_service_auth_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _attribute_context_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AttributeContext with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *AttributeContext) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Source", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDestination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Destination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "Request", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ContextExtensions + + if v, ok := interface{}(m.GetMetadataContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContextValidationError{ + field: "MetadataContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AttributeContextValidationError is the validation error returned by +// AttributeContext.Validate if the designated constraints aren't met. +type AttributeContextValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContextValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContextValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContextValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContextValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContextValidationError) ErrorName() string { return "AttributeContextValidationError" } + +// Error satisfies the builtin error interface +func (e AttributeContextValidationError) 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 %sAttributeContext.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContextValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContextValidationError{} + +// Validate checks the field values on AttributeContext_Peer with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_Peer) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAddress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_PeerValidationError{ + field: "Address", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Service + + // no validation rules for Labels + + // no validation rules for Principal + + // no validation rules for Certificate + + return nil +} + +// AttributeContext_PeerValidationError is the validation error returned by +// AttributeContext_Peer.Validate if the designated constraints aren't met. +type AttributeContext_PeerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_PeerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_PeerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_PeerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_PeerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_PeerValidationError) ErrorName() string { + return "AttributeContext_PeerValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_PeerValidationError) 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 %sAttributeContext_Peer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_PeerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_PeerValidationError{} + +// Validate checks the field values on AttributeContext_Request with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_Request) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_RequestValidationError{ + field: "Time", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetHttp()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AttributeContext_RequestValidationError{ + field: "Http", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AttributeContext_RequestValidationError is the validation error returned by +// AttributeContext_Request.Validate if the designated constraints aren't met. +type AttributeContext_RequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_RequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_RequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_RequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_RequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_RequestValidationError) ErrorName() string { + return "AttributeContext_RequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_RequestValidationError) 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 %sAttributeContext_Request.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_RequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_RequestValidationError{} + +// Validate checks the field values on AttributeContext_HttpRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AttributeContext_HttpRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + // no validation rules for Method + + // no validation rules for Headers + + // no validation rules for Path + + // no validation rules for Host + + // no validation rules for Scheme + + // no validation rules for Query + + // no validation rules for Fragment + + // no validation rules for Size + + // no validation rules for Protocol + + // no validation rules for Body + + return nil +} + +// AttributeContext_HttpRequestValidationError is the validation error returned +// by AttributeContext_HttpRequest.Validate if the designated constraints +// aren't met. +type AttributeContext_HttpRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AttributeContext_HttpRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AttributeContext_HttpRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AttributeContext_HttpRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AttributeContext_HttpRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AttributeContext_HttpRequestValidationError) ErrorName() string { + return "AttributeContext_HttpRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e AttributeContext_HttpRequestValidationError) 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 %sAttributeContext_HttpRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AttributeContext_HttpRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AttributeContext_HttpRequestValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.go new file mode 100644 index 000000000..6dccd5b03 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.go @@ -0,0 +1,381 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/auth/v3/external_auth.proto + +package envoy_service_auth_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + 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" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CheckRequest struct { + Attributes *AttributeContext `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckRequest) Reset() { *m = CheckRequest{} } +func (m *CheckRequest) String() string { return proto.CompactTextString(m) } +func (*CheckRequest) ProtoMessage() {} +func (*CheckRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a53ffd03e1a7630f, []int{0} +} + +func (m *CheckRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckRequest.Unmarshal(m, b) +} +func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic) +} +func (m *CheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckRequest.Merge(m, src) +} +func (m *CheckRequest) XXX_Size() int { + return xxx_messageInfo_CheckRequest.Size(m) +} +func (m *CheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckRequest proto.InternalMessageInfo + +func (m *CheckRequest) GetAttributes() *AttributeContext { + if m != nil { + return m.Attributes + } + return nil +} + +type DeniedHttpResponse struct { + Status *v3.HttpStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeniedHttpResponse) Reset() { *m = DeniedHttpResponse{} } +func (m *DeniedHttpResponse) String() string { return proto.CompactTextString(m) } +func (*DeniedHttpResponse) ProtoMessage() {} +func (*DeniedHttpResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a53ffd03e1a7630f, []int{1} +} + +func (m *DeniedHttpResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeniedHttpResponse.Unmarshal(m, b) +} +func (m *DeniedHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeniedHttpResponse.Marshal(b, m, deterministic) +} +func (m *DeniedHttpResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeniedHttpResponse.Merge(m, src) +} +func (m *DeniedHttpResponse) XXX_Size() int { + return xxx_messageInfo_DeniedHttpResponse.Size(m) +} +func (m *DeniedHttpResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeniedHttpResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeniedHttpResponse proto.InternalMessageInfo + +func (m *DeniedHttpResponse) GetStatus() *v3.HttpStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *DeniedHttpResponse) GetHeaders() []*v31.HeaderValueOption { + if m != nil { + return m.Headers + } + return nil +} + +func (m *DeniedHttpResponse) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +type OkHttpResponse struct { + Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OkHttpResponse) Reset() { *m = OkHttpResponse{} } +func (m *OkHttpResponse) String() string { return proto.CompactTextString(m) } +func (*OkHttpResponse) ProtoMessage() {} +func (*OkHttpResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a53ffd03e1a7630f, []int{2} +} + +func (m *OkHttpResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OkHttpResponse.Unmarshal(m, b) +} +func (m *OkHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OkHttpResponse.Marshal(b, m, deterministic) +} +func (m *OkHttpResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OkHttpResponse.Merge(m, src) +} +func (m *OkHttpResponse) XXX_Size() int { + return xxx_messageInfo_OkHttpResponse.Size(m) +} +func (m *OkHttpResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OkHttpResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OkHttpResponse proto.InternalMessageInfo + +func (m *OkHttpResponse) GetHeaders() []*v31.HeaderValueOption { + if m != nil { + return m.Headers + } + return nil +} + +type CheckResponse struct { + Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // Types that are valid to be assigned to HttpResponse: + // *CheckResponse_DeniedResponse + // *CheckResponse_OkResponse + HttpResponse isCheckResponse_HttpResponse `protobuf_oneof:"http_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckResponse) Reset() { *m = CheckResponse{} } +func (m *CheckResponse) String() string { return proto.CompactTextString(m) } +func (*CheckResponse) ProtoMessage() {} +func (*CheckResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a53ffd03e1a7630f, []int{3} +} + +func (m *CheckResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CheckResponse.Unmarshal(m, b) +} +func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic) +} +func (m *CheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckResponse.Merge(m, src) +} +func (m *CheckResponse) XXX_Size() int { + return xxx_messageInfo_CheckResponse.Size(m) +} +func (m *CheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckResponse proto.InternalMessageInfo + +func (m *CheckResponse) GetStatus() *status.Status { + if m != nil { + return m.Status + } + return nil +} + +type isCheckResponse_HttpResponse interface { + isCheckResponse_HttpResponse() +} + +type CheckResponse_DeniedResponse struct { + DeniedResponse *DeniedHttpResponse `protobuf:"bytes,2,opt,name=denied_response,json=deniedResponse,proto3,oneof"` +} + +type CheckResponse_OkResponse struct { + OkResponse *OkHttpResponse `protobuf:"bytes,3,opt,name=ok_response,json=okResponse,proto3,oneof"` +} + +func (*CheckResponse_DeniedResponse) isCheckResponse_HttpResponse() {} + +func (*CheckResponse_OkResponse) isCheckResponse_HttpResponse() {} + +func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse { + if m != nil { + return m.HttpResponse + } + return nil +} + +func (m *CheckResponse) GetDeniedResponse() *DeniedHttpResponse { + if x, ok := m.GetHttpResponse().(*CheckResponse_DeniedResponse); ok { + return x.DeniedResponse + } + return nil +} + +func (m *CheckResponse) GetOkResponse() *OkHttpResponse { + if x, ok := m.GetHttpResponse().(*CheckResponse_OkResponse); ok { + return x.OkResponse + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CheckResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CheckResponse_DeniedResponse)(nil), + (*CheckResponse_OkResponse)(nil), + } +} + +func init() { + proto.RegisterType((*CheckRequest)(nil), "envoy.service.auth.v3.CheckRequest") + proto.RegisterType((*DeniedHttpResponse)(nil), "envoy.service.auth.v3.DeniedHttpResponse") + proto.RegisterType((*OkHttpResponse)(nil), "envoy.service.auth.v3.OkHttpResponse") + proto.RegisterType((*CheckResponse)(nil), "envoy.service.auth.v3.CheckResponse") +} + +func init() { + proto.RegisterFile("envoy/service/auth/v3/external_auth.proto", fileDescriptor_a53ffd03e1a7630f) +} + +var fileDescriptor_a53ffd03e1a7630f = []byte{ + // 560 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4f, 0x6f, 0x12, 0x41, + 0x1c, 0x65, 0x17, 0x8b, 0x3a, 0x95, 0xb6, 0x6e, 0x62, 0x44, 0x12, 0x15, 0x81, 0x2a, 0x60, 0xdc, + 0x4d, 0xe0, 0x86, 0x27, 0xa8, 0x8d, 0xdc, 0xda, 0xac, 0x8d, 0x57, 0x32, 0xec, 0xfe, 0x84, 0x0d, + 0x64, 0x66, 0x9d, 0x99, 0xdd, 0x80, 0xa7, 0xc6, 0x53, 0xe3, 0x27, 0x30, 0x7e, 0x14, 0xef, 0x26, + 0x5e, 0x3d, 0xfa, 0x55, 0x3c, 0x99, 0xf9, 0x03, 0x82, 0x2c, 0xbd, 0xf4, 0xb6, 0xe1, 0xf7, 0xde, + 0xfb, 0xbd, 0xf7, 0x66, 0x06, 0xd4, 0x04, 0x92, 0xd2, 0x85, 0xc7, 0x81, 0xa5, 0x51, 0x00, 0x1e, + 0x4e, 0xc4, 0xc4, 0x4b, 0x3b, 0x1e, 0xcc, 0x05, 0x30, 0x82, 0x67, 0x43, 0xf9, 0x83, 0x1b, 0x33, + 0x2a, 0xa8, 0xf3, 0x40, 0x41, 0x5d, 0x03, 0x75, 0xd5, 0x24, 0xed, 0x94, 0x9f, 0x6a, 0x85, 0x80, + 0x92, 0x0f, 0xd1, 0xd8, 0x0b, 0x28, 0x03, 0x29, 0x30, 0xc2, 0x1c, 0x34, 0xaf, 0xfc, 0x2a, 0x7b, + 0x05, 0x16, 0x82, 0x45, 0xa3, 0x44, 0xc0, 0x30, 0xa0, 0x44, 0xc0, 0x5c, 0x18, 0xb8, 0xd1, 0x13, + 0x8b, 0x58, 0x09, 0x4d, 0x84, 0x88, 0x87, 0x5c, 0x60, 0x91, 0x70, 0x03, 0x78, 0x38, 0xa6, 0x74, + 0x3c, 0x03, 0x8f, 0xc5, 0x81, 0xb7, 0x31, 0x78, 0x9c, 0x84, 0x31, 0xf6, 0x30, 0x21, 0x54, 0x60, + 0x11, 0x51, 0xc2, 0x37, 0xc7, 0xcf, 0xb6, 0xc6, 0x29, 0x30, 0x1e, 0x51, 0x12, 0x91, 0xf1, 0x52, + 0x3a, 0xc5, 0xb3, 0x28, 0xc4, 0x02, 0xbc, 0xe5, 0x87, 0x1e, 0x54, 0x3f, 0x5b, 0xe8, 0xde, 0xc9, + 0x04, 0x82, 0xa9, 0x0f, 0x1f, 0x13, 0xe0, 0xc2, 0x79, 0x8b, 0xd0, 0x2a, 0x00, 0x2f, 0x59, 0x15, + 0xab, 0xb1, 0xdf, 0x7e, 0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xb2, 0x15, 0xa9, 0xb9, 0xe3, 0x56, 0x6c, 0x97, + 0x30, 0xc8, 0xf9, 0x07, 0x5a, 0x63, 0xe5, 0x60, 0x80, 0xf6, 0xe9, 0xf4, 0x9f, 0x62, 0x5e, 0x29, + 0x1e, 0xef, 0x50, 0xdc, 0xcc, 0x33, 0xc8, 0xf9, 0x88, 0xae, 0xb2, 0x74, 0x5b, 0xb2, 0x8a, 0x63, + 0x54, 0xbb, 0xf6, 0x9e, 0x69, 0x6c, 0xff, 0x10, 0x15, 0xd5, 0xb3, 0x5b, 0xee, 0x6d, 0x03, 0x2a, + 0xf6, 0x12, 0x31, 0xa1, 0x2c, 0xfa, 0xa4, 0x9e, 0x8e, 0x73, 0x81, 0xf6, 0x14, 0xc5, 0xa9, 0xed, + 0xf0, 0xb2, 0x7e, 0x71, 0xcb, 0xf5, 0xeb, 0x41, 0xa6, 0xff, 0x5c, 0xff, 0xf4, 0xfb, 0xe5, 0xcf, + 0x5f, 0x05, 0xfb, 0xc8, 0x46, 0xb5, 0x88, 0x6a, 0x4e, 0xcc, 0xe8, 0x7c, 0x91, 0x4d, 0xef, 0xdf, + 0x3f, 0x35, 0xff, 0x52, 0xd2, 0xdb, 0xb9, 0x7c, 0xa7, 0xe7, 0xd6, 0x95, 0x65, 0x8d, 0x0a, 0xea, + 0xcd, 0x76, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xaf, 0xbd, 0x98, 0xf2, 0xdc, 0x04, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// AuthorizationClient is the client API for Authorization service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AuthorizationClient interface { + Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) +} + +type authorizationClient struct { + cc *grpc.ClientConn +} + +func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient { + return &authorizationClient{cc} +} + +func (c *authorizationClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { + out := new(CheckResponse) + err := c.cc.Invoke(ctx, "/envoy.service.auth.v3.Authorization/Check", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthorizationServer is the server API for Authorization service. +type AuthorizationServer interface { + Check(context.Context, *CheckRequest) (*CheckResponse, error) +} + +// UnimplementedAuthorizationServer can be embedded to have forward compatible implementations. +type UnimplementedAuthorizationServer struct { +} + +func (*UnimplementedAuthorizationServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented") +} + +func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer) { + s.RegisterService(&_Authorization_serviceDesc, srv) +} + +func _Authorization_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthorizationServer).Check(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.auth.v3.Authorization/Check", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthorizationServer).Check(ctx, req.(*CheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Authorization_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.auth.v3.Authorization", + HandlerType: (*AuthorizationServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Check", + Handler: _Authorization_Check_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "envoy/service/auth/v3/external_auth.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.validate.go new file mode 100644 index 000000000..bafeb7984 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/auth/v3/external_auth.pb.validate.go @@ -0,0 +1,396 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/auth/v3/external_auth.proto + +package envoy_service_auth_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _external_auth_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CheckRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckRequestValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CheckRequestValidationError is the validation error returned by +// CheckRequest.Validate if the designated constraints aren't met. +type CheckRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckRequestValidationError) ErrorName() string { return "CheckRequestValidationError" } + +// Error satisfies the builtin error interface +func (e CheckRequestValidationError) 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 %sCheckRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckRequestValidationError{} + +// Validate checks the field values on DeniedHttpResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeniedHttpResponse) Validate() error { + if m == nil { + return nil + } + + if m.GetStatus() == nil { + return DeniedHttpResponseValidationError{ + field: "Status", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DeniedHttpResponseValidationError{ + field: "Status", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DeniedHttpResponseValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Body + + return nil +} + +// DeniedHttpResponseValidationError is the validation error returned by +// DeniedHttpResponse.Validate if the designated constraints aren't met. +type DeniedHttpResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeniedHttpResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeniedHttpResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeniedHttpResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeniedHttpResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeniedHttpResponseValidationError) ErrorName() string { + return "DeniedHttpResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e DeniedHttpResponseValidationError) 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 %sDeniedHttpResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeniedHttpResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeniedHttpResponseValidationError{} + +// Validate checks the field values on OkHttpResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OkHttpResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OkHttpResponseValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OkHttpResponseValidationError is the validation error returned by +// OkHttpResponse.Validate if the designated constraints aren't met. +type OkHttpResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OkHttpResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OkHttpResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OkHttpResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OkHttpResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OkHttpResponseValidationError) ErrorName() string { return "OkHttpResponseValidationError" } + +// Error satisfies the builtin error interface +func (e OkHttpResponseValidationError) 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 %sOkHttpResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OkHttpResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OkHttpResponseValidationError{} + +// Validate checks the field values on CheckResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CheckResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "Status", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.HttpResponse.(type) { + + case *CheckResponse_DeniedResponse: + + if v, ok := interface{}(m.GetDeniedResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "DeniedResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CheckResponse_OkResponse: + + if v, ok := interface{}(m.GetOkResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CheckResponseValidationError{ + field: "OkResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CheckResponseValidationError is the validation error returned by +// CheckResponse.Validate if the designated constraints aren't met. +type CheckResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CheckResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CheckResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CheckResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CheckResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CheckResponseValidationError) ErrorName() string { return "CheckResponseValidationError" } + +// Error satisfies the builtin error interface +func (e CheckResponseValidationError) 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 %sCheckResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CheckResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CheckResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.go new file mode 100644 index 000000000..907ad2037 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.go @@ -0,0 +1,311 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/cluster/v3/cds.proto + +package envoy_service_cluster_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CdsDummy) Reset() { *m = CdsDummy{} } +func (m *CdsDummy) String() string { return proto.CompactTextString(m) } +func (*CdsDummy) ProtoMessage() {} +func (*CdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_c038ede4be83d91e, []int{0} +} + +func (m *CdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CdsDummy.Unmarshal(m, b) +} +func (m *CdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CdsDummy.Marshal(b, m, deterministic) +} +func (m *CdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_CdsDummy.Merge(m, src) +} +func (m *CdsDummy) XXX_Size() int { + return xxx_messageInfo_CdsDummy.Size(m) +} +func (m *CdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_CdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_CdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*CdsDummy)(nil), "envoy.service.cluster.v3.CdsDummy") +} + +func init() { proto.RegisterFile("envoy/service/cluster/v3/cds.proto", fileDescriptor_c038ede4be83d91e) } + +var fileDescriptor_c038ede4be83d91e = []byte{ + // 382 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0x4d, 0x4a, 0xc3, 0x40, + 0x1c, 0xc5, 0x4d, 0x0b, 0x55, 0x06, 0x2a, 0x12, 0xd0, 0x96, 0x50, 0x3f, 0x9a, 0x85, 0x2d, 0x45, + 0x27, 0xda, 0xec, 0xba, 0x11, 0xda, 0xe2, 0xba, 0xd8, 0x13, 0x8c, 0xc9, 0x18, 0x07, 0xda, 0x99, + 0x38, 0x33, 0x19, 0x0c, 0xb8, 0x10, 0x57, 0xc5, 0xad, 0xe8, 0xc2, 0xb5, 0xa7, 0x70, 0x2f, 0xb8, + 0x71, 0x21, 0x5e, 0xc1, 0x1b, 0x78, 0x01, 0x49, 0x27, 0xad, 0x0d, 0x45, 0xd1, 0x8d, 0xcb, 0xf0, + 0xff, 0xbd, 0xf7, 0xe6, 0x85, 0x07, 0x6c, 0x4c, 0x15, 0x8b, 0x1d, 0x81, 0xb9, 0x22, 0x1e, 0x76, + 0xbc, 0x41, 0x24, 0x24, 0xe6, 0x8e, 0x72, 0x1d, 0xcf, 0x17, 0x30, 0xe4, 0x4c, 0x32, 0xb3, 0x3c, + 0x66, 0x60, 0xca, 0xc0, 0x94, 0x81, 0xca, 0xb5, 0x1a, 0x59, 0xb5, 0x4f, 0x84, 0xc7, 0x14, 0xe6, + 0x71, 0xa2, 0x9f, 0x7e, 0x68, 0x17, 0xab, 0x12, 0x30, 0x16, 0x0c, 0xb0, 0x83, 0x42, 0xe2, 0x20, + 0x4a, 0x99, 0x44, 0x92, 0x30, 0x9a, 0x66, 0x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, 0xf2, + 0xf9, 0xb5, 0x90, 0x5b, 0xc9, 0x81, 0x6d, 0xc2, 0xf4, 0x63, 0x42, 0xce, 0xce, 0x63, 0xf8, 0xdd, + 0xb2, 0xdb, 0xc9, 0x52, 0x7a, 0xc9, 0x6a, 0x7a, 0xc6, 0xc8, 0x30, 0x8e, 0x0b, 0xe3, 0x05, 0xb9, + 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0xf4, 0xd5, 0x2f, 0x2f, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// ClusterDiscoveryServiceClient is the client API for ClusterDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ClusterDiscoveryServiceClient interface { + StreamClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_StreamClustersClient, error) + DeltaClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_DeltaClustersClient, error) + FetchClusters(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type clusterDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewClusterDiscoveryServiceClient(cc *grpc.ClientConn) ClusterDiscoveryServiceClient { + return &clusterDiscoveryServiceClient{cc} +} + +func (c *clusterDiscoveryServiceClient) StreamClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_StreamClustersClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterDiscoveryService_serviceDesc.Streams[0], "/envoy.service.cluster.v3.ClusterDiscoveryService/StreamClusters", opts...) + if err != nil { + return nil, err + } + x := &clusterDiscoveryServiceStreamClustersClient{stream} + return x, nil +} + +type ClusterDiscoveryService_StreamClustersClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type clusterDiscoveryServiceStreamClustersClient struct { + grpc.ClientStream +} + +func (x *clusterDiscoveryServiceStreamClustersClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *clusterDiscoveryServiceStreamClustersClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *clusterDiscoveryServiceClient) DeltaClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_DeltaClustersClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClusterDiscoveryService_serviceDesc.Streams[1], "/envoy.service.cluster.v3.ClusterDiscoveryService/DeltaClusters", opts...) + if err != nil { + return nil, err + } + x := &clusterDiscoveryServiceDeltaClustersClient{stream} + return x, nil +} + +type ClusterDiscoveryService_DeltaClustersClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type clusterDiscoveryServiceDeltaClustersClient struct { + grpc.ClientStream +} + +func (x *clusterDiscoveryServiceDeltaClustersClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *clusterDiscoveryServiceDeltaClustersClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *clusterDiscoveryServiceClient) FetchClusters(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.cluster.v3.ClusterDiscoveryService/FetchClusters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClusterDiscoveryServiceServer is the server API for ClusterDiscoveryService service. +type ClusterDiscoveryServiceServer interface { + StreamClusters(ClusterDiscoveryService_StreamClustersServer) error + DeltaClusters(ClusterDiscoveryService_DeltaClustersServer) error + FetchClusters(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedClusterDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClusterDiscoveryServiceServer struct { +} + +func (*UnimplementedClusterDiscoveryServiceServer) StreamClusters(srv ClusterDiscoveryService_StreamClustersServer) error { + return status.Errorf(codes.Unimplemented, "method StreamClusters not implemented") +} +func (*UnimplementedClusterDiscoveryServiceServer) DeltaClusters(srv ClusterDiscoveryService_DeltaClustersServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaClusters not implemented") +} +func (*UnimplementedClusterDiscoveryServiceServer) FetchClusters(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchClusters not implemented") +} + +func RegisterClusterDiscoveryServiceServer(s *grpc.Server, srv ClusterDiscoveryServiceServer) { + s.RegisterService(&_ClusterDiscoveryService_serviceDesc, srv) +} + +func _ClusterDiscoveryService_StreamClusters_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ClusterDiscoveryServiceServer).StreamClusters(&clusterDiscoveryServiceStreamClustersServer{stream}) +} + +type ClusterDiscoveryService_StreamClustersServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type clusterDiscoveryServiceStreamClustersServer struct { + grpc.ServerStream +} + +func (x *clusterDiscoveryServiceStreamClustersServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *clusterDiscoveryServiceStreamClustersServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ClusterDiscoveryService_DeltaClusters_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ClusterDiscoveryServiceServer).DeltaClusters(&clusterDiscoveryServiceDeltaClustersServer{stream}) +} + +type ClusterDiscoveryService_DeltaClustersServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type clusterDiscoveryServiceDeltaClustersServer struct { + grpc.ServerStream +} + +func (x *clusterDiscoveryServiceDeltaClustersServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *clusterDiscoveryServiceDeltaClustersServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ClusterDiscoveryService_FetchClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterDiscoveryServiceServer).FetchClusters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.cluster.v3.ClusterDiscoveryService/FetchClusters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterDiscoveryServiceServer).FetchClusters(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ClusterDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.cluster.v3.ClusterDiscoveryService", + HandlerType: (*ClusterDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchClusters", + Handler: _ClusterDiscoveryService_FetchClusters_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamClusters", + Handler: _ClusterDiscoveryService_StreamClusters_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaClusters", + Handler: _ClusterDiscoveryService_DeltaClusters_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/cluster/v3/cds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.validate.go new file mode 100644 index 000000000..209a37d0a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3/cds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/cluster/v3/cds.proto + +package envoy_service_cluster_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _cds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *CdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CdsDummyValidationError is the validation error returned by +// CdsDummy.Validate if the designated constraints aren't met. +type CdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CdsDummyValidationError) ErrorName() string { return "CdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e CdsDummyValidationError) 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 %sCdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.go new file mode 100644 index 000000000..e5753eea9 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.go @@ -0,0 +1,319 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/endpoint/v3/eds.proto + +package envoy_service_endpoint_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/duration" + _ "github.com/golang/protobuf/ptypes/wrappers" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type EdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EdsDummy) Reset() { *m = EdsDummy{} } +func (m *EdsDummy) String() string { return proto.CompactTextString(m) } +func (*EdsDummy) ProtoMessage() {} +func (*EdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_583a91558308c82d, []int{0} +} + +func (m *EdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EdsDummy.Unmarshal(m, b) +} +func (m *EdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EdsDummy.Marshal(b, m, deterministic) +} +func (m *EdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_EdsDummy.Merge(m, src) +} +func (m *EdsDummy) XXX_Size() int { + return xxx_messageInfo_EdsDummy.Size(m) +} +func (m *EdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_EdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_EdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*EdsDummy)(nil), "envoy.service.endpoint.v3.EdsDummy") +} + +func init() { + proto.RegisterFile("envoy/service/endpoint/v3/eds.proto", fileDescriptor_583a91558308c82d) +} + +var fileDescriptor_583a91558308c82d = []byte{ + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0xcd, 0x6a, 0x14, 0x41, + 0x14, 0x85, 0xed, 0x09, 0x44, 0xa9, 0x45, 0x94, 0x01, 0x19, 0xd3, 0xc4, 0xa0, 0xe3, 0xc2, 0x21, + 0x68, 0x55, 0x9c, 0x06, 0x17, 0xb3, 0xd2, 0x38, 0x71, 0xe5, 0x22, 0x98, 0x27, 0xa8, 0x74, 0xdd, + 0xb4, 0x05, 0xdd, 0x75, 0xcb, 0xfa, 0xd3, 0x5e, 0x08, 0xe2, 0x2a, 0xb8, 0x15, 0x14, 0x5c, 0xfb, + 0x14, 0xee, 0x05, 0xb7, 0xe2, 0x13, 0x08, 0xbe, 0x81, 0x2f, 0x20, 0xfd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0x47, 0x2e, 0xef, 0x3b, 0x03, 0xbc, 0x8a, 0x84, 0x1d, 0xdf, 0xa1, 0xc3, 0xf0, 0x4f, 0x42, + 0x0d, 0x19, 0x3d, 0x36, 0x78, 0x0a, 0xcf, 0x3d, 0x58, 0x97, 0xde, 0xfd, 0x4b, 0xda, 0x6a, 0x54, + 0x16, 0xa6, 0x17, 0x66, 0xc9, 0x76, 0x32, 0x7e, 0x45, 0xd6, 0x96, 0x50, 0x3a, 0x7e, 0x72, 0xf4, + 0xde, 0x1f, 0x6d, 0x1a, 0xf6, 0xcc, 0xe5, 0xf9, 0xbf, 0xac, 0x0c, 0xce, 0x7f, 0x48, 0xc8, 0xda, + 0x63, 0x70, 0xf9, 0xb3, 0xff, 0xf4, 0xd1, 0xb3, 0x37, 0xdf, 0x7f, 0xbe, 0x1b, 0xad, 0x4f, 0x27, + 0x83, 0x8e, 0x2e, 0x62, 0xab, 0x6d, 0x2b, 0xaf, 0x2c, 0x92, 0xad, 0xf4, 0xfe, 0xdb, 0x4f, 0xef, + 0x7f, 0x5d, 0xdc, 0x26, 0xbd, 0x7f, 0x8e, 0xea, 0x50, 0x16, 0xa7, 0xeb, 0x4f, 0x1f, 0x95, 0xde, + 0x3a, 0x30, 0x4f, 0x90, 0x8b, 0x87, 0xd6, 0xca, 0x42, 0x55, 0xa0, 0xdc, 0xce, 0x83, 0xcf, 0xaf, + 0xbf, 0x7e, 0x5b, 0x1d, 0x5d, 0x19, 0x91, 0xdb, 0x12, 0xbb, 0x65, 0x6d, 0xf0, 0x65, 0x4d, 0xcf, + 0xfd, 0x8f, 0x76, 0x9a, 0xfa, 0xec, 0x35, 0x55, 0xda, 0x4b, 0x8e, 0x92, 0xe4, 0x60, 0xb5, 0xad, + 0x55, 0xf6, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xf2, 0x0e, 0x06, 0x9f, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// EndpointDiscoveryServiceClient is the client API for EndpointDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type EndpointDiscoveryServiceClient interface { + StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) + DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) + FetchEndpoints(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type endpointDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewEndpointDiscoveryServiceClient(cc *grpc.ClientConn) EndpointDiscoveryServiceClient { + return &endpointDiscoveryServiceClient{cc} +} + +func (c *endpointDiscoveryServiceClient) StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) { + stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[0], "/envoy.service.endpoint.v3.EndpointDiscoveryService/StreamEndpoints", opts...) + if err != nil { + return nil, err + } + x := &endpointDiscoveryServiceStreamEndpointsClient{stream} + return x, nil +} + +type EndpointDiscoveryService_StreamEndpointsClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type endpointDiscoveryServiceStreamEndpointsClient struct { + grpc.ClientStream +} + +func (x *endpointDiscoveryServiceStreamEndpointsClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *endpointDiscoveryServiceStreamEndpointsClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *endpointDiscoveryServiceClient) DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) { + stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[1], "/envoy.service.endpoint.v3.EndpointDiscoveryService/DeltaEndpoints", opts...) + if err != nil { + return nil, err + } + x := &endpointDiscoveryServiceDeltaEndpointsClient{stream} + return x, nil +} + +type EndpointDiscoveryService_DeltaEndpointsClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type endpointDiscoveryServiceDeltaEndpointsClient struct { + grpc.ClientStream +} + +func (x *endpointDiscoveryServiceDeltaEndpointsClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *endpointDiscoveryServiceDeltaEndpointsClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *endpointDiscoveryServiceClient) FetchEndpoints(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.endpoint.v3.EndpointDiscoveryService/FetchEndpoints", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// EndpointDiscoveryServiceServer is the server API for EndpointDiscoveryService service. +type EndpointDiscoveryServiceServer interface { + StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error + DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error + FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedEndpointDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedEndpointDiscoveryServiceServer struct { +} + +func (*UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints(srv EndpointDiscoveryService_StreamEndpointsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamEndpoints not implemented") +} +func (*UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints(srv EndpointDiscoveryService_DeltaEndpointsServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaEndpoints not implemented") +} +func (*UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchEndpoints not implemented") +} + +func RegisterEndpointDiscoveryServiceServer(s *grpc.Server, srv EndpointDiscoveryServiceServer) { + s.RegisterService(&_EndpointDiscoveryService_serviceDesc, srv) +} + +func _EndpointDiscoveryService_StreamEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(EndpointDiscoveryServiceServer).StreamEndpoints(&endpointDiscoveryServiceStreamEndpointsServer{stream}) +} + +type EndpointDiscoveryService_StreamEndpointsServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type endpointDiscoveryServiceStreamEndpointsServer struct { + grpc.ServerStream +} + +func (x *endpointDiscoveryServiceStreamEndpointsServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *endpointDiscoveryServiceStreamEndpointsServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _EndpointDiscoveryService_DeltaEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(EndpointDiscoveryServiceServer).DeltaEndpoints(&endpointDiscoveryServiceDeltaEndpointsServer{stream}) +} + +type EndpointDiscoveryService_DeltaEndpointsServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type endpointDiscoveryServiceDeltaEndpointsServer struct { + grpc.ServerStream +} + +func (x *endpointDiscoveryServiceDeltaEndpointsServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *endpointDiscoveryServiceDeltaEndpointsServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _EndpointDiscoveryService_FetchEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.endpoint.v3.EndpointDiscoveryService/FetchEndpoints", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _EndpointDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.endpoint.v3.EndpointDiscoveryService", + HandlerType: (*EndpointDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchEndpoints", + Handler: _EndpointDiscoveryService_FetchEndpoints_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamEndpoints", + Handler: _EndpointDiscoveryService_StreamEndpoints_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaEndpoints", + Handler: _EndpointDiscoveryService_DeltaEndpoints_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/endpoint/v3/eds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.validate.go new file mode 100644 index 000000000..e76b1bfb6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3/eds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/endpoint/v3/eds.proto + +package envoy_service_endpoint_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _eds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on EdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *EdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EdsDummyValidationError is the validation error returned by +// EdsDummy.Validate if the designated constraints aren't met. +type EdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EdsDummyValidationError) ErrorName() string { return "EdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e EdsDummyValidationError) 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 %sEdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.go new file mode 100644 index 000000000..64b71359d --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.go @@ -0,0 +1,298 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/event_reporting/v2alpha/event_reporting_service.proto + +package envoy_service_event_reporting_v2alpha + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamEventsRequest struct { + Identifier *StreamEventsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + Events []*any.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsRequest) Reset() { *m = StreamEventsRequest{} } +func (m *StreamEventsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamEventsRequest) ProtoMessage() {} +func (*StreamEventsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1a37fe38e985d5f4, []int{0} +} + +func (m *StreamEventsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsRequest.Unmarshal(m, b) +} +func (m *StreamEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsRequest.Marshal(b, m, deterministic) +} +func (m *StreamEventsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsRequest.Merge(m, src) +} +func (m *StreamEventsRequest) XXX_Size() int { + return xxx_messageInfo_StreamEventsRequest.Size(m) +} +func (m *StreamEventsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsRequest proto.InternalMessageInfo + +func (m *StreamEventsRequest) GetIdentifier() *StreamEventsRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamEventsRequest) GetEvents() []*any.Any { + if m != nil { + return m.Events + } + return nil +} + +type StreamEventsRequest_Identifier struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsRequest_Identifier) Reset() { *m = StreamEventsRequest_Identifier{} } +func (m *StreamEventsRequest_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamEventsRequest_Identifier) ProtoMessage() {} +func (*StreamEventsRequest_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_1a37fe38e985d5f4, []int{0, 0} +} + +func (m *StreamEventsRequest_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsRequest_Identifier.Unmarshal(m, b) +} +func (m *StreamEventsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsRequest_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamEventsRequest_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsRequest_Identifier.Merge(m, src) +} +func (m *StreamEventsRequest_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamEventsRequest_Identifier.Size(m) +} +func (m *StreamEventsRequest_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsRequest_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsRequest_Identifier proto.InternalMessageInfo + +func (m *StreamEventsRequest_Identifier) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +type StreamEventsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsResponse) Reset() { *m = StreamEventsResponse{} } +func (m *StreamEventsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamEventsResponse) ProtoMessage() {} +func (*StreamEventsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1a37fe38e985d5f4, []int{1} +} + +func (m *StreamEventsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsResponse.Unmarshal(m, b) +} +func (m *StreamEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsResponse.Marshal(b, m, deterministic) +} +func (m *StreamEventsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsResponse.Merge(m, src) +} +func (m *StreamEventsResponse) XXX_Size() int { + return xxx_messageInfo_StreamEventsResponse.Size(m) +} +func (m *StreamEventsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*StreamEventsRequest)(nil), "envoy.service.event_reporting.v2alpha.StreamEventsRequest") + proto.RegisterType((*StreamEventsRequest_Identifier)(nil), "envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier") + proto.RegisterType((*StreamEventsResponse)(nil), "envoy.service.event_reporting.v2alpha.StreamEventsResponse") +} + +func init() { + proto.RegisterFile("envoy/service/event_reporting/v2alpha/event_reporting_service.proto", fileDescriptor_1a37fe38e985d5f4) +} + +var fileDescriptor_1a37fe38e985d5f4 = []byte{ + // 413 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x7d, 0xd1, 0x2d, 0xcb, 0xac, 0x87, 0x25, 0xae, 0xee, 0x1a, 0x54, 0x4a, 0x40, 0xe8, + 0x69, 0x46, 0x52, 0xf4, 0xa0, 0x27, 0xb3, 0xec, 0xc1, 0x8b, 0x94, 0xf4, 0x03, 0x94, 0x69, 0xf3, + 0x1a, 0x07, 0xda, 0x99, 0x71, 0x66, 0x12, 0xcc, 0xcd, 0x93, 0x88, 0x20, 0x82, 0x27, 0xbf, 0x81, + 0xdf, 0xc1, 0x4f, 0xe0, 0xd5, 0xaf, 0xe2, 0x4d, 0x0f, 0x22, 0x4d, 0x26, 0x5a, 0x6b, 0x61, 0x4b, + 0x6f, 0xc9, 0x7b, 0xff, 0xf7, 0x9b, 0xff, 0xfb, 0x3f, 0x72, 0x8e, 0xb2, 0x52, 0x35, 0xb3, 0x68, + 0x2a, 0x31, 0x43, 0x86, 0x15, 0x4a, 0x37, 0x31, 0xa8, 0x95, 0x71, 0x42, 0x16, 0xac, 0x4a, 0xf8, + 0x42, 0xbf, 0xe0, 0x9b, 0xf5, 0x89, 0xd7, 0x53, 0x6d, 0x94, 0x53, 0xe1, 0xfd, 0x06, 0x42, 0xbb, + 0xe2, 0x86, 0x98, 0x7a, 0x48, 0x74, 0xa7, 0x7d, 0x8b, 0x6b, 0xc1, 0xaa, 0x84, 0xcd, 0x94, 0x41, + 0x36, 0xe5, 0xd6, 0x43, 0xa2, 0xdb, 0x85, 0x52, 0xc5, 0x02, 0x59, 0xf3, 0x37, 0x2d, 0xe7, 0x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 0x24, 0x7a, 0xb2, 0xd7, 0x6c, 0xeb, 0x31, 0xbe, 0x32, 0x80, 0x07, + 0x90, 0xbe, 0x81, 0xef, 0x9f, 0x7e, 0x7d, 0x38, 0x88, 0xc3, 0xfe, 0x25, 0xa8, 0xe1, 0x97, 0xd7, + 0x5f, 0xbf, 0xf5, 0x82, 0x63, 0x20, 0x43, 0xa1, 0xda, 0x77, 0xb5, 0x51, 0xaf, 0xea, 0xdd, 0x2c, + 0xa4, 0xd1, 0xd6, 0x38, 0x46, 0xab, 0x1b, 0x8d, 0xe0, 0x2d, 0xc0, 0xb4, 0xd7, 0xdc, 0x6b, 0xf8, + 0x3b, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xad, 0x79, 0x2d, 0x4c, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// EventReportingServiceClient is the client API for EventReportingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type EventReportingServiceClient interface { + StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) +} + +type eventReportingServiceClient struct { + cc *grpc.ClientConn +} + +func NewEventReportingServiceClient(cc *grpc.ClientConn) EventReportingServiceClient { + return &eventReportingServiceClient{cc} +} + +func (c *eventReportingServiceClient) StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) { + stream, err := c.cc.NewStream(ctx, &_EventReportingService_serviceDesc.Streams[0], "/envoy.service.event_reporting.v2alpha.EventReportingService/StreamEvents", opts...) + if err != nil { + return nil, err + } + x := &eventReportingServiceStreamEventsClient{stream} + return x, nil +} + +type EventReportingService_StreamEventsClient interface { + Send(*StreamEventsRequest) error + Recv() (*StreamEventsResponse, error) + grpc.ClientStream +} + +type eventReportingServiceStreamEventsClient struct { + grpc.ClientStream +} + +func (x *eventReportingServiceStreamEventsClient) Send(m *StreamEventsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *eventReportingServiceStreamEventsClient) Recv() (*StreamEventsResponse, error) { + m := new(StreamEventsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// EventReportingServiceServer is the server API for EventReportingService service. +type EventReportingServiceServer interface { + StreamEvents(EventReportingService_StreamEventsServer) error +} + +// UnimplementedEventReportingServiceServer can be embedded to have forward compatible implementations. +type UnimplementedEventReportingServiceServer struct { +} + +func (*UnimplementedEventReportingServiceServer) StreamEvents(srv EventReportingService_StreamEventsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") +} + +func RegisterEventReportingServiceServer(s *grpc.Server, srv EventReportingServiceServer) { + s.RegisterService(&_EventReportingService_serviceDesc, srv) +} + +func _EventReportingService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(EventReportingServiceServer).StreamEvents(&eventReportingServiceStreamEventsServer{stream}) +} + +type EventReportingService_StreamEventsServer interface { + Send(*StreamEventsResponse) error + Recv() (*StreamEventsRequest, error) + grpc.ServerStream +} + +type eventReportingServiceStreamEventsServer struct { + grpc.ServerStream +} + +func (x *eventReportingServiceStreamEventsServer) Send(m *StreamEventsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *eventReportingServiceStreamEventsServer) Recv() (*StreamEventsRequest, error) { + m := new(StreamEventsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _EventReportingService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.event_reporting.v2alpha.EventReportingService", + HandlerType: (*EventReportingServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamEvents", + Handler: _EventReportingService_StreamEvents_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/event_reporting/v2alpha/event_reporting_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.validate.go new file mode 100644 index 000000000..90752264c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.pb.validate.go @@ -0,0 +1,288 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/event_reporting/v2alpha/event_reporting_service.proto + +package envoy_service_event_reporting_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _event_reporting_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamEventsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequestValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetEvents()) < 1 { + return StreamEventsRequestValidationError{ + field: "Events", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetEvents() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequestValidationError{ + field: fmt.Sprintf("Events[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamEventsRequestValidationError is the validation error returned by +// StreamEventsRequest.Validate if the designated constraints aren't met. +type StreamEventsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsRequestValidationError) ErrorName() string { + return "StreamEventsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsRequestValidationError) 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 %sStreamEventsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsRequestValidationError{} + +// Validate checks the field values on StreamEventsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamEventsResponseValidationError is the validation error returned by +// StreamEventsResponse.Validate if the designated constraints aren't met. +type StreamEventsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsResponseValidationError) ErrorName() string { + return "StreamEventsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsResponseValidationError) 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 %sStreamEventsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsResponseValidationError{} + +// Validate checks the field values on StreamEventsRequest_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsRequest_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamEventsRequest_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequest_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamEventsRequest_IdentifierValidationError is the validation error +// returned by StreamEventsRequest_Identifier.Validate if the designated +// constraints aren't met. +type StreamEventsRequest_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsRequest_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsRequest_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsRequest_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsRequest_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsRequest_IdentifierValidationError) ErrorName() string { + return "StreamEventsRequest_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsRequest_IdentifierValidationError) 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 %sStreamEventsRequest_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsRequest_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsRequest_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.go new file mode 100644 index 000000000..37dafc7bf --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.go @@ -0,0 +1,300 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/event_reporting/v3/event_reporting_service.proto + +package envoy_service_event_reporting_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamEventsRequest struct { + Identifier *StreamEventsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + Events []*any.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsRequest) Reset() { *m = StreamEventsRequest{} } +func (m *StreamEventsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamEventsRequest) ProtoMessage() {} +func (*StreamEventsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_006b9de436985c31, []int{0} +} + +func (m *StreamEventsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsRequest.Unmarshal(m, b) +} +func (m *StreamEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsRequest.Marshal(b, m, deterministic) +} +func (m *StreamEventsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsRequest.Merge(m, src) +} +func (m *StreamEventsRequest) XXX_Size() int { + return xxx_messageInfo_StreamEventsRequest.Size(m) +} +func (m *StreamEventsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsRequest proto.InternalMessageInfo + +func (m *StreamEventsRequest) GetIdentifier() *StreamEventsRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamEventsRequest) GetEvents() []*any.Any { + if m != nil { + return m.Events + } + return nil +} + +type StreamEventsRequest_Identifier struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsRequest_Identifier) Reset() { *m = StreamEventsRequest_Identifier{} } +func (m *StreamEventsRequest_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamEventsRequest_Identifier) ProtoMessage() {} +func (*StreamEventsRequest_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_006b9de436985c31, []int{0, 0} +} + +func (m *StreamEventsRequest_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsRequest_Identifier.Unmarshal(m, b) +} +func (m *StreamEventsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsRequest_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamEventsRequest_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsRequest_Identifier.Merge(m, src) +} +func (m *StreamEventsRequest_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamEventsRequest_Identifier.Size(m) +} +func (m *StreamEventsRequest_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsRequest_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsRequest_Identifier proto.InternalMessageInfo + +func (m *StreamEventsRequest_Identifier) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +type StreamEventsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamEventsResponse) Reset() { *m = StreamEventsResponse{} } +func (m *StreamEventsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamEventsResponse) ProtoMessage() {} +func (*StreamEventsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_006b9de436985c31, []int{1} +} + +func (m *StreamEventsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamEventsResponse.Unmarshal(m, b) +} +func (m *StreamEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamEventsResponse.Marshal(b, m, deterministic) +} +func (m *StreamEventsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamEventsResponse.Merge(m, src) +} +func (m *StreamEventsResponse) XXX_Size() int { + return xxx_messageInfo_StreamEventsResponse.Size(m) +} +func (m *StreamEventsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamEventsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamEventsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*StreamEventsRequest)(nil), "envoy.service.event_reporting.v3.StreamEventsRequest") + proto.RegisterType((*StreamEventsRequest_Identifier)(nil), "envoy.service.event_reporting.v3.StreamEventsRequest.Identifier") + proto.RegisterType((*StreamEventsResponse)(nil), "envoy.service.event_reporting.v3.StreamEventsResponse") +} + +func init() { + proto.RegisterFile("envoy/service/event_reporting/v3/event_reporting_service.proto", fileDescriptor_006b9de436985c31) +} + +var fileDescriptor_006b9de436985c31 = []byte{ + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xc1, 0x6b, 0xd4, 0x40, + 0x14, 0xc6, 0x9d, 0x54, 0x97, 0x32, 0xf5, 0x50, 0x62, 0xc5, 0x1a, 0x50, 0xd7, 0x3d, 0xed, 0x69, + 0x46, 0x76, 0xb1, 0x68, 0x14, 0x69, 0x83, 0x0a, 0x22, 0x48, 0x49, 0x4f, 0x3d, 0xd5, 0xd9, 0xcd, + 0xdb, 0x38, 0xb0, 0xce, 0x8b, 0x33, 0x93, 0x60, 0x6e, 0x82, 0x07, 0x8b, 0x47, 0xbd, 0x09, 0xfe, + 0x23, 0xde, 0x05, 0xaf, 0xfe, 0x3b, 0x9e, 0x64, 0x32, 0x89, 0xd6, 0x5a, 0x08, 0xdd, 0x5b, 0xf2, + 0xde, 0xf7, 0x7e, 0xf3, 0xbd, 0x6f, 0x86, 0x3e, 0x02, 0x55, 0x61, 0xcd, 0x0d, 0xe8, 0x4a, 0xce, + 0x81, 0x43, 0x05, 0xca, 0x1e, 0x69, 0x28, 0x50, 0x5b, 0xa9, 0x72, 0x5e, 0x4d, 0x4f, 0x97, 0x8e, + 0x5a, 0x29, 0x2b, 0x34, 0x5a, 0x0c, 0x87, 0xcd, 0x3c, 0xeb, 0x8a, 0xa7, 0xc4, 0xac, 0x9a, 0x46, + 0xb7, 0xfc, 0x09, 0x73, 0x54, 0x0b, 0x99, 0xf3, 0x39, 0x6a, 0x70, 0xd4, 0x99, 0x30, 0x2d, 0x22, + 0xba, 0x9e, 0x23, 0xe6, 0x4b, 0xe0, 0xc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 0x65, 0xd8, + 0xe8, 0x90, 0x6e, 0xfd, 0x5b, 0x36, 0x05, 0x2a, 0x03, 0xf1, 0x9e, 0x23, 0x3f, 0xa4, 0xf1, 0x2a, + 0x64, 0x8f, 0x98, 0x7c, 0x25, 0xf4, 0x6a, 0x53, 0x4a, 0x3b, 0xfd, 0x81, 0xc7, 0x84, 0xef, 0x09, + 0xbd, 0x7c, 0x72, 0x24, 0xbc, 0xbb, 0xd2, 0x1d, 0x47, 0x3b, 0xe7, 0x1d, 0xf3, 0xce, 0x46, 0x17, + 0xc6, 0xe4, 0x0e, 0x49, 0x0e, 0xbf, 0xbd, 0xfb, 0xf1, 0x73, 0x10, 0x6c, 0x06, 0x94, 0x49, 0xf4, + 0xa4, 0x42, 0xe3, 0xdb, 0xba, 0x17, 0x9a, 0x44, 0x67, 0xae, 0xb5, 0xef, 0x5e, 0xd0, 0x3e, 0x39, + 0x26, 0x64, 0x36, 0x68, 0x5e, 0xd3, 0xf4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x60, 0xd6, 0x7f, + 0xdc, 0xe1, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// EventReportingServiceClient is the client API for EventReportingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type EventReportingServiceClient interface { + StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) +} + +type eventReportingServiceClient struct { + cc *grpc.ClientConn +} + +func NewEventReportingServiceClient(cc *grpc.ClientConn) EventReportingServiceClient { + return &eventReportingServiceClient{cc} +} + +func (c *eventReportingServiceClient) StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) { + stream, err := c.cc.NewStream(ctx, &_EventReportingService_serviceDesc.Streams[0], "/envoy.service.event_reporting.v3.EventReportingService/StreamEvents", opts...) + if err != nil { + return nil, err + } + x := &eventReportingServiceStreamEventsClient{stream} + return x, nil +} + +type EventReportingService_StreamEventsClient interface { + Send(*StreamEventsRequest) error + Recv() (*StreamEventsResponse, error) + grpc.ClientStream +} + +type eventReportingServiceStreamEventsClient struct { + grpc.ClientStream +} + +func (x *eventReportingServiceStreamEventsClient) Send(m *StreamEventsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *eventReportingServiceStreamEventsClient) Recv() (*StreamEventsResponse, error) { + m := new(StreamEventsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// EventReportingServiceServer is the server API for EventReportingService service. +type EventReportingServiceServer interface { + StreamEvents(EventReportingService_StreamEventsServer) error +} + +// UnimplementedEventReportingServiceServer can be embedded to have forward compatible implementations. +type UnimplementedEventReportingServiceServer struct { +} + +func (*UnimplementedEventReportingServiceServer) StreamEvents(srv EventReportingService_StreamEventsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") +} + +func RegisterEventReportingServiceServer(s *grpc.Server, srv EventReportingServiceServer) { + s.RegisterService(&_EventReportingService_serviceDesc, srv) +} + +func _EventReportingService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(EventReportingServiceServer).StreamEvents(&eventReportingServiceStreamEventsServer{stream}) +} + +type EventReportingService_StreamEventsServer interface { + Send(*StreamEventsResponse) error + Recv() (*StreamEventsRequest, error) + grpc.ServerStream +} + +type eventReportingServiceStreamEventsServer struct { + grpc.ServerStream +} + +func (x *eventReportingServiceStreamEventsServer) Send(m *StreamEventsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *eventReportingServiceStreamEventsServer) Recv() (*StreamEventsRequest, error) { + m := new(StreamEventsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _EventReportingService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.event_reporting.v3.EventReportingService", + HandlerType: (*EventReportingServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamEvents", + Handler: _EventReportingService_StreamEvents_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/event_reporting/v3/event_reporting_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.validate.go new file mode 100644 index 000000000..b77b6d0e3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3/event_reporting_service.pb.validate.go @@ -0,0 +1,288 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/event_reporting/v3/event_reporting_service.proto + +package envoy_service_event_reporting_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _event_reporting_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamEventsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequestValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(m.GetEvents()) < 1 { + return StreamEventsRequestValidationError{ + field: "Events", + reason: "value must contain at least 1 item(s)", + } + } + + for idx, item := range m.GetEvents() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequestValidationError{ + field: fmt.Sprintf("Events[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamEventsRequestValidationError is the validation error returned by +// StreamEventsRequest.Validate if the designated constraints aren't met. +type StreamEventsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsRequestValidationError) ErrorName() string { + return "StreamEventsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsRequestValidationError) 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 %sStreamEventsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsRequestValidationError{} + +// Validate checks the field values on StreamEventsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamEventsResponseValidationError is the validation error returned by +// StreamEventsResponse.Validate if the designated constraints aren't met. +type StreamEventsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsResponseValidationError) ErrorName() string { + return "StreamEventsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsResponseValidationError) 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 %sStreamEventsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsResponseValidationError{} + +// Validate checks the field values on StreamEventsRequest_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamEventsRequest_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamEventsRequest_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamEventsRequest_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamEventsRequest_IdentifierValidationError is the validation error +// returned by StreamEventsRequest_Identifier.Validate if the designated +// constraints aren't met. +type StreamEventsRequest_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamEventsRequest_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamEventsRequest_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamEventsRequest_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamEventsRequest_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamEventsRequest_IdentifierValidationError) ErrorName() string { + return "StreamEventsRequest_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamEventsRequest_IdentifierValidationError) 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 %sStreamEventsRequest_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamEventsRequest_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamEventsRequest_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.go new file mode 100644 index 000000000..3f1b8ee06 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.go @@ -0,0 +1,689 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/health/v3/hds.proto + +package envoy_service_health_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type Capability_Protocol int32 + +const ( + Capability_HTTP Capability_Protocol = 0 + Capability_TCP Capability_Protocol = 1 + Capability_REDIS Capability_Protocol = 2 +) + +var Capability_Protocol_name = map[int32]string{ + 0: "HTTP", + 1: "TCP", + 2: "REDIS", +} + +var Capability_Protocol_value = map[string]int32{ + "HTTP": 0, + "TCP": 1, + "REDIS": 2, +} + +func (x Capability_Protocol) String() string { + return proto.EnumName(Capability_Protocol_name, int32(x)) +} + +func (Capability_Protocol) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{0, 0} +} + +type Capability struct { + HealthCheckProtocols []Capability_Protocol `protobuf:"varint,1,rep,packed,name=health_check_protocols,json=healthCheckProtocols,proto3,enum=envoy.service.health.v3.Capability_Protocol" json:"health_check_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Capability) Reset() { *m = Capability{} } +func (m *Capability) String() string { return proto.CompactTextString(m) } +func (*Capability) ProtoMessage() {} +func (*Capability) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{0} +} + +func (m *Capability) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Capability.Unmarshal(m, b) +} +func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Capability.Marshal(b, m, deterministic) +} +func (m *Capability) XXX_Merge(src proto.Message) { + xxx_messageInfo_Capability.Merge(m, src) +} +func (m *Capability) XXX_Size() int { + return xxx_messageInfo_Capability.Size(m) +} +func (m *Capability) XXX_DiscardUnknown() { + xxx_messageInfo_Capability.DiscardUnknown(m) +} + +var xxx_messageInfo_Capability proto.InternalMessageInfo + +func (m *Capability) GetHealthCheckProtocols() []Capability_Protocol { + if m != nil { + return m.HealthCheckProtocols + } + return nil +} + +type HealthCheckRequest struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + Capability *Capability `protobuf:"bytes,2,opt,name=capability,proto3" json:"capability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckRequest) Reset() { *m = HealthCheckRequest{} } +func (m *HealthCheckRequest) String() string { return proto.CompactTextString(m) } +func (*HealthCheckRequest) ProtoMessage() {} +func (*HealthCheckRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{1} +} + +func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckRequest.Unmarshal(m, b) +} +func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckRequest.Marshal(b, m, deterministic) +} +func (m *HealthCheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckRequest.Merge(m, src) +} +func (m *HealthCheckRequest) XXX_Size() int { + return xxx_messageInfo_HealthCheckRequest.Size(m) +} +func (m *HealthCheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckRequest proto.InternalMessageInfo + +func (m *HealthCheckRequest) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *HealthCheckRequest) GetCapability() *Capability { + if m != nil { + return m.Capability + } + return nil +} + +type EndpointHealth struct { + Endpoint *v31.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + HealthStatus v3.HealthStatus `protobuf:"varint,2,opt,name=health_status,json=healthStatus,proto3,enum=envoy.config.core.v3.HealthStatus" json:"health_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EndpointHealth) Reset() { *m = EndpointHealth{} } +func (m *EndpointHealth) String() string { return proto.CompactTextString(m) } +func (*EndpointHealth) ProtoMessage() {} +func (*EndpointHealth) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{2} +} + +func (m *EndpointHealth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EndpointHealth.Unmarshal(m, b) +} +func (m *EndpointHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EndpointHealth.Marshal(b, m, deterministic) +} +func (m *EndpointHealth) XXX_Merge(src proto.Message) { + xxx_messageInfo_EndpointHealth.Merge(m, src) +} +func (m *EndpointHealth) XXX_Size() int { + return xxx_messageInfo_EndpointHealth.Size(m) +} +func (m *EndpointHealth) XXX_DiscardUnknown() { + xxx_messageInfo_EndpointHealth.DiscardUnknown(m) +} + +var xxx_messageInfo_EndpointHealth proto.InternalMessageInfo + +func (m *EndpointHealth) GetEndpoint() *v31.Endpoint { + if m != nil { + return m.Endpoint + } + return nil +} + +func (m *EndpointHealth) GetHealthStatus() v3.HealthStatus { + if m != nil { + return m.HealthStatus + } + return v3.HealthStatus_UNKNOWN +} + +type EndpointHealthResponse struct { + EndpointsHealth []*EndpointHealth `protobuf:"bytes,1,rep,name=endpoints_health,json=endpointsHealth,proto3" json:"endpoints_health,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EndpointHealthResponse) Reset() { *m = EndpointHealthResponse{} } +func (m *EndpointHealthResponse) String() string { return proto.CompactTextString(m) } +func (*EndpointHealthResponse) ProtoMessage() {} +func (*EndpointHealthResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{3} +} + +func (m *EndpointHealthResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EndpointHealthResponse.Unmarshal(m, b) +} +func (m *EndpointHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EndpointHealthResponse.Marshal(b, m, deterministic) +} +func (m *EndpointHealthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EndpointHealthResponse.Merge(m, src) +} +func (m *EndpointHealthResponse) XXX_Size() int { + return xxx_messageInfo_EndpointHealthResponse.Size(m) +} +func (m *EndpointHealthResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EndpointHealthResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EndpointHealthResponse proto.InternalMessageInfo + +func (m *EndpointHealthResponse) GetEndpointsHealth() []*EndpointHealth { + if m != nil { + return m.EndpointsHealth + } + return nil +} + +type HealthCheckRequestOrEndpointHealthResponse struct { + // Types that are valid to be assigned to RequestType: + // *HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest + // *HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse + RequestType isHealthCheckRequestOrEndpointHealthResponse_RequestType `protobuf_oneof:"request_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckRequestOrEndpointHealthResponse) Reset() { + *m = HealthCheckRequestOrEndpointHealthResponse{} +} +func (m *HealthCheckRequestOrEndpointHealthResponse) String() string { + return proto.CompactTextString(m) +} +func (*HealthCheckRequestOrEndpointHealthResponse) ProtoMessage() {} +func (*HealthCheckRequestOrEndpointHealthResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{4} +} + +func (m *HealthCheckRequestOrEndpointHealthResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse.Unmarshal(m, b) +} +func (m *HealthCheckRequestOrEndpointHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse.Marshal(b, m, deterministic) +} +func (m *HealthCheckRequestOrEndpointHealthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse.Merge(m, src) +} +func (m *HealthCheckRequestOrEndpointHealthResponse) XXX_Size() int { + return xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse.Size(m) +} +func (m *HealthCheckRequestOrEndpointHealthResponse) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckRequestOrEndpointHealthResponse proto.InternalMessageInfo + +type isHealthCheckRequestOrEndpointHealthResponse_RequestType interface { + isHealthCheckRequestOrEndpointHealthResponse_RequestType() +} + +type HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest struct { + HealthCheckRequest *HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof"` +} + +type HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse struct { + EndpointHealthResponse *EndpointHealthResponse `protobuf:"bytes,2,opt,name=endpoint_health_response,json=endpointHealthResponse,proto3,oneof"` +} + +func (*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest) isHealthCheckRequestOrEndpointHealthResponse_RequestType() { +} + +func (*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse) isHealthCheckRequestOrEndpointHealthResponse_RequestType() { +} + +func (m *HealthCheckRequestOrEndpointHealthResponse) GetRequestType() isHealthCheckRequestOrEndpointHealthResponse_RequestType { + if m != nil { + return m.RequestType + } + return nil +} + +func (m *HealthCheckRequestOrEndpointHealthResponse) GetHealthCheckRequest() *HealthCheckRequest { + if x, ok := m.GetRequestType().(*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest); ok { + return x.HealthCheckRequest + } + return nil +} + +func (m *HealthCheckRequestOrEndpointHealthResponse) GetEndpointHealthResponse() *EndpointHealthResponse { + if x, ok := m.GetRequestType().(*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse); ok { + return x.EndpointHealthResponse + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*HealthCheckRequestOrEndpointHealthResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest)(nil), + (*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse)(nil), + } +} + +type LocalityEndpoints struct { + Locality *v3.Locality `protobuf:"bytes,1,opt,name=locality,proto3" json:"locality,omitempty"` + Endpoints []*v31.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalityEndpoints) Reset() { *m = LocalityEndpoints{} } +func (m *LocalityEndpoints) String() string { return proto.CompactTextString(m) } +func (*LocalityEndpoints) ProtoMessage() {} +func (*LocalityEndpoints) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{5} +} + +func (m *LocalityEndpoints) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocalityEndpoints.Unmarshal(m, b) +} +func (m *LocalityEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocalityEndpoints.Marshal(b, m, deterministic) +} +func (m *LocalityEndpoints) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalityEndpoints.Merge(m, src) +} +func (m *LocalityEndpoints) XXX_Size() int { + return xxx_messageInfo_LocalityEndpoints.Size(m) +} +func (m *LocalityEndpoints) XXX_DiscardUnknown() { + xxx_messageInfo_LocalityEndpoints.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalityEndpoints proto.InternalMessageInfo + +func (m *LocalityEndpoints) GetLocality() *v3.Locality { + if m != nil { + return m.Locality + } + return nil +} + +func (m *LocalityEndpoints) GetEndpoints() []*v31.Endpoint { + if m != nil { + return m.Endpoints + } + return nil +} + +type ClusterHealthCheck struct { + ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + HealthChecks []*v3.HealthCheck `protobuf:"bytes,2,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"` + LocalityEndpoints []*LocalityEndpoints `protobuf:"bytes,3,rep,name=locality_endpoints,json=localityEndpoints,proto3" json:"locality_endpoints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterHealthCheck) Reset() { *m = ClusterHealthCheck{} } +func (m *ClusterHealthCheck) String() string { return proto.CompactTextString(m) } +func (*ClusterHealthCheck) ProtoMessage() {} +func (*ClusterHealthCheck) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{6} +} + +func (m *ClusterHealthCheck) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterHealthCheck.Unmarshal(m, b) +} +func (m *ClusterHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterHealthCheck.Marshal(b, m, deterministic) +} +func (m *ClusterHealthCheck) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterHealthCheck.Merge(m, src) +} +func (m *ClusterHealthCheck) XXX_Size() int { + return xxx_messageInfo_ClusterHealthCheck.Size(m) +} +func (m *ClusterHealthCheck) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterHealthCheck.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterHealthCheck proto.InternalMessageInfo + +func (m *ClusterHealthCheck) GetClusterName() string { + if m != nil { + return m.ClusterName + } + return "" +} + +func (m *ClusterHealthCheck) GetHealthChecks() []*v3.HealthCheck { + if m != nil { + return m.HealthChecks + } + return nil +} + +func (m *ClusterHealthCheck) GetLocalityEndpoints() []*LocalityEndpoints { + if m != nil { + return m.LocalityEndpoints + } + return nil +} + +type HealthCheckSpecifier struct { + ClusterHealthChecks []*ClusterHealthCheck `protobuf:"bytes,1,rep,name=cluster_health_checks,json=clusterHealthChecks,proto3" json:"cluster_health_checks,omitempty"` + Interval *duration.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HealthCheckSpecifier) Reset() { *m = HealthCheckSpecifier{} } +func (m *HealthCheckSpecifier) String() string { return proto.CompactTextString(m) } +func (*HealthCheckSpecifier) ProtoMessage() {} +func (*HealthCheckSpecifier) Descriptor() ([]byte, []int) { + return fileDescriptor_28c56caa659fccb8, []int{7} +} + +func (m *HealthCheckSpecifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HealthCheckSpecifier.Unmarshal(m, b) +} +func (m *HealthCheckSpecifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HealthCheckSpecifier.Marshal(b, m, deterministic) +} +func (m *HealthCheckSpecifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckSpecifier.Merge(m, src) +} +func (m *HealthCheckSpecifier) XXX_Size() int { + return xxx_messageInfo_HealthCheckSpecifier.Size(m) +} +func (m *HealthCheckSpecifier) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckSpecifier.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckSpecifier proto.InternalMessageInfo + +func (m *HealthCheckSpecifier) GetClusterHealthChecks() []*ClusterHealthCheck { + if m != nil { + return m.ClusterHealthChecks + } + return nil +} + +func (m *HealthCheckSpecifier) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.service.health.v3.Capability_Protocol", Capability_Protocol_name, Capability_Protocol_value) + proto.RegisterType((*Capability)(nil), "envoy.service.health.v3.Capability") + proto.RegisterType((*HealthCheckRequest)(nil), "envoy.service.health.v3.HealthCheckRequest") + proto.RegisterType((*EndpointHealth)(nil), "envoy.service.health.v3.EndpointHealth") + proto.RegisterType((*EndpointHealthResponse)(nil), "envoy.service.health.v3.EndpointHealthResponse") + proto.RegisterType((*HealthCheckRequestOrEndpointHealthResponse)(nil), "envoy.service.health.v3.HealthCheckRequestOrEndpointHealthResponse") + proto.RegisterType((*LocalityEndpoints)(nil), "envoy.service.health.v3.LocalityEndpoints") + proto.RegisterType((*ClusterHealthCheck)(nil), "envoy.service.health.v3.ClusterHealthCheck") + proto.RegisterType((*HealthCheckSpecifier)(nil), "envoy.service.health.v3.HealthCheckSpecifier") +} + +func init() { proto.RegisterFile("envoy/service/health/v3/hds.proto", fileDescriptor_28c56caa659fccb8) } + +var fileDescriptor_28c56caa659fccb8 = []byte{ + // 908 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0xee, 0xb8, 0xcb, 0x92, 0xbe, 0x96, 0x92, 0x0e, 0xa5, 0x84, 0x68, 0x29, 0x5b, 0xa3, 0x55, + 0x4b, 0xdb, 0xb5, 0x77, 0x13, 0x40, 0xc8, 0x87, 0x15, 0x6a, 0xda, 0xdd, 0x20, 0xad, 0x96, 0x6a, + 0xd2, 0x0b, 0x27, 0xcb, 0xb1, 0xa7, 0x8d, 0xb5, 0xae, 0xc7, 0x78, 0x1c, 0x8b, 0xdc, 0x10, 0xa7, + 0xbd, 0x20, 0x21, 0x71, 0xe3, 0x07, 0xf0, 0x07, 0xb8, 0x71, 0xe1, 0x04, 0x5a, 0x89, 0x13, 0xe2, + 0xc2, 0x89, 0x13, 0xe2, 0x77, 0x20, 0x7b, 0x66, 0x1c, 0xa7, 0xae, 0xa3, 0xf4, 0xb4, 0xb7, 0xcc, + 0x7b, 0xdf, 0x7b, 0xef, 0xfb, 0xde, 0xbc, 0x37, 0x0e, 0xec, 0xd0, 0x30, 0x65, 0x13, 0x93, 0xd3, + 0x38, 0xf5, 0x5d, 0x6a, 0x8e, 0xa8, 0x13, 0x24, 0x23, 0x33, 0xed, 0x9a, 0x23, 0x8f, 0x1b, 0x51, + 0xcc, 0x12, 0x86, 0xdf, 0xc9, 0x21, 0x86, 0x84, 0x18, 0x02, 0x62, 0xa4, 0xdd, 0xf6, 0xfb, 0x22, + 0xd6, 0x65, 0xe1, 0xb9, 0x7f, 0x61, 0xba, 0x2c,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xfc, 0x3f, 0xc4, 0x29, 0x7a, 0x81, 0xd0, 0xf0, 0x76, 0x7e, 0xeb, 0xdd, 0xff, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x16, 0x37, 0xb9, 0xfe, 0x07, 0x0a, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// HealthDiscoveryServiceClient is the client API for HealthDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type HealthDiscoveryServiceClient interface { + StreamHealthCheck(ctx context.Context, opts ...grpc.CallOption) (HealthDiscoveryService_StreamHealthCheckClient, error) + FetchHealthCheck(ctx context.Context, in *HealthCheckRequestOrEndpointHealthResponse, opts ...grpc.CallOption) (*HealthCheckSpecifier, error) +} + +type healthDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewHealthDiscoveryServiceClient(cc *grpc.ClientConn) HealthDiscoveryServiceClient { + return &healthDiscoveryServiceClient{cc} +} + +func (c *healthDiscoveryServiceClient) StreamHealthCheck(ctx context.Context, opts ...grpc.CallOption) (HealthDiscoveryService_StreamHealthCheckClient, error) { + stream, err := c.cc.NewStream(ctx, &_HealthDiscoveryService_serviceDesc.Streams[0], "/envoy.service.health.v3.HealthDiscoveryService/StreamHealthCheck", opts...) + if err != nil { + return nil, err + } + x := &healthDiscoveryServiceStreamHealthCheckClient{stream} + return x, nil +} + +type HealthDiscoveryService_StreamHealthCheckClient interface { + Send(*HealthCheckRequestOrEndpointHealthResponse) error + Recv() (*HealthCheckSpecifier, error) + grpc.ClientStream +} + +type healthDiscoveryServiceStreamHealthCheckClient struct { + grpc.ClientStream +} + +func (x *healthDiscoveryServiceStreamHealthCheckClient) Send(m *HealthCheckRequestOrEndpointHealthResponse) error { + return x.ClientStream.SendMsg(m) +} + +func (x *healthDiscoveryServiceStreamHealthCheckClient) Recv() (*HealthCheckSpecifier, error) { + m := new(HealthCheckSpecifier) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *healthDiscoveryServiceClient) FetchHealthCheck(ctx context.Context, in *HealthCheckRequestOrEndpointHealthResponse, opts ...grpc.CallOption) (*HealthCheckSpecifier, error) { + out := new(HealthCheckSpecifier) + err := c.cc.Invoke(ctx, "/envoy.service.health.v3.HealthDiscoveryService/FetchHealthCheck", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// HealthDiscoveryServiceServer is the server API for HealthDiscoveryService service. +type HealthDiscoveryServiceServer interface { + StreamHealthCheck(HealthDiscoveryService_StreamHealthCheckServer) error + FetchHealthCheck(context.Context, *HealthCheckRequestOrEndpointHealthResponse) (*HealthCheckSpecifier, error) +} + +// UnimplementedHealthDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedHealthDiscoveryServiceServer struct { +} + +func (*UnimplementedHealthDiscoveryServiceServer) StreamHealthCheck(srv HealthDiscoveryService_StreamHealthCheckServer) error { + return status.Errorf(codes.Unimplemented, "method StreamHealthCheck not implemented") +} +func (*UnimplementedHealthDiscoveryServiceServer) FetchHealthCheck(ctx context.Context, req *HealthCheckRequestOrEndpointHealthResponse) (*HealthCheckSpecifier, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchHealthCheck not implemented") +} + +func RegisterHealthDiscoveryServiceServer(s *grpc.Server, srv HealthDiscoveryServiceServer) { + s.RegisterService(&_HealthDiscoveryService_serviceDesc, srv) +} + +func _HealthDiscoveryService_StreamHealthCheck_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(HealthDiscoveryServiceServer).StreamHealthCheck(&healthDiscoveryServiceStreamHealthCheckServer{stream}) +} + +type HealthDiscoveryService_StreamHealthCheckServer interface { + Send(*HealthCheckSpecifier) error + Recv() (*HealthCheckRequestOrEndpointHealthResponse, error) + grpc.ServerStream +} + +type healthDiscoveryServiceStreamHealthCheckServer struct { + grpc.ServerStream +} + +func (x *healthDiscoveryServiceStreamHealthCheckServer) Send(m *HealthCheckSpecifier) error { + return x.ServerStream.SendMsg(m) +} + +func (x *healthDiscoveryServiceStreamHealthCheckServer) Recv() (*HealthCheckRequestOrEndpointHealthResponse, error) { + m := new(HealthCheckRequestOrEndpointHealthResponse) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _HealthDiscoveryService_FetchHealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HealthCheckRequestOrEndpointHealthResponse) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HealthDiscoveryServiceServer).FetchHealthCheck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.health.v3.HealthDiscoveryService/FetchHealthCheck", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HealthDiscoveryServiceServer).FetchHealthCheck(ctx, req.(*HealthCheckRequestOrEndpointHealthResponse)) + } + return interceptor(ctx, in, info, handler) +} + +var _HealthDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.health.v3.HealthDiscoveryService", + HandlerType: (*HealthDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchHealthCheck", + Handler: _HealthDiscoveryService_FetchHealthCheck_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamHealthCheck", + Handler: _HealthDiscoveryService_StreamHealthCheck_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/health/v3/hds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.validate.go new file mode 100644 index 000000000..d7dcc1def --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/health/v3/hds.pb.validate.go @@ -0,0 +1,730 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/health/v3/hds.proto + +package envoy_service_health_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" +) + +// 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) + _ = ptypes.DynamicAny{} + + _ = v3.HealthStatus(0) +) + +// define the regex for a UUID once up-front +var _hds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Capability with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Capability) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CapabilityValidationError is the validation error returned by +// Capability.Validate if the designated constraints aren't met. +type CapabilityValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CapabilityValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CapabilityValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CapabilityValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CapabilityValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CapabilityValidationError) ErrorName() string { return "CapabilityValidationError" } + +// Error satisfies the builtin error interface +func (e CapabilityValidationError) 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 %sCapability.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CapabilityValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CapabilityValidationError{} + +// Validate checks the field values on HealthCheckRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckRequestValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCapability()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckRequestValidationError{ + field: "Capability", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HealthCheckRequestValidationError is the validation error returned by +// HealthCheckRequest.Validate if the designated constraints aren't met. +type HealthCheckRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckRequestValidationError) ErrorName() string { + return "HealthCheckRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckRequestValidationError) 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 %sHealthCheckRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckRequestValidationError{} + +// Validate checks the field values on EndpointHealth with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *EndpointHealth) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetEndpoint()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EndpointHealthValidationError{ + field: "Endpoint", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for HealthStatus + + return nil +} + +// EndpointHealthValidationError is the validation error returned by +// EndpointHealth.Validate if the designated constraints aren't met. +type EndpointHealthValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EndpointHealthValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EndpointHealthValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EndpointHealthValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EndpointHealthValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EndpointHealthValidationError) ErrorName() string { return "EndpointHealthValidationError" } + +// Error satisfies the builtin error interface +func (e EndpointHealthValidationError) 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 %sEndpointHealth.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EndpointHealthValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EndpointHealthValidationError{} + +// Validate checks the field values on EndpointHealthResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *EndpointHealthResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetEndpointsHealth() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EndpointHealthResponseValidationError{ + field: fmt.Sprintf("EndpointsHealth[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// EndpointHealthResponseValidationError is the validation error returned by +// EndpointHealthResponse.Validate if the designated constraints aren't met. +type EndpointHealthResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EndpointHealthResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EndpointHealthResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EndpointHealthResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EndpointHealthResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EndpointHealthResponseValidationError) ErrorName() string { + return "EndpointHealthResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e EndpointHealthResponseValidationError) 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 %sEndpointHealthResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EndpointHealthResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EndpointHealthResponseValidationError{} + +// Validate checks the field values on +// HealthCheckRequestOrEndpointHealthResponse with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HealthCheckRequestOrEndpointHealthResponse) Validate() error { + if m == nil { + return nil + } + + switch m.RequestType.(type) { + + case *HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest: + + if v, ok := interface{}(m.GetHealthCheckRequest()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckRequestOrEndpointHealthResponseValidationError{ + field: "HealthCheckRequest", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse: + + if v, ok := interface{}(m.GetEndpointHealthResponse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckRequestOrEndpointHealthResponseValidationError{ + field: "EndpointHealthResponse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HealthCheckRequestOrEndpointHealthResponseValidationError is the validation +// error returned by HealthCheckRequestOrEndpointHealthResponse.Validate if +// the designated constraints aren't met. +type HealthCheckRequestOrEndpointHealthResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) ErrorName() string { + return "HealthCheckRequestOrEndpointHealthResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckRequestOrEndpointHealthResponseValidationError) 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 %sHealthCheckRequestOrEndpointHealthResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckRequestOrEndpointHealthResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckRequestOrEndpointHealthResponseValidationError{} + +// Validate checks the field values on LocalityEndpoints with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LocalityEndpoints) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLocality()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalityEndpointsValidationError{ + field: "Locality", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEndpoints() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LocalityEndpointsValidationError{ + field: fmt.Sprintf("Endpoints[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LocalityEndpointsValidationError is the validation error returned by +// LocalityEndpoints.Validate if the designated constraints aren't met. +type LocalityEndpointsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LocalityEndpointsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LocalityEndpointsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LocalityEndpointsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LocalityEndpointsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LocalityEndpointsValidationError) ErrorName() string { + return "LocalityEndpointsValidationError" +} + +// Error satisfies the builtin error interface +func (e LocalityEndpointsValidationError) 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 %sLocalityEndpoints.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LocalityEndpointsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LocalityEndpointsValidationError{} + +// Validate checks the field values on ClusterHealthCheck with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClusterHealthCheck) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ClusterName + + for idx, item := range m.GetHealthChecks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterHealthCheckValidationError{ + field: fmt.Sprintf("HealthChecks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetLocalityEndpoints() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClusterHealthCheckValidationError{ + field: fmt.Sprintf("LocalityEndpoints[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClusterHealthCheckValidationError is the validation error returned by +// ClusterHealthCheck.Validate if the designated constraints aren't met. +type ClusterHealthCheckValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterHealthCheckValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterHealthCheckValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterHealthCheckValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterHealthCheckValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterHealthCheckValidationError) ErrorName() string { + return "ClusterHealthCheckValidationError" +} + +// Error satisfies the builtin error interface +func (e ClusterHealthCheckValidationError) 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 %sClusterHealthCheck.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterHealthCheckValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterHealthCheckValidationError{} + +// Validate checks the field values on HealthCheckSpecifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HealthCheckSpecifier) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetClusterHealthChecks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckSpecifierValidationError{ + field: fmt.Sprintf("ClusterHealthChecks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HealthCheckSpecifierValidationError{ + field: "Interval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HealthCheckSpecifierValidationError is the validation error returned by +// HealthCheckSpecifier.Validate if the designated constraints aren't met. +type HealthCheckSpecifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HealthCheckSpecifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HealthCheckSpecifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HealthCheckSpecifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HealthCheckSpecifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HealthCheckSpecifierValidationError) ErrorName() string { + return "HealthCheckSpecifierValidationError" +} + +// Error satisfies the builtin error interface +func (e HealthCheckSpecifierValidationError) 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 %sHealthCheckSpecifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HealthCheckSpecifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HealthCheckSpecifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.go new file mode 100644 index 000000000..7b4f73fd1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.go @@ -0,0 +1,318 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/listener/v3/lds.proto + +package envoy_service_listener_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/duration" + _ "github.com/golang/protobuf/ptypes/wrappers" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdsDummy) Reset() { *m = LdsDummy{} } +func (m *LdsDummy) String() string { return proto.CompactTextString(m) } +func (*LdsDummy) ProtoMessage() {} +func (*LdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_2f4f7cdedc179239, []int{0} +} + +func (m *LdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LdsDummy.Unmarshal(m, b) +} +func (m *LdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LdsDummy.Marshal(b, m, deterministic) +} +func (m *LdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdsDummy.Merge(m, src) +} +func (m *LdsDummy) XXX_Size() int { + return xxx_messageInfo_LdsDummy.Size(m) +} +func (m *LdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_LdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_LdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*LdsDummy)(nil), "envoy.service.listener.v3.LdsDummy") +} + +func init() { + proto.RegisterFile("envoy/service/listener/v3/lds.proto", fileDescriptor_2f4f7cdedc179239) +} + +var fileDescriptor_2f4f7cdedc179239 = []byte{ + // 416 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0xc1, 0xca, 0xd3, 0x40, + 0x14, 0x85, 0x4d, 0x7f, 0xa8, 0x32, 0x8b, 0x2a, 0x01, 0xa9, 0x0d, 0xb5, 0xd8, 0x76, 0x61, 0x2d, + 0x3a, 0xa3, 0xcd, 0xae, 0x2b, 0x29, 0xc5, 0x55, 0x17, 0xc5, 0x3e, 0xc1, 0x34, 0xb9, 0x8d, 0x03, + 0xe9, 0xcc, 0x38, 0x33, 0x19, 0xcd, 0x42, 0x10, 0x57, 0xc5, 0xad, 0xa0, 0xe0, 0xda, 0xa7, 0x70, + 0x2f, 0xb8, 0x15, 0x7d, 0x04, 0xdf, 0xc0, 0x17, 0x90, 0x26, 0x99, 0xb6, 0x51, 0x2a, 0xba, 0x71, + 0x97, 0xe1, 0x7c, 0xf7, 0xdc, 0xcb, 0xe1, 0x04, 0x0d, 0x81, 0x5b, 0x91, 0x13, 0x0d, 0xca, 0xb2, + 0x08, 0x48, 0xca, 0xb4, 0x01, 0x0e, 0x8a, 0xd8, 0x90, 0xa4, 0xb1, 0xc6, 0x52, 0x09, 0x23, 0xfc, + 0x4e, 0x01, 0xe1, 0x0a, 0xc2, 0x0e, 0xc2, 0x36, 0x0c, 0xc6, 0xf5, 0xf9, 0x98, 0xe9, 0x48, 0x58, + 0x50, 0xf9, 0xde, 0xe0, 0xf0, 0x28, 0x6d, 0x82, 0x6e, 0x22, 0x44, 0x92, 0x02, 0xa1, 0x92, 0x11, + 0xca, 0xb9, 0x30, 0xd4, 0x30, 0xc1, 0xab, 0x25, 0x41, 0xaf, 0x52, 0x8b, 0xd7, 0x3a, 0xdb, 0x90, + 0x38, 0x53, 0x05, 0x70, 0x4e, 0x7f, 0xa6, 0xa8, 0x94, 0xa0, 0xdc, 0xfc, 0xad, 0xf2, 0x92, 0x13, + 0x63, 0xa2, 0x40, 0x8b, 0x4c, 0x45, 0x50, 0x11, 0x37, 0xb3, 0x58, 0xd2, 0x1a, 0xa0, 0x0d, 0x35, + 0x99, 0x33, 0xe8, 0xff, 0x26, 0x5b, 0x50, 0x9a, 0x09, 0xce, 0x78, 0x52, 0x21, 0x6d, 0x4b, 0x53, + 0x16, 0x53, 0x03, 0xc4, 0x7d, 0x94, 0xc2, 0x60, 0x84, 0xae, 0x2c, 0x62, 0x3d, 0xcf, 0xb6, 0xdb, + 0x7c, 0xda, 0x7d, 0xff, 0x69, 0xd7, 0x6b, 0xa3, 0xeb, 0x65, 0x68, 0x54, 0x32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} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// ListenerDiscoveryServiceClient is the client API for ListenerDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ListenerDiscoveryServiceClient interface { + DeltaListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_DeltaListenersClient, error) + StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error) + FetchListeners(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type listenerDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewListenerDiscoveryServiceClient(cc *grpc.ClientConn) ListenerDiscoveryServiceClient { + return &listenerDiscoveryServiceClient{cc} +} + +func (c *listenerDiscoveryServiceClient) DeltaListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_DeltaListenersClient, error) { + stream, err := c.cc.NewStream(ctx, &_ListenerDiscoveryService_serviceDesc.Streams[0], "/envoy.service.listener.v3.ListenerDiscoveryService/DeltaListeners", opts...) + if err != nil { + return nil, err + } + x := &listenerDiscoveryServiceDeltaListenersClient{stream} + return x, nil +} + +type ListenerDiscoveryService_DeltaListenersClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type listenerDiscoveryServiceDeltaListenersClient struct { + grpc.ClientStream +} + +func (x *listenerDiscoveryServiceDeltaListenersClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *listenerDiscoveryServiceDeltaListenersClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *listenerDiscoveryServiceClient) StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error) { + stream, err := c.cc.NewStream(ctx, &_ListenerDiscoveryService_serviceDesc.Streams[1], "/envoy.service.listener.v3.ListenerDiscoveryService/StreamListeners", opts...) + if err != nil { + return nil, err + } + x := &listenerDiscoveryServiceStreamListenersClient{stream} + return x, nil +} + +type ListenerDiscoveryService_StreamListenersClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type listenerDiscoveryServiceStreamListenersClient struct { + grpc.ClientStream +} + +func (x *listenerDiscoveryServiceStreamListenersClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *listenerDiscoveryServiceStreamListenersClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *listenerDiscoveryServiceClient) FetchListeners(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.listener.v3.ListenerDiscoveryService/FetchListeners", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ListenerDiscoveryServiceServer is the server API for ListenerDiscoveryService service. +type ListenerDiscoveryServiceServer interface { + DeltaListeners(ListenerDiscoveryService_DeltaListenersServer) error + StreamListeners(ListenerDiscoveryService_StreamListenersServer) error + FetchListeners(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedListenerDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedListenerDiscoveryServiceServer struct { +} + +func (*UnimplementedListenerDiscoveryServiceServer) DeltaListeners(srv ListenerDiscoveryService_DeltaListenersServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaListeners not implemented") +} +func (*UnimplementedListenerDiscoveryServiceServer) StreamListeners(srv ListenerDiscoveryService_StreamListenersServer) error { + return status.Errorf(codes.Unimplemented, "method StreamListeners not implemented") +} +func (*UnimplementedListenerDiscoveryServiceServer) FetchListeners(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchListeners not implemented") +} + +func RegisterListenerDiscoveryServiceServer(s *grpc.Server, srv ListenerDiscoveryServiceServer) { + s.RegisterService(&_ListenerDiscoveryService_serviceDesc, srv) +} + +func _ListenerDiscoveryService_DeltaListeners_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ListenerDiscoveryServiceServer).DeltaListeners(&listenerDiscoveryServiceDeltaListenersServer{stream}) +} + +type ListenerDiscoveryService_DeltaListenersServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type listenerDiscoveryServiceDeltaListenersServer struct { + grpc.ServerStream +} + +func (x *listenerDiscoveryServiceDeltaListenersServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *listenerDiscoveryServiceDeltaListenersServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ListenerDiscoveryService_StreamListeners_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ListenerDiscoveryServiceServer).StreamListeners(&listenerDiscoveryServiceStreamListenersServer{stream}) +} + +type ListenerDiscoveryService_StreamListenersServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type listenerDiscoveryServiceStreamListenersServer struct { + grpc.ServerStream +} + +func (x *listenerDiscoveryServiceStreamListenersServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *listenerDiscoveryServiceStreamListenersServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ListenerDiscoveryService_FetchListeners_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.listener.v3.ListenerDiscoveryService/FetchListeners", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ListenerDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.listener.v3.ListenerDiscoveryService", + HandlerType: (*ListenerDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchListeners", + Handler: _ListenerDiscoveryService_FetchListeners_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "DeltaListeners", + Handler: _ListenerDiscoveryService_DeltaListeners_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "StreamListeners", + Handler: _ListenerDiscoveryService_StreamListeners_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/listener/v3/lds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.validate.go new file mode 100644 index 000000000..e91716940 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/listener/v3/lds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/listener/v3/lds.proto + +package envoy_service_listener_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _lds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on LdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *LdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// LdsDummyValidationError is the validation error returned by +// LdsDummy.Validate if the designated constraints aren't met. +type LdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LdsDummyValidationError) ErrorName() string { return "LdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e LdsDummyValidationError) 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 %sLdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.go new file mode 100644 index 000000000..d59c7c228 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.go @@ -0,0 +1,285 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/load_stats/v2/lrs.proto + +package envoy_service_load_stats_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LoadStatsRequest struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + ClusterStats []*endpoint.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats,proto3" json:"cluster_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadStatsRequest) Reset() { *m = LoadStatsRequest{} } +func (m *LoadStatsRequest) String() string { return proto.CompactTextString(m) } +func (*LoadStatsRequest) ProtoMessage() {} +func (*LoadStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7332d279836518, []int{0} +} + +func (m *LoadStatsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadStatsRequest.Unmarshal(m, b) +} +func (m *LoadStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadStatsRequest.Marshal(b, m, deterministic) +} +func (m *LoadStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadStatsRequest.Merge(m, src) +} +func (m *LoadStatsRequest) XXX_Size() int { + return xxx_messageInfo_LoadStatsRequest.Size(m) +} +func (m *LoadStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadStatsRequest proto.InternalMessageInfo + +func (m *LoadStatsRequest) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *LoadStatsRequest) GetClusterStats() []*endpoint.ClusterStats { + if m != nil { + return m.ClusterStats + } + return nil +} + +type LoadStatsResponse struct { + Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + LoadReportingInterval *duration.Duration `protobuf:"bytes,2,opt,name=load_reporting_interval,json=loadReportingInterval,proto3" json:"load_reporting_interval,omitempty"` + ReportEndpointGranularity bool `protobuf:"varint,3,opt,name=report_endpoint_granularity,json=reportEndpointGranularity,proto3" json:"report_endpoint_granularity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadStatsResponse) Reset() { *m = LoadStatsResponse{} } +func (m *LoadStatsResponse) String() string { return proto.CompactTextString(m) } +func (*LoadStatsResponse) ProtoMessage() {} +func (*LoadStatsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7332d279836518, []int{1} +} + +func (m *LoadStatsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadStatsResponse.Unmarshal(m, b) +} +func (m *LoadStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadStatsResponse.Marshal(b, m, deterministic) +} +func (m *LoadStatsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadStatsResponse.Merge(m, src) +} +func (m *LoadStatsResponse) XXX_Size() int { + return xxx_messageInfo_LoadStatsResponse.Size(m) +} +func (m *LoadStatsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadStatsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadStatsResponse proto.InternalMessageInfo + +func (m *LoadStatsResponse) GetClusters() []string { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *LoadStatsResponse) GetLoadReportingInterval() *duration.Duration { + if m != nil { + return m.LoadReportingInterval + } + return nil +} + +func (m *LoadStatsResponse) GetReportEndpointGranularity() bool { + if m != nil { + return m.ReportEndpointGranularity + } + return false +} + +func init() { + proto.RegisterType((*LoadStatsRequest)(nil), "envoy.service.load_stats.v2.LoadStatsRequest") + proto.RegisterType((*LoadStatsResponse)(nil), "envoy.service.load_stats.v2.LoadStatsResponse") +} + +func init() { + proto.RegisterFile("envoy/service/load_stats/v2/lrs.proto", fileDescriptor_cd7332d279836518) +} + +var fileDescriptor_cd7332d279836518 = []byte{ + // 448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8e, 0xd3, 0x30, + 0x14, 0x45, 0x71, 0x0b, 0xa3, 0xe0, 0x01, 0x31, 0x44, 0xa0, 0x66, 0x3a, 0x80, 0xaa, 0x02, 0x22, + 0x08, 0x61, 0xa3, 0xb0, 0x67, 0x11, 0x40, 0x80, 0x54, 0xa1, 0x21, 0xfd, 0x80, 0xca, 0x6d, 0x1e, + 0x95, 0xa5, 0xe0, 0x17, 0x6c, 0xc7, 0xa2, 0x3b, 0x96, 0xb0, 0x61, 0xc1, 0xe7, 0xf0, 0x05, 0x2c, + 0xd8, 0xf0, 0x3b, 0xac, 0x50, 0x62, 0x67, 0x26, 0xc3, 0x62, 0xc4, 0xae, 0xee, 0x3b, 0xf7, 0xf9, + 0xde, 0x1b, 0xd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 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// LoadReportingServiceClient is the client API for LoadReportingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LoadReportingServiceClient interface { + StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) +} + +type loadReportingServiceClient struct { + cc *grpc.ClientConn +} + +func NewLoadReportingServiceClient(cc *grpc.ClientConn) LoadReportingServiceClient { + return &loadReportingServiceClient{cc} +} + +func (c *loadReportingServiceClient) StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) { + stream, err := c.cc.NewStream(ctx, &_LoadReportingService_serviceDesc.Streams[0], "/envoy.service.load_stats.v2.LoadReportingService/StreamLoadStats", opts...) + if err != nil { + return nil, err + } + x := &loadReportingServiceStreamLoadStatsClient{stream} + return x, nil +} + +type LoadReportingService_StreamLoadStatsClient interface { + Send(*LoadStatsRequest) error + Recv() (*LoadStatsResponse, error) + grpc.ClientStream +} + +type loadReportingServiceStreamLoadStatsClient struct { + grpc.ClientStream +} + +func (x *loadReportingServiceStreamLoadStatsClient) Send(m *LoadStatsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *loadReportingServiceStreamLoadStatsClient) Recv() (*LoadStatsResponse, error) { + m := new(LoadStatsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// LoadReportingServiceServer is the server API for LoadReportingService service. +type LoadReportingServiceServer interface { + StreamLoadStats(LoadReportingService_StreamLoadStatsServer) error +} + +// UnimplementedLoadReportingServiceServer can be embedded to have forward compatible implementations. +type UnimplementedLoadReportingServiceServer struct { +} + +func (*UnimplementedLoadReportingServiceServer) StreamLoadStats(srv LoadReportingService_StreamLoadStatsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLoadStats not implemented") +} + +func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer) { + s.RegisterService(&_LoadReportingService_serviceDesc, srv) +} + +func _LoadReportingService_StreamLoadStats_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(LoadReportingServiceServer).StreamLoadStats(&loadReportingServiceStreamLoadStatsServer{stream}) +} + +type LoadReportingService_StreamLoadStatsServer interface { + Send(*LoadStatsResponse) error + Recv() (*LoadStatsRequest, error) + grpc.ServerStream +} + +type loadReportingServiceStreamLoadStatsServer struct { + grpc.ServerStream +} + +func (x *loadReportingServiceStreamLoadStatsServer) Send(m *LoadStatsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *loadReportingServiceStreamLoadStatsServer) Recv() (*LoadStatsRequest, error) { + m := new(LoadStatsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _LoadReportingService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.load_stats.v2.LoadReportingService", + HandlerType: (*LoadReportingServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLoadStats", + Handler: _LoadReportingService_StreamLoadStats_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/load_stats/v2/lrs.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.validate.go new file mode 100644 index 000000000..d16d870f0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2/lrs.pb.validate.go @@ -0,0 +1,213 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/load_stats/v2/lrs.proto + +package envoy_service_load_stats_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _lrs_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on LoadStatsRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LoadStatsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsRequestValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetClusterStats() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsRequestValidationError{ + field: fmt.Sprintf("ClusterStats[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LoadStatsRequestValidationError is the validation error returned by +// LoadStatsRequest.Validate if the designated constraints aren't met. +type LoadStatsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LoadStatsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LoadStatsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LoadStatsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LoadStatsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LoadStatsRequestValidationError) ErrorName() string { return "LoadStatsRequestValidationError" } + +// Error satisfies the builtin error interface +func (e LoadStatsRequestValidationError) 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 %sLoadStatsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LoadStatsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LoadStatsRequestValidationError{} + +// Validate checks the field values on LoadStatsResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LoadStatsResponse) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return LoadStatsResponseValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + if v, ok := interface{}(m.GetLoadReportingInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsResponseValidationError{ + field: "LoadReportingInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ReportEndpointGranularity + + return nil +} + +// LoadStatsResponseValidationError is the validation error returned by +// LoadStatsResponse.Validate if the designated constraints aren't met. +type LoadStatsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LoadStatsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LoadStatsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LoadStatsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LoadStatsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LoadStatsResponseValidationError) ErrorName() string { + return "LoadStatsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LoadStatsResponseValidationError) 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 %sLoadStatsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LoadStatsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LoadStatsResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.go new file mode 100644 index 000000000..1beadb7d6 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.go @@ -0,0 +1,288 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/load_stats/v3/lrs.proto + +package envoy_service_load_stats_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type LoadStatsRequest struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + ClusterStats []*v31.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats,proto3" json:"cluster_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadStatsRequest) Reset() { *m = LoadStatsRequest{} } +func (m *LoadStatsRequest) String() string { return proto.CompactTextString(m) } +func (*LoadStatsRequest) ProtoMessage() {} +func (*LoadStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a87f04ee5f8fca3, []int{0} +} + +func (m *LoadStatsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadStatsRequest.Unmarshal(m, b) +} +func (m *LoadStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadStatsRequest.Marshal(b, m, deterministic) +} +func (m *LoadStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadStatsRequest.Merge(m, src) +} +func (m *LoadStatsRequest) XXX_Size() int { + return xxx_messageInfo_LoadStatsRequest.Size(m) +} +func (m *LoadStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadStatsRequest proto.InternalMessageInfo + +func (m *LoadStatsRequest) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *LoadStatsRequest) GetClusterStats() []*v31.ClusterStats { + if m != nil { + return m.ClusterStats + } + return nil +} + +type LoadStatsResponse struct { + Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + LoadReportingInterval *duration.Duration `protobuf:"bytes,2,opt,name=load_reporting_interval,json=loadReportingInterval,proto3" json:"load_reporting_interval,omitempty"` + ReportEndpointGranularity bool `protobuf:"varint,3,opt,name=report_endpoint_granularity,json=reportEndpointGranularity,proto3" json:"report_endpoint_granularity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadStatsResponse) Reset() { *m = LoadStatsResponse{} } +func (m *LoadStatsResponse) String() string { return proto.CompactTextString(m) } +func (*LoadStatsResponse) ProtoMessage() {} +func (*LoadStatsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a87f04ee5f8fca3, []int{1} +} + +func (m *LoadStatsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadStatsResponse.Unmarshal(m, b) +} +func (m *LoadStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadStatsResponse.Marshal(b, m, deterministic) +} +func (m *LoadStatsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadStatsResponse.Merge(m, src) +} +func (m *LoadStatsResponse) XXX_Size() int { + return xxx_messageInfo_LoadStatsResponse.Size(m) +} +func (m *LoadStatsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadStatsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadStatsResponse proto.InternalMessageInfo + +func (m *LoadStatsResponse) GetClusters() []string { + if m != nil { + return m.Clusters + } + return nil +} + +func (m *LoadStatsResponse) GetLoadReportingInterval() *duration.Duration { + if m != nil { + return m.LoadReportingInterval + } + return nil +} + +func (m *LoadStatsResponse) GetReportEndpointGranularity() bool { + if m != nil { + return m.ReportEndpointGranularity + } + return false +} + +func init() { + proto.RegisterType((*LoadStatsRequest)(nil), "envoy.service.load_stats.v3.LoadStatsRequest") + proto.RegisterType((*LoadStatsResponse)(nil), "envoy.service.load_stats.v3.LoadStatsResponse") +} + +func init() { + proto.RegisterFile("envoy/service/load_stats/v3/lrs.proto", fileDescriptor_4a87f04ee5f8fca3) +} + +var fileDescriptor_4a87f04ee5f8fca3 = []byte{ + // 494 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x31, 0x6f, 0xd4, 0x30, + 0x14, 0xc7, 0x71, 0x0e, 0xaa, 0xc3, 0x05, 0x51, 0x22, 0x50, 0xd3, 0x54, 0x94, 0xe3, 0x04, 0x28, + 0x20, 0x6a, 0xa3, 0x0b, 0x53, 0x07, 0x86, 0x00, 0x42, 0x88, 0x13, 0x2a, 0xb9, 0x0f, 0x70, 0xf2, + 0x25, 0x6e, 0x64, 0x29, 0xf8, 0x05, 0xdb, 0x89, 0xb8, 0x0d, 0x31, 0x75, 0x62, 0x60, 0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, 0xfe, 0x2e, 0x39, 0xe7, 0xef, 0x3e, + 0x95, 0x6f, 0x48, 0x2e, 0x8a, 0xdb, 0x56, 0xc6, 0x97, 0x22, 0xf4, 0x14, 0x25, 0xc9, 0x8f, 0xcf, + 0xbf, 0xff, 0xac, 0x79, 0x1b, 0x1e, 0x7e, 0x24, 0xc0, 0x3a, 0x54, 0x0a, 0x3e, 0x2d, 0xcf, 0x33, + 0x4b, 0x86, 0x53, 0xa5, 0xf7, 0xdb, 0xa0, 0xf7, 0xd1, 0x21, 0x42, 0x8b, 0xb5, 0x2e, 0xf4, 0xf8, + 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x88, 0xd4, 0xd9, 0x3f, 0xb5, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// LoadReportingServiceClient is the client API for LoadReportingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LoadReportingServiceClient interface { + StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) +} + +type loadReportingServiceClient struct { + cc *grpc.ClientConn +} + +func NewLoadReportingServiceClient(cc *grpc.ClientConn) LoadReportingServiceClient { + return &loadReportingServiceClient{cc} +} + +func (c *loadReportingServiceClient) StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error) { + stream, err := c.cc.NewStream(ctx, &_LoadReportingService_serviceDesc.Streams[0], "/envoy.service.load_stats.v3.LoadReportingService/StreamLoadStats", opts...) + if err != nil { + return nil, err + } + x := &loadReportingServiceStreamLoadStatsClient{stream} + return x, nil +} + +type LoadReportingService_StreamLoadStatsClient interface { + Send(*LoadStatsRequest) error + Recv() (*LoadStatsResponse, error) + grpc.ClientStream +} + +type loadReportingServiceStreamLoadStatsClient struct { + grpc.ClientStream +} + +func (x *loadReportingServiceStreamLoadStatsClient) Send(m *LoadStatsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *loadReportingServiceStreamLoadStatsClient) Recv() (*LoadStatsResponse, error) { + m := new(LoadStatsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// LoadReportingServiceServer is the server API for LoadReportingService service. +type LoadReportingServiceServer interface { + StreamLoadStats(LoadReportingService_StreamLoadStatsServer) error +} + +// UnimplementedLoadReportingServiceServer can be embedded to have forward compatible implementations. +type UnimplementedLoadReportingServiceServer struct { +} + +func (*UnimplementedLoadReportingServiceServer) StreamLoadStats(srv LoadReportingService_StreamLoadStatsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamLoadStats not implemented") +} + +func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer) { + s.RegisterService(&_LoadReportingService_serviceDesc, srv) +} + +func _LoadReportingService_StreamLoadStats_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(LoadReportingServiceServer).StreamLoadStats(&loadReportingServiceStreamLoadStatsServer{stream}) +} + +type LoadReportingService_StreamLoadStatsServer interface { + Send(*LoadStatsResponse) error + Recv() (*LoadStatsRequest, error) + grpc.ServerStream +} + +type loadReportingServiceStreamLoadStatsServer struct { + grpc.ServerStream +} + +func (x *loadReportingServiceStreamLoadStatsServer) Send(m *LoadStatsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *loadReportingServiceStreamLoadStatsServer) Recv() (*LoadStatsRequest, error) { + m := new(LoadStatsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _LoadReportingService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.load_stats.v3.LoadReportingService", + HandlerType: (*LoadReportingServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamLoadStats", + Handler: _LoadReportingService_StreamLoadStats_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/load_stats/v3/lrs.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.validate.go new file mode 100644 index 000000000..b02cca93f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3/lrs.pb.validate.go @@ -0,0 +1,213 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/load_stats/v3/lrs.proto + +package envoy_service_load_stats_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _lrs_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on LoadStatsRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LoadStatsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsRequestValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetClusterStats() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsRequestValidationError{ + field: fmt.Sprintf("ClusterStats[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LoadStatsRequestValidationError is the validation error returned by +// LoadStatsRequest.Validate if the designated constraints aren't met. +type LoadStatsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LoadStatsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LoadStatsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LoadStatsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LoadStatsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LoadStatsRequestValidationError) ErrorName() string { return "LoadStatsRequestValidationError" } + +// Error satisfies the builtin error interface +func (e LoadStatsRequestValidationError) 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 %sLoadStatsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LoadStatsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LoadStatsRequestValidationError{} + +// Validate checks the field values on LoadStatsResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LoadStatsResponse) Validate() error { + if m == nil { + return nil + } + + if len(m.GetClusters()) < 1 { + return LoadStatsResponseValidationError{ + field: "Clusters", + reason: "value must contain at least 1 item(s)", + } + } + + if v, ok := interface{}(m.GetLoadReportingInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LoadStatsResponseValidationError{ + field: "LoadReportingInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ReportEndpointGranularity + + return nil +} + +// LoadStatsResponseValidationError is the validation error returned by +// LoadStatsResponse.Validate if the designated constraints aren't met. +type LoadStatsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LoadStatsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LoadStatsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LoadStatsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LoadStatsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LoadStatsResponseValidationError) ErrorName() string { + return "LoadStatsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LoadStatsResponseValidationError) 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 %sLoadStatsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LoadStatsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LoadStatsResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.go new file mode 100644 index 000000000..95a5fb1f3 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.go @@ -0,0 +1,297 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/metrics/v2/metrics_service.proto + +package envoy_service_metrics_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _go "github.com/prometheus/client_model/go" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamMetricsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsResponse) Reset() { *m = StreamMetricsResponse{} } +func (m *StreamMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsResponse) ProtoMessage() {} +func (*StreamMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_587c4e7585395bd5, []int{0} +} + +func (m *StreamMetricsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsResponse.Unmarshal(m, b) +} +func (m *StreamMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsResponse.Marshal(b, m, deterministic) +} +func (m *StreamMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsResponse.Merge(m, src) +} +func (m *StreamMetricsResponse) XXX_Size() int { + return xxx_messageInfo_StreamMetricsResponse.Size(m) +} +func (m *StreamMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsResponse proto.InternalMessageInfo + +type StreamMetricsMessage struct { + Identifier *StreamMetricsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + EnvoyMetrics []*_go.MetricFamily `protobuf:"bytes,2,rep,name=envoy_metrics,json=envoyMetrics,proto3" json:"envoy_metrics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsMessage) Reset() { *m = StreamMetricsMessage{} } +func (m *StreamMetricsMessage) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsMessage) ProtoMessage() {} +func (*StreamMetricsMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_587c4e7585395bd5, []int{1} +} + +func (m *StreamMetricsMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsMessage.Unmarshal(m, b) +} +func (m *StreamMetricsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsMessage.Marshal(b, m, deterministic) +} +func (m *StreamMetricsMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsMessage.Merge(m, src) +} +func (m *StreamMetricsMessage) XXX_Size() int { + return xxx_messageInfo_StreamMetricsMessage.Size(m) +} +func (m *StreamMetricsMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsMessage proto.InternalMessageInfo + +func (m *StreamMetricsMessage) GetIdentifier() *StreamMetricsMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamMetricsMessage) GetEnvoyMetrics() []*_go.MetricFamily { + if m != nil { + return m.EnvoyMetrics + } + return nil +} + +type StreamMetricsMessage_Identifier struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsMessage_Identifier) Reset() { *m = StreamMetricsMessage_Identifier{} } +func (m *StreamMetricsMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsMessage_Identifier) ProtoMessage() {} +func (*StreamMetricsMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_587c4e7585395bd5, []int{1, 0} +} + +func (m *StreamMetricsMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamMetricsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamMetricsMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsMessage_Identifier.Merge(m, src) +} +func (m *StreamMetricsMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Size(m) +} +func (m *StreamMetricsMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsMessage_Identifier proto.InternalMessageInfo + +func (m *StreamMetricsMessage_Identifier) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func init() { + proto.RegisterType((*StreamMetricsResponse)(nil), "envoy.service.metrics.v2.StreamMetricsResponse") + proto.RegisterType((*StreamMetricsMessage)(nil), "envoy.service.metrics.v2.StreamMetricsMessage") + proto.RegisterType((*StreamMetricsMessage_Identifier)(nil), "envoy.service.metrics.v2.StreamMetricsMessage.Identifier") +} + +func init() { + proto.RegisterFile("envoy/service/metrics/v2/metrics_service.proto", fileDescriptor_587c4e7585395bd5) +} + +var fileDescriptor_587c4e7585395bd5 = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x41, 0x4b, 0xc3, 0x30, + 0x1c, 0xc5, 0xcd, 0xd4, 0x21, 0x99, 0x93, 0x51, 0x95, 0x8d, 0xa2, 0x30, 0x76, 0x90, 0x9d, 0x12, + 0xa8, 0x78, 0xf0, 0x5a, 0x41, 0x51, 0x98, 0x8c, 0xee, 0xe4, 0x69, 0x64, 0xed, 0x5f, 0x0d, 0xac, + 0x49, 0x49, 0xb2, 0xe2, 0x6e, 0x9e, 0x44, 0xfc, 0x48, 0x7e, 0x02, 0xaf, 0x7e, 0x1d, 0x2f, 0x4a, + 0x9b, 0x74, 0x3a, 0x70, 0xa0, 0xb7, 0xb4, 0xff, 0xf7, 0x7e, 0x79, 0x2f, 0x7f, 0x4c, 0x40, 0xe4, + 0x72, 0x4e, 0x35, 0xa8, 0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0x45, 0xbe, 0xe2, 0x5d, 0xc9, + 0xb5, 0x4c, 0x20, 0xdc, 0xfa, 0x08, 0x37, 0x5f, 0x50, 0xad, 0x85, 0xa2, 0x52, 0x1e, 0x3c, 0x21, + 0xbc, 0xe3, 0x80, 0x23, 0xdb, 0xcb, 0x33, 0xb8, 0xb9, 0xd4, 0xc7, 0x23, 0xff, 0x2b, 0xee, 0xd3, + 0x3f, 0xea, 0x17, 0x6b, 0x58, 0xeb, 0xa3, 0xf0, 0xea, 0xf5, 0xf1, 0xed, 0xbd, 0x5e, 0x6b, 0x21, + 0x7c, 0xc4, 0xa5, 0x05, 0x64, 0x4a, 0x3e, 0xcc, 0x57, 0xb2, 0xc2, 0xdd, 0xe5, 0xdc, 0xc3, 0x62, + 0xd5, 0x43, 0xf4, 0x8c, 0xd0, 0xa4, 0x5e, 0xae, 0xfd, 0xf8, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x2c, + 0x6e, 0x78, 0x5e, 0xa7, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// MetricsServiceClient is the client API for MetricsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MetricsServiceClient interface { + StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) +} + +type metricsServiceClient struct { + cc *grpc.ClientConn +} + +func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient { + return &metricsServiceClient{cc} +} + +func (c *metricsServiceClient) StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) { + stream, err := c.cc.NewStream(ctx, &_MetricsService_serviceDesc.Streams[0], "/envoy.service.metrics.v2.MetricsService/StreamMetrics", opts...) + if err != nil { + return nil, err + } + x := &metricsServiceStreamMetricsClient{stream} + return x, nil +} + +type MetricsService_StreamMetricsClient interface { + Send(*StreamMetricsMessage) error + CloseAndRecv() (*StreamMetricsResponse, error) + grpc.ClientStream +} + +type metricsServiceStreamMetricsClient struct { + grpc.ClientStream +} + +func (x *metricsServiceStreamMetricsClient) Send(m *StreamMetricsMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *metricsServiceStreamMetricsClient) CloseAndRecv() (*StreamMetricsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamMetricsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// MetricsServiceServer is the server API for MetricsService service. +type MetricsServiceServer interface { + StreamMetrics(MetricsService_StreamMetricsServer) error +} + +// UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMetricsServiceServer struct { +} + +func (*UnimplementedMetricsServiceServer) StreamMetrics(srv MetricsService_StreamMetricsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamMetrics not implemented") +} + +func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) { + s.RegisterService(&_MetricsService_serviceDesc, srv) +} + +func _MetricsService_StreamMetrics_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(MetricsServiceServer).StreamMetrics(&metricsServiceStreamMetricsServer{stream}) +} + +type MetricsService_StreamMetricsServer interface { + SendAndClose(*StreamMetricsResponse) error + Recv() (*StreamMetricsMessage, error) + grpc.ServerStream +} + +type metricsServiceStreamMetricsServer struct { + grpc.ServerStream +} + +func (x *metricsServiceStreamMetricsServer) SendAndClose(m *StreamMetricsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *metricsServiceStreamMetricsServer) Recv() (*StreamMetricsMessage, error) { + m := new(StreamMetricsMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _MetricsService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.metrics.v2.MetricsService", + HandlerType: (*MetricsServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamMetrics", + Handler: _MetricsService_StreamMetrics_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/metrics/v2/metrics_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.validate.go new file mode 100644 index 000000000..b1b378148 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2/metrics_service.pb.validate.go @@ -0,0 +1,281 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/metrics/v2/metrics_service.proto + +package envoy_service_metrics_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _metrics_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamMetricsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamMetricsResponseValidationError is the validation error returned by +// StreamMetricsResponse.Validate if the designated constraints aren't met. +type StreamMetricsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsResponseValidationError) ErrorName() string { + return "StreamMetricsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsResponseValidationError) 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 %sStreamMetricsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsResponseValidationError{} + +// Validate checks the field values on StreamMetricsMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEnvoyMetrics() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessageValidationError{ + field: fmt.Sprintf("EnvoyMetrics[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamMetricsMessageValidationError is the validation error returned by +// StreamMetricsMessage.Validate if the designated constraints aren't met. +type StreamMetricsMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsMessageValidationError) ErrorName() string { + return "StreamMetricsMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsMessageValidationError) 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 %sStreamMetricsMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsMessageValidationError{} + +// Validate checks the field values on StreamMetricsMessage_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamMetricsMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamMetricsMessage_IdentifierValidationError is the validation error +// returned by StreamMetricsMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamMetricsMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsMessage_IdentifierValidationError) ErrorName() string { + return "StreamMetricsMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsMessage_IdentifierValidationError) 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 %sStreamMetricsMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsMessage_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.go new file mode 100644 index 000000000..d57961116 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.go @@ -0,0 +1,301 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/metrics/v3/metrics_service.proto + +package envoy_service_metrics_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _go "github.com/prometheus/client_model/go" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamMetricsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsResponse) Reset() { *m = StreamMetricsResponse{} } +func (m *StreamMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsResponse) ProtoMessage() {} +func (*StreamMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f1642cfdc06c3c66, []int{0} +} + +func (m *StreamMetricsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsResponse.Unmarshal(m, b) +} +func (m *StreamMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsResponse.Marshal(b, m, deterministic) +} +func (m *StreamMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsResponse.Merge(m, src) +} +func (m *StreamMetricsResponse) XXX_Size() int { + return xxx_messageInfo_StreamMetricsResponse.Size(m) +} +func (m *StreamMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsResponse proto.InternalMessageInfo + +type StreamMetricsMessage struct { + Identifier *StreamMetricsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + EnvoyMetrics []*_go.MetricFamily `protobuf:"bytes,2,rep,name=envoy_metrics,json=envoyMetrics,proto3" json:"envoy_metrics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsMessage) Reset() { *m = StreamMetricsMessage{} } +func (m *StreamMetricsMessage) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsMessage) ProtoMessage() {} +func (*StreamMetricsMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_f1642cfdc06c3c66, []int{1} +} + +func (m *StreamMetricsMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsMessage.Unmarshal(m, b) +} +func (m *StreamMetricsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsMessage.Marshal(b, m, deterministic) +} +func (m *StreamMetricsMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsMessage.Merge(m, src) +} +func (m *StreamMetricsMessage) XXX_Size() int { + return xxx_messageInfo_StreamMetricsMessage.Size(m) +} +func (m *StreamMetricsMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsMessage proto.InternalMessageInfo + +func (m *StreamMetricsMessage) GetIdentifier() *StreamMetricsMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamMetricsMessage) GetEnvoyMetrics() []*_go.MetricFamily { + if m != nil { + return m.EnvoyMetrics + } + return nil +} + +type StreamMetricsMessage_Identifier struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamMetricsMessage_Identifier) Reset() { *m = StreamMetricsMessage_Identifier{} } +func (m *StreamMetricsMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamMetricsMessage_Identifier) ProtoMessage() {} +func (*StreamMetricsMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_f1642cfdc06c3c66, []int{1, 0} +} + +func (m *StreamMetricsMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamMetricsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamMetricsMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamMetricsMessage_Identifier.Merge(m, src) +} +func (m *StreamMetricsMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamMetricsMessage_Identifier.Size(m) +} +func (m *StreamMetricsMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamMetricsMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamMetricsMessage_Identifier proto.InternalMessageInfo + +func (m *StreamMetricsMessage_Identifier) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func init() { + proto.RegisterType((*StreamMetricsResponse)(nil), "envoy.service.metrics.v3.StreamMetricsResponse") + proto.RegisterType((*StreamMetricsMessage)(nil), "envoy.service.metrics.v3.StreamMetricsMessage") + proto.RegisterType((*StreamMetricsMessage_Identifier)(nil), "envoy.service.metrics.v3.StreamMetricsMessage.Identifier") +} + +func init() { + proto.RegisterFile("envoy/service/metrics/v3/metrics_service.proto", fileDescriptor_f1642cfdc06c3c66) +} + +var fileDescriptor_f1642cfdc06c3c66 = []byte{ + // 419 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x8b, 0x13, 0x31, + 0x18, 0xc6, 0xcd, 0xa8, 0x8b, 0x64, 0xad, 0x2c, 0xa3, 0x62, 0x19, 0x50, 0xd7, 0x1e, 0xa4, 0x17, + 0x13, 0x99, 0x51, 0x58, 0xe7, 0x22, 0xcc, 0x41, 0x51, 0xd8, 0xa5, 0x4c, 0x4f, 0x9e, 0x4a, 0x3a, + 0xf3, 0xb6, 0x06, 0x3a, 0xc9, 0x90, 0xa4, 0x83, 0xbd, 0x79, 0xd2, 0xe2, 0x47, 0xf0, 0xa3, 0x78, + 0x17, 0xbc, 0xfa, 0x75, 0x7a, 0x92, 0x99, 0x64, 0xea, 0x96, 0xb6, 0xd0, 0xde, 0x92, 0xbc, 0xcf, + 0xf3, 0x7b, 0xff, 0xe4, 0xc5, 0x04, 0x44, 0x25, 0x17, 0x54, 0x83, 0xaa, 0x78, 0x06, 0xb4, 0x00, + 0xa3, 0x78, 0xa6, 0x69, 0x15, 0xb5, 0xc7, 0x91, 0x0b, 0x91, 0x52, 0x49, 0x23, 0xfd, 0x6e, 0xa3, + 0x27, 0xed, 0xa3, 0x13, 0x91, 0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c, 0xb1, 0x81, 0x2b, 0xd6, + 0xfe, 0x1a, 0xa9, 0x7f, 0xad, 0x2e, 0xf4, 0x4a, 0xe6, 0x90, 0xdc, 0x59, 0x25, 0xb7, 0x7f, 0x20, + 0xef, 0x0c, 0xa5, 0x8d, 0x23, 0x7e, 0x5b, 0x0f, 0x2f, 0xc6, 0x17, 0x87, 0x0d, 0x6f, 0xbb, 0xbd, + 0xf8, 0x55, 0x0d, 0xa0, 0xf8, 0xc5, 0x51, 0x80, 0xf0, 0x1b, 0xc2, 0xf7, 0xdc, 0xd3, 0xd0, 0x5a, + 0x7c, 0x83, 0x3b, 0x1b, 0x52, 0x9f, 0x1c, 0x37, 0xf3, 0x80, 0x1e, 0xa8, 0x5f, 0x6f, 0xc0, 0x8d, + 0x3e, 0x4a, 0x3e, 0xfe, 0xfa, 0xfa, 0xe7, 0xef, 0x89, 0x77, 0xe6, 0xe1, 0xe7, 0x5c, 0x5a, 0x40, + 0xa9, 0xe4, 0x97, 0xc5, 0x5e, 0x56, 0x72, 0x7f, 0xb3, 0xee, 0x41, 0xbd, 0x9c, 0x03, 0xb4, 0x44, + 0x68, 0x7c, 0xd2, 0x2c, 0x6a, 0xf4, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xf5, 0x35, 0xf0, 0x7f, + 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// MetricsServiceClient is the client API for MetricsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MetricsServiceClient interface { + StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) +} + +type metricsServiceClient struct { + cc *grpc.ClientConn +} + +func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient { + return &metricsServiceClient{cc} +} + +func (c *metricsServiceClient) StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) { + stream, err := c.cc.NewStream(ctx, &_MetricsService_serviceDesc.Streams[0], "/envoy.service.metrics.v3.MetricsService/StreamMetrics", opts...) + if err != nil { + return nil, err + } + x := &metricsServiceStreamMetricsClient{stream} + return x, nil +} + +type MetricsService_StreamMetricsClient interface { + Send(*StreamMetricsMessage) error + CloseAndRecv() (*StreamMetricsResponse, error) + grpc.ClientStream +} + +type metricsServiceStreamMetricsClient struct { + grpc.ClientStream +} + +func (x *metricsServiceStreamMetricsClient) Send(m *StreamMetricsMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *metricsServiceStreamMetricsClient) CloseAndRecv() (*StreamMetricsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamMetricsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// MetricsServiceServer is the server API for MetricsService service. +type MetricsServiceServer interface { + StreamMetrics(MetricsService_StreamMetricsServer) error +} + +// UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMetricsServiceServer struct { +} + +func (*UnimplementedMetricsServiceServer) StreamMetrics(srv MetricsService_StreamMetricsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamMetrics not implemented") +} + +func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) { + s.RegisterService(&_MetricsService_serviceDesc, srv) +} + +func _MetricsService_StreamMetrics_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(MetricsServiceServer).StreamMetrics(&metricsServiceStreamMetricsServer{stream}) +} + +type MetricsService_StreamMetricsServer interface { + SendAndClose(*StreamMetricsResponse) error + Recv() (*StreamMetricsMessage, error) + grpc.ServerStream +} + +type metricsServiceStreamMetricsServer struct { + grpc.ServerStream +} + +func (x *metricsServiceStreamMetricsServer) SendAndClose(m *StreamMetricsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *metricsServiceStreamMetricsServer) Recv() (*StreamMetricsMessage, error) { + m := new(StreamMetricsMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _MetricsService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.metrics.v3.MetricsService", + HandlerType: (*MetricsServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamMetrics", + Handler: _MetricsService_StreamMetrics_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/metrics/v3/metrics_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.validate.go new file mode 100644 index 000000000..d244c46bd --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3/metrics_service.pb.validate.go @@ -0,0 +1,281 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/metrics/v3/metrics_service.proto + +package envoy_service_metrics_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _metrics_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamMetricsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamMetricsResponseValidationError is the validation error returned by +// StreamMetricsResponse.Validate if the designated constraints aren't met. +type StreamMetricsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsResponseValidationError) ErrorName() string { + return "StreamMetricsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsResponseValidationError) 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 %sStreamMetricsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsResponseValidationError{} + +// Validate checks the field values on StreamMetricsMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEnvoyMetrics() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessageValidationError{ + field: fmt.Sprintf("EnvoyMetrics[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamMetricsMessageValidationError is the validation error returned by +// StreamMetricsMessage.Validate if the designated constraints aren't met. +type StreamMetricsMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsMessageValidationError) ErrorName() string { + return "StreamMetricsMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsMessageValidationError) 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 %sStreamMetricsMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsMessageValidationError{} + +// Validate checks the field values on StreamMetricsMessage_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamMetricsMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamMetricsMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamMetricsMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamMetricsMessage_IdentifierValidationError is the validation error +// returned by StreamMetricsMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamMetricsMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamMetricsMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamMetricsMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamMetricsMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamMetricsMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamMetricsMessage_IdentifierValidationError) ErrorName() string { + return "StreamMetricsMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamMetricsMessage_IdentifierValidationError) 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 %sStreamMetricsMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamMetricsMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamMetricsMessage_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.go new file mode 100644 index 000000000..3355834f7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.go @@ -0,0 +1,450 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/ratelimit/v2/rls.proto + +package envoy_service_ratelimit_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + ratelimit "github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitResponse_Code int32 + +const ( + RateLimitResponse_UNKNOWN RateLimitResponse_Code = 0 + RateLimitResponse_OK RateLimitResponse_Code = 1 + RateLimitResponse_OVER_LIMIT RateLimitResponse_Code = 2 +) + +var RateLimitResponse_Code_name = map[int32]string{ + 0: "UNKNOWN", + 1: "OK", + 2: "OVER_LIMIT", +} + +var RateLimitResponse_Code_value = map[string]int32{ + "UNKNOWN": 0, + "OK": 1, + "OVER_LIMIT": 2, +} + +func (x RateLimitResponse_Code) String() string { + return proto.EnumName(RateLimitResponse_Code_name, int32(x)) +} + +func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{1, 0} +} + +type RateLimitResponse_RateLimit_Unit int32 + +const ( + RateLimitResponse_RateLimit_UNKNOWN RateLimitResponse_RateLimit_Unit = 0 + RateLimitResponse_RateLimit_SECOND RateLimitResponse_RateLimit_Unit = 1 + RateLimitResponse_RateLimit_MINUTE RateLimitResponse_RateLimit_Unit = 2 + RateLimitResponse_RateLimit_HOUR RateLimitResponse_RateLimit_Unit = 3 + RateLimitResponse_RateLimit_DAY RateLimitResponse_RateLimit_Unit = 4 +) + +var RateLimitResponse_RateLimit_Unit_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SECOND", + 2: "MINUTE", + 3: "HOUR", + 4: "DAY", +} + +var RateLimitResponse_RateLimit_Unit_value = map[string]int32{ + "UNKNOWN": 0, + "SECOND": 1, + "MINUTE": 2, + "HOUR": 3, + "DAY": 4, +} + +func (x RateLimitResponse_RateLimit_Unit) String() string { + return proto.EnumName(RateLimitResponse_RateLimit_Unit_name, int32(x)) +} + +func (RateLimitResponse_RateLimit_Unit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{1, 0, 0} +} + +type RateLimitRequest struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Descriptors []*ratelimit.RateLimitDescriptor `protobuf:"bytes,2,rep,name=descriptors,proto3" json:"descriptors,omitempty"` + HitsAddend uint32 `protobuf:"varint,3,opt,name=hits_addend,json=hitsAddend,proto3" json:"hits_addend,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitRequest) Reset() { *m = RateLimitRequest{} } +func (m *RateLimitRequest) String() string { return proto.CompactTextString(m) } +func (*RateLimitRequest) ProtoMessage() {} +func (*RateLimitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{0} +} + +func (m *RateLimitRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitRequest.Unmarshal(m, b) +} +func (m *RateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitRequest.Marshal(b, m, deterministic) +} +func (m *RateLimitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitRequest.Merge(m, src) +} +func (m *RateLimitRequest) XXX_Size() int { + return xxx_messageInfo_RateLimitRequest.Size(m) +} +func (m *RateLimitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitRequest proto.InternalMessageInfo + +func (m *RateLimitRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimitRequest) GetDescriptors() []*ratelimit.RateLimitDescriptor { + if m != nil { + return m.Descriptors + } + return nil +} + +func (m *RateLimitRequest) GetHitsAddend() uint32 { + if m != nil { + return m.HitsAddend + } + return 0 +} + +type RateLimitResponse struct { + OverallCode RateLimitResponse_Code `protobuf:"varint,1,opt,name=overall_code,json=overallCode,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_Code" json:"overall_code,omitempty"` + Statuses []*RateLimitResponse_DescriptorStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` + Headers []*core.HeaderValue `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"` + RequestHeadersToAdd []*core.HeaderValue `protobuf:"bytes,4,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse) Reset() { *m = RateLimitResponse{} } +func (m *RateLimitResponse) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse) ProtoMessage() {} +func (*RateLimitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{1} +} + +func (m *RateLimitResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse.Unmarshal(m, b) +} +func (m *RateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse.Merge(m, src) +} +func (m *RateLimitResponse) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse.Size(m) +} +func (m *RateLimitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse proto.InternalMessageInfo + +func (m *RateLimitResponse) GetOverallCode() RateLimitResponse_Code { + if m != nil { + return m.OverallCode + } + return RateLimitResponse_UNKNOWN +} + +func (m *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus { + if m != nil { + return m.Statuses + } + return nil +} + +func (m *RateLimitResponse) GetHeaders() []*core.HeaderValue { + if m != nil { + return m.Headers + } + return nil +} + +func (m *RateLimitResponse) GetRequestHeadersToAdd() []*core.HeaderValue { + if m != nil { + return m.RequestHeadersToAdd + } + return nil +} + +type RateLimitResponse_RateLimit struct { + RequestsPerUnit uint32 `protobuf:"varint,1,opt,name=requests_per_unit,json=requestsPerUnit,proto3" json:"requests_per_unit,omitempty"` + Unit RateLimitResponse_RateLimit_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_RateLimit_Unit" json:"unit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse_RateLimit) Reset() { *m = RateLimitResponse_RateLimit{} } +func (m *RateLimitResponse_RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse_RateLimit) ProtoMessage() {} +func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{1, 0} +} + +func (m *RateLimitResponse_RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse_RateLimit.Unmarshal(m, b) +} +func (m *RateLimitResponse_RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse_RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse_RateLimit.Merge(m, src) +} +func (m *RateLimitResponse_RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse_RateLimit.Size(m) +} +func (m *RateLimitResponse_RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse_RateLimit proto.InternalMessageInfo + +func (m *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 { + if m != nil { + return m.RequestsPerUnit + } + return 0 +} + +func (m *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit { + if m != nil { + return m.Unit + } + return RateLimitResponse_RateLimit_UNKNOWN +} + +type RateLimitResponse_DescriptorStatus struct { + Code RateLimitResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_Code" json:"code,omitempty"` + CurrentLimit *RateLimitResponse_RateLimit `protobuf:"bytes,2,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"` + LimitRemaining uint32 `protobuf:"varint,3,opt,name=limit_remaining,json=limitRemaining,proto3" json:"limit_remaining,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse_DescriptorStatus) Reset() { *m = RateLimitResponse_DescriptorStatus{} } +func (m *RateLimitResponse_DescriptorStatus) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse_DescriptorStatus) ProtoMessage() {} +func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_1de95711edb19ee8, []int{1, 1} +} + +func (m *RateLimitResponse_DescriptorStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Unmarshal(m, b) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse_DescriptorStatus.Merge(m, src) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Size(m) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse_DescriptorStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse_DescriptorStatus proto.InternalMessageInfo + +func (m *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code { + if m != nil { + return m.Code + } + return RateLimitResponse_UNKNOWN +} + +func (m *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit { + if m != nil { + return m.CurrentLimit + } + return nil +} + +func (m *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 { + if m != nil { + return m.LimitRemaining + } + return 0 +} + +func init() { + proto.RegisterEnum("envoy.service.ratelimit.v2.RateLimitResponse_Code", RateLimitResponse_Code_name, RateLimitResponse_Code_value) + proto.RegisterEnum("envoy.service.ratelimit.v2.RateLimitResponse_RateLimit_Unit", RateLimitResponse_RateLimit_Unit_name, RateLimitResponse_RateLimit_Unit_value) + proto.RegisterType((*RateLimitRequest)(nil), "envoy.service.ratelimit.v2.RateLimitRequest") + proto.RegisterType((*RateLimitResponse)(nil), "envoy.service.ratelimit.v2.RateLimitResponse") + proto.RegisterType((*RateLimitResponse_RateLimit)(nil), "envoy.service.ratelimit.v2.RateLimitResponse.RateLimit") + proto.RegisterType((*RateLimitResponse_DescriptorStatus)(nil), "envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus") +} + +func init() { + proto.RegisterFile("envoy/service/ratelimit/v2/rls.proto", fileDescriptor_1de95711edb19ee8) +} + +var fileDescriptor_1de95711edb19ee8 = []byte{ + // 669 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcd, 0x6e, 0xd3, 0x4a, + 0x14, 0xc7, 0xeb, 0xc4, 0x37, 0x6d, 0x4f, 0xfa, 0xe1, 0xce, 0x95, 0xda, 0x5c, 0xeb, 0xde, 0xb6, + 0x8a, 0xae, 0x20, 0xa2, 0x60, 0x4b, 0x66, 0xc1, 0x06, 0x55, 0x4a, 0x3f, 0x50, 0xab, 0xb6, 0x49, + 0x34, 0x69, 0x8a, 0x8a, 0x90, 0xac, 0x69, 0x3c, 0x6a, 0x47, 0x72, 0x3d, 0x66, 0x66, 0x6c, 0xd1, + 0x1d, 0x0b, 0x16, 0xec, 0xd8, 0x22, 0x1e, 0x85, 0x27, 0x80, 0x25, 0xe2, 0x09, 0x78, 0x05, 0x1e, + 0x00, 0x21, 0x8f, 0x9d, 0x8f, 0xb6, 0x02, 0xb5, 0xb0, 0xb3, 0xcf, 0x39, 0xff, 0x9f, 0xe7, 0x7f, + 0xce, 0x19, 0xc3, 0xff, 0x34, 0x4a, 0xf9, 0x85, 0x2b, 0xa9, 0x48, 0x59, 0x9f, 0xba, 0x82, 0x28, + 0x1a, 0xb2, 0x73, 0xa6, 0xdc, 0xd4, 0x73, 0x45, 0x28, 0x9d, 0x58, 0x70, 0xc5, 0x91, 0xad, 0xab, + 0x9c, 0xa2, 0xca, 0x19, 0x56, 0x39, 0xa9, 0x67, 0xff, 0x9b, 0x13, 0x48, 0xcc, 0x32, 0x4d, 0x9f, + 0x0b, 0xea, 0x9e, 0x10, 0x49, 0x73, 0xa5, 0x7d, 0xe7, 0x52, 0x76, 0x84, 0x1f, 0x21, 0xf2, 0xba, + 0xe5, 0x24, 0x88, 0x89, 0x4b, 0xa2, 0x88, 0x2b, 0xa2, 0x18, 0x8f, 0xa4, 0x7b, 0xce, 0x4e, 0xb3, + 0xa2, 0x22, 0xff, 0xdf, 0xb5, 0xbc, 0x54, 0x44, 0x25, 0xc5, 0x01, 0xed, 0xa5, 0x94, 0x84, 0x2c, + 0x20, 0x8a, 0xba, 0x83, 0x87, 0x3c, 0x51, 0x7f, 0x6f, 0x80, 0x85, 0x89, 0xa2, 0xfb, 0xd9, 0xb7, + 0x30, 0x7d, 0x91, 0x50, 0xa9, 0xd0, 0x22, 0x54, 0x02, 0x7e, 0x4e, 0x58, 0x54, 0x33, 0x56, 0x8d, + 0xc6, 0x34, 0x2e, 0xde, 0xd0, 0x01, 0x54, 0x03, 0x2a, 0xfb, 0x82, 0xc5, 0x8a, 0x0b, 0x59, 0x2b, + 0xad, 0x96, 0x1b, 0x55, 0x6f, 0xcd, 0xc9, 0xcd, 0x93, 0x98, 0x39, 0xa9, 0x37, 0xe6, 0x7d, 0x88, + 0xdd, 0x1a, 0x6a, 0xf0, 0xb8, 0x1e, 0xad, 0x40, 0xf5, 0x8c, 0x29, 0xe9, 0x93, 0x20, 0xa0, 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bf, 0xbc, 0xf8, 0x05, 0x67, 0x63, 0x0a, + 0x87, 0xb2, 0x93, 0xfd, 0xb7, 0x3a, 0xc6, 0x1b, 0xc3, 0x38, 0xa9, 0xe8, 0x7f, 0xd8, 0xc3, 0x1f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0d, 0xcc, 0x20, 0xa5, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// RateLimitServiceClient is the client API for RateLimitService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RateLimitServiceClient interface { + ShouldRateLimit(ctx context.Context, in *RateLimitRequest, opts ...grpc.CallOption) (*RateLimitResponse, error) +} + +type rateLimitServiceClient struct { + cc *grpc.ClientConn +} + +func NewRateLimitServiceClient(cc *grpc.ClientConn) RateLimitServiceClient { + return &rateLimitServiceClient{cc} +} + +func (c *rateLimitServiceClient) ShouldRateLimit(ctx context.Context, in *RateLimitRequest, opts ...grpc.CallOption) (*RateLimitResponse, error) { + out := new(RateLimitResponse) + err := c.cc.Invoke(ctx, "/envoy.service.ratelimit.v2.RateLimitService/ShouldRateLimit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RateLimitServiceServer is the server API for RateLimitService service. +type RateLimitServiceServer interface { + ShouldRateLimit(context.Context, *RateLimitRequest) (*RateLimitResponse, error) +} + +// UnimplementedRateLimitServiceServer can be embedded to have forward compatible implementations. +type UnimplementedRateLimitServiceServer struct { +} + +func (*UnimplementedRateLimitServiceServer) ShouldRateLimit(ctx context.Context, req *RateLimitRequest) (*RateLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShouldRateLimit not implemented") +} + +func RegisterRateLimitServiceServer(s *grpc.Server, srv RateLimitServiceServer) { + s.RegisterService(&_RateLimitService_serviceDesc, srv) +} + +func _RateLimitService_ShouldRateLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RateLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RateLimitServiceServer).ShouldRateLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.ratelimit.v2.RateLimitService/ShouldRateLimit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RateLimitServiceServer).ShouldRateLimit(ctx, req.(*RateLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RateLimitService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.ratelimit.v2.RateLimitService", + HandlerType: (*RateLimitServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ShouldRateLimit", + Handler: _RateLimitService_ShouldRateLimit_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "envoy/service/ratelimit/v2/rls.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.validate.go new file mode 100644 index 000000000..a116b0304 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2/rls.pb.validate.go @@ -0,0 +1,389 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/ratelimit/v2/rls.proto + +package envoy_service_ratelimit_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rls_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RateLimitRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Domain + + for idx, item := range m.GetDescriptors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitRequestValidationError{ + field: fmt.Sprintf("Descriptors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for HitsAddend + + return nil +} + +// RateLimitRequestValidationError is the validation error returned by +// RateLimitRequest.Validate if the designated constraints aren't met. +type RateLimitRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitRequestValidationError) ErrorName() string { return "RateLimitRequestValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitRequestValidationError) 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 %sRateLimitRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitRequestValidationError{} + +// Validate checks the field values on RateLimitResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RateLimitResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for OverallCode + + for idx, item := range m.GetStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("Statuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetRequestHeadersToAdd() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("RequestHeadersToAdd[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RateLimitResponseValidationError is the validation error returned by +// RateLimitResponse.Validate if the designated constraints aren't met. +type RateLimitResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponseValidationError) ErrorName() string { + return "RateLimitResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponseValidationError) 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 %sRateLimitResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponseValidationError{} + +// Validate checks the field values on RateLimitResponse_RateLimit with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitResponse_RateLimit) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestsPerUnit + + // no validation rules for Unit + + return nil +} + +// RateLimitResponse_RateLimitValidationError is the validation error returned +// by RateLimitResponse_RateLimit.Validate if the designated constraints +// aren't met. +type RateLimitResponse_RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponse_RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponse_RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponse_RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponse_RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponse_RateLimitValidationError) ErrorName() string { + return "RateLimitResponse_RateLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponse_RateLimitValidationError) 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 %sRateLimitResponse_RateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponse_RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponse_RateLimitValidationError{} + +// Validate checks the field values on RateLimitResponse_DescriptorStatus with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RateLimitResponse_DescriptorStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + if v, ok := interface{}(m.GetCurrentLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponse_DescriptorStatusValidationError{ + field: "CurrentLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for LimitRemaining + + return nil +} + +// RateLimitResponse_DescriptorStatusValidationError is the validation error +// returned by RateLimitResponse_DescriptorStatus.Validate if the designated +// constraints aren't met. +type RateLimitResponse_DescriptorStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponse_DescriptorStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponse_DescriptorStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponse_DescriptorStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponse_DescriptorStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponse_DescriptorStatusValidationError) ErrorName() string { + return "RateLimitResponse_DescriptorStatusValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponse_DescriptorStatusValidationError) 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 %sRateLimitResponse_DescriptorStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponse_DescriptorStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponse_DescriptorStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.go new file mode 100644 index 000000000..bc3f4c526 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.go @@ -0,0 +1,454 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/ratelimit/v3/rls.proto + +package envoy_service_ratelimit_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RateLimitResponse_Code int32 + +const ( + RateLimitResponse_UNKNOWN RateLimitResponse_Code = 0 + RateLimitResponse_OK RateLimitResponse_Code = 1 + RateLimitResponse_OVER_LIMIT RateLimitResponse_Code = 2 +) + +var RateLimitResponse_Code_name = map[int32]string{ + 0: "UNKNOWN", + 1: "OK", + 2: "OVER_LIMIT", +} + +var RateLimitResponse_Code_value = map[string]int32{ + "UNKNOWN": 0, + "OK": 1, + "OVER_LIMIT": 2, +} + +func (x RateLimitResponse_Code) String() string { + return proto.EnumName(RateLimitResponse_Code_name, int32(x)) +} + +func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{1, 0} +} + +type RateLimitResponse_RateLimit_Unit int32 + +const ( + RateLimitResponse_RateLimit_UNKNOWN RateLimitResponse_RateLimit_Unit = 0 + RateLimitResponse_RateLimit_SECOND RateLimitResponse_RateLimit_Unit = 1 + RateLimitResponse_RateLimit_MINUTE RateLimitResponse_RateLimit_Unit = 2 + RateLimitResponse_RateLimit_HOUR RateLimitResponse_RateLimit_Unit = 3 + RateLimitResponse_RateLimit_DAY RateLimitResponse_RateLimit_Unit = 4 +) + +var RateLimitResponse_RateLimit_Unit_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SECOND", + 2: "MINUTE", + 3: "HOUR", + 4: "DAY", +} + +var RateLimitResponse_RateLimit_Unit_value = map[string]int32{ + "UNKNOWN": 0, + "SECOND": 1, + "MINUTE": 2, + "HOUR": 3, + "DAY": 4, +} + +func (x RateLimitResponse_RateLimit_Unit) String() string { + return proto.EnumName(RateLimitResponse_RateLimit_Unit_name, int32(x)) +} + +func (RateLimitResponse_RateLimit_Unit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{1, 0, 0} +} + +type RateLimitRequest struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Descriptors []*v3.RateLimitDescriptor `protobuf:"bytes,2,rep,name=descriptors,proto3" json:"descriptors,omitempty"` + HitsAddend uint32 `protobuf:"varint,3,opt,name=hits_addend,json=hitsAddend,proto3" json:"hits_addend,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitRequest) Reset() { *m = RateLimitRequest{} } +func (m *RateLimitRequest) String() string { return proto.CompactTextString(m) } +func (*RateLimitRequest) ProtoMessage() {} +func (*RateLimitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{0} +} + +func (m *RateLimitRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitRequest.Unmarshal(m, b) +} +func (m *RateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitRequest.Marshal(b, m, deterministic) +} +func (m *RateLimitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitRequest.Merge(m, src) +} +func (m *RateLimitRequest) XXX_Size() int { + return xxx_messageInfo_RateLimitRequest.Size(m) +} +func (m *RateLimitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitRequest proto.InternalMessageInfo + +func (m *RateLimitRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *RateLimitRequest) GetDescriptors() []*v3.RateLimitDescriptor { + if m != nil { + return m.Descriptors + } + return nil +} + +func (m *RateLimitRequest) GetHitsAddend() uint32 { + if m != nil { + return m.HitsAddend + } + return 0 +} + +type RateLimitResponse struct { + OverallCode RateLimitResponse_Code `protobuf:"varint,1,opt,name=overall_code,json=overallCode,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_Code" json:"overall_code,omitempty"` + Statuses []*RateLimitResponse_DescriptorStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` + ResponseHeadersToAdd []*v31.HeaderValue `protobuf:"bytes,3,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"` + RequestHeadersToAdd []*v31.HeaderValue `protobuf:"bytes,4,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse) Reset() { *m = RateLimitResponse{} } +func (m *RateLimitResponse) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse) ProtoMessage() {} +func (*RateLimitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{1} +} + +func (m *RateLimitResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse.Unmarshal(m, b) +} +func (m *RateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse.Merge(m, src) +} +func (m *RateLimitResponse) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse.Size(m) +} +func (m *RateLimitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse proto.InternalMessageInfo + +func (m *RateLimitResponse) GetOverallCode() RateLimitResponse_Code { + if m != nil { + return m.OverallCode + } + return RateLimitResponse_UNKNOWN +} + +func (m *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus { + if m != nil { + return m.Statuses + } + return nil +} + +func (m *RateLimitResponse) GetResponseHeadersToAdd() []*v31.HeaderValue { + if m != nil { + return m.ResponseHeadersToAdd + } + return nil +} + +func (m *RateLimitResponse) GetRequestHeadersToAdd() []*v31.HeaderValue { + if m != nil { + return m.RequestHeadersToAdd + } + return nil +} + +type RateLimitResponse_RateLimit struct { + RequestsPerUnit uint32 `protobuf:"varint,1,opt,name=requests_per_unit,json=requestsPerUnit,proto3" json:"requests_per_unit,omitempty"` + Unit RateLimitResponse_RateLimit_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_RateLimit_Unit" json:"unit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse_RateLimit) Reset() { *m = RateLimitResponse_RateLimit{} } +func (m *RateLimitResponse_RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse_RateLimit) ProtoMessage() {} +func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{1, 0} +} + +func (m *RateLimitResponse_RateLimit) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse_RateLimit.Unmarshal(m, b) +} +func (m *RateLimitResponse_RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse_RateLimit.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse_RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse_RateLimit.Merge(m, src) +} +func (m *RateLimitResponse_RateLimit) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse_RateLimit.Size(m) +} +func (m *RateLimitResponse_RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse_RateLimit proto.InternalMessageInfo + +func (m *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 { + if m != nil { + return m.RequestsPerUnit + } + return 0 +} + +func (m *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit { + if m != nil { + return m.Unit + } + return RateLimitResponse_RateLimit_UNKNOWN +} + +type RateLimitResponse_DescriptorStatus struct { + Code RateLimitResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_Code" json:"code,omitempty"` + CurrentLimit *RateLimitResponse_RateLimit `protobuf:"bytes,2,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"` + LimitRemaining uint32 `protobuf:"varint,3,opt,name=limit_remaining,json=limitRemaining,proto3" json:"limit_remaining,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimitResponse_DescriptorStatus) Reset() { *m = RateLimitResponse_DescriptorStatus{} } +func (m *RateLimitResponse_DescriptorStatus) String() string { return proto.CompactTextString(m) } +func (*RateLimitResponse_DescriptorStatus) ProtoMessage() {} +func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_42d8f587b632794e, []int{1, 1} +} + +func (m *RateLimitResponse_DescriptorStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Unmarshal(m, b) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Marshal(b, m, deterministic) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimitResponse_DescriptorStatus.Merge(m, src) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_Size() int { + return xxx_messageInfo_RateLimitResponse_DescriptorStatus.Size(m) +} +func (m *RateLimitResponse_DescriptorStatus) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimitResponse_DescriptorStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimitResponse_DescriptorStatus proto.InternalMessageInfo + +func (m *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code { + if m != nil { + return m.Code + } + return RateLimitResponse_UNKNOWN +} + +func (m *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit { + if m != nil { + return m.CurrentLimit + } + return nil +} + +func (m *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 { + if m != nil { + return m.LimitRemaining + } + return 0 +} + +func init() { + proto.RegisterEnum("envoy.service.ratelimit.v3.RateLimitResponse_Code", RateLimitResponse_Code_name, RateLimitResponse_Code_value) + proto.RegisterEnum("envoy.service.ratelimit.v3.RateLimitResponse_RateLimit_Unit", RateLimitResponse_RateLimit_Unit_name, RateLimitResponse_RateLimit_Unit_value) + proto.RegisterType((*RateLimitRequest)(nil), "envoy.service.ratelimit.v3.RateLimitRequest") + proto.RegisterType((*RateLimitResponse)(nil), "envoy.service.ratelimit.v3.RateLimitResponse") + proto.RegisterType((*RateLimitResponse_RateLimit)(nil), "envoy.service.ratelimit.v3.RateLimitResponse.RateLimit") + proto.RegisterType((*RateLimitResponse_DescriptorStatus)(nil), "envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus") +} + +func init() { + proto.RegisterFile("envoy/service/ratelimit/v3/rls.proto", fileDescriptor_42d8f587b632794e) +} + +var fileDescriptor_42d8f587b632794e = []byte{ + // 727 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcf, 0x4f, 0xdb, 0x48, + 0x14, 0xc7, 0xb1, 0x13, 0x85, 0xf0, 0xc2, 0x0f, 0x33, 0xbb, 0x82, 0x28, 0xd2, 0x2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0xdf, 0x69, + 0x9b, 0x3b, 0x1b, 0xd3, 0xf4, 0xdc, 0x7e, 0x87, 0x05, 0xa5, 0xf2, 0x18, 0x96, 0x57, 0x40, 0x48, + 0xce, 0xe3, 0x3f, 0x73, 0x3e, 0xd2, 0xfa, 0x38, 0x5a, 0xae, 0x4a, 0x8b, 0xfe, 0x87, 0xad, 0x89, + 0x2c, 0x1a, 0x37, 0x25, 0xbf, 0x0e, 0x49, 0xf5, 0x2b, 0xdd, 0x1a, 0x54, 0x0a, 0xcc, 0xfa, 0xa1, + 0x65, 0xa0, 0x79, 0x80, 0xfa, 0xe9, 0x9e, 0xeb, 0x1d, 0x1d, 0x1c, 0x1f, 0x9c, 0x58, 0x66, 0xb9, + 0x24, 0x4b, 0xda, 0xb0, 0x31, 0x49, 0xc9, 0xe2, 0x9b, 0xd1, 0x0b, 0xaf, 0xa9, 0x35, 0xa8, 0x0b, + 0x0b, 0xcd, 0x0b, 0xda, 0x8b, 0x82, 0x9b, 0x85, 0xdd, 0x78, 0xa0, 0x7f, 0x6a, 0x75, 0x73, 0x9b, + 0x13, 0xb9, 0x9d, 0x9f, 0xda, 0xa9, 0x7c, 0x78, 0xfd, 0xe9, 0x73, 0xca, 0xb4, 0x4c, 0x28, 0x84, + 0x54, 0x8b, 0xbb, 0x8c, 0x5e, 0x5e, 0x7d, 0x83, 0xb3, 0x93, 0x76, 0x23, 0xde, 0x90, 0xb7, 0x76, + 0xc3, 0xb8, 0x36, 0x8c, 0xb3, 0x94, 0xba, 0xc1, 0x4b, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xad, + 0x1f, 0x76, 0xed, 0xb7, 0x06, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// RateLimitServiceClient is the client API for RateLimitService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RateLimitServiceClient interface { + ShouldRateLimit(ctx context.Context, in *RateLimitRequest, opts ...grpc.CallOption) (*RateLimitResponse, error) +} + +type rateLimitServiceClient struct { + cc *grpc.ClientConn +} + +func NewRateLimitServiceClient(cc *grpc.ClientConn) RateLimitServiceClient { + return &rateLimitServiceClient{cc} +} + +func (c *rateLimitServiceClient) ShouldRateLimit(ctx context.Context, in *RateLimitRequest, opts ...grpc.CallOption) (*RateLimitResponse, error) { + out := new(RateLimitResponse) + err := c.cc.Invoke(ctx, "/envoy.service.ratelimit.v3.RateLimitService/ShouldRateLimit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RateLimitServiceServer is the server API for RateLimitService service. +type RateLimitServiceServer interface { + ShouldRateLimit(context.Context, *RateLimitRequest) (*RateLimitResponse, error) +} + +// UnimplementedRateLimitServiceServer can be embedded to have forward compatible implementations. +type UnimplementedRateLimitServiceServer struct { +} + +func (*UnimplementedRateLimitServiceServer) ShouldRateLimit(ctx context.Context, req *RateLimitRequest) (*RateLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShouldRateLimit not implemented") +} + +func RegisterRateLimitServiceServer(s *grpc.Server, srv RateLimitServiceServer) { + s.RegisterService(&_RateLimitService_serviceDesc, srv) +} + +func _RateLimitService_ShouldRateLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RateLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RateLimitServiceServer).ShouldRateLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.ratelimit.v3.RateLimitService/ShouldRateLimit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RateLimitServiceServer).ShouldRateLimit(ctx, req.(*RateLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RateLimitService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.ratelimit.v3.RateLimitService", + HandlerType: (*RateLimitServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ShouldRateLimit", + Handler: _RateLimitService_ShouldRateLimit_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "envoy/service/ratelimit/v3/rls.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.validate.go new file mode 100644 index 000000000..6bcec979e --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3/rls.pb.validate.go @@ -0,0 +1,389 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/ratelimit/v3/rls.proto + +package envoy_service_ratelimit_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rls_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RateLimitRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RateLimitRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Domain + + for idx, item := range m.GetDescriptors() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitRequestValidationError{ + field: fmt.Sprintf("Descriptors[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for HitsAddend + + return nil +} + +// RateLimitRequestValidationError is the validation error returned by +// RateLimitRequest.Validate if the designated constraints aren't met. +type RateLimitRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitRequestValidationError) ErrorName() string { return "RateLimitRequestValidationError" } + +// Error satisfies the builtin error interface +func (e RateLimitRequestValidationError) 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 %sRateLimitRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitRequestValidationError{} + +// Validate checks the field values on RateLimitResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RateLimitResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for OverallCode + + for idx, item := range m.GetStatuses() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("Statuses[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetResponseHeadersToAdd() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("ResponseHeadersToAdd[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetRequestHeadersToAdd() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponseValidationError{ + field: fmt.Sprintf("RequestHeadersToAdd[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RateLimitResponseValidationError is the validation error returned by +// RateLimitResponse.Validate if the designated constraints aren't met. +type RateLimitResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponseValidationError) ErrorName() string { + return "RateLimitResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponseValidationError) 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 %sRateLimitResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponseValidationError{} + +// Validate checks the field values on RateLimitResponse_RateLimit with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RateLimitResponse_RateLimit) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestsPerUnit + + // no validation rules for Unit + + return nil +} + +// RateLimitResponse_RateLimitValidationError is the validation error returned +// by RateLimitResponse_RateLimit.Validate if the designated constraints +// aren't met. +type RateLimitResponse_RateLimitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponse_RateLimitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponse_RateLimitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponse_RateLimitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponse_RateLimitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponse_RateLimitValidationError) ErrorName() string { + return "RateLimitResponse_RateLimitValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponse_RateLimitValidationError) 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 %sRateLimitResponse_RateLimit.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponse_RateLimitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponse_RateLimitValidationError{} + +// Validate checks the field values on RateLimitResponse_DescriptorStatus with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *RateLimitResponse_DescriptorStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + if v, ok := interface{}(m.GetCurrentLimit()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RateLimitResponse_DescriptorStatusValidationError{ + field: "CurrentLimit", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for LimitRemaining + + return nil +} + +// RateLimitResponse_DescriptorStatusValidationError is the validation error +// returned by RateLimitResponse_DescriptorStatus.Validate if the designated +// constraints aren't met. +type RateLimitResponse_DescriptorStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RateLimitResponse_DescriptorStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RateLimitResponse_DescriptorStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RateLimitResponse_DescriptorStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RateLimitResponse_DescriptorStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RateLimitResponse_DescriptorStatusValidationError) ErrorName() string { + return "RateLimitResponse_DescriptorStatusValidationError" +} + +// Error satisfies the builtin error interface +func (e RateLimitResponse_DescriptorStatusValidationError) 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 %sRateLimitResponse_DescriptorStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RateLimitResponse_DescriptorStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RateLimitResponse_DescriptorStatusValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.go new file mode 100644 index 000000000..e68ffd32a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.go @@ -0,0 +1,422 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/route/v3/rds.proto + +package envoy_service_route_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/wrappers" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RdsDummy) Reset() { *m = RdsDummy{} } +func (m *RdsDummy) String() string { return proto.CompactTextString(m) } +func (*RdsDummy) ProtoMessage() {} +func (*RdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_fb47c4d4938dbe61, []int{0} +} + +func (m *RdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RdsDummy.Unmarshal(m, b) +} +func (m *RdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RdsDummy.Marshal(b, m, deterministic) +} +func (m *RdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RdsDummy.Merge(m, src) +} +func (m *RdsDummy) XXX_Size() int { + return xxx_messageInfo_RdsDummy.Size(m) +} +func (m *RdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_RdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_RdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*RdsDummy)(nil), "envoy.service.route.v3.RdsDummy") +} + +func init() { proto.RegisterFile("envoy/service/route/v3/rds.proto", fileDescriptor_fb47c4d4938dbe61) } + +var fileDescriptor_fb47c4d4938dbe61 = []byte{ + // 453 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0xcd, 0x6a, 0x53, 0x41, + 0x18, 0x75, 0x52, 0xa8, 0x32, 0x75, 0xa1, 0xc1, 0xb6, 0x70, 0xad, 0xc5, 0x46, 0x85, 0x18, 0x74, + 0xa6, 0x26, 0xbb, 0x80, 0x9b, 0x1a, 0xc4, 0x65, 0x49, 0xc1, 0xfd, 0xf4, 0xde, 0xaf, 0x71, 0x20, + 0x99, 0x6f, 0x3a, 0x7f, 0x1a, 0x57, 0xc5, 0x55, 0x71, 0x27, 0x82, 0x0b, 0xd7, 0x3e, 0x85, 0x7b, + 0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cb, 0x03, 0xd8, 0x27, + 0xa7, 0x84, 0x1c, 0xae, 0xc6, 0x63, 0xe8, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xde, 0x50, 0xe4, + 0x0a, 0x2f, 0x04, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// RouteDiscoveryServiceClient is the client API for RouteDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RouteDiscoveryServiceClient interface { + StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error) + DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error) + FetchRoutes(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type routeDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewRouteDiscoveryServiceClient(cc *grpc.ClientConn) RouteDiscoveryServiceClient { + return &routeDiscoveryServiceClient{cc} +} + +func (c *routeDiscoveryServiceClient) StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error) { + stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[0], "/envoy.service.route.v3.RouteDiscoveryService/StreamRoutes", opts...) + if err != nil { + return nil, err + } + x := &routeDiscoveryServiceStreamRoutesClient{stream} + return x, nil +} + +type RouteDiscoveryService_StreamRoutesClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type routeDiscoveryServiceStreamRoutesClient struct { + grpc.ClientStream +} + +func (x *routeDiscoveryServiceStreamRoutesClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *routeDiscoveryServiceStreamRoutesClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *routeDiscoveryServiceClient) DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error) { + stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[1], "/envoy.service.route.v3.RouteDiscoveryService/DeltaRoutes", opts...) + if err != nil { + return nil, err + } + x := &routeDiscoveryServiceDeltaRoutesClient{stream} + return x, nil +} + +type RouteDiscoveryService_DeltaRoutesClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type routeDiscoveryServiceDeltaRoutesClient struct { + grpc.ClientStream +} + +func (x *routeDiscoveryServiceDeltaRoutesClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *routeDiscoveryServiceDeltaRoutesClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *routeDiscoveryServiceClient) FetchRoutes(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.route.v3.RouteDiscoveryService/FetchRoutes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RouteDiscoveryServiceServer is the server API for RouteDiscoveryService service. +type RouteDiscoveryServiceServer interface { + StreamRoutes(RouteDiscoveryService_StreamRoutesServer) error + DeltaRoutes(RouteDiscoveryService_DeltaRoutesServer) error + FetchRoutes(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedRouteDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedRouteDiscoveryServiceServer struct { +} + +func (*UnimplementedRouteDiscoveryServiceServer) StreamRoutes(srv RouteDiscoveryService_StreamRoutesServer) error { + return status.Errorf(codes.Unimplemented, "method StreamRoutes not implemented") +} +func (*UnimplementedRouteDiscoveryServiceServer) DeltaRoutes(srv RouteDiscoveryService_DeltaRoutesServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaRoutes not implemented") +} +func (*UnimplementedRouteDiscoveryServiceServer) FetchRoutes(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchRoutes not implemented") +} + +func RegisterRouteDiscoveryServiceServer(s *grpc.Server, srv RouteDiscoveryServiceServer) { + s.RegisterService(&_RouteDiscoveryService_serviceDesc, srv) +} + +func _RouteDiscoveryService_StreamRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RouteDiscoveryServiceServer).StreamRoutes(&routeDiscoveryServiceStreamRoutesServer{stream}) +} + +type RouteDiscoveryService_StreamRoutesServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type routeDiscoveryServiceStreamRoutesServer struct { + grpc.ServerStream +} + +func (x *routeDiscoveryServiceStreamRoutesServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *routeDiscoveryServiceStreamRoutesServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RouteDiscoveryService_DeltaRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RouteDiscoveryServiceServer).DeltaRoutes(&routeDiscoveryServiceDeltaRoutesServer{stream}) +} + +type RouteDiscoveryService_DeltaRoutesServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type routeDiscoveryServiceDeltaRoutesServer struct { + grpc.ServerStream +} + +func (x *routeDiscoveryServiceDeltaRoutesServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *routeDiscoveryServiceDeltaRoutesServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RouteDiscoveryService_FetchRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.route.v3.RouteDiscoveryService/FetchRoutes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RouteDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.route.v3.RouteDiscoveryService", + HandlerType: (*RouteDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchRoutes", + Handler: _RouteDiscoveryService_FetchRoutes_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamRoutes", + Handler: _RouteDiscoveryService_StreamRoutes_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaRoutes", + Handler: _RouteDiscoveryService_DeltaRoutes_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/route/v3/rds.proto", +} + +// VirtualHostDiscoveryServiceClient is the client API for VirtualHostDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type VirtualHostDiscoveryServiceClient interface { + DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error) +} + +type virtualHostDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewVirtualHostDiscoveryServiceClient(cc *grpc.ClientConn) VirtualHostDiscoveryServiceClient { + return &virtualHostDiscoveryServiceClient{cc} +} + +func (c *virtualHostDiscoveryServiceClient) DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error) { + stream, err := c.cc.NewStream(ctx, &_VirtualHostDiscoveryService_serviceDesc.Streams[0], "/envoy.service.route.v3.VirtualHostDiscoveryService/DeltaVirtualHosts", opts...) + if err != nil { + return nil, err + } + x := &virtualHostDiscoveryServiceDeltaVirtualHostsClient{stream} + return x, nil +} + +type VirtualHostDiscoveryService_DeltaVirtualHostsClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type virtualHostDiscoveryServiceDeltaVirtualHostsClient struct { + grpc.ClientStream +} + +func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// VirtualHostDiscoveryServiceServer is the server API for VirtualHostDiscoveryService service. +type VirtualHostDiscoveryServiceServer interface { + DeltaVirtualHosts(VirtualHostDiscoveryService_DeltaVirtualHostsServer) error +} + +// UnimplementedVirtualHostDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedVirtualHostDiscoveryServiceServer struct { +} + +func (*UnimplementedVirtualHostDiscoveryServiceServer) DeltaVirtualHosts(srv VirtualHostDiscoveryService_DeltaVirtualHostsServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaVirtualHosts not implemented") +} + +func RegisterVirtualHostDiscoveryServiceServer(s *grpc.Server, srv VirtualHostDiscoveryServiceServer) { + s.RegisterService(&_VirtualHostDiscoveryService_serviceDesc, srv) +} + +func _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(VirtualHostDiscoveryServiceServer).DeltaVirtualHosts(&virtualHostDiscoveryServiceDeltaVirtualHostsServer{stream}) +} + +type VirtualHostDiscoveryService_DeltaVirtualHostsServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type virtualHostDiscoveryServiceDeltaVirtualHostsServer struct { + grpc.ServerStream +} + +func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _VirtualHostDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.route.v3.VirtualHostDiscoveryService", + HandlerType: (*VirtualHostDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "DeltaVirtualHosts", + Handler: _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/route/v3/rds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.validate.go new file mode 100644 index 000000000..679f2d37b --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/rds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/route/v3/rds.proto + +package envoy_service_route_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RdsDummyValidationError is the validation error returned by +// RdsDummy.Validate if the designated constraints aren't met. +type RdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RdsDummyValidationError) ErrorName() string { return "RdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e RdsDummyValidationError) 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 %sRdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.go new file mode 100644 index 000000000..a4b4e0700 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.go @@ -0,0 +1,312 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/route/v3/srds.proto + +package envoy_service_route_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SrdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrdsDummy) Reset() { *m = SrdsDummy{} } +func (m *SrdsDummy) String() string { return proto.CompactTextString(m) } +func (*SrdsDummy) ProtoMessage() {} +func (*SrdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_e461818506941dcb, []int{0} +} + +func (m *SrdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SrdsDummy.Unmarshal(m, b) +} +func (m *SrdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SrdsDummy.Marshal(b, m, deterministic) +} +func (m *SrdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrdsDummy.Merge(m, src) +} +func (m *SrdsDummy) XXX_Size() int { + return xxx_messageInfo_SrdsDummy.Size(m) +} +func (m *SrdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_SrdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_SrdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*SrdsDummy)(nil), "envoy.service.route.v3.SrdsDummy") +} + +func init() { proto.RegisterFile("envoy/service/route/v3/srds.proto", fileDescriptor_e461818506941dcb) } + +var fileDescriptor_e461818506941dcb = []byte{ + // 395 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0xb1, 0xce, 0xd3, 0x30, + 0x14, 0x85, 0x71, 0x7f, 0xa9, 0x08, 0x4f, 0x34, 0x03, 0x42, 0xa1, 0x45, 0xb4, 0x62, 0x40, 0x55, + 0xeb, 0x94, 0x46, 0x62, 0xe8, 0xc0, 0x50, 0x2a, 0xe6, 0xaa, 0x79, 0x02, 0x93, 0x5c, 0x82, 0xa5, + 0xd6, 0x37, 0xd8, 0x8e, 0x21, 0x5b, 0xc5, 0x54, 0xb1, 0x22, 0x31, 0x30, 0x30, 0xf1, 0x14, 0xec, + 0x48, 0xac, 0x88, 0x57, 0xe0, 0x0d, 0xfa, 0x02, 0x28, 0x4e, 0x1a, 0x1a, 0x15, 0x21, 0x58, 0x18, + 0xad, 0xfb, 0xdd, 0x73, 0xee, 0xb1, 0x0e, 0x1d, 0x82, 0xb4, 0x58, 0x04, 0x1a, 0x94, 0x15, 0x31, + 0x04, 0x0a, 0x73, 0x03, 0x81, 0x0d, 0x03, 0xad, 0x12, 0xcd, 0x32, 0x85, 0x06, 0xbd, 0x5b, 0x0e, + 0x61, 0x35, 0xc2, 0x1c, 0xc2, 0x6c, 0xe8, 0x8f, 0xdb, 0xab, 0x89, 0xd0, 0x31, 0x5a, 0x50, 0x45, + 0xb9, 0xde, 0x3c, 0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4, 0x76, 0xc8, 0xd5, 0x82, 0x8c, 0xfd, + 0x47, 0x6f, 0x3f, 0xbd, 0x3f, 0x5e, 0x9f, 0xd1, 0xda, 0x23, 0x46, 0xf9, 0x5c, 0xa4, 0x4d, 0x6d, + 0xd9, 0xd9, 0xd9, 0x4f, 0xdc, 0x28, 0x57, 0xae, 0x33, 0xcb, 0xc7, 0x9f, 0xf7, 0x5f, 0xbf, 0x75, + 0x3b, 0x37, 0x3b, 0xf4, 0xbe, 0xc0, 0x6a, 0x39, 0x53, 0xf8, 0xba, 0x60, 0xbf, 0xef, 0xff, 0xd2, + 0xf5, 0x69, 0x5d, 0x96, 0x6b, 0x4d, 0x0e, 0x84, 0x3c, 0xeb, 0xba, 0xa2, 0x85, 0x3f, 0x03, 0x00, + 0x00, 0xff, 0xff, 0xe4, 0x73, 0xdc, 0xb3, 0x53, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// ScopedRoutesDiscoveryServiceClient is the client API for ScopedRoutesDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ScopedRoutesDiscoveryServiceClient interface { + StreamScopedRoutes(ctx context.Context, opts ...grpc.CallOption) (ScopedRoutesDiscoveryService_StreamScopedRoutesClient, error) + DeltaScopedRoutes(ctx context.Context, opts ...grpc.CallOption) (ScopedRoutesDiscoveryService_DeltaScopedRoutesClient, error) + FetchScopedRoutes(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type scopedRoutesDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewScopedRoutesDiscoveryServiceClient(cc *grpc.ClientConn) ScopedRoutesDiscoveryServiceClient { + return &scopedRoutesDiscoveryServiceClient{cc} +} + +func (c *scopedRoutesDiscoveryServiceClient) StreamScopedRoutes(ctx context.Context, opts ...grpc.CallOption) (ScopedRoutesDiscoveryService_StreamScopedRoutesClient, error) { + stream, err := c.cc.NewStream(ctx, &_ScopedRoutesDiscoveryService_serviceDesc.Streams[0], "/envoy.service.route.v3.ScopedRoutesDiscoveryService/StreamScopedRoutes", opts...) + if err != nil { + return nil, err + } + x := &scopedRoutesDiscoveryServiceStreamScopedRoutesClient{stream} + return x, nil +} + +type ScopedRoutesDiscoveryService_StreamScopedRoutesClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type scopedRoutesDiscoveryServiceStreamScopedRoutesClient struct { + grpc.ClientStream +} + +func (x *scopedRoutesDiscoveryServiceStreamScopedRoutesClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *scopedRoutesDiscoveryServiceStreamScopedRoutesClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *scopedRoutesDiscoveryServiceClient) DeltaScopedRoutes(ctx context.Context, opts ...grpc.CallOption) (ScopedRoutesDiscoveryService_DeltaScopedRoutesClient, error) { + stream, err := c.cc.NewStream(ctx, &_ScopedRoutesDiscoveryService_serviceDesc.Streams[1], "/envoy.service.route.v3.ScopedRoutesDiscoveryService/DeltaScopedRoutes", opts...) + if err != nil { + return nil, err + } + x := &scopedRoutesDiscoveryServiceDeltaScopedRoutesClient{stream} + return x, nil +} + +type ScopedRoutesDiscoveryService_DeltaScopedRoutesClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type scopedRoutesDiscoveryServiceDeltaScopedRoutesClient struct { + grpc.ClientStream +} + +func (x *scopedRoutesDiscoveryServiceDeltaScopedRoutesClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *scopedRoutesDiscoveryServiceDeltaScopedRoutesClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *scopedRoutesDiscoveryServiceClient) FetchScopedRoutes(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.route.v3.ScopedRoutesDiscoveryService/FetchScopedRoutes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ScopedRoutesDiscoveryServiceServer is the server API for ScopedRoutesDiscoveryService service. +type ScopedRoutesDiscoveryServiceServer interface { + StreamScopedRoutes(ScopedRoutesDiscoveryService_StreamScopedRoutesServer) error + DeltaScopedRoutes(ScopedRoutesDiscoveryService_DeltaScopedRoutesServer) error + FetchScopedRoutes(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedScopedRoutesDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedScopedRoutesDiscoveryServiceServer struct { +} + +func (*UnimplementedScopedRoutesDiscoveryServiceServer) StreamScopedRoutes(srv ScopedRoutesDiscoveryService_StreamScopedRoutesServer) error { + return status.Errorf(codes.Unimplemented, "method StreamScopedRoutes not implemented") +} +func (*UnimplementedScopedRoutesDiscoveryServiceServer) DeltaScopedRoutes(srv ScopedRoutesDiscoveryService_DeltaScopedRoutesServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaScopedRoutes not implemented") +} +func (*UnimplementedScopedRoutesDiscoveryServiceServer) FetchScopedRoutes(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchScopedRoutes not implemented") +} + +func RegisterScopedRoutesDiscoveryServiceServer(s *grpc.Server, srv ScopedRoutesDiscoveryServiceServer) { + s.RegisterService(&_ScopedRoutesDiscoveryService_serviceDesc, srv) +} + +func _ScopedRoutesDiscoveryService_StreamScopedRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ScopedRoutesDiscoveryServiceServer).StreamScopedRoutes(&scopedRoutesDiscoveryServiceStreamScopedRoutesServer{stream}) +} + +type ScopedRoutesDiscoveryService_StreamScopedRoutesServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type scopedRoutesDiscoveryServiceStreamScopedRoutesServer struct { + grpc.ServerStream +} + +func (x *scopedRoutesDiscoveryServiceStreamScopedRoutesServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *scopedRoutesDiscoveryServiceStreamScopedRoutesServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ScopedRoutesDiscoveryService_DeltaScopedRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ScopedRoutesDiscoveryServiceServer).DeltaScopedRoutes(&scopedRoutesDiscoveryServiceDeltaScopedRoutesServer{stream}) +} + +type ScopedRoutesDiscoveryService_DeltaScopedRoutesServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type scopedRoutesDiscoveryServiceDeltaScopedRoutesServer struct { + grpc.ServerStream +} + +func (x *scopedRoutesDiscoveryServiceDeltaScopedRoutesServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *scopedRoutesDiscoveryServiceDeltaScopedRoutesServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ScopedRoutesDiscoveryService_FetchScopedRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ScopedRoutesDiscoveryServiceServer).FetchScopedRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.route.v3.ScopedRoutesDiscoveryService/FetchScopedRoutes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ScopedRoutesDiscoveryServiceServer).FetchScopedRoutes(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ScopedRoutesDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.route.v3.ScopedRoutesDiscoveryService", + HandlerType: (*ScopedRoutesDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchScopedRoutes", + Handler: _ScopedRoutesDiscoveryService_FetchScopedRoutes_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamScopedRoutes", + Handler: _ScopedRoutesDiscoveryService_StreamScopedRoutes_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaScopedRoutes", + Handler: _ScopedRoutesDiscoveryService_DeltaScopedRoutes_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/route/v3/srds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.validate.go new file mode 100644 index 000000000..4c4983d74 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/route/v3/srds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/route/v3/srds.proto + +package envoy_service_route_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _srds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on SrdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SrdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SrdsDummyValidationError is the validation error returned by +// SrdsDummy.Validate if the designated constraints aren't met. +type SrdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SrdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SrdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SrdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SrdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SrdsDummyValidationError) ErrorName() string { return "SrdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e SrdsDummyValidationError) 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 %sSrdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SrdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SrdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.go new file mode 100644 index 000000000..dc8af7759 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.go @@ -0,0 +1,368 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/runtime/v3/rtds.proto + +package envoy_service_runtime_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type RtdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RtdsDummy) Reset() { *m = RtdsDummy{} } +func (m *RtdsDummy) String() string { return proto.CompactTextString(m) } +func (*RtdsDummy) ProtoMessage() {} +func (*RtdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_40cfda5ab878f66c, []int{0} +} + +func (m *RtdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RtdsDummy.Unmarshal(m, b) +} +func (m *RtdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RtdsDummy.Marshal(b, m, deterministic) +} +func (m *RtdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RtdsDummy.Merge(m, src) +} +func (m *RtdsDummy) XXX_Size() int { + return xxx_messageInfo_RtdsDummy.Size(m) +} +func (m *RtdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_RtdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_RtdsDummy proto.InternalMessageInfo + +type Runtime struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Layer *_struct.Struct `protobuf:"bytes,2,opt,name=layer,proto3" json:"layer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Runtime) Reset() { *m = Runtime{} } +func (m *Runtime) String() string { return proto.CompactTextString(m) } +func (*Runtime) ProtoMessage() {} +func (*Runtime) Descriptor() ([]byte, []int) { + return fileDescriptor_40cfda5ab878f66c, []int{1} +} + +func (m *Runtime) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Runtime.Unmarshal(m, b) +} +func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Runtime.Marshal(b, m, deterministic) +} +func (m *Runtime) XXX_Merge(src proto.Message) { + xxx_messageInfo_Runtime.Merge(m, src) +} +func (m *Runtime) XXX_Size() int { + return xxx_messageInfo_Runtime.Size(m) +} +func (m *Runtime) XXX_DiscardUnknown() { + xxx_messageInfo_Runtime.DiscardUnknown(m) +} + +var xxx_messageInfo_Runtime proto.InternalMessageInfo + +func (m *Runtime) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Runtime) GetLayer() *_struct.Struct { + if m != nil { + return m.Layer + } + return nil +} + +func init() { + proto.RegisterType((*RtdsDummy)(nil), "envoy.service.runtime.v3.RtdsDummy") + proto.RegisterType((*Runtime)(nil), "envoy.service.runtime.v3.Runtime") +} + +func init() { + proto.RegisterFile("envoy/service/runtime/v3/rtds.proto", fileDescriptor_40cfda5ab878f66c) +} + +var fileDescriptor_40cfda5ab878f66c = []byte{ + // 463 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 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25, + 0x3f, 0x43, 0x78, 0xef, 0x29, 0x98, 0xf4, 0xf9, 0x7f, 0x79, 0xf0, 0xe0, 0xf5, 0xd7, 0x6f, 0x67, + 0x41, 0x37, 0xbe, 0xde, 0xda, 0x86, 0x49, 0xbd, 0x3e, 0x95, 0xb8, 0x35, 0x41, 0x07, 0xfd, 0xe1, + 0x9b, 0xf7, 0x6f, 0xbf, 0x77, 0x62, 0x1c, 0x6d, 0x5a, 0xb3, 0xe6, 0x67, 0x4e, 0x9f, 0x7c, 0x38, + 0xf9, 0xf4, 0x65, 0x27, 0xb8, 0x16, 0xe0, 0x01, 0x97, 0xbe, 0x98, 0x42, 0xc9, 0x97, 0x25, 0xd9, + 0xe4, 0x9c, 0x56, 0x93, 0x7b, 0xb4, 0x9a, 0xa2, 0x23, 0x74, 0x8a, 0xd0, 0xf1, 0x4e, 0x35, 0x51, + 0xe3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf8, 0x2e, 0x75, 0x25, 0xf8, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// RuntimeDiscoveryServiceClient is the client API for RuntimeDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RuntimeDiscoveryServiceClient interface { + StreamRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_StreamRuntimeClient, error) + DeltaRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_DeltaRuntimeClient, error) + FetchRuntime(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type runtimeDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewRuntimeDiscoveryServiceClient(cc *grpc.ClientConn) RuntimeDiscoveryServiceClient { + return &runtimeDiscoveryServiceClient{cc} +} + +func (c *runtimeDiscoveryServiceClient) StreamRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_StreamRuntimeClient, error) { + stream, err := c.cc.NewStream(ctx, &_RuntimeDiscoveryService_serviceDesc.Streams[0], "/envoy.service.runtime.v3.RuntimeDiscoveryService/StreamRuntime", opts...) + if err != nil { + return nil, err + } + x := &runtimeDiscoveryServiceStreamRuntimeClient{stream} + return x, nil +} + +type RuntimeDiscoveryService_StreamRuntimeClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type runtimeDiscoveryServiceStreamRuntimeClient struct { + grpc.ClientStream +} + +func (x *runtimeDiscoveryServiceStreamRuntimeClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *runtimeDiscoveryServiceStreamRuntimeClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *runtimeDiscoveryServiceClient) DeltaRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_DeltaRuntimeClient, error) { + stream, err := c.cc.NewStream(ctx, &_RuntimeDiscoveryService_serviceDesc.Streams[1], "/envoy.service.runtime.v3.RuntimeDiscoveryService/DeltaRuntime", opts...) + if err != nil { + return nil, err + } + x := &runtimeDiscoveryServiceDeltaRuntimeClient{stream} + return x, nil +} + +type RuntimeDiscoveryService_DeltaRuntimeClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type runtimeDiscoveryServiceDeltaRuntimeClient struct { + grpc.ClientStream +} + +func (x *runtimeDiscoveryServiceDeltaRuntimeClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *runtimeDiscoveryServiceDeltaRuntimeClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *runtimeDiscoveryServiceClient) FetchRuntime(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.runtime.v3.RuntimeDiscoveryService/FetchRuntime", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RuntimeDiscoveryServiceServer is the server API for RuntimeDiscoveryService service. +type RuntimeDiscoveryServiceServer interface { + StreamRuntime(RuntimeDiscoveryService_StreamRuntimeServer) error + DeltaRuntime(RuntimeDiscoveryService_DeltaRuntimeServer) error + FetchRuntime(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedRuntimeDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedRuntimeDiscoveryServiceServer struct { +} + +func (*UnimplementedRuntimeDiscoveryServiceServer) StreamRuntime(srv RuntimeDiscoveryService_StreamRuntimeServer) error { + return status.Errorf(codes.Unimplemented, "method StreamRuntime not implemented") +} +func (*UnimplementedRuntimeDiscoveryServiceServer) DeltaRuntime(srv RuntimeDiscoveryService_DeltaRuntimeServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaRuntime not implemented") +} +func (*UnimplementedRuntimeDiscoveryServiceServer) FetchRuntime(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchRuntime not implemented") +} + +func RegisterRuntimeDiscoveryServiceServer(s *grpc.Server, srv RuntimeDiscoveryServiceServer) { + s.RegisterService(&_RuntimeDiscoveryService_serviceDesc, srv) +} + +func _RuntimeDiscoveryService_StreamRuntime_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RuntimeDiscoveryServiceServer).StreamRuntime(&runtimeDiscoveryServiceStreamRuntimeServer{stream}) +} + +type RuntimeDiscoveryService_StreamRuntimeServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type runtimeDiscoveryServiceStreamRuntimeServer struct { + grpc.ServerStream +} + +func (x *runtimeDiscoveryServiceStreamRuntimeServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *runtimeDiscoveryServiceStreamRuntimeServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RuntimeDiscoveryService_DeltaRuntime_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RuntimeDiscoveryServiceServer).DeltaRuntime(&runtimeDiscoveryServiceDeltaRuntimeServer{stream}) +} + +type RuntimeDiscoveryService_DeltaRuntimeServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type runtimeDiscoveryServiceDeltaRuntimeServer struct { + grpc.ServerStream +} + +func (x *runtimeDiscoveryServiceDeltaRuntimeServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *runtimeDiscoveryServiceDeltaRuntimeServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RuntimeDiscoveryService_FetchRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RuntimeDiscoveryServiceServer).FetchRuntime(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.runtime.v3.RuntimeDiscoveryService/FetchRuntime", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RuntimeDiscoveryServiceServer).FetchRuntime(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RuntimeDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.runtime.v3.RuntimeDiscoveryService", + HandlerType: (*RuntimeDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchRuntime", + Handler: _RuntimeDiscoveryService_FetchRuntime_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamRuntime", + Handler: _RuntimeDiscoveryService_StreamRuntime_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaRuntime", + Handler: _RuntimeDiscoveryService_DeltaRuntime_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/runtime/v3/rtds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.validate.go new file mode 100644 index 000000000..96275b472 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3/rtds.pb.validate.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/runtime/v3/rtds.proto + +package envoy_service_runtime_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _rtds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on RtdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RtdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// RtdsDummyValidationError is the validation error returned by +// RtdsDummy.Validate if the designated constraints aren't met. +type RtdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RtdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RtdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RtdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RtdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RtdsDummyValidationError) ErrorName() string { return "RtdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e RtdsDummyValidationError) 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 %sRtdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RtdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RtdsDummyValidationError{} + +// Validate checks the field values on Runtime with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Runtime) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return RuntimeValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetLayer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RuntimeValidationError{ + field: "Layer", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// RuntimeValidationError is the validation error returned by Runtime.Validate +// if the designated constraints aren't met. +type RuntimeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeValidationError) ErrorName() string { return "RuntimeValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeValidationError) 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 %sRuntime.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.go new file mode 100644 index 000000000..4745125e5 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.go @@ -0,0 +1,312 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/secret/v3/sds.proto + +package envoy_service_secret_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + _ "github.com/envoyproxy/go-control-plane/envoy/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type SdsDummy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SdsDummy) Reset() { *m = SdsDummy{} } +func (m *SdsDummy) String() string { return proto.CompactTextString(m) } +func (*SdsDummy) ProtoMessage() {} +func (*SdsDummy) Descriptor() ([]byte, []int) { + return fileDescriptor_879f5c9ef2affb70, []int{0} +} + +func (m *SdsDummy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SdsDummy.Unmarshal(m, b) +} +func (m *SdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SdsDummy.Marshal(b, m, deterministic) +} +func (m *SdsDummy) XXX_Merge(src proto.Message) { + xxx_messageInfo_SdsDummy.Merge(m, src) +} +func (m *SdsDummy) XXX_Size() int { + return xxx_messageInfo_SdsDummy.Size(m) +} +func (m *SdsDummy) XXX_DiscardUnknown() { + xxx_messageInfo_SdsDummy.DiscardUnknown(m) +} + +var xxx_messageInfo_SdsDummy proto.InternalMessageInfo + +func init() { + proto.RegisterType((*SdsDummy)(nil), "envoy.service.secret.v3.SdsDummy") +} + +func init() { proto.RegisterFile("envoy/service/secret/v3/sds.proto", fileDescriptor_879f5c9ef2affb70) } + +var fileDescriptor_879f5c9ef2affb70 = []byte{ + // 396 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0x41, 0x4b, 0x1b, 0x41, + 0x1c, 0xc5, 0xbb, 0x09, 0xa4, 0x65, 0x48, 0xa1, 0x2c, 0xb4, 0x81, 0xa5, 0x2d, 0x4d, 0x4a, 0x4a, + 0x09, 0xed, 0x6c, 0xba, 0x0b, 0x45, 0x72, 0xf0, 0x10, 0x82, 0xe7, 0xe0, 0x7e, 0x00, 0x19, 0x77, + 0xff, 0xc4, 0xc5, 0x64, 0x66, 0x9d, 0xff, 0xec, 0x92, 0xc5, 0x8b, 0x78, 0x0a, 0x5e, 0x03, 0x1e, + 0x3c, 0xfb, 0x29, 0xbc, 0x0b, 0x5e, 0xc5, 0x93, 0x77, 0xbf, 0x81, 0x5f, 0x40, 0x76, 0x27, 0x1b, + 0x5d, 0x25, 0xa2, 0x17, 0x8f, 0xc3, 0xfb, 0xbd, 0xf7, 0xfe, 0x03, 0x8f, 0x34, 0x81, 0x27, 0x22, + 0xb5, 0x11, 0x64, 0x12, 0xfa, 0x60, 0x23, 0xf8, 0x12, 0x94, 0x9d, 0xb8, 0x36, 0x06, 0x48, 0x23, + 0x29, 0x94, 0x30, 0x1b, 0x39, 0x42, 0x17, 0x08, 0xd5, 0x08, 0x4d, 0x5c, 0xab, 0x53, 0xf6, 0x06, + 0x21, 0xfa, 0x22, 0x01, 0x99, 0x66, 0xf6, 0xe5, 0x43, 0x87, 0x58, 0x5f, 0x47, 0x42, 0x8c, 0xc6, + 0x60, 0xb3, 0x28, 0xb4, 0x19, 0xe7, 0x42, 0x31, 0x15, 0x0a, 0xbe, 0xa8, 0xb0, 0x7e, 0xe8, 0xa4, + 0x07, 0x82, 0x2d, 0x01, 0x45, 0x2c, 0x7d, 0x58, 0x10, 0xdf, 0xe2, 0x20, 0x62, 0x25, 0x00, 0x15, + 0x53, 0x71, 0x11, 0xd0, 0x7c, 0x22, 0x27, 0x20, 0x31, 0x14, 0x3c, 0xe4, 0x23, 0x8d, 0xb4, 0xfe, + 0x93, 0x0f, 0x5e, 0x80, 0x83, 0x78, 0x32, 0x49, 0x7b, 0x9d, 0x93, 0xf3, 0xd9, 0xf7, 0x36, 0xf9, + 0x59, 0xfe, 0xd9, 0xfd, 0xcd, 0x89, 0x43, 0x0b, 0xd6, 0xb9, 0xae, 0x92, 0x2f, 0x5e, 0xfe, 0xe7, + 0x41, 0xa1, 0x7b, 0xda, 0x60, 0xee, 0x93, 0xfa, 0x00, 0xc6, 0x8a, 0x69, 0x19, 0xcd, 0x7f, 0x74, + 0x65, 0xa0, 0x4b, 0x73, 0x72, 0x19, 0xb1, 0x09, 0x7b, 0x31, 0xa0, 0xb2, 0x9c, 0xd7, 0x58, 0x30, + 0x12, 0x1c, 0xa1, 0xf5, 0xee, 0xb7, 0xd1, 0x35, 0x4c, 0x49, 0x3e, 0x7a, 0x4a, 0x02, 0x9b, 0x14, + 0xed, 0x7f, 0x9e, 0x8d, 0x7a, 0x5c, 0xfc, 0xf7, 0x85, 0x74, 0xa9, 0x73, 0x6e, 0x90, 0xfa, 0x06, + 0x28, 0x7f, 0xe7, 0x4d, 0x3a, 0x7f, 0x1d, 0x5e, 0xdd, 0xcc, 0x2b, 0x8d, 0xd6, 0xe7, 0xd2, 0xa0, + 0x7a, 0x7a, 0x80, 0x98, 0x8b, 0xd5, 0x9e, 0xd1, 0xb1, 0xd6, 0x8e, 0x4e, 0x8f, 0x6f, 0xdf, 0x3b, + 0xa4, 0xab, 0xd3, 0x61, 0xaa, 0x80, 0x63, 0xbe, 0x2e, 0x25, 0x19, 0xc7, 0x48, 0x48, 0xb5, 0x85, + 0xc2, 0xdf, 0x05, 0x85, 0x54, 0x8d, 0x31, 0x2b, 0xd3, 0xf7, 0xf7, 0xd7, 0xcf, 0x0e, 0x2e, 0x2e, + 0x6b, 0x95, 0x4f, 0x15, 0xd2, 0x0e, 0x85, 0x3e, 0x2e, 0x92, 0x62, 0x9a, 0xd2, 0x15, 0x93, 0xef, + 0x67, 0x13, 0x1a, 0x66, 0x73, 0x1a, 0x1a, 0x33, 0xc3, 0xd8, 0xae, 0xe5, 0xd3, 0x72, 0xef, 0x02, + 0x00, 0x00, 0xff, 0xff, 0x2d, 0xd2, 0xc4, 0x2f, 0x46, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// SecretDiscoveryServiceClient is the client API for SecretDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SecretDiscoveryServiceClient interface { + DeltaSecrets(ctx context.Context, opts ...grpc.CallOption) (SecretDiscoveryService_DeltaSecretsClient, error) + StreamSecrets(ctx context.Context, opts ...grpc.CallOption) (SecretDiscoveryService_StreamSecretsClient, error) + FetchSecrets(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) +} + +type secretDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewSecretDiscoveryServiceClient(cc *grpc.ClientConn) SecretDiscoveryServiceClient { + return &secretDiscoveryServiceClient{cc} +} + +func (c *secretDiscoveryServiceClient) DeltaSecrets(ctx context.Context, opts ...grpc.CallOption) (SecretDiscoveryService_DeltaSecretsClient, error) { + stream, err := c.cc.NewStream(ctx, &_SecretDiscoveryService_serviceDesc.Streams[0], "/envoy.service.secret.v3.SecretDiscoveryService/DeltaSecrets", opts...) + if err != nil { + return nil, err + } + x := &secretDiscoveryServiceDeltaSecretsClient{stream} + return x, nil +} + +type SecretDiscoveryService_DeltaSecretsClient interface { + Send(*v3.DeltaDiscoveryRequest) error + Recv() (*v3.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type secretDiscoveryServiceDeltaSecretsClient struct { + grpc.ClientStream +} + +func (x *secretDiscoveryServiceDeltaSecretsClient) Send(m *v3.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *secretDiscoveryServiceDeltaSecretsClient) Recv() (*v3.DeltaDiscoveryResponse, error) { + m := new(v3.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *secretDiscoveryServiceClient) StreamSecrets(ctx context.Context, opts ...grpc.CallOption) (SecretDiscoveryService_StreamSecretsClient, error) { + stream, err := c.cc.NewStream(ctx, &_SecretDiscoveryService_serviceDesc.Streams[1], "/envoy.service.secret.v3.SecretDiscoveryService/StreamSecrets", opts...) + if err != nil { + return nil, err + } + x := &secretDiscoveryServiceStreamSecretsClient{stream} + return x, nil +} + +type SecretDiscoveryService_StreamSecretsClient interface { + Send(*v3.DiscoveryRequest) error + Recv() (*v3.DiscoveryResponse, error) + grpc.ClientStream +} + +type secretDiscoveryServiceStreamSecretsClient struct { + grpc.ClientStream +} + +func (x *secretDiscoveryServiceStreamSecretsClient) Send(m *v3.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *secretDiscoveryServiceStreamSecretsClient) Recv() (*v3.DiscoveryResponse, error) { + m := new(v3.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *secretDiscoveryServiceClient) FetchSecrets(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) { + out := new(v3.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.secret.v3.SecretDiscoveryService/FetchSecrets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SecretDiscoveryServiceServer is the server API for SecretDiscoveryService service. +type SecretDiscoveryServiceServer interface { + DeltaSecrets(SecretDiscoveryService_DeltaSecretsServer) error + StreamSecrets(SecretDiscoveryService_StreamSecretsServer) error + FetchSecrets(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) +} + +// UnimplementedSecretDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSecretDiscoveryServiceServer struct { +} + +func (*UnimplementedSecretDiscoveryServiceServer) DeltaSecrets(srv SecretDiscoveryService_DeltaSecretsServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaSecrets not implemented") +} +func (*UnimplementedSecretDiscoveryServiceServer) StreamSecrets(srv SecretDiscoveryService_StreamSecretsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamSecrets not implemented") +} +func (*UnimplementedSecretDiscoveryServiceServer) FetchSecrets(ctx context.Context, req *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchSecrets not implemented") +} + +func RegisterSecretDiscoveryServiceServer(s *grpc.Server, srv SecretDiscoveryServiceServer) { + s.RegisterService(&_SecretDiscoveryService_serviceDesc, srv) +} + +func _SecretDiscoveryService_DeltaSecrets_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SecretDiscoveryServiceServer).DeltaSecrets(&secretDiscoveryServiceDeltaSecretsServer{stream}) +} + +type SecretDiscoveryService_DeltaSecretsServer interface { + Send(*v3.DeltaDiscoveryResponse) error + Recv() (*v3.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type secretDiscoveryServiceDeltaSecretsServer struct { + grpc.ServerStream +} + +func (x *secretDiscoveryServiceDeltaSecretsServer) Send(m *v3.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *secretDiscoveryServiceDeltaSecretsServer) Recv() (*v3.DeltaDiscoveryRequest, error) { + m := new(v3.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SecretDiscoveryService_StreamSecrets_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SecretDiscoveryServiceServer).StreamSecrets(&secretDiscoveryServiceStreamSecretsServer{stream}) +} + +type SecretDiscoveryService_StreamSecretsServer interface { + Send(*v3.DiscoveryResponse) error + Recv() (*v3.DiscoveryRequest, error) + grpc.ServerStream +} + +type secretDiscoveryServiceStreamSecretsServer struct { + grpc.ServerStream +} + +func (x *secretDiscoveryServiceStreamSecretsServer) Send(m *v3.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *secretDiscoveryServiceStreamSecretsServer) Recv() (*v3.DiscoveryRequest, error) { + m := new(v3.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SecretDiscoveryService_FetchSecrets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v3.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SecretDiscoveryServiceServer).FetchSecrets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.secret.v3.SecretDiscoveryService/FetchSecrets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SecretDiscoveryServiceServer).FetchSecrets(ctx, req.(*v3.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SecretDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.secret.v3.SecretDiscoveryService", + HandlerType: (*SecretDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchSecrets", + Handler: _SecretDiscoveryService_FetchSecrets_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "DeltaSecrets", + Handler: _SecretDiscoveryService_DeltaSecrets_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "StreamSecrets", + Handler: _SecretDiscoveryService_StreamSecrets_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/secret/v3/sds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.validate.go new file mode 100644 index 000000000..66cceb11f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/secret/v3/sds.pb.validate.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/secret/v3/sds.proto + +package envoy_service_secret_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _sds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on SdsDummy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SdsDummy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SdsDummyValidationError is the validation error returned by +// SdsDummy.Validate if the designated constraints aren't met. +type SdsDummyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SdsDummyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SdsDummyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SdsDummyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SdsDummyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SdsDummyValidationError) ErrorName() string { return "SdsDummyValidationError" } + +// Error satisfies the builtin error interface +func (e SdsDummyValidationError) 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 %sSdsDummy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SdsDummyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SdsDummyValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.go new file mode 100644 index 000000000..c621e56b1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.go @@ -0,0 +1,513 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/status/v2/csds.proto + +package envoy_service_status_v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ConfigStatus int32 + +const ( + ConfigStatus_UNKNOWN ConfigStatus = 0 + ConfigStatus_SYNCED ConfigStatus = 1 + ConfigStatus_NOT_SENT ConfigStatus = 2 + ConfigStatus_STALE ConfigStatus = 3 + ConfigStatus_ERROR ConfigStatus = 4 +) + +var ConfigStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SYNCED", + 2: "NOT_SENT", + 3: "STALE", + 4: "ERROR", +} + +var ConfigStatus_value = map[string]int32{ + "UNKNOWN": 0, + "SYNCED": 1, + "NOT_SENT": 2, + "STALE": 3, + "ERROR": 4, +} + +func (x ConfigStatus) String() string { + return proto.EnumName(ConfigStatus_name, int32(x)) +} + +func (ConfigStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b8273221d61b8a20, []int{0} +} + +type ClientStatusRequest struct { + NodeMatchers []*matcher.NodeMatcher `protobuf:"bytes,1,rep,name=node_matchers,json=nodeMatchers,proto3" json:"node_matchers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientStatusRequest) Reset() { *m = ClientStatusRequest{} } +func (m *ClientStatusRequest) String() string { return proto.CompactTextString(m) } +func (*ClientStatusRequest) ProtoMessage() {} +func (*ClientStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b8273221d61b8a20, []int{0} +} + +func (m *ClientStatusRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientStatusRequest.Unmarshal(m, b) +} +func (m *ClientStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientStatusRequest.Marshal(b, m, deterministic) +} +func (m *ClientStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientStatusRequest.Merge(m, src) +} +func (m *ClientStatusRequest) XXX_Size() int { + return xxx_messageInfo_ClientStatusRequest.Size(m) +} +func (m *ClientStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClientStatusRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientStatusRequest proto.InternalMessageInfo + +func (m *ClientStatusRequest) GetNodeMatchers() []*matcher.NodeMatcher { + if m != nil { + return m.NodeMatchers + } + return nil +} + +type PerXdsConfig struct { + Status ConfigStatus `protobuf:"varint,1,opt,name=status,proto3,enum=envoy.service.status.v2.ConfigStatus" json:"status,omitempty"` + // Types that are valid to be assigned to PerXdsConfig: + // *PerXdsConfig_ListenerConfig + // *PerXdsConfig_ClusterConfig + // *PerXdsConfig_RouteConfig + // *PerXdsConfig_ScopedRouteConfig + PerXdsConfig isPerXdsConfig_PerXdsConfig `protobuf_oneof:"per_xds_config"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerXdsConfig) Reset() { *m = PerXdsConfig{} } +func (m *PerXdsConfig) String() string { return proto.CompactTextString(m) } +func (*PerXdsConfig) ProtoMessage() {} +func (*PerXdsConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_b8273221d61b8a20, []int{1} +} + +func (m *PerXdsConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerXdsConfig.Unmarshal(m, b) +} +func (m *PerXdsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerXdsConfig.Marshal(b, m, deterministic) +} +func (m *PerXdsConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerXdsConfig.Merge(m, src) +} +func (m *PerXdsConfig) XXX_Size() int { + return xxx_messageInfo_PerXdsConfig.Size(m) +} +func (m *PerXdsConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerXdsConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerXdsConfig proto.InternalMessageInfo + +func (m *PerXdsConfig) GetStatus() ConfigStatus { + if m != nil { + return m.Status + } + return ConfigStatus_UNKNOWN +} + +type isPerXdsConfig_PerXdsConfig interface { + isPerXdsConfig_PerXdsConfig() +} + +type PerXdsConfig_ListenerConfig struct { + ListenerConfig *v2alpha.ListenersConfigDump `protobuf:"bytes,2,opt,name=listener_config,json=listenerConfig,proto3,oneof"` +} + +type PerXdsConfig_ClusterConfig struct { + ClusterConfig *v2alpha.ClustersConfigDump `protobuf:"bytes,3,opt,name=cluster_config,json=clusterConfig,proto3,oneof"` +} + +type PerXdsConfig_RouteConfig struct { + RouteConfig *v2alpha.RoutesConfigDump `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"` +} + +type PerXdsConfig_ScopedRouteConfig struct { + ScopedRouteConfig *v2alpha.ScopedRoutesConfigDump `protobuf:"bytes,5,opt,name=scoped_route_config,json=scopedRouteConfig,proto3,oneof"` +} + +func (*PerXdsConfig_ListenerConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_ClusterConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_RouteConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_ScopedRouteConfig) isPerXdsConfig_PerXdsConfig() {} + +func (m *PerXdsConfig) GetPerXdsConfig() isPerXdsConfig_PerXdsConfig { + if m != nil { + return m.PerXdsConfig + } + return nil +} + +func (m *PerXdsConfig) GetListenerConfig() *v2alpha.ListenersConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ListenerConfig); ok { + return x.ListenerConfig + } + return nil +} + +func (m *PerXdsConfig) GetClusterConfig() *v2alpha.ClustersConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ClusterConfig); ok { + return x.ClusterConfig + } + return nil +} + +func (m *PerXdsConfig) GetRouteConfig() *v2alpha.RoutesConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_RouteConfig); ok { + return x.RouteConfig + } + return nil +} + +func (m *PerXdsConfig) GetScopedRouteConfig() *v2alpha.ScopedRoutesConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ScopedRouteConfig); ok { + return x.ScopedRouteConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PerXdsConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PerXdsConfig_ListenerConfig)(nil), + (*PerXdsConfig_ClusterConfig)(nil), + (*PerXdsConfig_RouteConfig)(nil), + (*PerXdsConfig_ScopedRouteConfig)(nil), + } +} + +type ClientConfig struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XdsConfig []*PerXdsConfig `protobuf:"bytes,2,rep,name=xds_config,json=xdsConfig,proto3" json:"xds_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientConfig) Reset() { *m = ClientConfig{} } +func (m *ClientConfig) String() string { return proto.CompactTextString(m) } +func (*ClientConfig) ProtoMessage() {} +func (*ClientConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_b8273221d61b8a20, []int{2} +} + +func (m *ClientConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientConfig.Unmarshal(m, b) +} +func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic) +} +func (m *ClientConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientConfig.Merge(m, src) +} +func (m *ClientConfig) XXX_Size() int { + return xxx_messageInfo_ClientConfig.Size(m) +} +func (m *ClientConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClientConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientConfig proto.InternalMessageInfo + +func (m *ClientConfig) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *ClientConfig) GetXdsConfig() []*PerXdsConfig { + if m != nil { + return m.XdsConfig + } + return nil +} + +type ClientStatusResponse struct { + Config []*ClientConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientStatusResponse) Reset() { *m = ClientStatusResponse{} } +func (m *ClientStatusResponse) String() string { return proto.CompactTextString(m) } +func (*ClientStatusResponse) ProtoMessage() {} +func (*ClientStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b8273221d61b8a20, []int{3} +} + +func (m *ClientStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientStatusResponse.Unmarshal(m, b) +} +func (m *ClientStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientStatusResponse.Marshal(b, m, deterministic) +} +func (m *ClientStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientStatusResponse.Merge(m, src) +} +func (m *ClientStatusResponse) XXX_Size() int { + return xxx_messageInfo_ClientStatusResponse.Size(m) +} +func (m *ClientStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClientStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientStatusResponse proto.InternalMessageInfo + +func (m *ClientStatusResponse) GetConfig() []*ClientConfig { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.service.status.v2.ConfigStatus", ConfigStatus_name, ConfigStatus_value) + proto.RegisterType((*ClientStatusRequest)(nil), "envoy.service.status.v2.ClientStatusRequest") + proto.RegisterType((*PerXdsConfig)(nil), "envoy.service.status.v2.PerXdsConfig") + proto.RegisterType((*ClientConfig)(nil), "envoy.service.status.v2.ClientConfig") + proto.RegisterType((*ClientStatusResponse)(nil), "envoy.service.status.v2.ClientStatusResponse") +} + +func init() { proto.RegisterFile("envoy/service/status/v2/csds.proto", fileDescriptor_b8273221d61b8a20) } + +var fileDescriptor_b8273221d61b8a20 = []byte{ + // 671 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0xc7, 0xbb, 0x49, 0x9b, 0xef, 0xeb, 0x24, 0x0d, 0xee, 0x16, 0xa9, 0x51, 0x69, 0x45, 0x65, + 0x29, 0x22, 0x6a, 0x8b, 0x8d, 0xcc, 0xad, 0x12, 0x42, 0x34, 0x09, 0x42, 0xb4, 0xb8, 0x91, 0xdd, + 0x0a, 0x10, 0x42, 0x96, 0x6b, 0x6f, 0x5b, 0x4b, 0x89, 0xd7, 0x78, 0xd7, 0xa1, 0xb9, 0x01, 0x27, + 0xee, 0xdc, 0x79, 0x07, 0x6e, 0x88, 0x27, 0xe0, 0x8a, 0x78, 0x05, 0x1e, 0x04, 0x79, 0x77, 0xad, + 0x24, 0x28, 0x51, 0x39, 0x71, 0x5b, 0x67, 0xfe, 0xff, 0xdf, 0xcc, 0xce, 0x4c, 0x16, 0x74, 0x12, + 0x0f, 0xe9, 0xc8, 0x64, 0x24, 0x1d, 0x46, 0x01, 0x31, 0x19, 0xf7, 0x79, 0xc6, 0xcc, 0xa1, 0x65, + 0x06, 0x2c, 0x64, 0x46, 0x92, 0x52, 0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, 0x70, 0xa3, + 0x1f, 0x31, 0x4e, 0x62, 0x92, 0x7a, 0xb2, 0xc5, 0x8d, 0xd2, 0x36, 0x6a, 0x55, 0xad, 0x96, 0xe2, + 0x88, 0x29, 0x18, 0x6a, 0x0a, 0xc6, 0x91, 0xd2, 0xaa, 0xec, 0x9d, 0x6c, 0x90, 0x3c, 0x59, 0x70, + 0xea, 0x05, 0x42, 0xd5, 0xd4, 0x83, 0x7a, 0xd0, 0xcf, 0x18, 0x1f, 0x33, 0xcb, 0x82, 0x79, 0x67, + 0x26, 0xb3, 0x2d, 0xa5, 0xd3, 0xc8, 0x15, 0x05, 0x50, 0xc4, 0xa7, 0x50, 0x4b, 0x69, 0xc6, 0x49, + 0xc1, 0x5b, 0x14, 0xbc, 0xe6, 0x4c, 0x9e, 0x93, 0x0b, 0xa7, 0x69, 0x55, 0x61, 0x56, 0xac, 0xd7, + 0xb0, 0xc6, 0x02, 0x9a, 0x90, 0xd0, 0x9b, 0x42, 0x2e, 0x09, 0xe4, 0xee, 0x4c, 0xa4, 0x2b, 0xf4, + 0x33, 0xc0, 0xab, 0x6c, 0x1c, 0x91, 0x81, 0x03, 0x0d, 0xea, 0x09, 0x49, 0xbd, 0xab, 0x90, 0x29, + 0xb2, 0xfe, 0x1e, 0x41, 0x4d, 0x6e, 0x84, 0xaa, 0x60, 0x17, 0x16, 0xf3, 0xa1, 0x8a, 0x89, 0x55, + 0xad, 0xf5, 0x22, 0x65, 0x12, 0xe5, 0x63, 0xca, 0x17, 0x59, 0x2c, 0x80, 0x23, 0x44, 0xb8, 0x03, + 0x30, 0x66, 0x35, 0x4a, 0x62, 0x69, 0xe6, 0x0f, 0x79, 0x72, 0x37, 0x9c, 0xe5, 0xab, 0xe2, 0xa8, + 0x9f, 0xc2, 0xcd, 0xe9, 0xa5, 0x64, 0x09, 0x8d, 0x19, 0xc9, 0xd7, 0x47, 0x91, 0xd1, 0x35, 0xe4, + 0xc9, 0x1b, 0x38, 0xca, 0xb4, 0x73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9, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// ClientStatusDiscoveryServiceClient is the client API for ClientStatusDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ClientStatusDiscoveryServiceClient interface { + StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) + FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) +} + +type clientStatusDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewClientStatusDiscoveryServiceClient(cc *grpc.ClientConn) ClientStatusDiscoveryServiceClient { + return &clientStatusDiscoveryServiceClient{cc} +} + +func (c *clientStatusDiscoveryServiceClient) StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClientStatusDiscoveryService_serviceDesc.Streams[0], "/envoy.service.status.v2.ClientStatusDiscoveryService/StreamClientStatus", opts...) + if err != nil { + return nil, err + } + x := &clientStatusDiscoveryServiceStreamClientStatusClient{stream} + return x, nil +} + +type ClientStatusDiscoveryService_StreamClientStatusClient interface { + Send(*ClientStatusRequest) error + Recv() (*ClientStatusResponse, error) + grpc.ClientStream +} + +type clientStatusDiscoveryServiceStreamClientStatusClient struct { + grpc.ClientStream +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Send(m *ClientStatusRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Recv() (*ClientStatusResponse, error) { + m := new(ClientStatusResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *clientStatusDiscoveryServiceClient) FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) { + out := new(ClientStatusResponse) + err := c.cc.Invoke(ctx, "/envoy.service.status.v2.ClientStatusDiscoveryService/FetchClientStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClientStatusDiscoveryServiceServer is the server API for ClientStatusDiscoveryService service. +type ClientStatusDiscoveryServiceServer interface { + StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error + FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) +} + +// UnimplementedClientStatusDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClientStatusDiscoveryServiceServer struct { +} + +func (*UnimplementedClientStatusDiscoveryServiceServer) StreamClientStatus(srv ClientStatusDiscoveryService_StreamClientStatusServer) error { + return status.Errorf(codes.Unimplemented, "method StreamClientStatus not implemented") +} +func (*UnimplementedClientStatusDiscoveryServiceServer) FetchClientStatus(ctx context.Context, req *ClientStatusRequest) (*ClientStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchClientStatus not implemented") +} + +func RegisterClientStatusDiscoveryServiceServer(s *grpc.Server, srv ClientStatusDiscoveryServiceServer) { + s.RegisterService(&_ClientStatusDiscoveryService_serviceDesc, srv) +} + +func _ClientStatusDiscoveryService_StreamClientStatus_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ClientStatusDiscoveryServiceServer).StreamClientStatus(&clientStatusDiscoveryServiceStreamClientStatusServer{stream}) +} + +type ClientStatusDiscoveryService_StreamClientStatusServer interface { + Send(*ClientStatusResponse) error + Recv() (*ClientStatusRequest, error) + grpc.ServerStream +} + +type clientStatusDiscoveryServiceStreamClientStatusServer struct { + grpc.ServerStream +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Send(m *ClientStatusResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Recv() (*ClientStatusRequest, error) { + m := new(ClientStatusRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ClientStatusDiscoveryService_FetchClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClientStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.status.v2.ClientStatusDiscoveryService/FetchClientStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, req.(*ClientStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ClientStatusDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.status.v2.ClientStatusDiscoveryService", + HandlerType: (*ClientStatusDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchClientStatus", + Handler: _ClientStatusDiscoveryService_FetchClientStatus_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamClientStatus", + Handler: _ClientStatusDiscoveryService_StreamClientStatus_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/status/v2/csds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.validate.go new file mode 100644 index 000000000..00a4b4426 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v2/csds.pb.validate.go @@ -0,0 +1,410 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/status/v2/csds.proto + +package envoy_service_status_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _csds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClientStatusRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClientStatusRequest) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodeMatchers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientStatusRequestValidationError{ + field: fmt.Sprintf("NodeMatchers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientStatusRequestValidationError is the validation error returned by +// ClientStatusRequest.Validate if the designated constraints aren't met. +type ClientStatusRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientStatusRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientStatusRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientStatusRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientStatusRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientStatusRequestValidationError) ErrorName() string { + return "ClientStatusRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ClientStatusRequestValidationError) 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 %sClientStatusRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientStatusRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientStatusRequestValidationError{} + +// Validate checks the field values on PerXdsConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerXdsConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Status + + switch m.PerXdsConfig.(type) { + + case *PerXdsConfig_ListenerConfig: + + if v, ok := interface{}(m.GetListenerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ListenerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_ClusterConfig: + + if v, ok := interface{}(m.GetClusterConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ClusterConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_RouteConfig: + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_ScopedRouteConfig: + + if v, ok := interface{}(m.GetScopedRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ScopedRouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PerXdsConfigValidationError is the validation error returned by +// PerXdsConfig.Validate if the designated constraints aren't met. +type PerXdsConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerXdsConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerXdsConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerXdsConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerXdsConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerXdsConfigValidationError) ErrorName() string { return "PerXdsConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerXdsConfigValidationError) 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 %sPerXdsConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerXdsConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerXdsConfigValidationError{} + +// Validate checks the field values on ClientConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClientConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientConfigValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetXdsConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientConfigValidationError{ + field: fmt.Sprintf("XdsConfig[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientConfigValidationError is the validation error returned by +// ClientConfig.Validate if the designated constraints aren't met. +type ClientConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientConfigValidationError) ErrorName() string { return "ClientConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClientConfigValidationError) 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 %sClientConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientConfigValidationError{} + +// Validate checks the field values on ClientStatusResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClientStatusResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientStatusResponseValidationError{ + field: fmt.Sprintf("Config[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientStatusResponseValidationError is the validation error returned by +// ClientStatusResponse.Validate if the designated constraints aren't met. +type ClientStatusResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientStatusResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientStatusResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientStatusResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientStatusResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientStatusResponseValidationError) ErrorName() string { + return "ClientStatusResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ClientStatusResponseValidationError) 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 %sClientStatusResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientStatusResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientStatusResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.go new file mode 100644 index 000000000..573688581 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.go @@ -0,0 +1,517 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/status/v3/csds.proto + +package envoy_service_status_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/admin/v3" + v32 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ConfigStatus int32 + +const ( + ConfigStatus_UNKNOWN ConfigStatus = 0 + ConfigStatus_SYNCED ConfigStatus = 1 + ConfigStatus_NOT_SENT ConfigStatus = 2 + ConfigStatus_STALE ConfigStatus = 3 + ConfigStatus_ERROR ConfigStatus = 4 +) + +var ConfigStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SYNCED", + 2: "NOT_SENT", + 3: "STALE", + 4: "ERROR", +} + +var ConfigStatus_value = map[string]int32{ + "UNKNOWN": 0, + "SYNCED": 1, + "NOT_SENT": 2, + "STALE": 3, + "ERROR": 4, +} + +func (x ConfigStatus) String() string { + return proto.EnumName(ConfigStatus_name, int32(x)) +} + +func (ConfigStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d6ae65ba18d04178, []int{0} +} + +type ClientStatusRequest struct { + NodeMatchers []*v3.NodeMatcher `protobuf:"bytes,1,rep,name=node_matchers,json=nodeMatchers,proto3" json:"node_matchers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientStatusRequest) Reset() { *m = ClientStatusRequest{} } +func (m *ClientStatusRequest) String() string { return proto.CompactTextString(m) } +func (*ClientStatusRequest) ProtoMessage() {} +func (*ClientStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d6ae65ba18d04178, []int{0} +} + +func (m *ClientStatusRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientStatusRequest.Unmarshal(m, b) +} +func (m *ClientStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientStatusRequest.Marshal(b, m, deterministic) +} +func (m *ClientStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientStatusRequest.Merge(m, src) +} +func (m *ClientStatusRequest) XXX_Size() int { + return xxx_messageInfo_ClientStatusRequest.Size(m) +} +func (m *ClientStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClientStatusRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientStatusRequest proto.InternalMessageInfo + +func (m *ClientStatusRequest) GetNodeMatchers() []*v3.NodeMatcher { + if m != nil { + return m.NodeMatchers + } + return nil +} + +type PerXdsConfig struct { + Status ConfigStatus `protobuf:"varint,1,opt,name=status,proto3,enum=envoy.service.status.v3.ConfigStatus" json:"status,omitempty"` + // Types that are valid to be assigned to PerXdsConfig: + // *PerXdsConfig_ListenerConfig + // *PerXdsConfig_ClusterConfig + // *PerXdsConfig_RouteConfig + // *PerXdsConfig_ScopedRouteConfig + PerXdsConfig isPerXdsConfig_PerXdsConfig `protobuf_oneof:"per_xds_config"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerXdsConfig) Reset() { *m = PerXdsConfig{} } +func (m *PerXdsConfig) String() string { return proto.CompactTextString(m) } +func (*PerXdsConfig) ProtoMessage() {} +func (*PerXdsConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d6ae65ba18d04178, []int{1} +} + +func (m *PerXdsConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerXdsConfig.Unmarshal(m, b) +} +func (m *PerXdsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerXdsConfig.Marshal(b, m, deterministic) +} +func (m *PerXdsConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerXdsConfig.Merge(m, src) +} +func (m *PerXdsConfig) XXX_Size() int { + return xxx_messageInfo_PerXdsConfig.Size(m) +} +func (m *PerXdsConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PerXdsConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PerXdsConfig proto.InternalMessageInfo + +func (m *PerXdsConfig) GetStatus() ConfigStatus { + if m != nil { + return m.Status + } + return ConfigStatus_UNKNOWN +} + +type isPerXdsConfig_PerXdsConfig interface { + isPerXdsConfig_PerXdsConfig() +} + +type PerXdsConfig_ListenerConfig struct { + ListenerConfig *v31.ListenersConfigDump `protobuf:"bytes,2,opt,name=listener_config,json=listenerConfig,proto3,oneof"` +} + +type PerXdsConfig_ClusterConfig struct { + ClusterConfig *v31.ClustersConfigDump `protobuf:"bytes,3,opt,name=cluster_config,json=clusterConfig,proto3,oneof"` +} + +type PerXdsConfig_RouteConfig struct { + RouteConfig *v31.RoutesConfigDump `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"` +} + +type PerXdsConfig_ScopedRouteConfig struct { + ScopedRouteConfig *v31.ScopedRoutesConfigDump `protobuf:"bytes,5,opt,name=scoped_route_config,json=scopedRouteConfig,proto3,oneof"` +} + +func (*PerXdsConfig_ListenerConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_ClusterConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_RouteConfig) isPerXdsConfig_PerXdsConfig() {} + +func (*PerXdsConfig_ScopedRouteConfig) isPerXdsConfig_PerXdsConfig() {} + +func (m *PerXdsConfig) GetPerXdsConfig() isPerXdsConfig_PerXdsConfig { + if m != nil { + return m.PerXdsConfig + } + return nil +} + +func (m *PerXdsConfig) GetListenerConfig() *v31.ListenersConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ListenerConfig); ok { + return x.ListenerConfig + } + return nil +} + +func (m *PerXdsConfig) GetClusterConfig() *v31.ClustersConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ClusterConfig); ok { + return x.ClusterConfig + } + return nil +} + +func (m *PerXdsConfig) GetRouteConfig() *v31.RoutesConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_RouteConfig); ok { + return x.RouteConfig + } + return nil +} + +func (m *PerXdsConfig) GetScopedRouteConfig() *v31.ScopedRoutesConfigDump { + if x, ok := m.GetPerXdsConfig().(*PerXdsConfig_ScopedRouteConfig); ok { + return x.ScopedRouteConfig + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PerXdsConfig) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PerXdsConfig_ListenerConfig)(nil), + (*PerXdsConfig_ClusterConfig)(nil), + (*PerXdsConfig_RouteConfig)(nil), + (*PerXdsConfig_ScopedRouteConfig)(nil), + } +} + +type ClientConfig struct { + Node *v32.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XdsConfig []*PerXdsConfig `protobuf:"bytes,2,rep,name=xds_config,json=xdsConfig,proto3" json:"xds_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientConfig) Reset() { *m = ClientConfig{} } +func (m *ClientConfig) String() string { return proto.CompactTextString(m) } +func (*ClientConfig) ProtoMessage() {} +func (*ClientConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_d6ae65ba18d04178, []int{2} +} + +func (m *ClientConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientConfig.Unmarshal(m, b) +} +func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic) +} +func (m *ClientConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientConfig.Merge(m, src) +} +func (m *ClientConfig) XXX_Size() int { + return xxx_messageInfo_ClientConfig.Size(m) +} +func (m *ClientConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ClientConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientConfig proto.InternalMessageInfo + +func (m *ClientConfig) GetNode() *v32.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *ClientConfig) GetXdsConfig() []*PerXdsConfig { + if m != nil { + return m.XdsConfig + } + return nil +} + +type ClientStatusResponse struct { + Config []*ClientConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientStatusResponse) Reset() { *m = ClientStatusResponse{} } +func (m *ClientStatusResponse) String() string { return proto.CompactTextString(m) } +func (*ClientStatusResponse) ProtoMessage() {} +func (*ClientStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d6ae65ba18d04178, []int{3} +} + +func (m *ClientStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientStatusResponse.Unmarshal(m, b) +} +func (m *ClientStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientStatusResponse.Marshal(b, m, deterministic) +} +func (m *ClientStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientStatusResponse.Merge(m, src) +} +func (m *ClientStatusResponse) XXX_Size() int { + return xxx_messageInfo_ClientStatusResponse.Size(m) +} +func (m *ClientStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClientStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientStatusResponse proto.InternalMessageInfo + +func (m *ClientStatusResponse) GetConfig() []*ClientConfig { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.service.status.v3.ConfigStatus", ConfigStatus_name, ConfigStatus_value) + proto.RegisterType((*ClientStatusRequest)(nil), "envoy.service.status.v3.ClientStatusRequest") + proto.RegisterType((*PerXdsConfig)(nil), "envoy.service.status.v3.PerXdsConfig") + proto.RegisterType((*ClientConfig)(nil), "envoy.service.status.v3.ClientConfig") + proto.RegisterType((*ClientStatusResponse)(nil), "envoy.service.status.v3.ClientStatusResponse") +} + +func init() { proto.RegisterFile("envoy/service/status/v3/csds.proto", fileDescriptor_d6ae65ba18d04178) } + +var fileDescriptor_d6ae65ba18d04178 = []byte{ + // 727 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, + 0x14, 0xed, 0x24, 0x6d, 0xde, 0xeb, 0x4d, 0x9a, 0x97, 0xba, 0x4f, 0x7a, 0x51, 0x5e, 0x0b, 0xc1, + 0xd0, 0x2a, 0xea, 0x87, 0x8d, 0x92, 0x5d, 0x24, 0x84, 0x68, 0x12, 0x40, 0x6a, 0x71, 0x2b, 0xa7, + 0x88, 0xb2, 0x8a, 0x5c, 0x7b, 0x9a, 0x5a, 0x4a, 0x3c, 0xc6, 0x33, 0x0e, 0xcd, 0x0e, 0xb1, 0xaa, + 0x58, 0xc2, 0x8e, 0x05, 0xff, 0x81, 0x1d, 0x62, 0x8f, 0x84, 0xd8, 0x21, 0xfe, 0x02, 0x3f, 0x04, + 0xcd, 0x47, 0x14, 0x27, 0x34, 0x6a, 0x57, 0xec, 0x66, 0x74, 0xcf, 0x39, 0xf7, 0xdc, 0x8f, 0x19, + 0xd0, 0x71, 0x30, 0x20, 0x43, 0x93, 0xe2, 0x68, 0xe0, 0xbb, 0xd8, 0xa4, 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x2e, 0xef, 0x71, 0xd5, 0xb8, 0x24, 0xb9, 0xfe, 0x2d, 0x0d, 0xb9, 0x43, 0x1c, + 0x1d, 0x7b, 0xb4, 0x21, 0x1a, 0xab, 0xdd, 0x83, 0x8c, 0x64, 0x14, 0x51, 0x19, 0x55, 0xf2, 0xd5, + 0x75, 0x63, 0xc6, 0xc8, 0x0c, 0x49, 0x50, 0x72, 0x8a, 0xa4, 0x59, 0xf0, 0x4f, 0xcf, 0xa7, 0x0c, + 0x07, 0x38, 0xea, 0xc8, 0x51, 0x15, 0x53, 0x65, 0x54, 0xc9, 0x56, 0x6f, 0x2b, 0x1d, 0x31, 0x61, + 0x4e, 0xdf, 0x57, 0x30, 0x95, 0xb8, 0x19, 0xf7, 0xc3, 0xc7, 0x73, 0x76, 0x7e, 0xc4, 0x56, 0x76, + 0xf6, 0x20, 0xef, 0xf6, 0x62, 0xca, 0xc6, 0x72, 0x69, 0x21, 0xa7, 0x4f, 0xcb, 0x35, 0x24, 0x6a, + 0x52, 0x6d, 0x49, 0x71, 0x95, 0x58, 0x0b, 0x72, 0x11, 0x89, 0x19, 0x1e, 0x49, 0xcd, 0x0b, 0xa9, + 0xf2, 0xb4, 0x94, 0xcd, 0x31, 0x93, 0x42, 0x59, 0xc1, 0x53, 0x32, 0xc7, 0xb0, 0x42, 0x5d, 0x12, + 0x62, 0xaf, 0x33, 0xa1, 0xb6, 0x20, 0xd4, 0x36, 0xa6, 0xd5, 0xda, 0x02, 0x7a, 0x89, 0xe6, 0x32, + 0x1d, 0x47, 0x64, 0xa0, 0xbe, 0xc5, 0x27, 0xb8, 0x01, 0x77, 0x66, 0x4d, 0x30, 0x39, 0xa9, 0xdd, + 0x02, 0xe4, 0x43, 0x1c, 0x75, 0xce, 0x3d, 0xaa, 0x1c, 0xe8, 0x1f, 0x11, 0xe4, 0xe4, 0x90, 0x95, + 0x53, 0x03, 0xe6, 0xf9, 0x86, 0x88, 0x51, 0x66, 0xab, 0x25, 0x65, 0x4d, 0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f, 0xfe, 0x25, 0x7b, 0xa3, 0x4e, 0xd4, 0x5d, 0x81, 0xed, 0x48, 0xb2, 0x80, 0xa4, + 0xeb, 0x68, 0x73, 0xf7, 0xfe, 0xe7, 0x57, 0x5f, 0xbf, 0x67, 0x52, 0x85, 0x14, 0xac, 0xfb, 0x44, + 0x26, 0x0a, 0x23, 0x72, 0x3e, 0x9c, 0x95, 0x73, 0x77, 0xb1, 0x41, 0x3d, 0x7a, 0xc8, 0xbf, 0xd9, + 0x43, 0x74, 0x81, 0xd0, 0x49, 0x46, 0x7c, 0xb9, 0xb5, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf8, + 0xc7, 0x20, 0x98, 0x94, 0x06, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// ClientStatusDiscoveryServiceClient is the client API for ClientStatusDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ClientStatusDiscoveryServiceClient interface { + StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) + FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) +} + +type clientStatusDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewClientStatusDiscoveryServiceClient(cc *grpc.ClientConn) ClientStatusDiscoveryServiceClient { + return &clientStatusDiscoveryServiceClient{cc} +} + +func (c *clientStatusDiscoveryServiceClient) StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) { + stream, err := c.cc.NewStream(ctx, &_ClientStatusDiscoveryService_serviceDesc.Streams[0], "/envoy.service.status.v3.ClientStatusDiscoveryService/StreamClientStatus", opts...) + if err != nil { + return nil, err + } + x := &clientStatusDiscoveryServiceStreamClientStatusClient{stream} + return x, nil +} + +type ClientStatusDiscoveryService_StreamClientStatusClient interface { + Send(*ClientStatusRequest) error + Recv() (*ClientStatusResponse, error) + grpc.ClientStream +} + +type clientStatusDiscoveryServiceStreamClientStatusClient struct { + grpc.ClientStream +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Send(m *ClientStatusRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Recv() (*ClientStatusResponse, error) { + m := new(ClientStatusResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *clientStatusDiscoveryServiceClient) FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) { + out := new(ClientStatusResponse) + err := c.cc.Invoke(ctx, "/envoy.service.status.v3.ClientStatusDiscoveryService/FetchClientStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClientStatusDiscoveryServiceServer is the server API for ClientStatusDiscoveryService service. +type ClientStatusDiscoveryServiceServer interface { + StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error + FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) +} + +// UnimplementedClientStatusDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClientStatusDiscoveryServiceServer struct { +} + +func (*UnimplementedClientStatusDiscoveryServiceServer) StreamClientStatus(srv ClientStatusDiscoveryService_StreamClientStatusServer) error { + return status.Errorf(codes.Unimplemented, "method StreamClientStatus not implemented") +} +func (*UnimplementedClientStatusDiscoveryServiceServer) FetchClientStatus(ctx context.Context, req *ClientStatusRequest) (*ClientStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchClientStatus not implemented") +} + +func RegisterClientStatusDiscoveryServiceServer(s *grpc.Server, srv ClientStatusDiscoveryServiceServer) { + s.RegisterService(&_ClientStatusDiscoveryService_serviceDesc, srv) +} + +func _ClientStatusDiscoveryService_StreamClientStatus_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ClientStatusDiscoveryServiceServer).StreamClientStatus(&clientStatusDiscoveryServiceStreamClientStatusServer{stream}) +} + +type ClientStatusDiscoveryService_StreamClientStatusServer interface { + Send(*ClientStatusResponse) error + Recv() (*ClientStatusRequest, error) + grpc.ServerStream +} + +type clientStatusDiscoveryServiceStreamClientStatusServer struct { + grpc.ServerStream +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Send(m *ClientStatusResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Recv() (*ClientStatusRequest, error) { + m := new(ClientStatusRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ClientStatusDiscoveryService_FetchClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClientStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.status.v3.ClientStatusDiscoveryService/FetchClientStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, req.(*ClientStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ClientStatusDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.status.v3.ClientStatusDiscoveryService", + HandlerType: (*ClientStatusDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchClientStatus", + Handler: _ClientStatusDiscoveryService_FetchClientStatus_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamClientStatus", + Handler: _ClientStatusDiscoveryService_StreamClientStatus_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/status/v3/csds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.validate.go new file mode 100644 index 000000000..92e7b75cf --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/status/v3/csds.pb.validate.go @@ -0,0 +1,410 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/status/v3/csds.proto + +package envoy_service_status_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _csds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ClientStatusRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClientStatusRequest) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodeMatchers() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientStatusRequestValidationError{ + field: fmt.Sprintf("NodeMatchers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientStatusRequestValidationError is the validation error returned by +// ClientStatusRequest.Validate if the designated constraints aren't met. +type ClientStatusRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientStatusRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientStatusRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientStatusRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientStatusRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientStatusRequestValidationError) ErrorName() string { + return "ClientStatusRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ClientStatusRequestValidationError) 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 %sClientStatusRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientStatusRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientStatusRequestValidationError{} + +// Validate checks the field values on PerXdsConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PerXdsConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Status + + switch m.PerXdsConfig.(type) { + + case *PerXdsConfig_ListenerConfig: + + if v, ok := interface{}(m.GetListenerConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ListenerConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_ClusterConfig: + + if v, ok := interface{}(m.GetClusterConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ClusterConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_RouteConfig: + + if v, ok := interface{}(m.GetRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "RouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *PerXdsConfig_ScopedRouteConfig: + + if v, ok := interface{}(m.GetScopedRouteConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PerXdsConfigValidationError{ + field: "ScopedRouteConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PerXdsConfigValidationError is the validation error returned by +// PerXdsConfig.Validate if the designated constraints aren't met. +type PerXdsConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PerXdsConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PerXdsConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PerXdsConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PerXdsConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PerXdsConfigValidationError) ErrorName() string { return "PerXdsConfigValidationError" } + +// Error satisfies the builtin error interface +func (e PerXdsConfigValidationError) 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 %sPerXdsConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PerXdsConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PerXdsConfigValidationError{} + +// Validate checks the field values on ClientConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ClientConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientConfigValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetXdsConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientConfigValidationError{ + field: fmt.Sprintf("XdsConfig[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientConfigValidationError is the validation error returned by +// ClientConfig.Validate if the designated constraints aren't met. +type ClientConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientConfigValidationError) ErrorName() string { return "ClientConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ClientConfigValidationError) 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 %sClientConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientConfigValidationError{} + +// Validate checks the field values on ClientStatusResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClientStatusResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ClientStatusResponseValidationError{ + field: fmt.Sprintf("Config[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ClientStatusResponseValidationError is the validation error returned by +// ClientStatusResponse.Validate if the designated constraints aren't met. +type ClientStatusResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClientStatusResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClientStatusResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClientStatusResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClientStatusResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClientStatusResponseValidationError) ErrorName() string { + return "ClientStatusResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ClientStatusResponseValidationError) 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 %sClientStatusResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClientStatusResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClientStatusResponseValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.go new file mode 100644 index 000000000..cc5d7363a --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.go @@ -0,0 +1,734 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/common.proto + +package envoy_service_tap_v2alpha + +import ( + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type OutputSink_Format int32 + +const ( + OutputSink_JSON_BODY_AS_BYTES OutputSink_Format = 0 + OutputSink_JSON_BODY_AS_STRING OutputSink_Format = 1 + OutputSink_PROTO_BINARY OutputSink_Format = 2 + OutputSink_PROTO_BINARY_LENGTH_DELIMITED OutputSink_Format = 3 + OutputSink_PROTO_TEXT OutputSink_Format = 4 +) + +var OutputSink_Format_name = map[int32]string{ + 0: "JSON_BODY_AS_BYTES", + 1: "JSON_BODY_AS_STRING", + 2: "PROTO_BINARY", + 3: "PROTO_BINARY_LENGTH_DELIMITED", + 4: "PROTO_TEXT", +} + +var OutputSink_Format_value = map[string]int32{ + "JSON_BODY_AS_BYTES": 0, + "JSON_BODY_AS_STRING": 1, + "PROTO_BINARY": 2, + "PROTO_BINARY_LENGTH_DELIMITED": 3, + "PROTO_TEXT": 4, +} + +func (x OutputSink_Format) String() string { + return proto.EnumName(OutputSink_Format_name, int32(x)) +} + +func (OutputSink_Format) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{4, 0} +} + +type TapConfig struct { + MatchConfig *MatchPredicate `protobuf:"bytes,1,opt,name=match_config,json=matchConfig,proto3" json:"match_config,omitempty"` + OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` + TapEnabled *core.RuntimeFractionalPercent `protobuf:"bytes,3,opt,name=tap_enabled,json=tapEnabled,proto3" json:"tap_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapConfig) Reset() { *m = TapConfig{} } +func (m *TapConfig) String() string { return proto.CompactTextString(m) } +func (*TapConfig) ProtoMessage() {} +func (*TapConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{0} +} + +func (m *TapConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapConfig.Unmarshal(m, b) +} +func (m *TapConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapConfig.Marshal(b, m, deterministic) +} +func (m *TapConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapConfig.Merge(m, src) +} +func (m *TapConfig) XXX_Size() int { + return xxx_messageInfo_TapConfig.Size(m) +} +func (m *TapConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TapConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TapConfig proto.InternalMessageInfo + +func (m *TapConfig) GetMatchConfig() *MatchPredicate { + if m != nil { + return m.MatchConfig + } + return nil +} + +func (m *TapConfig) GetOutputConfig() *OutputConfig { + if m != nil { + return m.OutputConfig + } + return nil +} + +func (m *TapConfig) GetTapEnabled() *core.RuntimeFractionalPercent { + if m != nil { + return m.TapEnabled + } + return nil +} + +type MatchPredicate struct { + // Types that are valid to be assigned to Rule: + // *MatchPredicate_OrMatch + // *MatchPredicate_AndMatch + // *MatchPredicate_NotMatch + // *MatchPredicate_AnyMatch + // *MatchPredicate_HttpRequestHeadersMatch + // *MatchPredicate_HttpRequestTrailersMatch + // *MatchPredicate_HttpResponseHeadersMatch + // *MatchPredicate_HttpResponseTrailersMatch + Rule isMatchPredicate_Rule `protobuf_oneof:"rule"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchPredicate) Reset() { *m = MatchPredicate{} } +func (m *MatchPredicate) String() string { return proto.CompactTextString(m) } +func (*MatchPredicate) ProtoMessage() {} +func (*MatchPredicate) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{1} +} + +func (m *MatchPredicate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchPredicate.Unmarshal(m, b) +} +func (m *MatchPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchPredicate.Marshal(b, m, deterministic) +} +func (m *MatchPredicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchPredicate.Merge(m, src) +} +func (m *MatchPredicate) XXX_Size() int { + return xxx_messageInfo_MatchPredicate.Size(m) +} +func (m *MatchPredicate) XXX_DiscardUnknown() { + xxx_messageInfo_MatchPredicate.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchPredicate proto.InternalMessageInfo + +type isMatchPredicate_Rule interface { + isMatchPredicate_Rule() +} + +type MatchPredicate_OrMatch struct { + OrMatch *MatchPredicate_MatchSet `protobuf:"bytes,1,opt,name=or_match,json=orMatch,proto3,oneof"` +} + +type MatchPredicate_AndMatch struct { + AndMatch *MatchPredicate_MatchSet `protobuf:"bytes,2,opt,name=and_match,json=andMatch,proto3,oneof"` +} + +type MatchPredicate_NotMatch struct { + NotMatch *MatchPredicate `protobuf:"bytes,3,opt,name=not_match,json=notMatch,proto3,oneof"` +} + +type MatchPredicate_AnyMatch struct { + AnyMatch bool `protobuf:"varint,4,opt,name=any_match,json=anyMatch,proto3,oneof"` +} + +type MatchPredicate_HttpRequestHeadersMatch struct { + HttpRequestHeadersMatch *HttpHeadersMatch `protobuf:"bytes,5,opt,name=http_request_headers_match,json=httpRequestHeadersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpRequestTrailersMatch struct { + HttpRequestTrailersMatch *HttpHeadersMatch `protobuf:"bytes,6,opt,name=http_request_trailers_match,json=httpRequestTrailersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpResponseHeadersMatch struct { + HttpResponseHeadersMatch *HttpHeadersMatch `protobuf:"bytes,7,opt,name=http_response_headers_match,json=httpResponseHeadersMatch,proto3,oneof"` +} + +type MatchPredicate_HttpResponseTrailersMatch struct { + HttpResponseTrailersMatch *HttpHeadersMatch `protobuf:"bytes,8,opt,name=http_response_trailers_match,json=httpResponseTrailersMatch,proto3,oneof"` +} + +func (*MatchPredicate_OrMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_AndMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_NotMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_AnyMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpRequestHeadersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpRequestTrailersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpResponseHeadersMatch) isMatchPredicate_Rule() {} + +func (*MatchPredicate_HttpResponseTrailersMatch) isMatchPredicate_Rule() {} + +func (m *MatchPredicate) GetRule() isMatchPredicate_Rule { + if m != nil { + return m.Rule + } + return nil +} + +func (m *MatchPredicate) GetOrMatch() *MatchPredicate_MatchSet { + if x, ok := m.GetRule().(*MatchPredicate_OrMatch); ok { + return x.OrMatch + } + return nil +} + +func (m *MatchPredicate) GetAndMatch() *MatchPredicate_MatchSet { + if x, ok := m.GetRule().(*MatchPredicate_AndMatch); ok { + return x.AndMatch + } + return nil +} + +func (m *MatchPredicate) GetNotMatch() *MatchPredicate { + if x, ok := m.GetRule().(*MatchPredicate_NotMatch); ok { + return x.NotMatch + } + return nil +} + +func (m *MatchPredicate) GetAnyMatch() bool { + if x, ok := m.GetRule().(*MatchPredicate_AnyMatch); ok { + return x.AnyMatch + } + return false +} + +func (m *MatchPredicate) GetHttpRequestHeadersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpRequestHeadersMatch); ok { + return x.HttpRequestHeadersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpRequestTrailersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpRequestTrailersMatch); ok { + return x.HttpRequestTrailersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpResponseHeadersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpResponseHeadersMatch); ok { + return x.HttpResponseHeadersMatch + } + return nil +} + +func (m *MatchPredicate) GetHttpResponseTrailersMatch() *HttpHeadersMatch { + if x, ok := m.GetRule().(*MatchPredicate_HttpResponseTrailersMatch); ok { + return x.HttpResponseTrailersMatch + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MatchPredicate) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MatchPredicate_OrMatch)(nil), + (*MatchPredicate_AndMatch)(nil), + (*MatchPredicate_NotMatch)(nil), + (*MatchPredicate_AnyMatch)(nil), + (*MatchPredicate_HttpRequestHeadersMatch)(nil), + (*MatchPredicate_HttpRequestTrailersMatch)(nil), + (*MatchPredicate_HttpResponseHeadersMatch)(nil), + (*MatchPredicate_HttpResponseTrailersMatch)(nil), + } +} + +type MatchPredicate_MatchSet struct { + Rules []*MatchPredicate `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchPredicate_MatchSet) Reset() { *m = MatchPredicate_MatchSet{} } +func (m *MatchPredicate_MatchSet) String() string { return proto.CompactTextString(m) } +func (*MatchPredicate_MatchSet) ProtoMessage() {} +func (*MatchPredicate_MatchSet) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{1, 0} +} + +func (m *MatchPredicate_MatchSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchPredicate_MatchSet.Unmarshal(m, b) +} +func (m *MatchPredicate_MatchSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchPredicate_MatchSet.Marshal(b, m, deterministic) +} +func (m *MatchPredicate_MatchSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchPredicate_MatchSet.Merge(m, src) +} +func (m *MatchPredicate_MatchSet) XXX_Size() int { + return xxx_messageInfo_MatchPredicate_MatchSet.Size(m) +} +func (m *MatchPredicate_MatchSet) XXX_DiscardUnknown() { + xxx_messageInfo_MatchPredicate_MatchSet.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchPredicate_MatchSet proto.InternalMessageInfo + +func (m *MatchPredicate_MatchSet) GetRules() []*MatchPredicate { + if m != nil { + return m.Rules + } + return nil +} + +type HttpHeadersMatch struct { + Headers []*route.HeaderMatcher `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HttpHeadersMatch) Reset() { *m = HttpHeadersMatch{} } +func (m *HttpHeadersMatch) String() string { return proto.CompactTextString(m) } +func (*HttpHeadersMatch) ProtoMessage() {} +func (*HttpHeadersMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{2} +} + +func (m *HttpHeadersMatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HttpHeadersMatch.Unmarshal(m, b) +} +func (m *HttpHeadersMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HttpHeadersMatch.Marshal(b, m, deterministic) +} +func (m *HttpHeadersMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_HttpHeadersMatch.Merge(m, src) +} +func (m *HttpHeadersMatch) XXX_Size() int { + return xxx_messageInfo_HttpHeadersMatch.Size(m) +} +func (m *HttpHeadersMatch) XXX_DiscardUnknown() { + xxx_messageInfo_HttpHeadersMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_HttpHeadersMatch proto.InternalMessageInfo + +func (m *HttpHeadersMatch) GetHeaders() []*route.HeaderMatcher { + if m != nil { + return m.Headers + } + return nil +} + +type OutputConfig struct { + Sinks []*OutputSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"` + MaxBufferedRxBytes *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=max_buffered_rx_bytes,json=maxBufferedRxBytes,proto3" json:"max_buffered_rx_bytes,omitempty"` + MaxBufferedTxBytes *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=max_buffered_tx_bytes,json=maxBufferedTxBytes,proto3" json:"max_buffered_tx_bytes,omitempty"` + Streaming bool `protobuf:"varint,4,opt,name=streaming,proto3" json:"streaming,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputConfig) Reset() { *m = OutputConfig{} } +func (m *OutputConfig) String() string { return proto.CompactTextString(m) } +func (*OutputConfig) ProtoMessage() {} +func (*OutputConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{3} +} + +func (m *OutputConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputConfig.Unmarshal(m, b) +} +func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic) +} +func (m *OutputConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputConfig.Merge(m, src) +} +func (m *OutputConfig) XXX_Size() int { + return xxx_messageInfo_OutputConfig.Size(m) +} +func (m *OutputConfig) XXX_DiscardUnknown() { + xxx_messageInfo_OutputConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputConfig proto.InternalMessageInfo + +func (m *OutputConfig) GetSinks() []*OutputSink { + if m != nil { + return m.Sinks + } + return nil +} + +func (m *OutputConfig) GetMaxBufferedRxBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxBufferedRxBytes + } + return nil +} + +func (m *OutputConfig) GetMaxBufferedTxBytes() *wrappers.UInt32Value { + if m != nil { + return m.MaxBufferedTxBytes + } + return nil +} + +func (m *OutputConfig) GetStreaming() bool { + if m != nil { + return m.Streaming + } + return false +} + +type OutputSink struct { + Format OutputSink_Format `protobuf:"varint,1,opt,name=format,proto3,enum=envoy.service.tap.v2alpha.OutputSink_Format" json:"format,omitempty"` + // Types that are valid to be assigned to OutputSinkType: + // *OutputSink_StreamingAdmin + // *OutputSink_FilePerTap + // *OutputSink_StreamingGrpc + OutputSinkType isOutputSink_OutputSinkType `protobuf_oneof:"output_sink_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputSink) Reset() { *m = OutputSink{} } +func (m *OutputSink) String() string { return proto.CompactTextString(m) } +func (*OutputSink) ProtoMessage() {} +func (*OutputSink) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{4} +} + +func (m *OutputSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputSink.Unmarshal(m, b) +} +func (m *OutputSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputSink.Marshal(b, m, deterministic) +} +func (m *OutputSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputSink.Merge(m, src) +} +func (m *OutputSink) XXX_Size() int { + return xxx_messageInfo_OutputSink.Size(m) +} +func (m *OutputSink) XXX_DiscardUnknown() { + xxx_messageInfo_OutputSink.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputSink proto.InternalMessageInfo + +func (m *OutputSink) GetFormat() OutputSink_Format { + if m != nil { + return m.Format + } + return OutputSink_JSON_BODY_AS_BYTES +} + +type isOutputSink_OutputSinkType interface { + isOutputSink_OutputSinkType() +} + +type OutputSink_StreamingAdmin struct { + StreamingAdmin *StreamingAdminSink `protobuf:"bytes,2,opt,name=streaming_admin,json=streamingAdmin,proto3,oneof"` +} + +type OutputSink_FilePerTap struct { + FilePerTap *FilePerTapSink `protobuf:"bytes,3,opt,name=file_per_tap,json=filePerTap,proto3,oneof"` +} + +type OutputSink_StreamingGrpc struct { + StreamingGrpc *StreamingGrpcSink `protobuf:"bytes,4,opt,name=streaming_grpc,json=streamingGrpc,proto3,oneof"` +} + +func (*OutputSink_StreamingAdmin) isOutputSink_OutputSinkType() {} + +func (*OutputSink_FilePerTap) isOutputSink_OutputSinkType() {} + +func (*OutputSink_StreamingGrpc) isOutputSink_OutputSinkType() {} + +func (m *OutputSink) GetOutputSinkType() isOutputSink_OutputSinkType { + if m != nil { + return m.OutputSinkType + } + return nil +} + +func (m *OutputSink) GetStreamingAdmin() *StreamingAdminSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_StreamingAdmin); ok { + return x.StreamingAdmin + } + return nil +} + +func (m *OutputSink) GetFilePerTap() *FilePerTapSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_FilePerTap); ok { + return x.FilePerTap + } + return nil +} + +func (m *OutputSink) GetStreamingGrpc() *StreamingGrpcSink { + if x, ok := m.GetOutputSinkType().(*OutputSink_StreamingGrpc); ok { + return x.StreamingGrpc + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*OutputSink) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*OutputSink_StreamingAdmin)(nil), + (*OutputSink_FilePerTap)(nil), + (*OutputSink_StreamingGrpc)(nil), + } +} + +type StreamingAdminSink struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingAdminSink) Reset() { *m = StreamingAdminSink{} } +func (m *StreamingAdminSink) String() string { return proto.CompactTextString(m) } +func (*StreamingAdminSink) ProtoMessage() {} +func (*StreamingAdminSink) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{5} +} + +func (m *StreamingAdminSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingAdminSink.Unmarshal(m, b) +} +func (m *StreamingAdminSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingAdminSink.Marshal(b, m, deterministic) +} +func (m *StreamingAdminSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingAdminSink.Merge(m, src) +} +func (m *StreamingAdminSink) XXX_Size() int { + return xxx_messageInfo_StreamingAdminSink.Size(m) +} +func (m *StreamingAdminSink) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingAdminSink.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingAdminSink proto.InternalMessageInfo + +type FilePerTapSink struct { + PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilePerTapSink) Reset() { *m = FilePerTapSink{} } +func (m *FilePerTapSink) String() string { return proto.CompactTextString(m) } +func (*FilePerTapSink) ProtoMessage() {} +func (*FilePerTapSink) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{6} +} + +func (m *FilePerTapSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilePerTapSink.Unmarshal(m, b) +} +func (m *FilePerTapSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilePerTapSink.Marshal(b, m, deterministic) +} +func (m *FilePerTapSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilePerTapSink.Merge(m, src) +} +func (m *FilePerTapSink) XXX_Size() int { + return xxx_messageInfo_FilePerTapSink.Size(m) +} +func (m *FilePerTapSink) XXX_DiscardUnknown() { + xxx_messageInfo_FilePerTapSink.DiscardUnknown(m) +} + +var xxx_messageInfo_FilePerTapSink proto.InternalMessageInfo + +func (m *FilePerTapSink) GetPathPrefix() string { + if m != nil { + return m.PathPrefix + } + return "" +} + +type StreamingGrpcSink struct { + TapId string `protobuf:"bytes,1,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"` + GrpcService *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamingGrpcSink) Reset() { *m = StreamingGrpcSink{} } +func (m *StreamingGrpcSink) String() string { return proto.CompactTextString(m) } +func (*StreamingGrpcSink) ProtoMessage() {} +func (*StreamingGrpcSink) Descriptor() ([]byte, []int) { + return fileDescriptor_4f6a60461d532a14, []int{7} +} + +func (m *StreamingGrpcSink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamingGrpcSink.Unmarshal(m, b) +} +func (m *StreamingGrpcSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamingGrpcSink.Marshal(b, m, deterministic) +} +func (m *StreamingGrpcSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamingGrpcSink.Merge(m, src) +} +func (m *StreamingGrpcSink) XXX_Size() int { + return xxx_messageInfo_StreamingGrpcSink.Size(m) +} +func (m *StreamingGrpcSink) XXX_DiscardUnknown() { + xxx_messageInfo_StreamingGrpcSink.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamingGrpcSink proto.InternalMessageInfo + +func (m *StreamingGrpcSink) GetTapId() string { + if m != nil { + return m.TapId + } + return "" +} + +func (m *StreamingGrpcSink) GetGrpcService() *core.GrpcService { + if m != nil { + return m.GrpcService + } + return nil +} + +func init() { + proto.RegisterEnum("envoy.service.tap.v2alpha.OutputSink_Format", OutputSink_Format_name, OutputSink_Format_value) + proto.RegisterType((*TapConfig)(nil), "envoy.service.tap.v2alpha.TapConfig") + proto.RegisterType((*MatchPredicate)(nil), "envoy.service.tap.v2alpha.MatchPredicate") + proto.RegisterType((*MatchPredicate_MatchSet)(nil), "envoy.service.tap.v2alpha.MatchPredicate.MatchSet") + proto.RegisterType((*HttpHeadersMatch)(nil), "envoy.service.tap.v2alpha.HttpHeadersMatch") + proto.RegisterType((*OutputConfig)(nil), "envoy.service.tap.v2alpha.OutputConfig") + proto.RegisterType((*OutputSink)(nil), "envoy.service.tap.v2alpha.OutputSink") + proto.RegisterType((*StreamingAdminSink)(nil), "envoy.service.tap.v2alpha.StreamingAdminSink") + proto.RegisterType((*FilePerTapSink)(nil), "envoy.service.tap.v2alpha.FilePerTapSink") + proto.RegisterType((*StreamingGrpcSink)(nil), "envoy.service.tap.v2alpha.StreamingGrpcSink") +} + +func init() { + proto.RegisterFile("envoy/service/tap/v2alpha/common.proto", fileDescriptor_4f6a60461d532a14) +} + +var fileDescriptor_4f6a60461d532a14 = []byte{ + // 1061 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0x41, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0xb3, 0x76, 0xec, 0x38, 0xcf, 0x6e, 0x30, 0x53, 0x42, 0xd2, 0x90, 0x56, 0xa9, 0x05, + 0x6d, 0x2a, 0x60, 0x57, 0x72, 0x6e, 0x70, 0xca, 0x36, 0x4e, 0x6c, 0x48, 0x62, 0xb3, 0x76, 0xaa, + 0x46, 0x1c, 0x46, 0x63, 0x7b, 0xec, 0x6c, 0x6b, 0xcf, 0x0c, 0xb3, 0x63, 0xd7, 0xbe, 0x20, 0xc4, + 0x0d, 0x2e, 0x48, 0xbd, 0xc0, 0x67, 0xe1, 0xc8, 0x89, 0x2b, 0x5f, 0x05, 0x09, 0x09, 0xe5, 0x80, + 0xd0, 0xce, 0x8c, 0x13, 0x3b, 0x69, 0xd3, 0xa4, 0xbd, 0x58, 0xde, 0x37, 0xef, 0xff, 0xfb, 0xef, + 0xbc, 0xd9, 0x79, 0x33, 0xf0, 0x80, 0xb2, 0x21, 0x1f, 0x7b, 0x11, 0x95, 0xc3, 0xb0, 0x45, 0x3d, + 0x45, 0x84, 0x37, 0x2c, 0x92, 0x9e, 0x38, 0x21, 0x5e, 0x8b, 0xf7, 0xfb, 0x9c, 0xb9, 0x42, 0x72, + 0xc5, 0xd1, 0x1d, 0x9d, 0xe7, 0xda, 0x3c, 0x57, 0x11, 0xe1, 0xda, 0xbc, 0xb5, 0x75, 0x83, 0x20, + 0x22, 0xf4, 0x86, 0x45, 0xaf, 0xc5, 0x25, 0xf5, 0x9a, 0x24, 0xa2, 0x46, 0xb8, 0xf6, 0xf1, 0xe5, + 0xd1, 0xae, 0x14, 0x2d, 0x3c, 0x21, 0x99, 0xac, 0x47, 0x33, 0x59, 0x92, 0x0f, 0x14, 0x35, 0xbf, + 0xb8, 0xc5, 0xfb, 0x82, 0x33, 0xca, 0x54, 0x64, 0x53, 0xef, 0x75, 0x39, 0xef, 0xf6, 0xa8, 0xa7, + 0x9f, 0x9a, 0x83, 0x8e, 0xf7, 0x42, 0x12, 0x21, 0xa8, 0x3c, 0x1b, 0x1f, 0xb4, 0x05, 0xf1, 0x08, + 0x63, 0x5c, 0x11, 0x15, 0x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, 0xb1, 0x41, 0x79, 0x2e, 0x58, 0x8a, 0x66, + 0xa2, 0xe8, 0x00, 0x72, 0x9d, 0xb0, 0x47, 0xb1, 0xa0, 0x12, 0x2b, 0x22, 0xae, 0xd1, 0xb4, 0x76, + 0xc3, 0x1e, 0xad, 0x51, 0xd9, 0x20, 0xc2, 0x22, 0xa1, 0x73, 0x16, 0x41, 0x47, 0x70, 0x6e, 0x80, + 0xe3, 0x63, 0x58, 0x97, 0x2a, 0x7b, 0x65, 0x01, 0xce, 0xde, 0x73, 0x4f, 0x8a, 0x96, 0x65, 0xde, + 0x8a, 0xa6, 0x83, 0x85, 0xef, 0x21, 0x6d, 0x6a, 0x83, 0x3e, 0x04, 0xf4, 0x55, 0xbd, 0x7a, 0x88, + 0xfd, 0xea, 0xce, 0x31, 0xde, 0xae, 0x63, 0xff, 0xb8, 0x51, 0xaa, 0xe7, 0xe7, 0xd0, 0x0a, 0xdc, + 0x9e, 0x89, 0xd7, 0x1b, 0x41, 0xe5, 0x70, 0x2f, 0xef, 0xa0, 0x3c, 0xe4, 0x6a, 0x41, 0xb5, 0x51, + 0xc5, 0x7e, 0xe5, 0x70, 0x3b, 0x38, 0xce, 0x27, 0xd0, 0x7d, 0xb8, 0x3b, 0x1d, 0xc1, 0xfb, 0xa5, + 0xc3, 0xbd, 0x46, 0x19, 0xef, 0x94, 0xf6, 0x2b, 0x07, 0x95, 0x46, 0x69, 0x27, 0x9f, 0x44, 0x4b, + 0x00, 0x26, 0xa5, 0x51, 0x7a, 0xda, 0xc8, 0xcf, 0xfb, 0x2b, 0x90, 0xb7, 0x87, 0x66, 0xfc, 0xb9, + 0x62, 0x35, 0x16, 0x76, 0x8b, 0x7d, 0x00, 0xe8, 0x72, 0x99, 0x0b, 0x5f, 0xc0, 0xd2, 0x6c, 0x95, + 0xd0, 0x26, 0x64, 0x05, 0x51, 0x27, 0x58, 0x48, 0xda, 0x09, 0x47, 0xfa, 0xab, 0x58, 0xd4, 0x0d, + 0x5d, 0x26, 0x36, 0x9c, 0x00, 0xe2, 0xb1, 0x9a, 0x1e, 0x2a, 0xbc, 0x80, 0xf7, 0x2f, 0x15, 0x04, + 0x2d, 0x43, 0x3a, 0x3e, 0x5c, 0xc3, 0xb6, 0x51, 0x06, 0x29, 0x45, 0x44, 0xa5, 0x8d, 0xbe, 0x86, + 0xdc, 0xf4, 0x55, 0xc7, 0x7e, 0x13, 0xf7, 0x5e, 0x71, 0xe8, 0x6a, 0x92, 0xc9, 0x9a, 0xbe, 0x18, + 0x74, 0xa7, 0xc2, 0xdf, 0xfe, 0xfd, 0xdb, 0x7f, 0xbf, 0xa4, 0x96, 0xd1, 0x6d, 0xa3, 0x36, 0xb7, + 0x03, 0xb3, 0x50, 0x5b, 0xbf, 0xff, 0xf0, 0xe7, 0x5f, 0xe9, 0x44, 0xde, 0x81, 0x87, 0x21, 0x37, + 0x74, 0x21, 0xf9, 0x68, 0xfc, 0xfa, 0x45, 0xf5, 0xb3, 0x8f, 0xf5, 0xe5, 0xae, 0x16, 0x6f, 0xaf, + 0x9a, 0xd3, 0x4c, 0xeb, 0x7d, 0xb6, 0xf5, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x05, 0x41, 0xd8, + 0x44, 0x0e, 0x0a, 0x00, 0x00, +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.validate.go new file mode 100644 index 000000000..695b531f0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/common.pb.validate.go @@ -0,0 +1,933 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/common.proto + +package envoy_service_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _common_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TapConfig) Validate() error { + if m == nil { + return nil + } + + if m.GetMatchConfig() == nil { + return TapConfigValidationError{ + field: "MatchConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetMatchConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "MatchConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.GetOutputConfig() == nil { + return TapConfigValidationError{ + field: "OutputConfig", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetOutputConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "OutputConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTapEnabled()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapConfigValidationError{ + field: "TapEnabled", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapConfigValidationError is the validation error returned by +// TapConfig.Validate if the designated constraints aren't met. +type TapConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapConfigValidationError) ErrorName() string { return "TapConfigValidationError" } + +// Error satisfies the builtin error interface +func (e TapConfigValidationError) 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 %sTapConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapConfigValidationError{} + +// Validate checks the field values on MatchPredicate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *MatchPredicate) Validate() error { + if m == nil { + return nil + } + + switch m.Rule.(type) { + + case *MatchPredicate_OrMatch: + + if v, ok := interface{}(m.GetOrMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "OrMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_AndMatch: + + if v, ok := interface{}(m.GetAndMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "AndMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_NotMatch: + + if v, ok := interface{}(m.GetNotMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "NotMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_AnyMatch: + + if m.GetAnyMatch() != true { + return MatchPredicateValidationError{ + field: "AnyMatch", + reason: "value must equal true", + } + } + + case *MatchPredicate_HttpRequestHeadersMatch: + + if v, ok := interface{}(m.GetHttpRequestHeadersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpRequestHeadersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpRequestTrailersMatch: + + if v, ok := interface{}(m.GetHttpRequestTrailersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpRequestTrailersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpResponseHeadersMatch: + + if v, ok := interface{}(m.GetHttpResponseHeadersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpResponseHeadersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchPredicate_HttpResponseTrailersMatch: + + if v, ok := interface{}(m.GetHttpResponseTrailersMatch()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicateValidationError{ + field: "HttpResponseTrailersMatch", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return MatchPredicateValidationError{ + field: "Rule", + reason: "value is required", + } + + } + + return nil +} + +// MatchPredicateValidationError is the validation error returned by +// MatchPredicate.Validate if the designated constraints aren't met. +type MatchPredicateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchPredicateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchPredicateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchPredicateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchPredicateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchPredicateValidationError) ErrorName() string { return "MatchPredicateValidationError" } + +// Error satisfies the builtin error interface +func (e MatchPredicateValidationError) 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 %sMatchPredicate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchPredicateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchPredicateValidationError{} + +// Validate checks the field values on HttpHeadersMatch with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HttpHeadersMatch) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetHeaders() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HttpHeadersMatchValidationError{ + field: fmt.Sprintf("Headers[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HttpHeadersMatchValidationError is the validation error returned by +// HttpHeadersMatch.Validate if the designated constraints aren't met. +type HttpHeadersMatchValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HttpHeadersMatchValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HttpHeadersMatchValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HttpHeadersMatchValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HttpHeadersMatchValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HttpHeadersMatchValidationError) ErrorName() string { return "HttpHeadersMatchValidationError" } + +// Error satisfies the builtin error interface +func (e HttpHeadersMatchValidationError) 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 %sHttpHeadersMatch.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HttpHeadersMatchValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HttpHeadersMatchValidationError{} + +// Validate checks the field values on OutputConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OutputConfig) Validate() error { + if m == nil { + return nil + } + + if len(m.GetSinks()) != 1 { + return OutputConfigValidationError{ + field: "Sinks", + reason: "value must contain exactly 1 item(s)", + } + } + + for idx, item := range m.GetSinks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: fmt.Sprintf("Sinks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMaxBufferedRxBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: "MaxBufferedRxBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMaxBufferedTxBytes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputConfigValidationError{ + field: "MaxBufferedTxBytes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Streaming + + return nil +} + +// OutputConfigValidationError is the validation error returned by +// OutputConfig.Validate if the designated constraints aren't met. +type OutputConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputConfigValidationError) ErrorName() string { return "OutputConfigValidationError" } + +// Error satisfies the builtin error interface +func (e OutputConfigValidationError) 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 %sOutputConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputConfigValidationError{} + +// Validate checks the field values on OutputSink with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *OutputSink) Validate() error { + if m == nil { + return nil + } + + if _, ok := OutputSink_Format_name[int32(m.GetFormat())]; !ok { + return OutputSinkValidationError{ + field: "Format", + reason: "value must be one of the defined enum values", + } + } + + switch m.OutputSinkType.(type) { + + case *OutputSink_StreamingAdmin: + + if v, ok := interface{}(m.GetStreamingAdmin()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "StreamingAdmin", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutputSink_FilePerTap: + + if v, ok := interface{}(m.GetFilePerTap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "FilePerTap", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *OutputSink_StreamingGrpc: + + if v, ok := interface{}(m.GetStreamingGrpc()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OutputSinkValidationError{ + field: "StreamingGrpc", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + return OutputSinkValidationError{ + field: "OutputSinkType", + reason: "value is required", + } + + } + + return nil +} + +// OutputSinkValidationError is the validation error returned by +// OutputSink.Validate if the designated constraints aren't met. +type OutputSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputSinkValidationError) ErrorName() string { return "OutputSinkValidationError" } + +// Error satisfies the builtin error interface +func (e OutputSinkValidationError) 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 %sOutputSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputSinkValidationError{} + +// Validate checks the field values on StreamingAdminSink with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamingAdminSink) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamingAdminSinkValidationError is the validation error returned by +// StreamingAdminSink.Validate if the designated constraints aren't met. +type StreamingAdminSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamingAdminSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamingAdminSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamingAdminSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamingAdminSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamingAdminSinkValidationError) ErrorName() string { + return "StreamingAdminSinkValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamingAdminSinkValidationError) 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 %sStreamingAdminSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamingAdminSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamingAdminSinkValidationError{} + +// Validate checks the field values on FilePerTapSink with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *FilePerTapSink) Validate() error { + if m == nil { + return nil + } + + if len(m.GetPathPrefix()) < 1 { + return FilePerTapSinkValidationError{ + field: "PathPrefix", + reason: "value length must be at least 1 bytes", + } + } + + return nil +} + +// FilePerTapSinkValidationError is the validation error returned by +// FilePerTapSink.Validate if the designated constraints aren't met. +type FilePerTapSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilePerTapSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilePerTapSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilePerTapSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilePerTapSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilePerTapSinkValidationError) ErrorName() string { return "FilePerTapSinkValidationError" } + +// Error satisfies the builtin error interface +func (e FilePerTapSinkValidationError) 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 %sFilePerTapSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilePerTapSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilePerTapSinkValidationError{} + +// Validate checks the field values on StreamingGrpcSink with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StreamingGrpcSink) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TapId + + if m.GetGrpcService() == nil { + return StreamingGrpcSinkValidationError{ + field: "GrpcService", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetGrpcService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamingGrpcSinkValidationError{ + field: "GrpcService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamingGrpcSinkValidationError is the validation error returned by +// StreamingGrpcSink.Validate if the designated constraints aren't met. +type StreamingGrpcSinkValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamingGrpcSinkValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamingGrpcSinkValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamingGrpcSinkValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamingGrpcSinkValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamingGrpcSinkValidationError) ErrorName() string { + return "StreamingGrpcSinkValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamingGrpcSinkValidationError) 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 %sStreamingGrpcSink.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamingGrpcSinkValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamingGrpcSinkValidationError{} + +// Validate checks the field values on MatchPredicate_MatchSet with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *MatchPredicate_MatchSet) Validate() error { + if m == nil { + return nil + } + + if len(m.GetRules()) < 2 { + return MatchPredicate_MatchSetValidationError{ + field: "Rules", + reason: "value must contain at least 2 item(s)", + } + } + + for idx, item := range m.GetRules() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchPredicate_MatchSetValidationError{ + field: fmt.Sprintf("Rules[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MatchPredicate_MatchSetValidationError is the validation error returned by +// MatchPredicate_MatchSet.Validate if the designated constraints aren't met. +type MatchPredicate_MatchSetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchPredicate_MatchSetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchPredicate_MatchSetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchPredicate_MatchSetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchPredicate_MatchSetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchPredicate_MatchSetValidationError) ErrorName() string { + return "MatchPredicate_MatchSetValidationError" +} + +// Error satisfies the builtin error interface +func (e MatchPredicate_MatchSetValidationError) 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 %sMatchPredicate_MatchSet.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchPredicate_MatchSetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchPredicate_MatchSetValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.go new file mode 100644 index 000000000..69ed34d88 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.go @@ -0,0 +1,315 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/tap.proto + +package envoy_service_tap_v2alpha + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + v2alpha "github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamTapsRequest struct { + Identifier *StreamTapsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + TraceId uint64 `protobuf:"varint,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Trace *v2alpha.TraceWrapper `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsRequest) Reset() { *m = StreamTapsRequest{} } +func (m *StreamTapsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamTapsRequest) ProtoMessage() {} +func (*StreamTapsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e1e8ad5aa2b63d8d, []int{0} +} + +func (m *StreamTapsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsRequest.Unmarshal(m, b) +} +func (m *StreamTapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsRequest.Marshal(b, m, deterministic) +} +func (m *StreamTapsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsRequest.Merge(m, src) +} +func (m *StreamTapsRequest) XXX_Size() int { + return xxx_messageInfo_StreamTapsRequest.Size(m) +} +func (m *StreamTapsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsRequest proto.InternalMessageInfo + +func (m *StreamTapsRequest) GetIdentifier() *StreamTapsRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamTapsRequest) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +func (m *StreamTapsRequest) GetTrace() *v2alpha.TraceWrapper { + if m != nil { + return m.Trace + } + return nil +} + +type StreamTapsRequest_Identifier struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + TapId string `protobuf:"bytes,2,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsRequest_Identifier) Reset() { *m = StreamTapsRequest_Identifier{} } +func (m *StreamTapsRequest_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamTapsRequest_Identifier) ProtoMessage() {} +func (*StreamTapsRequest_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_e1e8ad5aa2b63d8d, []int{0, 0} +} + +func (m *StreamTapsRequest_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsRequest_Identifier.Unmarshal(m, b) +} +func (m *StreamTapsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsRequest_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamTapsRequest_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsRequest_Identifier.Merge(m, src) +} +func (m *StreamTapsRequest_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamTapsRequest_Identifier.Size(m) +} +func (m *StreamTapsRequest_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsRequest_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsRequest_Identifier proto.InternalMessageInfo + +func (m *StreamTapsRequest_Identifier) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *StreamTapsRequest_Identifier) GetTapId() string { + if m != nil { + return m.TapId + } + return "" +} + +type StreamTapsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsResponse) Reset() { *m = StreamTapsResponse{} } +func (m *StreamTapsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamTapsResponse) ProtoMessage() {} +func (*StreamTapsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e1e8ad5aa2b63d8d, []int{1} +} + +func (m *StreamTapsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsResponse.Unmarshal(m, b) +} +func (m *StreamTapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsResponse.Marshal(b, m, deterministic) +} +func (m *StreamTapsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsResponse.Merge(m, src) +} +func (m *StreamTapsResponse) XXX_Size() int { + return xxx_messageInfo_StreamTapsResponse.Size(m) +} +func (m *StreamTapsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*StreamTapsRequest)(nil), "envoy.service.tap.v2alpha.StreamTapsRequest") + proto.RegisterType((*StreamTapsRequest_Identifier)(nil), "envoy.service.tap.v2alpha.StreamTapsRequest.Identifier") + proto.RegisterType((*StreamTapsResponse)(nil), "envoy.service.tap.v2alpha.StreamTapsResponse") +} + +func init() { + proto.RegisterFile("envoy/service/tap/v2alpha/tap.proto", fileDescriptor_e1e8ad5aa2b63d8d) +} + +var fileDescriptor_e1e8ad5aa2b63d8d = []byte{ + // 394 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0xaa, 0x13, 0x31, + 0x14, 0x86, 0xcd, 0x78, 0x5b, 0x6b, 0x04, 0xb9, 0x06, 0xe5, 0xf6, 0x0e, 0x0a, 0xa5, 0x16, 0xec, + 0x42, 0x13, 0x18, 0x11, 0xc1, 0x95, 0xcc, 0xae, 0x1b, 0x29, 0xd3, 0x81, 0x82, 0x1b, 0x39, 0x6d, + 0x8e, 0x18, 0x6c, 0x93, 0x98, 0xa4, 0xa3, 0x5d, 0xe9, 0x52, 0x7c, 0x09, 0xdf, 0xc3, 0x27, 0x70, + 0xeb, 0xeb, 0xb8, 0x92, 0x99, 0x4c, 0x6d, 0x8b, 0x14, 0xbc, 0xbb, 0x33, 0x9c, 0xef, 0xff, 0xff, + 0x73, 0xce, 0x84, 0x3e, 0x44, 0x5d, 0x99, 0xad, 0xf0, 0xe8, 0x2a, 0xb5, 0x44, 0x11, 0xc0, 0x8a, + 0x2a, 0x83, 0x95, 0x7d, 0x07, 0x75, 0xcd, 0xad, 0x33, 0xc1, 0xb0, 0xcb, 0x06, 0xe2, 0x2d, 0xc4, + 0xeb, 0x46, 0x0b, 0xa5, 0xf7, 0xa3, 0x1e, 0xac, 0x12, 0x55, 0x26, 0x96, 0xc6, 0xa1, 0x58, 0x80, + 0xc7, 0x28, 0x4c, 0x47, 0xb1, 0x2b, 0x21, 0xc0, 0x91, 0xf5, 0x47, 0x07, 0xd6, 0xa2, 0x6b, 0xa9, + 0x07, 0x1b, 0x69, 0x41, 0x80, 0xd6, 0x26, 0x40, 0x50, 0x46, 0x7b, 0xe1, 0x03, 0x84, 0x8d, 0x6f, + 0xdb, 0x17, 0x15, 0xac, 0x94, 0x84, 0x80, 0x62, 0x57, 0xc4, 0xc6, 0xf0, 0x7b, 0x42, 0xef, 0xcc, + 0x82, 0x43, 0x58, 0x97, 0x60, 0x7d, 0x81, 0x1f, 0x36, 0xe8, 0x03, 0x9b, 0x53, 0xaa, 0x24, 0xea, + 0xa0, 0xde, 0x2a, 0x74, 0x7d, 0x32, 0x20, 0xe3, 0x5b, 0xd9, 0x73, 0x7e, 0x72, 0x03, 0xfe, 0x8f, + 0x03, 0x9f, 0xfc, 0x95, 0x17, 0x07, 0x56, 0xec, 0x92, 0xf6, 0x82, 0x83, 0x25, 0xbe, 0x51, 0xb2, + 0x9f, 0x0c, 0xc8, 0xf8, 0xac, 0xb8, 0xd1, 0x7c, 0x4f, 0x24, 0x7b, 0x41, 0x3b, 0x4d, 0xd9, 0xbf, + 0xde, 0xc4, 0x8d, 0xda, 0xb8, 0x7a, 0xef, 0xa3, 0xac, 0xb2, 0x86, 0xe6, 0x71, 0xf9, 0x22, 0x4a, + 0xd2, 0xd7, 0x94, 0xee, 0x03, 0xd9, 0x33, 0x7a, 0xa6, 0x8d, 0xc4, 0x76, 0xee, 0x8b, 0xd6, 0x08, + 0xac, 0xe2, 0x55, 0xc6, 0xeb, 0xf3, 0xf2, 0x57, 0x46, 0x62, 0xde, 0xfb, 0x9d, 0x77, 0xbe, 0x91, + 0xe4, 0x9c, 0x14, 0x0d, 0xce, 0xee, 0xd1, 0x6e, 0x00, 0xbb, 0x9b, 0xec, 0x66, 0xd1, 0x09, 0x60, + 0x27, 0x72, 0x78, 0x97, 0xb2, 0xc3, 0xf5, 0xbc, 0x35, 0xda, 0x63, 0xf6, 0x99, 0xde, 0x2e, 0xc1, + 0xce, 0x94, 0x7e, 0x3f, 0x8b, 0xf7, 0x60, 0x6b, 0x4a, 0xf7, 0x1c, 0x7b, 0x7c, 0x95, 0x6b, 0xa5, + 0x4f, 0xfe, 0x93, 0x8e, 0xe1, 0xc3, 0x6b, 0x63, 0x92, 0xbf, 0xfc, 0xf1, 0xe5, 0xe7, 0xaf, 0x6e, + 0x72, 0x4e, 0xe8, 0x23, 0x65, 0xa2, 0xdc, 0x3a, 0xf3, 0x69, 0x7b, 0xda, 0x29, 0xef, 0x95, 0x60, + 0xa7, 0xf5, 0x5f, 0x9f, 0x92, 0xaf, 0x84, 0x2c, 0xba, 0xcd, 0x0b, 0x78, 0xfa, 0x27, 0x00, 0x00, + 0xff, 0xff, 0x1e, 0xca, 0xa8, 0xbd, 0xbf, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TapSinkServiceClient is the client API for TapSinkService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TapSinkServiceClient interface { + StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) +} + +type tapSinkServiceClient struct { + cc *grpc.ClientConn +} + +func NewTapSinkServiceClient(cc *grpc.ClientConn) TapSinkServiceClient { + return &tapSinkServiceClient{cc} +} + +func (c *tapSinkServiceClient) StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapSinkService_serviceDesc.Streams[0], "/envoy.service.tap.v2alpha.TapSinkService/StreamTaps", opts...) + if err != nil { + return nil, err + } + x := &tapSinkServiceStreamTapsClient{stream} + return x, nil +} + +type TapSinkService_StreamTapsClient interface { + Send(*StreamTapsRequest) error + CloseAndRecv() (*StreamTapsResponse, error) + grpc.ClientStream +} + +type tapSinkServiceStreamTapsClient struct { + grpc.ClientStream +} + +func (x *tapSinkServiceStreamTapsClient) Send(m *StreamTapsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapSinkServiceStreamTapsClient) CloseAndRecv() (*StreamTapsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamTapsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TapSinkServiceServer is the server API for TapSinkService service. +type TapSinkServiceServer interface { + StreamTaps(TapSinkService_StreamTapsServer) error +} + +// UnimplementedTapSinkServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTapSinkServiceServer struct { +} + +func (*UnimplementedTapSinkServiceServer) StreamTaps(srv TapSinkService_StreamTapsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTaps not implemented") +} + +func RegisterTapSinkServiceServer(s *grpc.Server, srv TapSinkServiceServer) { + s.RegisterService(&_TapSinkService_serviceDesc, srv) +} + +func _TapSinkService_StreamTaps_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapSinkServiceServer).StreamTaps(&tapSinkServiceStreamTapsServer{stream}) +} + +type TapSinkService_StreamTapsServer interface { + SendAndClose(*StreamTapsResponse) error + Recv() (*StreamTapsRequest, error) + grpc.ServerStream +} + +type tapSinkServiceStreamTapsServer struct { + grpc.ServerStream +} + +func (x *tapSinkServiceStreamTapsServer) SendAndClose(m *StreamTapsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapSinkServiceStreamTapsServer) Recv() (*StreamTapsRequest, error) { + m := new(StreamTapsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _TapSinkService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.tap.v2alpha.TapSinkService", + HandlerType: (*TapSinkServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTaps", + Handler: _TapSinkService_StreamTaps_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/tap/v2alpha/tap.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.validate.go new file mode 100644 index 000000000..71070cead --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tap.pb.validate.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/tap.proto + +package envoy_service_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamTapsRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StreamTapsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequestValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TraceId + + if v, ok := interface{}(m.GetTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequestValidationError{ + field: "Trace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamTapsRequestValidationError is the validation error returned by +// StreamTapsRequest.Validate if the designated constraints aren't met. +type StreamTapsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsRequestValidationError) ErrorName() string { + return "StreamTapsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsRequestValidationError) 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 %sStreamTapsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsRequestValidationError{} + +// Validate checks the field values on StreamTapsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTapsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamTapsResponseValidationError is the validation error returned by +// StreamTapsResponse.Validate if the designated constraints aren't met. +type StreamTapsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsResponseValidationError) ErrorName() string { + return "StreamTapsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsResponseValidationError) 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 %sStreamTapsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsResponseValidationError{} + +// Validate checks the field values on StreamTapsRequest_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTapsRequest_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamTapsRequest_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequest_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TapId + + return nil +} + +// StreamTapsRequest_IdentifierValidationError is the validation error returned +// by StreamTapsRequest_Identifier.Validate if the designated constraints +// aren't met. +type StreamTapsRequest_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsRequest_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsRequest_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsRequest_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsRequest_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsRequest_IdentifierValidationError) ErrorName() string { + return "StreamTapsRequest_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsRequest_IdentifierValidationError) 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 %sStreamTapsRequest_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsRequest_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsRequest_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.go new file mode 100644 index 000000000..77fec2b06 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.go @@ -0,0 +1,330 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/tapds.proto + +package envoy_service_tap_v2alpha + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v2 "github.com/envoyproxy/go-control-plane/envoy/api/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TapResource struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Config *TapConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapResource) Reset() { *m = TapResource{} } +func (m *TapResource) String() string { return proto.CompactTextString(m) } +func (*TapResource) ProtoMessage() {} +func (*TapResource) Descriptor() ([]byte, []int) { + return fileDescriptor_4eef591ebf2a5317, []int{0} +} + +func (m *TapResource) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapResource.Unmarshal(m, b) +} +func (m *TapResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapResource.Marshal(b, m, deterministic) +} +func (m *TapResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapResource.Merge(m, src) +} +func (m *TapResource) XXX_Size() int { + return xxx_messageInfo_TapResource.Size(m) +} +func (m *TapResource) XXX_DiscardUnknown() { + xxx_messageInfo_TapResource.DiscardUnknown(m) +} + +var xxx_messageInfo_TapResource proto.InternalMessageInfo + +func (m *TapResource) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TapResource) GetConfig() *TapConfig { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterType((*TapResource)(nil), "envoy.service.tap.v2alpha.TapResource") +} + +func init() { + proto.RegisterFile("envoy/service/tap/v2alpha/tapds.proto", fileDescriptor_4eef591ebf2a5317) +} + +var fileDescriptor_4eef591ebf2a5317 = []byte{ + // 391 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xcf, 0x6e, 0xda, 0x40, + 0x10, 0xc6, 0xbb, 0x2e, 0xa2, 0xea, 0x72, 0x00, 0xb9, 0x87, 0x82, 0xa1, 0x2d, 0xa2, 0xb4, 0x45, + 0x1c, 0xd6, 0x95, 0x7b, 0x43, 0x3d, 0xb9, 0xa8, 0x67, 0x64, 0x7c, 0xe9, 0xa9, 0x1a, 0xec, 0x2d, + 0xac, 0x64, 0xef, 0x6e, 0xbd, 0x6b, 0xab, 0x5c, 0xaa, 0x28, 0xa7, 0xdc, 0xf3, 0x36, 0x79, 0x82, + 0x5c, 0xa3, 0xe4, 0x11, 0xf2, 0x14, 0x39, 0x45, 0xfe, 0x03, 0x82, 0x44, 0xce, 0x29, 0xb7, 0xd5, + 0x7c, 0xdf, 0xf7, 0x1b, 0x8f, 0x67, 0xf0, 0x27, 0xca, 0x33, 0xb1, 0xb5, 0x15, 0x4d, 0x32, 0x16, + 0x50, 0x5b, 0x83, 0xb4, 0x33, 0x07, 0x22, 0xb9, 0x81, 0xfc, 0x1d, 0x2a, 0x22, 0x13, 0xa1, 0x85, + 0xd9, 0x2b, 0x6c, 0xa4, 0xb2, 0x11, 0x0d, 0x92, 0x54, 0x36, 0x6b, 0x50, 0x12, 0x40, 0x32, 0x3b, + 0x73, 0xec, 0x90, 0xa9, 0x40, 0x64, 0x34, 0xd9, 0x96, 0x41, 0xeb, 0x73, 0x3d, 0x3f, 0x10, 0x71, + 0x2c, 0x78, 0xe5, 0x1b, 0xac, 0x85, 0x58, 0x47, 0xb4, 0xc0, 0x00, 0xe7, 0x42, 0x83, 0x66, 0x82, + 0x57, 0xed, 0xad, 0x77, 0x69, 0x28, 0xe1, 0xb0, 0x6e, 0x2b, 0x0d, 0x3a, 0xdd, 0xc9, 0x6f, 0x33, + 0x88, 0x58, 0x08, 0x9a, 0xda, 0xbb, 0x47, 0x29, 0x8c, 0x36, 0xb8, 0xe5, 0x83, 0xf4, 0xa8, 0x12, + 0x69, 0x12, 0x50, 0xb3, 0x8f, 0x1b, 0x1c, 0x62, 0xda, 0x45, 0x43, 0x34, 0x79, 0xed, 0xbe, 0xba, + 0x73, 0x1b, 0x89, 0x31, 0x44, 0x5e, 0x51, 0x34, 0xbf, 0xe3, 0x66, 0x20, 0xf8, 0x1f, 0xb6, 0xee, + 0x1a, 0x43, 0x34, 0x69, 0x39, 0x63, 0x52, 0x3b, 0x33, 0xf1, 0x41, 0xfe, 0x28, 0xbc, 0x5e, 0x95, + 0x71, 0x6e, 0x0c, 0xfc, 0xc6, 0x07, 0x39, 0xdf, 0x8d, 0xbf, 0x2c, 0x53, 0xe6, 0x2f, 0xdc, 0x59, + 0xea, 0x84, 0x42, 0xbc, 0x8f, 0x28, 0xf3, 0x7d, 0x45, 0x06, 0xc9, 0x48, 0xe6, 0x90, 0x7d, 0xc6, + 0xa3, 0x7f, 0x53, 0xaa, 0xb4, 0xf5, 0xa1, 0x56, 0x57, 0x52, 0x70, 0x45, 0x47, 0x2f, 0x26, 0xe8, + 0x2b, 0x32, 0x57, 0xb8, 0x3d, 0xa7, 0x91, 0x86, 0x03, 0xf2, 0xc7, 0x07, 0xc9, 0x5c, 0x7e, 0x84, + 0x1f, 0x3f, 0x6d, 0x3a, 0xea, 0xf1, 0x1f, 0xb7, 0x7f, 0x52, 0x1d, 0x6c, 0x9e, 0xf3, 0xeb, 0xa7, + 0xa7, 0xd7, 0xb7, 0xe7, 0x46, 0x7f, 0xd4, 0x3b, 0xba, 0x97, 0x99, 0x06, 0xf9, 0xbb, 0xfc, 0x99, + 0xaa, 0x30, 0xbc, 0x9c, 0xa1, 0xa9, 0xeb, 0x5e, 0x9c, 0x5c, 0x5e, 0x35, 0x8d, 0x0e, 0xc2, 0x5f, + 0x98, 0x28, 0xc1, 0x32, 0x11, 0xff, 0xb6, 0xf5, 0xbb, 0x71, 0xb1, 0x9f, 0xdf, 0xed, 0x22, 0xdf, + 0xff, 0x02, 0x9d, 0x21, 0xb4, 0x6a, 0x16, 0xb7, 0xf0, 0xed, 0x3e, 0x00, 0x00, 0xff, 0xff, 0xf3, + 0xba, 0xec, 0x43, 0xeb, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TapDiscoveryServiceClient is the client API for TapDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TapDiscoveryServiceClient interface { + StreamTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_StreamTapConfigsClient, error) + DeltaTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_DeltaTapConfigsClient, error) + FetchTapConfigs(ctx context.Context, in *v2.DiscoveryRequest, opts ...grpc.CallOption) (*v2.DiscoveryResponse, error) +} + +type tapDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewTapDiscoveryServiceClient(cc *grpc.ClientConn) TapDiscoveryServiceClient { + return &tapDiscoveryServiceClient{cc} +} + +func (c *tapDiscoveryServiceClient) StreamTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_StreamTapConfigsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapDiscoveryService_serviceDesc.Streams[0], "/envoy.service.tap.v2alpha.TapDiscoveryService/StreamTapConfigs", opts...) + if err != nil { + return nil, err + } + x := &tapDiscoveryServiceStreamTapConfigsClient{stream} + return x, nil +} + +type TapDiscoveryService_StreamTapConfigsClient interface { + Send(*v2.DiscoveryRequest) error + Recv() (*v2.DiscoveryResponse, error) + grpc.ClientStream +} + +type tapDiscoveryServiceStreamTapConfigsClient struct { + grpc.ClientStream +} + +func (x *tapDiscoveryServiceStreamTapConfigsClient) Send(m *v2.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceStreamTapConfigsClient) Recv() (*v2.DiscoveryResponse, error) { + m := new(v2.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *tapDiscoveryServiceClient) DeltaTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_DeltaTapConfigsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapDiscoveryService_serviceDesc.Streams[1], "/envoy.service.tap.v2alpha.TapDiscoveryService/DeltaTapConfigs", opts...) + if err != nil { + return nil, err + } + x := &tapDiscoveryServiceDeltaTapConfigsClient{stream} + return x, nil +} + +type TapDiscoveryService_DeltaTapConfigsClient interface { + Send(*v2.DeltaDiscoveryRequest) error + Recv() (*v2.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type tapDiscoveryServiceDeltaTapConfigsClient struct { + grpc.ClientStream +} + +func (x *tapDiscoveryServiceDeltaTapConfigsClient) Send(m *v2.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceDeltaTapConfigsClient) Recv() (*v2.DeltaDiscoveryResponse, error) { + m := new(v2.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *tapDiscoveryServiceClient) FetchTapConfigs(ctx context.Context, in *v2.DiscoveryRequest, opts ...grpc.CallOption) (*v2.DiscoveryResponse, error) { + out := new(v2.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.tap.v2alpha.TapDiscoveryService/FetchTapConfigs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TapDiscoveryServiceServer is the server API for TapDiscoveryService service. +type TapDiscoveryServiceServer interface { + StreamTapConfigs(TapDiscoveryService_StreamTapConfigsServer) error + DeltaTapConfigs(TapDiscoveryService_DeltaTapConfigsServer) error + FetchTapConfigs(context.Context, *v2.DiscoveryRequest) (*v2.DiscoveryResponse, error) +} + +// UnimplementedTapDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTapDiscoveryServiceServer struct { +} + +func (*UnimplementedTapDiscoveryServiceServer) StreamTapConfigs(srv TapDiscoveryService_StreamTapConfigsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTapConfigs not implemented") +} +func (*UnimplementedTapDiscoveryServiceServer) DeltaTapConfigs(srv TapDiscoveryService_DeltaTapConfigsServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaTapConfigs not implemented") +} +func (*UnimplementedTapDiscoveryServiceServer) FetchTapConfigs(ctx context.Context, req *v2.DiscoveryRequest) (*v2.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchTapConfigs not implemented") +} + +func RegisterTapDiscoveryServiceServer(s *grpc.Server, srv TapDiscoveryServiceServer) { + s.RegisterService(&_TapDiscoveryService_serviceDesc, srv) +} + +func _TapDiscoveryService_StreamTapConfigs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapDiscoveryServiceServer).StreamTapConfigs(&tapDiscoveryServiceStreamTapConfigsServer{stream}) +} + +type TapDiscoveryService_StreamTapConfigsServer interface { + Send(*v2.DiscoveryResponse) error + Recv() (*v2.DiscoveryRequest, error) + grpc.ServerStream +} + +type tapDiscoveryServiceStreamTapConfigsServer struct { + grpc.ServerStream +} + +func (x *tapDiscoveryServiceStreamTapConfigsServer) Send(m *v2.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceStreamTapConfigsServer) Recv() (*v2.DiscoveryRequest, error) { + m := new(v2.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _TapDiscoveryService_DeltaTapConfigs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapDiscoveryServiceServer).DeltaTapConfigs(&tapDiscoveryServiceDeltaTapConfigsServer{stream}) +} + +type TapDiscoveryService_DeltaTapConfigsServer interface { + Send(*v2.DeltaDiscoveryResponse) error + Recv() (*v2.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type tapDiscoveryServiceDeltaTapConfigsServer struct { + grpc.ServerStream +} + +func (x *tapDiscoveryServiceDeltaTapConfigsServer) Send(m *v2.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceDeltaTapConfigsServer) Recv() (*v2.DeltaDiscoveryRequest, error) { + m := new(v2.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _TapDiscoveryService_FetchTapConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v2.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TapDiscoveryServiceServer).FetchTapConfigs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.tap.v2alpha.TapDiscoveryService/FetchTapConfigs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TapDiscoveryServiceServer).FetchTapConfigs(ctx, req.(*v2.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _TapDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.tap.v2alpha.TapDiscoveryService", + HandlerType: (*TapDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchTapConfigs", + Handler: _TapDiscoveryService_FetchTapConfigs_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTapConfigs", + Handler: _TapDiscoveryService_StreamTapConfigs_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaTapConfigs", + Handler: _TapDiscoveryService_DeltaTapConfigs_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/tap/v2alpha/tapds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.validate.go new file mode 100644 index 000000000..058a61fc0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha/tapds.pb.validate.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/tap/v2alpha/tapds.proto + +package envoy_service_tap_v2alpha + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tapds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapResource with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TapResource) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return TapResourceValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapResourceValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapResourceValidationError is the validation error returned by +// TapResource.Validate if the designated constraints aren't met. +type TapResourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapResourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapResourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapResourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapResourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapResourceValidationError) ErrorName() string { return "TapResourceValidationError" } + +// Error satisfies the builtin error interface +func (e TapResourceValidationError) 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 %sTapResource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapResourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapResourceValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.go new file mode 100644 index 000000000..c8ea492db --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.go @@ -0,0 +1,316 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/tap/v3/tap.proto + +package envoy_service_tap_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/data/tap/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamTapsRequest struct { + Identifier *StreamTapsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + TraceId uint64 `protobuf:"varint,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Trace *v3.TraceWrapper `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsRequest) Reset() { *m = StreamTapsRequest{} } +func (m *StreamTapsRequest) String() string { return proto.CompactTextString(m) } +func (*StreamTapsRequest) ProtoMessage() {} +func (*StreamTapsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35a24a29eecfc2f0, []int{0} +} + +func (m *StreamTapsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsRequest.Unmarshal(m, b) +} +func (m *StreamTapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsRequest.Marshal(b, m, deterministic) +} +func (m *StreamTapsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsRequest.Merge(m, src) +} +func (m *StreamTapsRequest) XXX_Size() int { + return xxx_messageInfo_StreamTapsRequest.Size(m) +} +func (m *StreamTapsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsRequest proto.InternalMessageInfo + +func (m *StreamTapsRequest) GetIdentifier() *StreamTapsRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamTapsRequest) GetTraceId() uint64 { + if m != nil { + return m.TraceId + } + return 0 +} + +func (m *StreamTapsRequest) GetTrace() *v3.TraceWrapper { + if m != nil { + return m.Trace + } + return nil +} + +type StreamTapsRequest_Identifier struct { + Node *v31.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + TapId string `protobuf:"bytes,2,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsRequest_Identifier) Reset() { *m = StreamTapsRequest_Identifier{} } +func (m *StreamTapsRequest_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamTapsRequest_Identifier) ProtoMessage() {} +func (*StreamTapsRequest_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_35a24a29eecfc2f0, []int{0, 0} +} + +func (m *StreamTapsRequest_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsRequest_Identifier.Unmarshal(m, b) +} +func (m *StreamTapsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsRequest_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamTapsRequest_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsRequest_Identifier.Merge(m, src) +} +func (m *StreamTapsRequest_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamTapsRequest_Identifier.Size(m) +} +func (m *StreamTapsRequest_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsRequest_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsRequest_Identifier proto.InternalMessageInfo + +func (m *StreamTapsRequest_Identifier) GetNode() *v31.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *StreamTapsRequest_Identifier) GetTapId() string { + if m != nil { + return m.TapId + } + return "" +} + +type StreamTapsResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTapsResponse) Reset() { *m = StreamTapsResponse{} } +func (m *StreamTapsResponse) String() string { return proto.CompactTextString(m) } +func (*StreamTapsResponse) ProtoMessage() {} +func (*StreamTapsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35a24a29eecfc2f0, []int{1} +} + +func (m *StreamTapsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTapsResponse.Unmarshal(m, b) +} +func (m *StreamTapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTapsResponse.Marshal(b, m, deterministic) +} +func (m *StreamTapsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTapsResponse.Merge(m, src) +} +func (m *StreamTapsResponse) XXX_Size() int { + return xxx_messageInfo_StreamTapsResponse.Size(m) +} +func (m *StreamTapsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTapsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTapsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*StreamTapsRequest)(nil), "envoy.service.tap.v3.StreamTapsRequest") + proto.RegisterType((*StreamTapsRequest_Identifier)(nil), "envoy.service.tap.v3.StreamTapsRequest.Identifier") + proto.RegisterType((*StreamTapsResponse)(nil), "envoy.service.tap.v3.StreamTapsResponse") +} + +func init() { proto.RegisterFile("envoy/service/tap/v3/tap.proto", fileDescriptor_35a24a29eecfc2f0) } + +var fileDescriptor_35a24a29eecfc2f0 = []byte{ + // 439 bytes of a gzipped FileDescriptorProto +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xa2, 0x5d, 0x28, 0xfd, + 0x66, 0x91, 0x00, 0x5e, 0x02, 0x9c, 0xf9, 0xf8, 0x83, 0x4b, 0xfe, 0xcf, 0xe1, 0xf8, 0xdf, 0xc6, + 0x54, 0x39, 0xba, 0x32, 0x66, 0xb3, 0x67, 0xdf, 0x3e, 0xfe, 0xf8, 0xd9, 0xeb, 0x6c, 0x75, 0x60, + 0xa4, 0x4c, 0x22, 0xad, 0x33, 0x1f, 0x4e, 0xd6, 0x86, 0xcc, 0xfa, 0x4b, 0xb4, 0xfb, 0xf1, 0x22, + 0xee, 0xb3, 0x53, 0xc6, 0x0e, 0x7a, 0xf5, 0xa5, 0x9c, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xcc, + 0x64, 0x4c, 0x9d, 0x69, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TapSinkServiceClient is the client API for TapSinkService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TapSinkServiceClient interface { + StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) +} + +type tapSinkServiceClient struct { + cc *grpc.ClientConn +} + +func NewTapSinkServiceClient(cc *grpc.ClientConn) TapSinkServiceClient { + return &tapSinkServiceClient{cc} +} + +func (c *tapSinkServiceClient) StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapSinkService_serviceDesc.Streams[0], "/envoy.service.tap.v3.TapSinkService/StreamTaps", opts...) + if err != nil { + return nil, err + } + x := &tapSinkServiceStreamTapsClient{stream} + return x, nil +} + +type TapSinkService_StreamTapsClient interface { + Send(*StreamTapsRequest) error + CloseAndRecv() (*StreamTapsResponse, error) + grpc.ClientStream +} + +type tapSinkServiceStreamTapsClient struct { + grpc.ClientStream +} + +func (x *tapSinkServiceStreamTapsClient) Send(m *StreamTapsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapSinkServiceStreamTapsClient) CloseAndRecv() (*StreamTapsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamTapsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TapSinkServiceServer is the server API for TapSinkService service. +type TapSinkServiceServer interface { + StreamTaps(TapSinkService_StreamTapsServer) error +} + +// UnimplementedTapSinkServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTapSinkServiceServer struct { +} + +func (*UnimplementedTapSinkServiceServer) StreamTaps(srv TapSinkService_StreamTapsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTaps not implemented") +} + +func RegisterTapSinkServiceServer(s *grpc.Server, srv TapSinkServiceServer) { + s.RegisterService(&_TapSinkService_serviceDesc, srv) +} + +func _TapSinkService_StreamTaps_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapSinkServiceServer).StreamTaps(&tapSinkServiceStreamTapsServer{stream}) +} + +type TapSinkService_StreamTapsServer interface { + SendAndClose(*StreamTapsResponse) error + Recv() (*StreamTapsRequest, error) + grpc.ServerStream +} + +type tapSinkServiceStreamTapsServer struct { + grpc.ServerStream +} + +func (x *tapSinkServiceStreamTapsServer) SendAndClose(m *StreamTapsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapSinkServiceStreamTapsServer) Recv() (*StreamTapsRequest, error) { + m := new(StreamTapsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _TapSinkService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.tap.v3.TapSinkService", + HandlerType: (*TapSinkServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTaps", + Handler: _TapSinkService_StreamTaps_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/tap/v3/tap.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.validate.go new file mode 100644 index 000000000..f78f4cce1 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tap.pb.validate.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/tap/v3/tap.proto + +package envoy_service_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tap_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamTapsRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StreamTapsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequestValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TraceId + + if v, ok := interface{}(m.GetTrace()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequestValidationError{ + field: "Trace", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamTapsRequestValidationError is the validation error returned by +// StreamTapsRequest.Validate if the designated constraints aren't met. +type StreamTapsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsRequestValidationError) ErrorName() string { + return "StreamTapsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsRequestValidationError) 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 %sStreamTapsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsRequestValidationError{} + +// Validate checks the field values on StreamTapsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTapsResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamTapsResponseValidationError is the validation error returned by +// StreamTapsResponse.Validate if the designated constraints aren't met. +type StreamTapsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsResponseValidationError) ErrorName() string { + return "StreamTapsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsResponseValidationError) 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 %sStreamTapsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsResponseValidationError{} + +// Validate checks the field values on StreamTapsRequest_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTapsRequest_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamTapsRequest_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTapsRequest_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TapId + + return nil +} + +// StreamTapsRequest_IdentifierValidationError is the validation error returned +// by StreamTapsRequest_Identifier.Validate if the designated constraints +// aren't met. +type StreamTapsRequest_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTapsRequest_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTapsRequest_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTapsRequest_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTapsRequest_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTapsRequest_IdentifierValidationError) ErrorName() string { + return "StreamTapsRequest_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTapsRequest_IdentifierValidationError) 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 %sStreamTapsRequest_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTapsRequest_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTapsRequest_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.go new file mode 100644 index 000000000..b5fbe730c --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.go @@ -0,0 +1,332 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/tap/v3/tapds.proto + +package envoy_service_tap_v3 + +import ( + context "context" + fmt "fmt" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/tap/v3" + v31 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type TapResource struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Config *v3.TapConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TapResource) Reset() { *m = TapResource{} } +func (m *TapResource) String() string { return proto.CompactTextString(m) } +func (*TapResource) ProtoMessage() {} +func (*TapResource) Descriptor() ([]byte, []int) { + return fileDescriptor_d118f9afd670f788, []int{0} +} + +func (m *TapResource) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TapResource.Unmarshal(m, b) +} +func (m *TapResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TapResource.Marshal(b, m, deterministic) +} +func (m *TapResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_TapResource.Merge(m, src) +} +func (m *TapResource) XXX_Size() int { + return xxx_messageInfo_TapResource.Size(m) +} +func (m *TapResource) XXX_DiscardUnknown() { + xxx_messageInfo_TapResource.DiscardUnknown(m) +} + +var xxx_messageInfo_TapResource proto.InternalMessageInfo + +func (m *TapResource) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TapResource) GetConfig() *v3.TapConfig { + if m != nil { + return m.Config + } + return nil +} + +func init() { + proto.RegisterType((*TapResource)(nil), "envoy.service.tap.v3.TapResource") +} + +func init() { proto.RegisterFile("envoy/service/tap/v3/tapds.proto", fileDescriptor_d118f9afd670f788) } + +var fileDescriptor_d118f9afd670f788 = []byte{ + // 435 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x41, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0x9d, 0x6d, 0x89, 0x38, 0x3d, 0xb4, 0xac, 0x82, 0x35, 0xd5, 0x12, 0x03, 0x62, 0x08, + 0x75, 0x56, 0x13, 0xf0, 0x10, 0xf0, 0x12, 0x8b, 0xe7, 0x92, 0xe6, 0x2e, 0xcf, 0xcd, 0x33, 0x1d, + 0xc8, 0xce, 0x1b, 0x67, 0x66, 0x07, 0x73, 0x11, 0xf1, 0xd4, 0xa3, 0xe0, 0xad, 0xdf, 0xc0, 0xaf, + 0xe0, 0x5d, 0xf0, 0x2a, 0x7e, 0x05, 0x3f, 0x85, 0x27, 0xd9, 0x9d, 0xdd, 0x98, 0xa5, 0x41, 0xf4, + 0xd2, 0xd3, 0xee, 0xbe, 0xf7, 0x7b, 0xef, 0x3f, 0xf3, 0xdf, 0xf7, 0x78, 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0xc4, 0xda, 0x11, 0x06, 0x9f, 0xb7, 0xf8, 0xcd, 0x29, 0xe8, 0xe3, 0xda, 0xa2, + 0xd3, 0xc0, 0xc7, 0x39, 0xdf, 0x3b, 0x75, 0x06, 0x21, 0x5b, 0x09, 0xd8, 0xf8, 0x48, 0x34, 0x7b, + 0xfe, 0xf1, 0xd5, 0x0f, 0xc5, 0xaa, 0xc3, 0x04, 0xdf, 0xe4, 0x68, 0x5d, 0xfb, 0xd1, 0x3f, 0xd2, + 0x56, 0x93, 0xb2, 0xd8, 0xbd, 0xd6, 0x63, 0x8f, 0x59, 0xfc, 0x8e, 0xef, 0x1e, 0xe3, 0xc2, 0xc1, + 0x9a, 0xea, 0x93, 0xbf, 0xf6, 0x29, 0xe0, 0x4b, 0xd2, 0x83, 0xff, 0x29, 0x69, 0xe8, 0x5f, 0x30, + 0xbe, 0xfb, 0x02, 0x5d, 0x7a, 0x76, 0x55, 0xd7, 0xee, 0x7f, 0xf8, 0xf1, 0xf3, 0x53, 0x74, 0xd0, + 0xbd, 0xd3, 0x18, 0xd4, 0x91, 0x03, 0xfd, 0x32, 0xfc, 0x4f, 0x5b, 0x02, 0x5b, 0x23, 0xd6, 0x1f, + 0x3f, 0xfb, 0xf2, 0xfe, 0xdb, 0xf7, 0x56, 0xb4, 0x17, 0xf1, 0xae, 0xa4, 0x20, 0xa3, 0x0d, 0xbd, + 0x5d, 0x8a, 0x4d, 0x3b, 0x33, 0xe6, 0xd3, 0x62, 0xad, 0x4e, 0x8a, 0xc1, 0x3b, 0x61, 0xe7, 0x8c, + 0xbd, 0x6a, 0x95, 0x43, 0x38, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x93, 0x88, 0x67, 0x85, + 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TapDiscoveryServiceClient is the client API for TapDiscoveryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TapDiscoveryServiceClient interface { + StreamTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_StreamTapConfigsClient, error) + DeltaTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_DeltaTapConfigsClient, error) + FetchTapConfigs(ctx context.Context, in *v31.DiscoveryRequest, opts ...grpc.CallOption) (*v31.DiscoveryResponse, error) +} + +type tapDiscoveryServiceClient struct { + cc *grpc.ClientConn +} + +func NewTapDiscoveryServiceClient(cc *grpc.ClientConn) TapDiscoveryServiceClient { + return &tapDiscoveryServiceClient{cc} +} + +func (c *tapDiscoveryServiceClient) StreamTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_StreamTapConfigsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapDiscoveryService_serviceDesc.Streams[0], "/envoy.service.tap.v3.TapDiscoveryService/StreamTapConfigs", opts...) + if err != nil { + return nil, err + } + x := &tapDiscoveryServiceStreamTapConfigsClient{stream} + return x, nil +} + +type TapDiscoveryService_StreamTapConfigsClient interface { + Send(*v31.DiscoveryRequest) error + Recv() (*v31.DiscoveryResponse, error) + grpc.ClientStream +} + +type tapDiscoveryServiceStreamTapConfigsClient struct { + grpc.ClientStream +} + +func (x *tapDiscoveryServiceStreamTapConfigsClient) Send(m *v31.DiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceStreamTapConfigsClient) Recv() (*v31.DiscoveryResponse, error) { + m := new(v31.DiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *tapDiscoveryServiceClient) DeltaTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_DeltaTapConfigsClient, error) { + stream, err := c.cc.NewStream(ctx, &_TapDiscoveryService_serviceDesc.Streams[1], "/envoy.service.tap.v3.TapDiscoveryService/DeltaTapConfigs", opts...) + if err != nil { + return nil, err + } + x := &tapDiscoveryServiceDeltaTapConfigsClient{stream} + return x, nil +} + +type TapDiscoveryService_DeltaTapConfigsClient interface { + Send(*v31.DeltaDiscoveryRequest) error + Recv() (*v31.DeltaDiscoveryResponse, error) + grpc.ClientStream +} + +type tapDiscoveryServiceDeltaTapConfigsClient struct { + grpc.ClientStream +} + +func (x *tapDiscoveryServiceDeltaTapConfigsClient) Send(m *v31.DeltaDiscoveryRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceDeltaTapConfigsClient) Recv() (*v31.DeltaDiscoveryResponse, error) { + m := new(v31.DeltaDiscoveryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *tapDiscoveryServiceClient) FetchTapConfigs(ctx context.Context, in *v31.DiscoveryRequest, opts ...grpc.CallOption) (*v31.DiscoveryResponse, error) { + out := new(v31.DiscoveryResponse) + err := c.cc.Invoke(ctx, "/envoy.service.tap.v3.TapDiscoveryService/FetchTapConfigs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TapDiscoveryServiceServer is the server API for TapDiscoveryService service. +type TapDiscoveryServiceServer interface { + StreamTapConfigs(TapDiscoveryService_StreamTapConfigsServer) error + DeltaTapConfigs(TapDiscoveryService_DeltaTapConfigsServer) error + FetchTapConfigs(context.Context, *v31.DiscoveryRequest) (*v31.DiscoveryResponse, error) +} + +// UnimplementedTapDiscoveryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTapDiscoveryServiceServer struct { +} + +func (*UnimplementedTapDiscoveryServiceServer) StreamTapConfigs(srv TapDiscoveryService_StreamTapConfigsServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTapConfigs not implemented") +} +func (*UnimplementedTapDiscoveryServiceServer) DeltaTapConfigs(srv TapDiscoveryService_DeltaTapConfigsServer) error { + return status.Errorf(codes.Unimplemented, "method DeltaTapConfigs not implemented") +} +func (*UnimplementedTapDiscoveryServiceServer) FetchTapConfigs(ctx context.Context, req *v31.DiscoveryRequest) (*v31.DiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchTapConfigs not implemented") +} + +func RegisterTapDiscoveryServiceServer(s *grpc.Server, srv TapDiscoveryServiceServer) { + s.RegisterService(&_TapDiscoveryService_serviceDesc, srv) +} + +func _TapDiscoveryService_StreamTapConfigs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapDiscoveryServiceServer).StreamTapConfigs(&tapDiscoveryServiceStreamTapConfigsServer{stream}) +} + +type TapDiscoveryService_StreamTapConfigsServer interface { + Send(*v31.DiscoveryResponse) error + Recv() (*v31.DiscoveryRequest, error) + grpc.ServerStream +} + +type tapDiscoveryServiceStreamTapConfigsServer struct { + grpc.ServerStream +} + +func (x *tapDiscoveryServiceStreamTapConfigsServer) Send(m *v31.DiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceStreamTapConfigsServer) Recv() (*v31.DiscoveryRequest, error) { + m := new(v31.DiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _TapDiscoveryService_DeltaTapConfigs_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TapDiscoveryServiceServer).DeltaTapConfigs(&tapDiscoveryServiceDeltaTapConfigsServer{stream}) +} + +type TapDiscoveryService_DeltaTapConfigsServer interface { + Send(*v31.DeltaDiscoveryResponse) error + Recv() (*v31.DeltaDiscoveryRequest, error) + grpc.ServerStream +} + +type tapDiscoveryServiceDeltaTapConfigsServer struct { + grpc.ServerStream +} + +func (x *tapDiscoveryServiceDeltaTapConfigsServer) Send(m *v31.DeltaDiscoveryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *tapDiscoveryServiceDeltaTapConfigsServer) Recv() (*v31.DeltaDiscoveryRequest, error) { + m := new(v31.DeltaDiscoveryRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _TapDiscoveryService_FetchTapConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v31.DiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TapDiscoveryServiceServer).FetchTapConfigs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/envoy.service.tap.v3.TapDiscoveryService/FetchTapConfigs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TapDiscoveryServiceServer).FetchTapConfigs(ctx, req.(*v31.DiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _TapDiscoveryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.tap.v3.TapDiscoveryService", + HandlerType: (*TapDiscoveryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FetchTapConfigs", + Handler: _TapDiscoveryService_FetchTapConfigs_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTapConfigs", + Handler: _TapDiscoveryService_StreamTapConfigs_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "DeltaTapConfigs", + Handler: _TapDiscoveryService_DeltaTapConfigs_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/tap/v3/tapds.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.validate.go new file mode 100644 index 000000000..2472abd44 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/tap/v3/tapds.pb.validate.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/tap/v3/tapds.proto + +package envoy_service_tap_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _tapds_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on TapResource with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TapResource) Validate() error { + if m == nil { + return nil + } + + if len(m.GetName()) < 1 { + return TapResourceValidationError{ + field: "Name", + reason: "value length must be at least 1 bytes", + } + } + + if v, ok := interface{}(m.GetConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TapResourceValidationError{ + field: "Config", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TapResourceValidationError is the validation error returned by +// TapResource.Validate if the designated constraints aren't met. +type TapResourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TapResourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TapResourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TapResourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TapResourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TapResourceValidationError) ErrorName() string { return "TapResourceValidationError" } + +// Error satisfies the builtin error interface +func (e TapResourceValidationError) 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 %sTapResource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TapResourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TapResourceValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.go new file mode 100644 index 000000000..10261cc2f --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.go @@ -0,0 +1,299 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/trace/v2/trace_service.proto + +package envoy_service_trace_v2 + +import ( + context "context" + fmt "fmt" + v1 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" + _ "github.com/cncf/udpa/go/udpa/annotations" + core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamTracesResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesResponse) Reset() { *m = StreamTracesResponse{} } +func (m *StreamTracesResponse) String() string { return proto.CompactTextString(m) } +func (*StreamTracesResponse) ProtoMessage() {} +func (*StreamTracesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6feca8f22ae39b94, []int{0} +} + +func (m *StreamTracesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesResponse.Unmarshal(m, b) +} +func (m *StreamTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesResponse.Marshal(b, m, deterministic) +} +func (m *StreamTracesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesResponse.Merge(m, src) +} +func (m *StreamTracesResponse) XXX_Size() int { + return xxx_messageInfo_StreamTracesResponse.Size(m) +} +func (m *StreamTracesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesResponse proto.InternalMessageInfo + +type StreamTracesMessage struct { + Identifier *StreamTracesMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + Spans []*v1.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesMessage) Reset() { *m = StreamTracesMessage{} } +func (m *StreamTracesMessage) String() string { return proto.CompactTextString(m) } +func (*StreamTracesMessage) ProtoMessage() {} +func (*StreamTracesMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_6feca8f22ae39b94, []int{1} +} + +func (m *StreamTracesMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesMessage.Unmarshal(m, b) +} +func (m *StreamTracesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesMessage.Marshal(b, m, deterministic) +} +func (m *StreamTracesMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesMessage.Merge(m, src) +} +func (m *StreamTracesMessage) XXX_Size() int { + return xxx_messageInfo_StreamTracesMessage.Size(m) +} +func (m *StreamTracesMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesMessage proto.InternalMessageInfo + +func (m *StreamTracesMessage) GetIdentifier() *StreamTracesMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamTracesMessage) GetSpans() []*v1.Span { + if m != nil { + return m.Spans + } + return nil +} + +type StreamTracesMessage_Identifier struct { + Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesMessage_Identifier) Reset() { *m = StreamTracesMessage_Identifier{} } +func (m *StreamTracesMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamTracesMessage_Identifier) ProtoMessage() {} +func (*StreamTracesMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_6feca8f22ae39b94, []int{1, 0} +} + +func (m *StreamTracesMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamTracesMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamTracesMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesMessage_Identifier.Merge(m, src) +} +func (m *StreamTracesMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamTracesMessage_Identifier.Size(m) +} +func (m *StreamTracesMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesMessage_Identifier proto.InternalMessageInfo + +func (m *StreamTracesMessage_Identifier) GetNode() *core.Node { + if m != nil { + return m.Node + } + return nil +} + +func init() { + proto.RegisterType((*StreamTracesResponse)(nil), "envoy.service.trace.v2.StreamTracesResponse") + proto.RegisterType((*StreamTracesMessage)(nil), "envoy.service.trace.v2.StreamTracesMessage") + proto.RegisterType((*StreamTracesMessage_Identifier)(nil), "envoy.service.trace.v2.StreamTracesMessage.Identifier") +} + +func init() { + proto.RegisterFile("envoy/service/trace/v2/trace_service.proto", fileDescriptor_6feca8f22ae39b94) +} + +var fileDescriptor_6feca8f22ae39b94 = []byte{ + // 369 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xc1, 0x4a, 0xeb, 0x40, + 0x14, 0x86, 0xef, 0xf4, 0xde, 0x96, 0xcb, 0xb4, 0x8b, 0x1a, 0xa5, 0x2d, 0xa1, 0x62, 0x29, 0x0a, + 0x45, 0x65, 0x42, 0x23, 0xfa, 0x00, 0x11, 0x84, 0x2e, 0x94, 0x92, 0x8a, 0x5b, 0x99, 0x26, 0xc7, + 0x32, 0xd0, 0xce, 0x0c, 0x99, 0x69, 0xb0, 0x0b, 0xc1, 0xa5, 0xf8, 0x48, 0x3e, 0x81, 0x5b, 0x1f, + 0xc3, 0x57, 0x70, 0x25, 0x99, 0x49, 0x6a, 0x16, 0x15, 0x74, 0x77, 0x38, 0xe7, 0xff, 0x7f, 0xbe, + 0xf3, 0xe3, 0x43, 0xe0, 0xa9, 0x58, 0x79, 0x0a, 0x92, 0x94, 0x45, 0xe0, 0xe9, 0x84, 0x46, 0xe0, + 0xa5, 0xbe, 0x1d, 0x6e, 0xf3, 0x35, 0x91, 0x89, 0xd0, 0xc2, 0x69, 0x19, 0x2d, 0x29, 0x96, 0x46, + 0x42, 0x52, 0xdf, 0xed, 0xda, 0x0c, 0x2a, 0x59, 0xe6, 0x8c, 0x44, 0x02, 0xde, 0x94, 0xaa, 0xdc, + 0xe5, 0x76, 0x67, 0x42, 0xcc, 0xe6, 0x60, 0xce, 0x94, 0x73, 0xa1, 0xa9, 0x66, 0x82, 0xab, 0xfc, + 0x7a, 0x20, 0x24, 0xf0, 0x08, 0xb8, 0x5a, 0x2a, 0xcf, 0x6c, 0x0a, 0x84, 0xa1, 0x1d, 0x72, 0xd9, + 0xee, 0x32, 0x96, 0xb4, 0x6c, 0x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x63, 0xf4, 0x84, 0xd0, 0xb4, + 0x66, 0x7a, 0x3a, 0xf9, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x38, 0x9d, 0x0d, 0xe6, 0xb2, 0x02, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TraceServiceClient is the client API for TraceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TraceServiceClient interface { + StreamTraces(ctx context.Context, opts ...grpc.CallOption) (TraceService_StreamTracesClient, error) +} + +type traceServiceClient struct { + cc *grpc.ClientConn +} + +func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient { + return &traceServiceClient{cc} +} + +func (c *traceServiceClient) StreamTraces(ctx context.Context, opts ...grpc.CallOption) (TraceService_StreamTracesClient, error) { + stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[0], "/envoy.service.trace.v2.TraceService/StreamTraces", opts...) + if err != nil { + return nil, err + } + x := &traceServiceStreamTracesClient{stream} + return x, nil +} + +type TraceService_StreamTracesClient interface { + Send(*StreamTracesMessage) error + CloseAndRecv() (*StreamTracesResponse, error) + grpc.ClientStream +} + +type traceServiceStreamTracesClient struct { + grpc.ClientStream +} + +func (x *traceServiceStreamTracesClient) Send(m *StreamTracesMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *traceServiceStreamTracesClient) CloseAndRecv() (*StreamTracesResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamTracesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TraceServiceServer is the server API for TraceService service. +type TraceServiceServer interface { + StreamTraces(TraceService_StreamTracesServer) error +} + +// UnimplementedTraceServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTraceServiceServer struct { +} + +func (*UnimplementedTraceServiceServer) StreamTraces(srv TraceService_StreamTracesServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTraces not implemented") +} + +func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) { + s.RegisterService(&_TraceService_serviceDesc, srv) +} + +func _TraceService_StreamTraces_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TraceServiceServer).StreamTraces(&traceServiceStreamTracesServer{stream}) +} + +type TraceService_StreamTracesServer interface { + SendAndClose(*StreamTracesResponse) error + Recv() (*StreamTracesMessage, error) + grpc.ServerStream +} + +type traceServiceStreamTracesServer struct { + grpc.ServerStream +} + +func (x *traceServiceStreamTracesServer) SendAndClose(m *StreamTracesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *traceServiceStreamTracesServer) Recv() (*StreamTracesMessage, error) { + m := new(StreamTracesMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _TraceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.trace.v2.TraceService", + HandlerType: (*TraceServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTraces", + Handler: _TraceService_StreamTraces_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/trace/v2/trace_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.validate.go new file mode 100644 index 000000000..a40d1f1a0 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v2/trace_service.pb.validate.go @@ -0,0 +1,281 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/trace/v2/trace_service.proto + +package envoy_service_trace_v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _trace_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamTracesResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamTracesResponseValidationError is the validation error returned by +// StreamTracesResponse.Validate if the designated constraints aren't met. +type StreamTracesResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesResponseValidationError) ErrorName() string { + return "StreamTracesResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesResponseValidationError) 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 %sStreamTracesResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesResponseValidationError{} + +// Validate checks the field values on StreamTracesMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSpans() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessageValidationError{ + field: fmt.Sprintf("Spans[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamTracesMessageValidationError is the validation error returned by +// StreamTracesMessage.Validate if the designated constraints aren't met. +type StreamTracesMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesMessageValidationError) ErrorName() string { + return "StreamTracesMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesMessageValidationError) 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 %sStreamTracesMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesMessageValidationError{} + +// Validate checks the field values on StreamTracesMessage_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamTracesMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamTracesMessage_IdentifierValidationError is the validation error +// returned by StreamTracesMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamTracesMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesMessage_IdentifierValidationError) ErrorName() string { + return "StreamTracesMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesMessage_IdentifierValidationError) 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 %sStreamTracesMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesMessage_IdentifierValidationError{} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.go new file mode 100644 index 000000000..c661823e7 --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.go @@ -0,0 +1,302 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: envoy/service/trace/v3/trace_service.proto + +package envoy_service_trace_v3 + +import ( + context "context" + fmt "fmt" + v1 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" + _ "github.com/cncf/udpa/go/udpa/annotations" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type StreamTracesResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesResponse) Reset() { *m = StreamTracesResponse{} } +func (m *StreamTracesResponse) String() string { return proto.CompactTextString(m) } +func (*StreamTracesResponse) ProtoMessage() {} +func (*StreamTracesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_16156617a0f04886, []int{0} +} + +func (m *StreamTracesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesResponse.Unmarshal(m, b) +} +func (m *StreamTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesResponse.Marshal(b, m, deterministic) +} +func (m *StreamTracesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesResponse.Merge(m, src) +} +func (m *StreamTracesResponse) XXX_Size() int { + return xxx_messageInfo_StreamTracesResponse.Size(m) +} +func (m *StreamTracesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesResponse proto.InternalMessageInfo + +type StreamTracesMessage struct { + Identifier *StreamTracesMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + Spans []*v1.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesMessage) Reset() { *m = StreamTracesMessage{} } +func (m *StreamTracesMessage) String() string { return proto.CompactTextString(m) } +func (*StreamTracesMessage) ProtoMessage() {} +func (*StreamTracesMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_16156617a0f04886, []int{1} +} + +func (m *StreamTracesMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesMessage.Unmarshal(m, b) +} +func (m *StreamTracesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesMessage.Marshal(b, m, deterministic) +} +func (m *StreamTracesMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesMessage.Merge(m, src) +} +func (m *StreamTracesMessage) XXX_Size() int { + return xxx_messageInfo_StreamTracesMessage.Size(m) +} +func (m *StreamTracesMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesMessage proto.InternalMessageInfo + +func (m *StreamTracesMessage) GetIdentifier() *StreamTracesMessage_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (m *StreamTracesMessage) GetSpans() []*v1.Span { + if m != nil { + return m.Spans + } + return nil +} + +type StreamTracesMessage_Identifier struct { + Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamTracesMessage_Identifier) Reset() { *m = StreamTracesMessage_Identifier{} } +func (m *StreamTracesMessage_Identifier) String() string { return proto.CompactTextString(m) } +func (*StreamTracesMessage_Identifier) ProtoMessage() {} +func (*StreamTracesMessage_Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_16156617a0f04886, []int{1, 0} +} + +func (m *StreamTracesMessage_Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StreamTracesMessage_Identifier.Unmarshal(m, b) +} +func (m *StreamTracesMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StreamTracesMessage_Identifier.Marshal(b, m, deterministic) +} +func (m *StreamTracesMessage_Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamTracesMessage_Identifier.Merge(m, src) +} +func (m *StreamTracesMessage_Identifier) XXX_Size() int { + return xxx_messageInfo_StreamTracesMessage_Identifier.Size(m) +} +func (m *StreamTracesMessage_Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_StreamTracesMessage_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_StreamTracesMessage_Identifier proto.InternalMessageInfo + +func (m *StreamTracesMessage_Identifier) GetNode() *v3.Node { + if m != nil { + return m.Node + } + return nil +} + +func init() { + proto.RegisterType((*StreamTracesResponse)(nil), "envoy.service.trace.v3.StreamTracesResponse") + proto.RegisterType((*StreamTracesMessage)(nil), "envoy.service.trace.v3.StreamTracesMessage") + proto.RegisterType((*StreamTracesMessage_Identifier)(nil), "envoy.service.trace.v3.StreamTracesMessage.Identifier") +} + +func init() { + proto.RegisterFile("envoy/service/trace/v3/trace_service.proto", fileDescriptor_16156617a0f04886) +} + +var fileDescriptor_16156617a0f04886 = []byte{ + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x41, 0x6b, 0xd4, 0x40, + 0x18, 0x75, 0xa2, 0x2d, 0x32, 0xed, 0xa1, 0x46, 0xd1, 0x12, 0xd4, 0xd6, 0xa2, 0xb0, 0xd8, 0x3a, + 0xc3, 0x66, 0xa9, 0xca, 0xe2, 0x29, 0x07, 0x41, 0x41, 0x29, 0x59, 0xf1, 0x2a, 0xd3, 0xe4, 0x6b, + 0x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xeb, 0x6d, 0x39, + 0x93, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xac, 0x38, 0x1b, 0xe9, 0x81, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// 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.SupportPackageIsVersion4 + +// TraceServiceClient is the client API for TraceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TraceServiceClient interface { + StreamTraces(ctx context.Context, opts ...grpc.CallOption) (TraceService_StreamTracesClient, error) +} + +type traceServiceClient struct { + cc *grpc.ClientConn +} + +func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient { + return &traceServiceClient{cc} +} + +func (c *traceServiceClient) StreamTraces(ctx context.Context, opts ...grpc.CallOption) (TraceService_StreamTracesClient, error) { + stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[0], "/envoy.service.trace.v3.TraceService/StreamTraces", opts...) + if err != nil { + return nil, err + } + x := &traceServiceStreamTracesClient{stream} + return x, nil +} + +type TraceService_StreamTracesClient interface { + Send(*StreamTracesMessage) error + CloseAndRecv() (*StreamTracesResponse, error) + grpc.ClientStream +} + +type traceServiceStreamTracesClient struct { + grpc.ClientStream +} + +func (x *traceServiceStreamTracesClient) Send(m *StreamTracesMessage) error { + return x.ClientStream.SendMsg(m) +} + +func (x *traceServiceStreamTracesClient) CloseAndRecv() (*StreamTracesResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamTracesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TraceServiceServer is the server API for TraceService service. +type TraceServiceServer interface { + StreamTraces(TraceService_StreamTracesServer) error +} + +// UnimplementedTraceServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTraceServiceServer struct { +} + +func (*UnimplementedTraceServiceServer) StreamTraces(srv TraceService_StreamTracesServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTraces not implemented") +} + +func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) { + s.RegisterService(&_TraceService_serviceDesc, srv) +} + +func _TraceService_StreamTraces_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TraceServiceServer).StreamTraces(&traceServiceStreamTracesServer{stream}) +} + +type TraceService_StreamTracesServer interface { + SendAndClose(*StreamTracesResponse) error + Recv() (*StreamTracesMessage, error) + grpc.ServerStream +} + +type traceServiceStreamTracesServer struct { + grpc.ServerStream +} + +func (x *traceServiceStreamTracesServer) SendAndClose(m *StreamTracesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *traceServiceStreamTracesServer) Recv() (*StreamTracesMessage, error) { + m := new(StreamTracesMessage) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _TraceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "envoy.service.trace.v3.TraceService", + HandlerType: (*TraceServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTraces", + Handler: _TraceService_StreamTraces_Handler, + ClientStreams: true, + }, + }, + Metadata: "envoy/service/trace/v3/trace_service.proto", +} diff --git a/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.validate.go b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.validate.go new file mode 100644 index 000000000..b62cb78af --- /dev/null +++ b/vendor/github.com/envoyproxy/go-control-plane/envoy/service/trace/v3/trace_service.pb.validate.go @@ -0,0 +1,281 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: envoy/service/trace/v3/trace_service.proto + +package envoy_service_trace_v3 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// 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) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _trace_service_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on StreamTracesResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// StreamTracesResponseValidationError is the validation error returned by +// StreamTracesResponse.Validate if the designated constraints aren't met. +type StreamTracesResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesResponseValidationError) ErrorName() string { + return "StreamTracesResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesResponseValidationError) 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 %sStreamTracesResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesResponseValidationError{} + +// Validate checks the field values on StreamTracesMessage with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesMessage) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIdentifier()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessageValidationError{ + field: "Identifier", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSpans() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessageValidationError{ + field: fmt.Sprintf("Spans[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// StreamTracesMessageValidationError is the validation error returned by +// StreamTracesMessage.Validate if the designated constraints aren't met. +type StreamTracesMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesMessageValidationError) ErrorName() string { + return "StreamTracesMessageValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesMessageValidationError) 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 %sStreamTracesMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesMessageValidationError{} + +// Validate checks the field values on StreamTracesMessage_Identifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StreamTracesMessage_Identifier) Validate() error { + if m == nil { + return nil + } + + if m.GetNode() == nil { + return StreamTracesMessage_IdentifierValidationError{ + field: "Node", + reason: "value is required", + } + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StreamTracesMessage_IdentifierValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StreamTracesMessage_IdentifierValidationError is the validation error +// returned by StreamTracesMessage_Identifier.Validate if the designated +// constraints aren't met. +type StreamTracesMessage_IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StreamTracesMessage_IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StreamTracesMessage_IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StreamTracesMessage_IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StreamTracesMessage_IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StreamTracesMessage_IdentifierValidationError) ErrorName() string { + return "StreamTracesMessage_IdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e StreamTracesMessage_IdentifierValidationError) 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 %sStreamTracesMessage_Identifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StreamTracesMessage_IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StreamTracesMessage_IdentifierValidationError{} diff --git a/vendor/modules.txt b/vendor/modules.txt index 6b6947fb0..c5a504f27 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -117,6 +117,8 @@ github.com/docker/go-connections/sockets # github.com/elazarl/go-bindata-assetfs v0.0.0-20160803192304-e1a2a7ec64b0 github.com/elazarl/go-bindata-assetfs # github.com/envoyproxy/go-control-plane v0.9.5 +github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha +github.com/envoyproxy/go-control-plane/envoy/admin/v3 github.com/envoyproxy/go-control-plane/envoy/annotations github.com/envoyproxy/go-control-plane/envoy/api/v2 github.com/envoyproxy/go-control-plane/envoy/api/v2/auth @@ -124,36 +126,216 @@ github.com/envoyproxy/go-control-plane/envoy/api/v2/cluster github.com/envoyproxy/go-control-plane/envoy/api/v2/core github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint github.com/envoyproxy/go-control-plane/envoy/api/v2/listener +github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit github.com/envoyproxy/go-control-plane/envoy/api/v2/route +github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v2 github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3 +github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v2 +github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3 +github.com/envoyproxy/go-control-plane/envoy/config/cluster/aggregate/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/cluster/dynamic_forward_proxy/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/cluster/redis github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3 +github.com/envoyproxy/go-control-plane/envoy/config/common/dynamic_forward_proxy/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/common/tap/v2alpha github.com/envoyproxy/go-control-plane/envoy/config/core/v3 github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3 github.com/envoyproxy/go-control-plane/envoy/config/filter/accesslog/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/dubbo/router/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/adaptive_concurrency/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_lambda/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/aws_request_signing/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/buffer/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cache/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/cors/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamic_forward_proxy/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/dynamo/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ext_authz/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/fault/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_bridge/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_http1_reverse_bridge/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_stats/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/grpc_web/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/gzip/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/header_to_metadata/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/health_check/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/ip_tagging/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/jwt_authn/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/lua/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/on_demand/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/original_src/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rate_limit/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/http/rbac/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/router/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/squash/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/tap/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/http/transcoder/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/http_inspector/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_dst/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/original_src/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/proxy_protocol/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/listener/tls_inspector/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/client_ssl_auth/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/direct_response/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/dubbo_proxy/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/echo/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/ext_authz/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/kafka_broker/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mysql_proxy/v1alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rbac/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/redis_proxy/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/network/sni_cluster/v2 github.com/envoyproxy/go-control-plane/envoy/config/filter/network/tcp_proxy/v2 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/thrift_proxy/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/network/zookeeper_proxy/v1alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/rate_limit/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/thrift/router/v2alpha1 +github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/dns_filter/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/filter/udp/udp_proxy/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/grpc_credential/v3 +github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2 github.com/envoyproxy/go-control-plane/envoy/config/listener/v2 github.com/envoyproxy/go-control-plane/envoy/config/listener/v3 github.com/envoyproxy/go-control-plane/envoy/config/metrics/v2 github.com/envoyproxy/go-control-plane/envoy/config/metrics/v3 +github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/overload/v3 +github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2 +github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3 github.com/envoyproxy/go-control-plane/envoy/config/rbac/v2 github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3 +github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/fixed_heap/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_canary_hosts/v2 +github.com/envoyproxy/go-control-plane/envoy/config/retry/omit_host_metadata/v2 +github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_hosts/v2 +github.com/envoyproxy/go-control-plane/envoy/config/retry/previous_priorities github.com/envoyproxy/go-control-plane/envoy/config/route/v3 +github.com/envoyproxy/go-control-plane/envoy/config/tap/v3 github.com/envoyproxy/go-control-plane/envoy/config/trace/v2 +github.com/envoyproxy/go-control-plane/envoy/config/trace/v2alpha github.com/envoyproxy/go-control-plane/envoy/config/trace/v3 +github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/alts/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/raw_buffer/v2 +github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alpha +github.com/envoyproxy/go-control-plane/envoy/config/wasm/v2alpha +github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2 +github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3 +github.com/envoyproxy/go-control-plane/envoy/data/cluster/v2alpha +github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3 +github.com/envoyproxy/go-control-plane/envoy/data/core/v2alpha +github.com/envoyproxy/go-control-plane/envoy/data/core/v3 +github.com/envoyproxy/go-control-plane/envoy/data/dns/v2alpha +github.com/envoyproxy/go-control-plane/envoy/data/dns/v3 +github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha +github.com/envoyproxy/go-control-plane/envoy/data/tap/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/file/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/grpc/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/dynamic_forward_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/redis/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/common/dynamic_forward_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/common/tap/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filter/udp/dns_filter/v3alpha +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/adaptive_concurrency/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_request_signing/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/buffer/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3alpha +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/csrf/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamic_forward_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/dynamo/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_bridge/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_http1_reverse_bridge/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_json_transcoder/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_stats/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/grpc_web/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gzip/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/header_to_metadata/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/health_check/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/on_demand/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/original_src/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ratelimit/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/rbac/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/squash/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/tap/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/http_inspector/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_dst/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/tls_inspector/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/client_ssl_auth/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/direct_response/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/router/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/dubbo_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/echo/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ext_authz/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/kafka_broker/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/local_ratelimit/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mongo_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/mysql_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/rbac/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/redis_proxy/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/sni_cluster/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/tcp_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/zookeeper_proxy/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/retry/host/omit_host_metadata/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/retry/priority/previous_priorities/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/alts/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tap/v3 github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3 +github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3 +github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2 +github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v3 +github.com/envoyproxy/go-control-plane/envoy/service/auth/v2 +github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha +github.com/envoyproxy/go-control-plane/envoy/service/auth/v3 +github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3 github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2 github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3 +github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3 +github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v2alpha +github.com/envoyproxy/go-control-plane/envoy/service/event_reporting/v3 +github.com/envoyproxy/go-control-plane/envoy/service/health/v3 +github.com/envoyproxy/go-control-plane/envoy/service/listener/v3 +github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2 +github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3 +github.com/envoyproxy/go-control-plane/envoy/service/metrics/v2 +github.com/envoyproxy/go-control-plane/envoy/service/metrics/v3 +github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v2 +github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3 +github.com/envoyproxy/go-control-plane/envoy/service/route/v3 +github.com/envoyproxy/go-control-plane/envoy/service/runtime/v3 +github.com/envoyproxy/go-control-plane/envoy/service/secret/v3 +github.com/envoyproxy/go-control-plane/envoy/service/status/v2 +github.com/envoyproxy/go-control-plane/envoy/service/status/v3 +github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha +github.com/envoyproxy/go-control-plane/envoy/service/tap/v3 +github.com/envoyproxy/go-control-plane/envoy/service/trace/v2 +github.com/envoyproxy/go-control-plane/envoy/service/trace/v3 github.com/envoyproxy/go-control-plane/envoy/type github.com/envoyproxy/go-control-plane/envoy/type/matcher github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3