configstore

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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