Documentation ¶
Overview ¶
Package configstore abstracts interaction with the telemetry config server. Telemetry config (cuelang.org/go/internal/golangorgx/telemetry/config) is distributed as a go module containing go.mod and config.json. Programs that upload collected counters download the latest config using `go mod download`. This provides verification of downloaded configuration and cacheability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(version string, opts *DownloadOption) (telemetry.UploadConfig, string, error)
Download fetches the requested telemetry UploadConfig using "go mod download".
The second result is the canonical version of the requested configuration.
Types ¶
type DownloadOption ¶
type DownloadOption struct { // Env holds the environment variables used when downloading the configuration. // If nil, the process's environment variables are used. Env []string }
DownloadOption is an option for Download.
Click to show internal directories.
Click to hide internal directories.