| OLD | NEW |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 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 //go:generate stringer -type=Status,ComponentType,Verbosity | 5 //go:generate stringer -type=Status,ComponentType,Verbosity |
| 6 | 6 |
| 7 package resp | 7 package resp |
| 8 | 8 |
| 9 import ( | 9 import ( |
| 10 "encoding/json" | 10 "encoding/json" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Verbosity can be tagged onto a BuildComponent to indicate whether it should | 181 // Verbosity can be tagged onto a BuildComponent to indicate whether it should |
| 182 // be hidden or annuciated. | 182 // be hidden or annuciated. |
| 183 type Verbosity int | 183 type Verbosity int |
| 184 | 184 |
| 185 const ( | 185 const ( |
| 186 // Normal items are displayed as usual. This is the default. | 186 // Normal items are displayed as usual. This is the default. |
| 187 Normal Verbosity = iota | 187 Normal Verbosity = iota |
| 188 | 188 |
| 189 // Hidden items are by default not displayed. | 189 // Hidden items are by default not displayed. |
| 190 Hidden | 190 Hidden |
| 191 |
| 192 // Interesting items are a signal that they should be annuciated, or |
| 193 // pre-fetched. |
| 194 Interesting |
| 191 ) | 195 ) |
| 192 | 196 |
| 193 // BuildComponent represents a single Step, subsetup, attempt, or recipe. | 197 // BuildComponent represents a single Step, subsetup, attempt, or recipe. |
| 194 type BuildComponent struct { | 198 type BuildComponent struct { |
| 195 // The parent of this component. For buildbot and swarmbucket builds, t
his | 199 // The parent of this component. For buildbot and swarmbucket builds, t
his |
| 196 // refers to the builder. For DM, this refers to whatever triggered the
Quest. | 200 // refers to the builder. For DM, this refers to whatever triggered the
Quest. |
| 197 ParentLabel *Link | 201 ParentLabel *Link |
| 198 | 202 |
| 199 // The main label for the component. | 203 // The main label for the component. |
| 200 Label string | 204 Label string |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 276 |
| 273 // An icon for the link. Not compatible with label. Rendered as <img> | 277 // An icon for the link. Not compatible with label. Rendered as <img> |
| 274 Img string | 278 Img string |
| 275 | 279 |
| 276 // The destination for the link, stuck in a <a href> tag. | 280 // The destination for the link, stuck in a <a href> tag. |
| 277 URL string | 281 URL string |
| 278 | 282 |
| 279 // Alt text for the image, only supported with img. | 283 // Alt text for the image, only supported with img. |
| 280 Alt string | 284 Alt string |
| 281 } | 285 } |
| OLD | NEW |