grpc: google.golang.org/grpc/xds/internal/version Index | Files

package version

import "google.golang.org/grpc/xds/internal/version"

Package version defines constants to distinguish between supported xDS API versions.

Index

Package Files

version.go

Constants

const (
    V2ListenerURL        = "type.googleapis.com/envoy.api.v2.Listener"
    V2RouteConfigURL     = "type.googleapis.com/envoy.api.v2.RouteConfiguration"
    V2ClusterURL         = "type.googleapis.com/envoy.api.v2.Cluster"
    V2EndpointsURL       = "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment"
    V2HTTPConnManagerURL = "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager"

    V3ListenerURL           = "type.googleapis.com/envoy.config.listener.v3.Listener"
    V3RouteConfigURL        = "type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
    V3ClusterURL            = "type.googleapis.com/envoy.config.cluster.v3.Cluster"
    V3EndpointsURL          = "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment"
    V3HTTPConnManagerURL    = "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v3.HttpConnectionManager"
    V3UpstreamTLSContextURL = "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext"
)

Resource URLs. We need to be able to accept either version of the resource regardless of the version of the transport protocol in use.

type TransportAPI Uses

type TransportAPI int

TransportAPI refers to the API version for xDS transport protocol. This describes the xDS gRPC endpoint and version of DiscoveryRequest/Response used on the wire.

const (
    // TransportV2 refers to the v2 xDS transport protocol.
    TransportV2 TransportAPI = iota
    // TransportV3 refers to the v3 xDS transport protocol.
    TransportV3
)

Package version is imported by 8 packages. Updated 2020-10-16. Refresh now. Tools for package owners.