build – golang.org/x/build Index | Files | Directories

package build

import "golang.org/x/build"

Package build contains constants for the Go continuous build system.

Index

Constants

const DevCoordinatorCA = "" /* 957 byte string literal not displayed */

DevCoordinatorCA is the cert used by the coordinator and buildlet in development mode. (Not to be confused with the staging "dev" instance under GCE project "go-dashboard-dev")

const DevCoordinatorKey = "" /* 1676 byte string literal not displayed */

DevCoordinatorKey is the key used by the coordinator and buildlet in development mode. (Not to be confused with the staging "dev" instance under GCE project "go-dashboard-dev")

const ProdCoordinatorCA = "" /* 1116 byte string literal not displayed */

ProdCoordinatorCA is the production CA cert for farmer.golang.org.

const StagingCoordinatorCA = "" /* 1075 byte string literal not displayed */

StagingCoordinatorCA is the cert used on GCE for the go-dashboard-dev project.

Types

type CoordinatorInstance

type CoordinatorInstance string

CoordinatorInstance is either "prod", "staging", or "localhost:<port>".

const (
	ProdCoordinator    CoordinatorInstance = "prod"
	StagingCoordinator CoordinatorInstance = "staging"
)

func (CoordinatorInstance) CACert

func (ci CoordinatorInstance) CACert() string

CACert returns the public certificate of the CA used to sign this coordinator instance's certificate.

func (CoordinatorInstance) TLSDialer

func (ci CoordinatorInstance) TLSDialer() func(network, addr string) (net.Conn, error)

func (CoordinatorInstance) TLSHostPort

func (ci CoordinatorInstance) TLSHostPort() (string, error)

Source Files

build.go update-protos.go

Directories

PathSynopsis
autocertcachePackage autocertcache contains autocert.Cache implementations for golang.org/x/crypto/autocert.
buildenvPackage buildenv contains definitions for the environments the Go build system can run in.
buildletPackage buildlet contains client tools for working with a buildlet server.
cmd
cmd/bootstrapswarmbootstapswarm will bootstrap the swarming bot depending on the environment that it is run on.
cmd/buildletThe buildlet is an HTTP server that untars content to disk and runs commands it has untarred, streaming their output back over HTTP.
cmd/buildlet/stage0The stage0 command looks up the buildlet's URL from its environment (GCE metadata service, EC2, etc), downloads it, and runs it.
cmd/buildlet/testsshThe testssh binary exists to verify that a buildlet container's ssh works, without running the whole coordinator binary in the staging environment.
cmd/buildstatsThe buildstats command syncs build logs from Datastore to Bigquery.
cmd/coordinatorThe coordinator runs the majority of the Go build system.
cmd/coordinator/internal
cmd/coordinator/protos
cmd/debugnewvmThe debugnewvm command creates and destroys a VM-based buildlet with lots of logging for debugging.
cmd/docker2bootThe docker2boot command converts a Docker image into a bootable GCE VM image.
cmd/fetchlogsFetchlogs downloads build failure logs from the Go dashboard so they can be accessed and searched from the local file system.
cmd/genbootstrapGenbootstrap prepares GOROOT_BOOTSTRAP tarballs suitable for use on builders.
cmd/genbotcertCommand genbotcert can both generate a CSR and private key for a LUCI bot and generate a certificate from a CSR.
cmd/genbuilderkeyThe genbuilderkey binary generates a builder key or gomote user key from the build system's master key.
cmd/gerritbotThe gerritbot binary converts GitHub Pull Requests to Gerrit Changes, updating the PR and Gerrit Change as appropriate.
cmd/gerritbot/internal
cmd/gitmirrorThe gitmirror binary watches the specified Gerrit repositories for new commits and syncs them to mirror repositories.
cmd/gomoteThe gomote command is a client for the Go builder infrastructure.
cmd/gomoteserver
cmd/gopherbotThe gopherbot command runs Go's gopherbot role account on GitHub and Gerrit.
cmd/gorebuildGorebuild rebuilds and verifies the distribution files posted at https://go.dev/dl/.
cmd/greplogsCommand greplogs searches Go builder logs.
cmd/greplogs/_embedCommand broken lists the current Go builders with known issues.
cmd/greplogs/internal
cmd/makemacCommand makemac manages MacService instances for LUCI.
cmd/perfrunperfrun interacts with the buildlet coordinator to run the go1 benchmarks on a buildlet follower for the most recent successful commits according to the build dashboard.
cmd/pubsubhelperThe pubsubhelper is an SMTP server for Gerrit updates and an HTTP server for Github webhook updates.
cmd/pubsubhelper/pubsubtypesPackage pubsubtypes contains types published by pubsubhelper.
cmd/racebuildracebuild builds the race runtime (syso files) on all supported OSes using gomote.
cmd/releasescheduleReleaseschedule generates the release schedule diagram used on the release schedule wiki.
cmd/relnoteThe relnote command works with release notes.
cmd/reluirelui is a web interface for managing the release process of Go.
cmd/retrybuildsThe retrybuilds command reruns requested builds for the Go project on the LUCI infrastructure.
cmd/rundockerbuildletThe rundockerbuildlet command loops forever and creates and cleans up Docker containers running reverse buildlets.
cmd/runqemubuildletBinary runqemubuildlet runs a single VM-based buildlet in a loop.
cmd/updatestdupdatestd is an experimental program that has been used to update the standard library modules as part of golang.org/issue/36905 in CL 255860 and CL 266898.
cmd/uploadThe upload command writes a file to Google Cloud Storage.
cmd/watchflakesWatchflakes is a program that triages apparent test flakes on the build.golang.org dashboards.
cmd/watchflakes/internal
cmd/xbThe xb command wraps GCP deployment commands such as gcloud, kubectl, and docker push and verifies they're interacting with the intended prod-vs-staging environment.
dashboardPackage dashboard contains shared configuration and logic used by various pieces of the Go continuous build system.
devappDevapp is the server running dev.golang.org.
devapp/owners
env
env/corellium
env/corellium/android
env/corellium/android/files
env/windows-arm64
env/windows-arm64/azure
gerritPackage gerrit contains code to interact with Gerrit servers.
influxThis program runs in the InfluxDB container, performs initial setup of the database, and publishes access secrets to secret manager.
internal
kubernetesPackage kubernetes contains a minimal client for the Kubernetes API.
kubernetes/apiPackage api contains the Kubernetes v1 API types.
kubernetes/gkePackage gke contains code for interacting with Google Container Engine (GKE), the hosted version of Kubernetes on Google Cloud Platform.
livelogPackage livelog provides a buffer that can be simultaneously written to by one writer and read from by many readers.
maintnerPackage maintner mirrors, searches, syncs, and serves Git, Github, and Gerrit metadata.
maintner/godataPackage godata loads the Go project's corpus of Git, Github, and Gerrit activity into memory to allow easy analysis without worrying about APIs and their pagination, quotas, and other nuisances and limitations.
maintner/internal
maintner/maintnerdThe maintnerd command serves project maintainer data from Git, Github, and/or Gerrit.
maintner/maintnerd/apipb
maintner/maintnerd/gcslogPackage gcslog is an implementation of maintner.MutationSource and Logger for Google Cloud Storage.
maintner/maintnerd/maintapiPackage maintapi exposes a gRPC maintner service for a given corpus.
maintner/maintnerd/maintapi/versionPackage version implements logic to parse version of Go tags and release branches.
maintner/maintpb
maintner/maintqThe maintq command queries a maintnerd gRPC server.
maintner/maintwatchThe maintwatch commands tails the maintner mutation log.
maintner/reclogPackage reclog contains readers and writers for a record wrapper format used by maintner.
pargzipPackage pargzip contains a parallel gzip writer implementation.
perfperf runs an HTTP server for benchmark analysis.
perf/appPackage app implements the performance data analysis server.
perf/app/internal
perfdataPackage perfdata contains a client for the performance data storage server.
perfdata/appPackage app implements the performance data storage server.
perfdata/appengineThis binary contains an App Engine app for perfdata.golang.org
perfdata/dbPackage db provides the high-level database interface for the storage app.
perfdata/db/dbtest
perfdata/db/sqlite3Package sqlite3 provides the sqlite3 driver for x/build/perfdata/db.
perfdata/fsPackage fs provides a backend-agnostic filesystem layer for storing performance results.
perfdata/fs/gcsPackage gcs implements the fs.FS interface using Google Cloud Storage.
perfdata/fs/localPackage local implements the fs.FS interface using local files.
perfdata/localperfdataLocalperfdata runs an HTTP server for benchmark perfdata.
perfdata/queryPackage query provides tools for parsing a query.
relnotePackage relnote supports working with release notes.
reposPackage repos contains information about Go source repositories.
revdial
revdial/v2Package revdial implements a Dialer and Listener which work together to turn an accepted connection (for instance, a Hijacked HTTP request) into a Dialer which can then create net.Conns connecting back to the original dialer, which then gets a net.Listener accepting those conns.
tarutilPackage tarutil contains utilities for working with tar archives.
third_party
third_party/bandchartPackage bandchart provides an embedded bandchart.js.
typesPackage types contains common types used by the Go continuous build system.
Version
v0.0.0-20250421191922-3619c213cff3 (latest)
Published
Apr 21, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
2 months ago

Tools for package owners.