Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsoleSummariesFromDefs ¶
func GetConsoleSummariesFromDefs(c context.Context, consoleEnts []*common.Console, projectID string) ( map[common.ConsoleID]*ui.BuilderSummaryGroup, error)
GetConsoleSummariesFromDefs returns a map of consoleID -> summary from the datastore using a slice of console definitions as input.
This expects all builders in all consoles coming from the same projectID.
Types ¶
type BuilderID ¶
type BuilderID string
BuilderID is the universal ID of a builder, and has the form:
buildbucket/bucket/builder buildbot/master/builder
func (BuilderID) Buildbot ¶
Buildbot returns true iff this BuilderID originates from a buildbot builder.
func (BuilderID) Get ¶
Get allows you to obtain the resp.Builder that corresponds with this BuilderID.
type ConsoleRow ¶
type ConsoleRow struct { Commit string Builds map[int][]*model.BuildSummary }
ConsoleRow is one row of a particular console.
It has the git commit for the row, as well as a mapping of column index to the Builds associated with it for this commit. The columns are defined by the order of the Builder messages in the Console config message (one column per Builder message).
Builds is a map since most commit rows have a small subset of the available builders.
func GetConsoleRows ¶
func GetConsoleRows(c context.Context, project string, console *config.Console, commits []string) ([]*ConsoleRow, error)
GetConsoleRows returns a row-oriented collection of BuildSummary objects. Each row corresponds to the similarly-indexed commit in the `commits` slice.
Directories ¶
Path | Synopsis |
---|---|
buildbotapi
package buildbotapi defines types used in Buildbot build protocol, e.g.
|
package buildbotapi defines types used in Buildbot build protocol, e.g. |
buildstore
Package buildstore implements storage of //milo/buildsource/buildbot/buildbotapi/* types.
|
Package buildstore implements storage of //milo/buildsource/buildbot/buildbotapi/* types. |