v0.0.0-...-991db46 Latest Latest

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

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1


Go Reference

Package repos contains information about Go source repositories.



Package repos contains information about Go source repositories.



This section is empty.


View Source
var ByGerritProject = map[string]*Repo{}

ByGerritProject maps from a Gerrit project name ("go", "net", etc) to the Repo's information.

View Source
var ByImportPath = map[string]*Repo{}

ByImportPath maps from an import path ("") to the Repo's information.


This section is empty.


type Repo

type Repo struct {
	// GoGerritProject, if non-empty, is the repo's Gerrit project
	// name, such as "go", "net", or "sys".
	GoGerritProject string

	// ImportPath is the repo's import path.
	// It is empty for the main Go repo and other repos that do not
	// contain Go code.
	ImportPath string

	// MirrorToGitHub controls whether this repo is mirrored
	// from Gerrit to GitHub. If true, GoGerritProject and
	// gitHubRepo must both be defined.
	MirrorToGitHub bool

	// MirrorToCSRProject controls whether this repo is mirrored from
	// Gerrit to Cloud Source Repositories. If not empty, GoGerritProject
	// must be defined. It will be mirrored to a CSR repo in the given
	// project with the same name as the Gerrit repo.
	MirrorToCSRProject string

	// CoordinatorCanBuild reports whether this a repo that the
	// build coordinator knows how to build.
	CoordinatorCanBuild bool

	// GitHubRepo is the "org/repo" of where this repo exists on
	// GitHub. If MirrorToGitHub is true, this is the
	// destination.
	GitHubRepo string

	// WebsiteDesc is the description of the repo for showing on
	// It should be plain text. Hostnames may be auto-linkified.
	WebsiteDesc string
	// contains filtered or unexported fields

func (*Repo) ShowOnDashboard

func (r *Repo) ShowOnDashboard() bool

ShowOnDashboard reports whether this repo should show up on in the list of repos at bottom.

When this returns true, r.GoGerritProject is guaranteed to be non-empty.

Jump to

Keyboard shortcuts

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