package clustermanager

import "google.golang.org/grpc/xds/internal/balancer/clustermanager"

Package clustermanager implements the cluster manager LB policy for xds.

Index

Functions

func GetPickedClusterForTesting

func GetPickedClusterForTesting(ctx context.Context) string

GetPickedClusterForTesting returns the cluster in the context; to be used for testing only.

func SetPickedCluster

func SetPickedCluster(ctx context.Context, cluster string) context.Context

SetPickedCluster adds the selected cluster to the context for the xds_cluster_manager LB policy to pick.

Source Files

balancerstateaggregator.go clustermanager.go config.go picker.go

Directories

PathSynopsis
xds/internal/balancer/clustermanager/e2e_test
Version
v1.70.0 (latest)
Published
Jan 23, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
21 minutes ago

Tools for package owners.