# Packages
Package setup implements setup helpers for xDS e2e tests.
# Functions
ClusterResourceWithOptions returns an xDS Cluster resource configured with the provided options.
DefaultBootstrapContents creates a default bootstrap configuration with the given node ID and server URI.
DefaultClientListener returns a basic xds Listener resource to be used on the client side.
DefaultClientResources returns a set of resources (LDS, RDS, CDS, EDS) for a client to generically connect to one server.
DefaultCluster returns a basic xds Cluster resource.
DefaultEndpoint returns a basic xds Endpoint resource.
DefaultFileWatcherConfig is a helper function to create a default certificate provider plugin configuration.
DefaultRouteConfig returns a basic xds RouteConfig resource.
DefaultServerListener returns a basic xds Listener resource to be used on the server side.
DefaultServerListenerWithRouteConfigName returns a basic xds Listener resource to be used on the server side.
EndpointResourceWithOptions returns an xds Endpoint resource configured with the provided options.
HTTPFilter constructs an xds HttpFilter with the provided name and config.
ListenerResourceFallbackToDefault returns a listener resource that contains a filter chain that will never get chosen to process traffic and a default filter chain.
ListenerResourceThreeRouteResources returns a listener resource that points to three route configurations.
RouteConfigFilterAction returns an xDS RouteConfig resource which specifies to route to a route specifying route filter action.
RouteConfigNonForwardingAction returns an xDS RouteConfig resource which specifies to route to a route specifying non forwarding action.
RouteConfigNoRouteMatch returns an xDS RouteConfig resource which a route with no route match.
RouteConfigResourceWithOptions returns a RouteConfiguration resource configured with the provided options.
StartManagementServer initializes a management server which implements the AggregatedDiscoveryService endpoint.
# Constants
ClientSideCertProviderInstance is the certificate provider instance name used in the Cluster resource on the client side.
ClusterTypeAggregate specifies a Cluster that is made up of child clusters.
ClusterTypeEDS specifies a Cluster that uses EDS to resolve endpoints.
ClusterTypeLogicalDNS specifies a Cluster that uses DNS to resolve endpoints.
LoadBalancingPolicyRingHash results in the use of the ring_hash LB policy as the leaf policy.
LoadBalancingPolicyRoundRobin results in the use of the weighted_target LB policy to balance load across localities and endpoints in the cluster.
RouteConfigClusterSpecifierTypeCluster results in the cluster specifier being set to a RouteAction_Cluster.
RouteConfigClusterSpecifierTypeClusterSpecifierPlugin results in the cluster specifier being set to a RouteAction_ClusterSpecifierPlugin.
RouteConfigClusterSpecifierTypeWeightedCluster results in the cluster specifier being set to RouteAction_WeightedClusters.
SecurityLevelMTLS is used when security configuration corresponding to mTLS is required.
SecurityLevelNone is used when no security configuration is required.
SecurityLevelTLS is used when security configuration corresponding to TLS is required.
SecurityLevelTLSWithSystemRootCerts is used when security configuration corresponding to TLS is required.
ServerListenerResourceNameTemplate is the Listener resource name template used on the server side.
ServerSideCertProviderInstance is the certificate provider instance name used in the Listener resource on the server side.
# Variables
RouterHTTPFilter is the HTTP Filter configuration for the Router filter.
# Structs
BackendOptions contains options to configure individual backends in a locality.
ClusterOptions contains options to configure a Cluster resource.
EndpointOptions contains options to configure an Endpoint (or ClusterLoadAssignment) resource.
LocalityID represents a locality identifier.
LocalityOptions contains options to configure a Locality.
ManagementServer is a thin wrapper around the xDS control plane implementation provided by envoyproxy/go-control-plane.
ManagementServerOptions contains options to be passed to the management server during creation.
ResourceParams wraps the arguments to be passed to DefaultClientResources.
RouteConfigOptions contains options to configure a RouteConfiguration resource.
UpdateOptions wraps parameters to be passed to the Update() method.
# Type aliases
ClusterType specifies the type of the Cluster resource.
LoadBalancingPolicy determines the policy used for balancing load across endpoints in the Cluster.
RouteConfigClusterSpecifierType determines the cluster specifier type for the route actions configured in the returned RouteConfiguration resource.
SecurityLevel allows the test to control the security level to be used in the resource returned by this package.