Documentation
¶
Overview ¶
Package bigquery is the BigQuery provider: the proxy serves the BigQuery REST API over HTTPS, asks the control plane what to do with each call, decides query SQL through Decide, and masks result pages inline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct {
Project string `env:"PM_BIGQUERY_PROJECT"`
Location string `env:"PM_BIGQUERY_LOCATION"`
Dataset string `env:"PM_TARGET_DB"`
ContextPath string `env:"PM_BIGQUERY_CONTEXT_PATH" default:":memory:"`
Endpoint string `env:"PM_BIGQUERY_ENDPOINT" default:"https://bigquery.googleapis.com"`
// StorageEndpoint is the Storage Read API's gRPC host:port.
StorageEndpoint string `env:"PM_BIGQUERY_STORAGE_ENDPOINT" default:"bigquerystorage.googleapis.com:443"`
// CAFile is a PEM bundle trusted for both endpoints instead of the system roots, for an emulator.
CAFile string `env:"PM_BIGQUERY_CA_FILE"`
}
Flags is the BigQuery engine's kong grammar; credentials come from Google Application Default Credentials, never from PM_*.
type Provider ¶
type Provider struct {
Flags Flags
// AdvertiseAddr is the host:port clients reach this proxy's HTTPS endpoint at.
AdvertiseAddr string
}
Provider registers the BigQuery engine under PM_ENGINE=bigquery. OpenTarget scopes the target to Flags (PM_TARGET_DB is the default dataset) and pins the Google principal the credentials act as.