googledirectpath

package
v1.69.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 26

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

func SetUniverseDomain(domain string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL