Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: appengine/cmd/milo/resp/console.go

Issue 2196453002: Milo: Console view prototype (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Reviews Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/cmd/milo/git/gitiles.go ('k') | appengine/cmd/milo/settings/funcs.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package resp
6
7 // This file contains the structures for defining a Console view.
8 // Console: The main entry point and the overall struct for a console page.
9 // BuilderRef: Used both as an input to request a builder and headers for the co nsole.
10 // CommitBuild: A row in the console. References a commit with a list of build summaries.
11 // ConsoleBuild: A cell in the console. Contains all information required to ren der the cell.
12
13 // Console represents a console view. Commit contains the full matrix of
14 // Commits x Builder, and BuilderRef contains information on how to render
15 // the header. The two structs are expected to be consistent. IE len(Console.[ ]BuilderRef)
16 // Should equal len(commit.Build) for all commit in Console.Commit.
17 type Console struct {
18 Name string
19
20 Commit []CommitBuild
21
22 BuilderRef []BuilderRef
23 }
24
25 // BuilderRef is an unambiguous reference to a builder, along with metadata on h ow
26 // to lay it out for rendering.
27 type BuilderRef struct {
28 // Module is the name of the module this builder belongs to. This could be "buildbot",
29 // "buildbucket", or "dm".
30 Module string
31 // Name is the canonical reference to a specific builder in a specific m odule.
32 Name string
33 // Category is a pipe "|" deliminated list of short strings used to cata gorize
34 // and organize builders. Adjacent builders with common categories will be
35 // merged on the header.
36 Category []string
37 // ShortName is a string of length 1-3 used to label the builder.
38 ShortName string
39 }
40
41 // CommitBuild is a row in the console. References a commit with a list of buil d summaries.
42 type CommitBuild struct {
43 Commit
44 Build []*ConsoleBuild
45 }
46
47 // ConsoleBuild is a cell in the console. Contains all information required to r ender the cell.
48 type ConsoleBuild struct {
49 // Link to the build. Alt-text goes on the Label of the link
50 Link *Link
51
52 // Status of the build.
53 Status Status
54 }
OLDNEW
« no previous file with comments | « appengine/cmd/milo/git/gitiles.go ('k') | appengine/cmd/milo/settings/funcs.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698