package xds

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

Package xds contains methods to Get/Set handshake cluster names. It is separated out from the top level /internal package to avoid circular dependencies.

Index

Functions

func GetXDSHandshakeClusterName

func GetXDSHandshakeClusterName(attr *attributes.Attributes) (string, bool)

GetXDSHandshakeClusterName returns cluster name stored in attr.

func SetXDSHandshakeClusterName

func SetXDSHandshakeClusterName(addr resolver.Address, clusterName string) resolver.Address

SetXDSHandshakeClusterName returns a copy of addr in which the Attributes field is updated with the cluster name.

Source Files

xds.go

Directories

PathSynopsis
internal/xds/bootstrapPackage bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
internal/xds/bootstrap/tlscredsPackage tlscreds implements mTLS Credentials in xDS Bootstrap File.
internal/xds/matcherPackage matcher contains types that need to be shared between code under google.golang.org/grpc/xds/...
internal/xds/rbacPackage rbac provides service-level and method-level access control for a service.
Version
v1.70.0 (latest)
Published
Jan 23, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.