Documentation ¶
Overview ¶
Package googledirectpath implements a resolver that configures xds to make cloud to prod directpath connection.
It's a combo of DNS and xDS resolvers. It delegates to DNS if - not on GCE, or - xDS bootstrap env var is set (so this client needs to do normal xDS, not direct path, and clients with this scheme is not part of the xDS mesh).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUniverseDomain ¶
SetUniverseDomain informs the gRPC library of the universe domain in which the process is running (for example, "googleapis.com"). It is the caller's responsibility to ensure that the domain is correct.
This setting is used by the "google-c2p" resolver (the resolver used for URIs with the "google-c2p" scheme) to configure its dependencies.
If a gRPC channel is created with the "google-c2p" URI scheme and this function has NOT been called, then gRPC configures the universe domain as "googleapis.com".
Returns nil if either:
a) The universe domain has not yet been configured. b) The universe domain has been configured and matches the provided value.
Otherwise, returns an error.
Types ¶
This section is empty.