infraenv

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package infraenv enables applications to access Chrome Infrastructure-specific bot parameters.

Index

Constants

View Source
const ChromeInfraEventsProject = "chrome-infra-events"

ChromeInfraEventsProject is the standard infra cloud project to use for BigQuery event uploading.

View Source
const ProdLogDogHost = "luci-logdog.appspot.com"

ProdLogDogHost is the production LogDog host value.

View Source
const ProdMiloHost = "luci-milo.appspot.com"

ProdMiloHost is the production Milo host value.

Variables

View Source
var DefaultAuthOptions = chromeinfra.DefaultAuthOptions

DefaultAuthOptions returns auth.Options struct prefilled with chrome-infra defaults (such as OAuth client ID and path to a token cache directory).

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound is returned if the requested credential is not found.

View Source
var OnGCE = metadata.OnGCE

OnGCE will return true if the current system is a Google Compute Engine system.

Functions

func GetLogDogServiceAccountJSON

func GetLogDogServiceAccountJSON() (string, error)

GetLogDogServiceAccountJSON scans the credential directories for the LogDog service account JSON file.

If the credential could not be located on this system, ErrNotFound will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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