v0.0.0-...-8be39fd Latest Latest

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 72



Package chromeinfra contains hardcoded values related to Chrome Infra.

It is supposed to be imported only by leaf 'main' packages of various binaries. All non-main packages must not hardcode any environment related values and must accept them as parameters passed from 'main'.



View Source
const (
	// BuildbucketHost is the hostname of the Buildbucket service to connect to
	// by default.
	BuildbucketHost = ""

	// CIPDServiceURL is URL of a CIPD backend to connect to by default.
	CIPDServiceURL = ""

	// ConfigServiceHost is the default host of LUCI config service.
	ConfigServiceHost = ""

	// LogDogHost is the default host of the production LogDog service in Chrome
	// Operations.
	LogDogHost = ""

	// LogDogHostAppSpot is the "" host equivalent of LogDogHost.
	LogDogHostAppSpot = ""

	// LogDogDevHost is the default host of the development LogDog service in
	// Chrome Operations.
	LogDogDevHost = ""

	// MachineDatabaseHost is the URL of the Machine Database.
	MachineDatabaseHost = ""

	// MachineDatabaseDevHost is the URL of the Machine Database dev instance.
	MachineDatabaseDevHost = ""

	// MiloHost is the hostname of the production Milo service.
	MiloHost = ""

	// MiloDevHost is the hostname of the development Milo service.
	MiloDevHost = ""

	// UFSProdHost is the URL of the ufs service.
	UFSProdHost = ""

	// UFSStagingHost is the URL of the staging ufs service.
	UFSStagingHost = ""

	// ResultDBHost is the hostname of the production ResultDB service.
	ResultDBHost = ""

	// ResultDBStagingHost is the hostname of the staging ResultDB service.
	ResultDBStagingHost = ""

	// TestSpannerInstance is the name of the Spanner instance used for testing.
	TestSpannerInstance = "projects/chops-spanner-testing/instances/testing"

	// TokenServerHost is the default host to use in auth.Options.TokenServerHost.
	TokenServerHost = ""

	// TokenServerDevHost is the host of the LUCI Token Server dev instance.
	TokenServerDevHost = ""

	// LoginSessionsHost is the host to use for CLI login UI by default.
	LoginSessionsHost = ""

	// RPCExplorerClientID is the default client ID used by RPC Explorer.
	RPCExplorerClientID = ""


This section is empty.


func DefaultAuthOptions

func DefaultAuthOptions() auth.Options

DefaultAuthOptions returns auth.Options struct prefilled with chrome-infra defaults.

func SecretsDir

func SecretsDir() string

SecretsDir returns an absolute path to a directory (in $HOME) to keep secret files in (e.g. OAuth refresh tokens) or an empty string if $HOME can't be determined (happens in some degenerate cases, it just disables auth token cache).

func SetDefaultAuthOptions

func SetDefaultAuthOptions(opts auth.Options) auth.Options

SetDefaultAuthOptions sets the chromeinfra defaults on `opts`, returning the updated Options.


This section is empty.

Jump to

Keyboard shortcuts

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