package
0.0.0-20240229084701-3e3ae12a57e0
Repository: https://github.com/fpnl/google-bm-api-golang.git
Documentation: pkg.go.dev
# Packages
Package cert contains certificate tools for Google API clients.
Copyright 2022 Google LLC.
No description provided by the author
Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool.
Package impersonate is used to impersonate Google Credentials.
No description provided by the author
# Functions
Creds returns credential information obtained from DialSettings, or if none, then it returns default credential information.
ErrUniverseNotMatch composes an error string from the provided universe domain sources (DialSettings and Credentials, respectively).
GetGRPCTransportConfigAndEndpoint returns an instance of credentials.TransportCredentials, and the corresponding endpoint to use for GRPC client.
GetHTTPTransportConfigAndEndpoint returns a client certificate source, a function for dialing MTLS with S2A, and the endpoint to use for HTTP client.
GetQuotaProject retrieves quota project with precedence being: client option, environment variable, creds file.
GetS2AAddress returns the S2A address to be reached via plaintext connection.
GetUniverseDomain returns the default service domain for a given Cloud universe, from google.Credentials, for comparison with the value returned by (*DialSettings).GetUniverseDomain.
# Constants
Version is the current tagged release of the library.
# Structs
DialSettings holds information needed to establish a connection with a Google API service.
# Interfaces
ConnPool is a pool of grpc.ClientConns.