Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
|
nodir
2016/08/03 20:26:18
comments in this file would be great
hinoka
2016/08/03 21:55:40
Done.
| |
| 7 // This is optimized for a table view. | |
| 8 type Console struct { | |
| 9 Name string | |
| 10 | |
| 11 Commit []CommitBuild | |
| 12 | |
| 13 BuilderGroup []*BuilderGroup | |
| 14 BuilderRef []BuilderRef | |
| 15 } | |
| 16 | |
| 17 type BuilderRef struct { | |
| 18 Module string | |
| 19 Name string | |
| 20 Category string // TODO(hinoka): This should be a list? | |
| 21 ShortName string | |
| 22 } | |
| 23 | |
| 24 type CommitBuild struct { | |
| 25 Commit | |
| 26 Build []*ConsoleBuild | |
| 27 } | |
| 28 | |
| 29 type BuilderGroup struct { | |
| 30 FullPath string | |
| 31 Label string | |
| 32 Decendents int | |
| 33 Parent *BuilderGroup | |
| 34 Children []*BuilderGroup | |
| 35 Builders []ConsoleBuilder | |
| 36 } | |
| 37 | |
| 38 type ConsoleBuilder struct { | |
| 39 ShortName string | |
| 40 Label Link | |
| 41 // Most recent finished build status. | |
| 42 Status Status | |
| 43 } | |
| 44 | |
| 45 type ConsoleBuild struct { | |
| 46 // Link to the build. Alt-text goes on the Label of the link | |
| 47 Link *Link | |
| 48 | |
| 49 // Status of the build. | |
| 50 Status Status | |
| 51 } | |
| OLD | NEW |