import "github.com/luci/luci-go/hardcoded/chromeinfra"
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'.
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" // 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" // ConfigServiceHost is the default host of LUCI config service. ConfigServiceHost = "luci-config.appspot.com" // ResultDBHost is the hostname of the production ResultDB service. ResultDBHost = "results.api.cr.dev" // TestSpannerInstance is the name of the Spanner instance used for testing. TestSpannerInstance = "projects/chops-spanner-testing/instances/testing" )
DefaultAuthOptions returns auth.Options struct prefilled with chrome-infra defaults.
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).
SetDefaultAuthOptions sets the chromeinfra defaults on `opts`, returning the updated Options.
Package chromeinfra imports 6 packages (graph) and is imported by 1 packages. Updated 2019-12-10. Refresh now. Tools for package owners.