configstore

Imports

Imports #

"bytes"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"sync/atomic"
"golang.org/x/telemetry/internal/telemetry"
"os/exec"
"syscall"
"golang.org/x/sys/windows"

Constants & Variables

ModulePath const #

const ModulePath = "golang.org/x/telemetry/config"

configFileName const #

const configFileName = "config.json"

downloads var #

var downloads int64

needNoConsole var #

needNoConsole is used on windows to set the windows.CREATE_NO_WINDOW creation flag.

var needNoConsole = *ast.FuncLit

Functions

Download function #

Download fetches the requested telemetry UploadConfig using "go mod download". If envOverlay is provided, it is appended to the environment used for invoking the go command. The second result is the canonical version of the requested configuration.

func Download(version string, envOverlay []string) (*telemetry.UploadConfig, string, error)

Downloads function #

Downloads reports, for testing purposes, the number of times [Download] has been called.

func Downloads() int64

init function #

func init()

needNoConsoleWindows function #

func needNoConsoleWindows(cmd *exec.Cmd)

Generated with Arrow