xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary (#10131)

This ensures that if someone does include some extension Consul does not currently make use of, that extension is actually usable. Without linking these envoy protobufs into the main binary it can't round trip the escape hatches to send them down to envoy.

Whenenver the go-control-plane library is upgraded next we just have to re-run 'make envoy-library'.
This commit is contained in:
R.B. Boyer 2021-04-29 14:58:26 -05:00 committed by GitHub
parent 91bee6246f
commit 06cd0aaa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
440 changed files with 113901 additions and 0 deletions

3
.changelog/10131.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary
```

View File

@ -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

233
agent/xds/z_xds_packages.go Normal file
View File

@ -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"
)

View File

@ -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)
})
}
}

View File

@ -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 ../.. # <ROOT>
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

View File

@ -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,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 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,
}

View File

@ -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{}

View File

@ -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, 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 0xab, 0x5c, 0xd4, 0xf5,
0x83, 0xfa, 0xf0, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xed, 0x06, 0x8d, 0x4c, 0x06, 0x00,
0x00,
}

View File

@ -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{}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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,
}

View File

@ -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{}

View File

@ -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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, 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,
}

View File

@ -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{}

View File

@ -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, 0x4c, 0xcd, 0x2b, 0xcb,
0xaf, 0xd4, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x2f, 0x33, 0x4a, 0xcc, 0x29, 0xc8, 0x48, 0xd4,
0xcf, 0x4d, 0x2d, 0x29, 0xca, 0x4c, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x06,
0x2b, 0xd1, 0x03, 0x2b, 0xd1, 0x83, 0x2a, 0x91, 0x92, 0x2d, 0x4d, 0x29, 0x48, 0xd4, 0x4f, 0xcc,
0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x85,
0xea, 0x51, 0x9a, 0xc2, 0xc8, 0xc5, 0x13, 0x9c, 0x99, 0x5b, 0x90, 0x93, 0xea, 0x0b, 0x36, 0x4b,
0xc8, 0x8a, 0x8b, 0xa5, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0xcf, 0x48, 0x4d,
0x0f, 0x8b, 0x99, 0x7a, 0xc8, 0x1a, 0xf4, 0x42, 0x2a, 0x0b, 0x52, 0x83, 0xc0, 0x7a, 0x84, 0x44,
0xb8, 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0x25, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c,
0x21, 0x21, 0x2e, 0x96, 0xbc, 0xc4, 0xdc, 0x54, 0x09, 0x66, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30,
0x5b, 0x49, 0x8e, 0x8b, 0x05, 0xa4, 0x4f, 0x88, 0x9b, 0x8b, 0xdd, 0xd9, 0x3f, 0xd4, 0x2f, 0xc4,
0x35, 0x48, 0x80, 0x41, 0x88, 0x93, 0x8b, 0xd5, 0xdd, 0x31, 0xd4, 0xdd, 0x55, 0x80, 0xd1, 0xc9,
0x7a, 0x57, 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,
}

View File

@ -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{}

View File

@ -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, 0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, 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,
}

View File

@ -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{}

View File

@ -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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 0x41, 0xce, 0x59, 0xac, 0xc9, 0x23, 0x10, 0x6c, 0x3a, 0xeb, 0x85, 0x33, 0xe2, 0xd6,
0xf4, 0xb6, 0x31, 0xe5, 0x23, 0xc3, 0xa5, 0x86, 0x95, 0xfc, 0xe1, 0xd6, 0xfc, 0x6e, 0x23, 0xc4,
0x13, 0x57, 0x7b, 0xea, 0xd9, 0xde, 0x44, 0x8d, 0xd9, 0xeb, 0xab, 0xa1, 0xb9, 0xe1, 0xe7, 0xde,
0x3d, 0xf8, 0xfd, 0xc2, 0xab, 0x6c, 0x7f, 0x82, 0xaa, 0xb6, 0xc6, 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,
}

View File

@ -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{}

View File

@ -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,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 0x9f, 0x00, 0x00, 0x00, 0xff,
0xff, 0x0f, 0x93, 0xc7, 0xd5, 0x59, 0x01, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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, 0x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 0x38, 0xba, 0xa8, 0x11, 0x9a, 0x13, 0xb5, 0xeb,
0x7b, 0xf5, 0x87, 0x17, 0x12, 0x03, 0xf6, 0x9f, 0x1a, 0xf7, 0x5d, 0x38, 0xd9, 0xe3, 0xfe, 0xda,
0x6d, 0xe7, 0xab, 0x05, 0xb7, 0x77, 0x99, 0x41, 0x08, 0x54, 0x63, 0xae, 0xca, 0x2d, 0xbc, 0xfd,
0x2f, 0x30, 0x1f, 0x83, 0xe5, 0x92, 0x95, 0xe6, 0x1b, 0x2c, 0x97, 0x8c, 0xb4, 0x01, 0x58, 0x16,
0x62, 0x1c, 0x4b, 0xaa, 0x8c, 0xdd, 0x25, 0xd5, 0x60, 0xd9, 0xa0, 0x84, 0xfa, 0xbe, 0x69, 0xe8,
0x09, 0xb8, 0xbb, 0x1a, 0xda, 0x55, 0x79, 0x58, 0x87, 0x9a, 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,
}

View File

@ -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{}

View File

@ -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, 0x7f,
0x03, 0x57, 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31, 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,
}

View File

@ -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{}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4e, 0xf3,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07, 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,
}

View File

@ -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{}

View File

@ -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, 0x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, 0x77, 0x29, 0x1e, 0x17, 0x9c, 0x1e,
0x93, 0xed, 0xdf, 0xf8, 0x49, 0x21, 0x06, 0x6d, 0x1b, 0x6e, 0x2d, 0xe1, 0x8d, 0x42, 0xa4, 0x67,
0x84, 0x1a, 0x61, 0x20, 0x8f, 0x4d, 0xa6, 0x10, 0xd2, 0x38, 0x81, 0x24, 0xc3, 0x60, 0xdd, 0x9d,
0xb4, 0xe6, 0xc1, 0x8a, 0xeb, 0x86, 0xd3, 0x73, 0xb2, 0xe7, 0x6a, 0x99, 0xd5, 0x9a, 0x25, 0x90,
0xc7, 0xd3, 0xda, 0xa0, 0x0e, 0x7c, 0xdb, 0xbb, 0x4b, 0x93, 0x85, 0x1a, 0x37, 0xe6, 0x6a, 0xf8,
0xfe, 0xf9, 0x7a, 0x30, 0x20, 0xbd, 0x95, 0x41, 0x2f, 0x20, 0x97, 0x19, 0x84, 0x6e, 0x8f, 0xf1,
0xe5, 0xc7, 0xcb, 0xd7, 0xb7, 0xef, 0x75, 0x3d, 0x32, 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,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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, 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 0xcb, 0x08, 0x3f, 0x35, 0x5c, 0x65, 0xf0, 0x08, 0xdc, 0x6a,
0x2c, 0xb5, 0xea, 0x21, 0x9e, 0xa6, 0xba, 0xb3, 0x4c, 0x73, 0x07, 0xd5, 0xe7, 0x57, 0xba, 0x8a,
0xca, 0xe3, 0x0f, 0xbc, 0x2b, 0xf0, 0xfb, 0xc4, 0x2b, 0x35, 0x1f, 0xa2, 0x8a, 0x3d, 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,
}

View File

@ -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{}

View File

@ -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,
0x09, 0xb4, 0x9b, 0x63, 0x1c, 0xc4, 0xed, 0x28, 0xdd, 0x8f, 0xc7, 0x6b, 0x3d, 0x03, 0xd7, 0x3c,
0xb1, 0x4d, 0x83, 0xb7, 0x39, 0x8a, 0x1f, 0xc1, 0xd1, 0x8f, 0xe1, 0x2e, 0xb8, 0xfa, 0x75, 0x6e,
0x92, 0x36, 0x77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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,
}

View File

@ -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{}

View File

@ -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, 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x4d, 0x5b, 0x39, 0xaf, 0xda, 0x99, 0xa3, 0xeb, 0x6e, 0x5d, 0xd3, 0xec,
0x23, 0x00, 0x00, 0xff, 0xff, 0x22, 0x3d, 0x2c, 0xa7, 0xc0, 0x01, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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, 0x04, 0xa4, 0x64, 0x9c, 0x04, 0x55, 0x2b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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,
}

View File

@ -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{}

View File

@ -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, 0x04, 0x76, 0xbe, 0x81, 0x5b, 0x9f, 0xc5, 0x27, 0x70, 0xeb, 0x0b,
0xf8, 0x10, 0x2e, 0x5d, 0x18, 0x33, 0xed, 0x80, 0x26, 0xc6, 0xb8, 0x9b, 0xe9, 0xf9, 0x9d, 0x93,
0x7b, 0xcf, 0x45, 0xa7, 0x4c, 0x66, 0xb0, 0x22, 0x21, 0xc8, 0x48, 0x70, 0x42, 0xc3, 0x90, 0x69,
0x1d, 0x03, 0x27, 0x59, 0x9f, 0x44, 0x22, 0x66, 0x38, 0x51, 0x60, 0xc0, 0xdf, 0xb7, 0x14, 0x76,
0x14, 0xde, 0x50, 0x38, 0xeb, 0xb7, 0x0f, 0x39, 0x00, 0x8f, 0x19, 0xb1, 0xe0, 0x2c, 0x8d, 0x88,
0x36, 0x2a, 0x0d, 0x8d, 0x33, 0xb6, 0x8f, 0xd3, 0x79, 0x42, 0x09, 0x95, 0x12, 0x0c, 0x35, 0x02,
0xa4, 0x26, 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0xe3, 0x8d, 0xbd, 0x59, 0xd5, 0xce, 0x39, 0xf8,
0x0c, 0x00, 0x00, 0xff, 0xff, 0x11, 0x00, 0x44, 0x6a, 0x0f, 0x02, 0x00, 0x00,
}

View File

@ -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{}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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,
}

View File

@ -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{}

View File

@ -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, 0x2d, 0x2e, 0x49, 0x2d,
0xd2, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, 0x4c, 0x8e, 0x4f, 0xcb, 0x2f, 0x2a, 0x4f, 0x2c, 0x4a,
0x89, 0x2f, 0x28, 0xca, 0xaf, 0xa8, 0xd4, 0x2f, 0x33, 0x4a, 0xcc, 0x29, 0xc8, 0x48, 0x84, 0xa9,
0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x32, 0x02, 0x9b, 0xa0, 0x07, 0x31, 0x41, 0x0f, 0x26,
0x87, 0xd5, 0x04, 0x3d, 0xa8, 0x09, 0x52, 0x8e, 0xa8, 0xb6, 0xe6, 0xe7, 0xe6, 0xe6, 0xe7, 0x11,
0xb0, 0x34, 0x25, 0xaf, 0x38, 0x3e, 0x39, 0x31, 0x39, 0x23, 0x15, 0x62, 0xad, 0x94, 0x5c, 0x69,
0x4a, 0x41, 0xa2, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, 0x66, 0x7e, 0x5e, 0xb1, 0x7e,
0x6e, 0x66, 0x7a, 0x51, 0x62, 0x09, 0x4c, 0x5e, 0x16, 0x43, 0xbe, 0xb8, 0x24, 0xb1, 0xa4, 0xb4,
0x18, 0x2a, 0x2d, 0x5e, 0x96, 0x98, 0x93, 0x99, 0x92, 0x58, 0x92, 0xaa, 0x0f, 0x63, 0x40, 0x24,
0x94, 0xda, 0x18, 0xb9, 0x78, 0x9d, 0x21, 0x9e, 0x70, 0x06, 0x3b, 0x4f, 0xa8, 0x94, 0x4b, 0x00,
0x6e, 0x79, 0x3c, 0xc4, 0xc9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x8e, 0x7a, 0xa8, 0x7e,
0x07, 0xfb, 0x03, 0xbf, 0xd7, 0xf5, 0x5c, 0xf2, 0x8a, 0x9d, 0x41, 0x26, 0x41, 0x0c, 0x77, 0xe2,
0xf8, 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,
}

View File

@ -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{}

View File

@ -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, 0x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, 0xe6, 0x12, 0x4a, 0x23, 0x24, 0xc8, 0x13, 0x84, 0xb1, 0x23,
0x5c, 0x74, 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,
}

View File

@ -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{}

View File

@ -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, 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xf9, 0xf9, 0x71,
0xd4, 0x4d, 0x99, 0x8c, 0xac, 0x3f, 0x02, 0x45, 0xbd, 0x27, 0x6e, 0x7b, 0xc6, 0xa5, 0x8a, 0x95,
0x2a, 0xfc, 0xc6, 0x79, 0x28, 0xfd, 0xb5, 0x23, 0xe4, 0xec, 0x6e, 0x45, 0x3b, 0xda, 0xf4, 0x5a,
0x15, 0x5e, 0xe8, 0x76, 0x4a, 0x58, 0xc4, 0x7a, 0x2b, 0xfd, 0xa6, 0x01, 0xdc, 0x3e, 0x05, 0x78,
0xf3, 0x82, 0xa9, 0x51, 0xf0, 0x16, 0x8a, 0x9a, 0x9a, 0xbe, 0x76, 0x9d, 0xc1, 0x56, 0xd4, 0x2e,
0x61, 0xf1, 0x5c, 0xdb, 0xbc, 0x77, 0xae, 0xaf, 0x63, 0x65, 0x90, 0x17, 0xb5, 0xa0, 0x27, 0xe3,
0xb5, 0x0c, 0xf2, 0xde, 0xd9, 0xd5, 0x1d, 0x0b, 0x12, 0x5d, 0x4f, 0x99, 0xdc, 0xb3, 0x84, 0x63,
0xc7, 0xe1, 0x57, 0xf4, 0xe7, 0xdb, 0xdf, 0x2f, 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,
}

View File

@ -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{}

View File

@ -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, 0x4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, 0xff, 0xff,
0x6a, 0x4b, 0x5b, 0x15, 0x54, 0x03, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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, 0x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6a, 0xc8, 0xf1, 0x87, 0x49, 0x9a, 0xa9, 0x18, 0x2a, 0xde,
0x8d, 0x73, 0xaf, 0xd2, 0xb3, 0x3b, 0x96, 0xbf, 0xab, 0x5a, 0x2f, 0x26, 0x69, 0xb6, 0xde, 0x88,
0xa2, 0x79, 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,
}

View File

@ -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{}

View File

@ -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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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,
}

View File

@ -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{}

View File

@ -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, 0x9b, 0xb4, 0xd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 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,
}

View File

@ -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{}

View File

@ -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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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,
}

View File

@ -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{}

View File

@ -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, 0x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x00, 0xff, 0xff, 0x53, 0x16, 0x8e, 0x67, 0x55, 0x02, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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, 0xc3, 0x35, 0x49,
0x38, 0x5b, 0xe5, 0x6b, 0xb2, 0xca, 0x0b, 0x05, 0x82, 0x64, 0x4a, 0x55, 0x24, 0xa1, 0x49, 0x06,
0xa4, 0x09, 0x69, 0x51, 0x65, 0xd4, 0xbe, 0x70, 0x25, 0xb8, 0xe2, 0xfe, 0x23, 0x83, 0xc1, 0x16,
0x83, 0x2d, 0x06, 0xb7, 0x18, 0x6c, 0xab, 0x1c, 0x66, 0x74, 0x6a, 0xb9, 0x69, 0x95, 0x93, 0x26,
0x24, 0x82, 0xd7, 0x0a, 0xec, 0x6f, 0x9c, 0xf0, 0xb2, 0xe2, 0x0c, 0x98, 0x92, 0x96, 0x72, 0x74,
0xcf, 0x96, 0x2a, 0x5d, 0x01, 0x29, 0xa9, 0x4a, 0x32, 0x10, 0x44, 0x2a, 0x91, 0xb3, 0xb5, 0x2b,
0x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e5, 0xae, 0x39, 0xe5, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xa0, 0x89, 0x9b, 0x1c,
0x04, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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, 0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x0c, 0x6d, 0x81, 0xd5, 0xb2,
0x49, 0x64, 0xdb, 0x82, 0x4c, 0x83, 0xf3, 0x1c, 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,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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,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, 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,
}

View File

@ -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{}

View File

@ -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, 0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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,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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, 0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, 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,
}

View File

@ -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{}

View File

@ -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, 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e6, 0x09, 0x59,
0xd7, 0x3a, 0xed, 0x58, 0xe0, 0xa3, 0x1b, 0x43, 0x04, 0xa1, 0x5b, 0x18, 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,
}

View File

@ -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{}

View File

@ -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 byt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xc5, 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,
}

View File

@ -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{}

View File

@ -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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, 0x06, 0x00, 0x00, 0xff, 0xff, 0x82, 0xa5, 0x64, 0x26, 0x30,
0x02, 0x00, 0x00,
}

View File

@ -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{}

View File

@ -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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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,
}

View File

@ -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{}

View File

@ -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,
}

View File

@ -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{}

View File

@ -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, 0xc6, 0xd9, 0xba, 0x2b, 0x39, 0xbb, 0xd6, 0x7a, 0xe3, 0x34, 0x3d, 0x21, 0x5e, 0x80,
0x2b, 0xcf, 0xc2, 0x13, 0x70, 0x45, 0xe2, 0x49, 0x38, 0xf6, 0x80, 0x90, 0xd7, 0x76, 0x13, 0x5a,
0xaa, 0x96, 0x53, 0x62, 0xff, 0xfe, 0xcc, 0xcc, 0x6f, 0xc6, 0xe0, 0x25, 0x61, 0x19, 0x9f, 0xd9,
0x21, 0x67, 0xa7, 0x34, 0xb2, 0x4f, 0x69, 0x2c, 0x89, 0xb0, 0xcf, 0xa4, 0x4c, 0xec, 0xe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x93, 0x39, 0x57, 0x01, 0x73, 0xe1, 0x2f, 0xb8, 0x74, 0x76, 0x80, 0x71, 0x7d, 0xe5, 0x1b,
0x16, 0x68, 0xe4, 0x5b, 0x87, 0x6d, 0xb0, 0xbc, 0xe7, 0xf5, 0x76, 0x4f, 0xfa, 0x03, 0xe3, 0x3f,
0xd8, 0x02, 0x0d, 0xd7, 0x3b, 0x1e, 0x18, 0x1a, 0xd4, 0xc1, 0xd2, 0xf1, 0x91, 0xe7, 0xed, 0x19,
0xb5, 0x8d, 0x1e, 0x58, 0xfb, 0xcb, 0xe2, 0xfe, 0x14, 0xae, 0x80, 0x56, 0xef, 0xb0, 0x3f, 0xf0,
0x7c, 0x6f, 0xcf, 0xd0, 0x72, 0xe8, 0xe0, 0xa4, 0xd7, 0x7b, 0xbb, 0xfb, 0xce, 0xa8, 0xc1, 0x65,
0x50, 0xf7, 0xfb, 0x9e, 0x51, 0x77, 0xc5, 0xcf, 0x2f, 0xbf, 0x3e, 0x2f, 0x3d, 0x87, 0x9b, 0xc5,
0x30, 0xe4, 0x5c, 0x12, 0x96, 0x3b, 0xa6, 0xe5, 0x40, 0xe9, 0xe2, 0xc5, 0x6c, 0x7d, 0xfd, 0xf8,
0xed, 0x7b, 0xb3, 0x66, 0x68, 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,
}

View File

@ -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{}

View File

@ -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, 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0xfa, 0xf7, 0x60, 0x1b, 0x5f, 0xde, 0x1d, 0x7d, 0x73, 0x9d,
0x2a, 0xc2, 0x8f, 0x63, 0x61, 0x33, 0x49, 0xa4, 0x38, 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,
}

Some files were not shown because too many files have changed in this diff Show More