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.
                  GOOS=linux, GOARCH=amd64