google.golang.org/grpc@v1.62.1/xds/internal/xdsclient/xdsresource/version/version.go (about) 1 /* 2 * 3 * Copyright 2020 gRPC authors. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 */ 18 19 // Package version defines constants to distinguish between supported xDS API 20 // versions. 21 package version 22 23 // Resource URLs. We need to be able to accept either version of the resource 24 // regardless of the version of the transport protocol in use. 25 const ( 26 googleapiPrefix = "type.googleapis.com/" 27 28 V3ListenerType = "envoy.config.listener.v3.Listener" 29 V3RouteConfigType = "envoy.config.route.v3.RouteConfiguration" 30 V3ClusterType = "envoy.config.cluster.v3.Cluster" 31 V3EndpointsType = "envoy.config.endpoint.v3.ClusterLoadAssignment" 32 33 V3ResourceWrapperURL = googleapiPrefix + "envoy.service.discovery.v3.Resource" 34 V3ListenerURL = googleapiPrefix + V3ListenerType 35 V3RouteConfigURL = googleapiPrefix + V3RouteConfigType 36 V3ClusterURL = googleapiPrefix + V3ClusterType 37 V3EndpointsURL = googleapiPrefix + V3EndpointsType 38 V3HTTPConnManagerURL = googleapiPrefix + "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager" 39 V3UpstreamTLSContextURL = googleapiPrefix + "envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext" 40 V3DownstreamTLSContextURL = googleapiPrefix + "envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext" 41 )