Documentation

Overview

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

Index

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.v2.HttpConnectionManager"
)

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


Variables

This section is empty.

Functions

This section is empty.

Types

type TransportAPI

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
)

Source Files