Documentation
¶
Overview ¶
Package gcpauth provides shared GCP authentication utilities.
Index ¶
Constants ¶
View Source
const ProxyEnvVar = "AI_GATEWAY_GCP_AUTH_PROXY_URL"
ProxyEnvVar is the environment variable name for configuring the GCP auth proxy URL.
Variables ¶
This section is empty.
Functions ¶
func MustNewTransport ¶
func MustNewTransport() http.RoundTripper
MustNewTransport is like NewTransport but panics on error. This is useful for package-level variable initialization.
func NewTransport ¶
func NewTransport() (http.RoundTripper, error)
NewTransport returns an http.RoundTripper configured with proxy support if AI_GATEWAY_GCP_AUTH_PROXY_URL is set. If the environment variable is not set, it returns a default http.Transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.