chromeinfra

package
v0.0.0-...-add0f8d Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 130

Documentation

Overview

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'.

Index

Constants

View Source
const (
	// BuildbucketHost is the hostname of the Buildbucket service to connect to
	// by default.
	BuildbucketHost = "cr-buildbucket.appspot.com"

	// CIPDServiceURL is URL of a CIPD backend to connect to by default.
	CIPDServiceURL = "https://chrome-infra-packages.appspot.com"

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

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

	// LogDogHostAppSpot is the ".appspot.com" host equivalent of LogDogHost.
	LogDogHostAppSpot = "luci-logdog.appspot.com"

	// LogDogDevHost is the default host of the development LogDog service in
	// Chrome Operations.
	LogDogDevHost = "luci-logdog-dev.appspot.com"

	// MachineDatabaseHost is the URL of the Machine Database.
	MachineDatabaseHost = "machine-db.appspot.com"

	// MachineDatabaseDevHost is the URL of the Machine Database dev instance.
	MachineDatabaseDevHost = "machine-db-dev.appspot.com"

	// MiloUIHost is the hostname of the production Milo UI.
	MiloUIHost = "luci-milo.appspot.com"

	// MiloDevUIHost is the hostname of the development Milo UI.
	MiloDevUIHost = "luci-milo-dev.appspot.com"

	// UFSProdHost is the URL of the ufs service.
	UFSProdHost = "ufs.api.cr.dev"

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

	// ResultDBHost is the hostname of the production ResultDB service.
	ResultDBHost = "results.api.cr.dev"

	// ResultDBStagingHost is the hostname of the staging ResultDB service.
	ResultDBStagingHost = "staging.results.api.cr.dev"

	// 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 = "luci-token-server.appspot.com"

	// TokenServerDevHost is the host of the LUCI Token Server dev instance.
	TokenServerDevHost = "luci-token-server-dev.appspot.com"

	// LoginSessionsHost is the host to use for CLI login UI by default. This
	// host must implement the LoginSessions pRPC service.
	LoginSessionsHost = "milo.api.luci.app"

	// RPCExplorerClientID is the default client ID used by RPC Explorer.
	RPCExplorerClientID = "446450136466-e77v49thuh5dculh78gumq3oncqe28m3.apps.googleusercontent.com"
)

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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