OLD | NEW |
1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package resp | 5 package resp |
6 | 6 |
7 import "github.com/luci/luci-go/milo/appengine/common/model" | 7 import "github.com/luci/luci-go/milo/common/model" |
8 | 8 |
9 // This file contains the structures for defining a Console view. | 9 // This file contains the structures for defining a Console view. |
10 // Console: The main entry point and the overall struct for a console page. | 10 // Console: The main entry point and the overall struct for a console page. |
11 // BuilderRef: Used both as an input to request a builder and headers for the co
nsole. | 11 // BuilderRef: Used both as an input to request a builder and headers for the co
nsole. |
12 // CommitBuild: A row in the console. References a commit with a list of build
summaries. | 12 // CommitBuild: A row in the console. References a commit with a list of build
summaries. |
13 // ConsoleBuild: A cell in the console. Contains all information required to ren
der the cell. | 13 // ConsoleBuild: A cell in the console. Contains all information required to ren
der the cell. |
14 | 14 |
15 // Console represents a console view. Commit contains the full matrix of | 15 // Console represents a console view. Commit contains the full matrix of |
16 // Commits x Builder, and BuilderRef contains information on how to render | 16 // Commits x Builder, and BuilderRef contains information on how to render |
17 // the header. The two structs are expected to be consistent. IE len(Console.[
]BuilderRef) | 17 // the header. The two structs are expected to be consistent. IE len(Console.[
]BuilderRef) |
(...skipping 29 matching lines...) Expand all Loading... |
47 } | 47 } |
48 | 48 |
49 // ConsoleBuild is a cell in the console. Contains all information required to r
ender the cell. | 49 // ConsoleBuild is a cell in the console. Contains all information required to r
ender the cell. |
50 type ConsoleBuild struct { | 50 type ConsoleBuild struct { |
51 // Link to the build. Alt-text goes on the Label of the link | 51 // Link to the build. Alt-text goes on the Label of the link |
52 Link *Link | 52 Link *Link |
53 | 53 |
54 // Status of the build. | 54 // Status of the build. |
55 Status model.Status | 55 Status model.Status |
56 } | 56 } |
OLD | NEW |