| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // SourceStamp is the combination of pointing to a single commit, with informati
on | 41 // SourceStamp is the combination of pointing to a single commit, with informati
on |
| 42 // about where that commit came from (eg. the repository). | 42 // about where that commit came from (eg. the repository). |
| 43 type SourceStamp struct { | 43 type SourceStamp struct { |
| 44 Commit | 44 Commit |
| 45 // Source is the trigger source. In buildbot, this would be the "Reason
". | 45 // Source is the trigger source. In buildbot, this would be the "Reason
". |
| 46 // This has no meaning in SwarmBucket and DM yet. | 46 // This has no meaning in SwarmBucket and DM yet. |
| 47 Source string | 47 Source string |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Property specifies the source of the property. k/v pair representing some | 50 // Property specifies k/v pair representing some |
| 51 // sort of property, such as buildbot property, quest property, etc. | 51 // sort of property, such as buildbot property, quest property, etc. |
| 52 type Property struct { | 52 type Property struct { |
| 53 Key string | 53 Key string |
| 54 Value string | 54 Value string |
| 55 } | 55 } |
| 56 | 56 |
| 57 // PropertyGroup is a cluster of similar properties. In buildbot land this woul
d be the "source". | 57 // PropertyGroup is a cluster of similar properties. In buildbot land this woul
d be the "source". |
| 58 // This is a way to segregate different types of properties such as Quest proper
ties, | 58 // This is a way to segregate different types of properties such as Quest proper
ties, |
| 59 // swarming properties, emitted properties, revision properties, etc. | 59 // swarming properties, emitted properties, revision properties, etc. |
| 60 type PropertyGroup struct { | 60 type PropertyGroup struct { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Interesting items are a signal that they should be annuciated, or | 197 // Interesting items are a signal that they should be annuciated, or |
| 198 // pre-fetched. | 198 // pre-fetched. |
| 199 Interesting | 199 Interesting |
| 200 ) | 200 ) |
| 201 | 201 |
| 202 // BuildComponent represents a single Step, subsetup, attempt, or recipe. | 202 // BuildComponent represents a single Step, subsetup, attempt, or recipe. |
| 203 type BuildComponent struct { | 203 type BuildComponent struct { |
| 204 // The parent of this component. For buildbot and swarmbucket builds, t
his | 204 // The parent of this component. For buildbot and swarmbucket builds, t
his |
| 205 // refers to the builder. For DM, this refers to whatever triggered the
Quest. | 205 // refers to the builder. For DM, this refers to whatever triggered the
Quest. |
| 206 » ParentLabel *Link | 206 » ParentLabel *Link `json:",omitempty"` |
| 207 | 207 |
| 208 // The main label for the component. | 208 // The main label for the component. |
| 209 Label string | 209 Label string |
| 210 | 210 |
| 211 // Status of the build. | 211 // Status of the build. |
| 212 Status Status | 212 Status Status |
| 213 | 213 |
| 214 // Banner is a banner of logos that define the OS and devices this | 214 // Banner is a banner of logos that define the OS and devices this |
| 215 // component is associated with. | 215 // component is associated with. |
| 216 » Banner *LogoBanner | 216 » Banner *LogoBanner `json:",omitempty"` |
| 217 | 217 |
| 218 // Bot is the machine or execution instance that this component ran on. | 218 // Bot is the machine or execution instance that this component ran on. |
| 219 » Bot *Link | 219 » Bot *Link `json:",omitempty"` |
| 220 |
| 221 » // Recipe is a link to the recipe this component is based on. |
| 222 » Recipe *Link `json:",omitempty"` |
| 220 | 223 |
| 221 // Source is a link to the external (buildbot, swarming, dm, etc) data | 224 // Source is a link to the external (buildbot, swarming, dm, etc) data |
| 222 // source that this component relates to. | 225 // source that this component relates to. |
| 223 » Source *Link | 226 » Source *Link `json:",omitempty"` |
| 224 | 227 |
| 225 // Link to show adjacent to the main label. | 228 // Link to show adjacent to the main label. |
| 226 » MainLink *Link | 229 » MainLink *Link `json:",omitempty"` |
| 227 | 230 |
| 228 // Links to show right below the main label. | 231 // Links to show right below the main label. |
| 229 » SubLink []*Link | 232 » SubLink []*Link `json:",omitempty"` |
| 230 | 233 |
| 231 // Designates the progress of the current component. Set null for no pro
gress. | 234 // Designates the progress of the current component. Set null for no pro
gress. |
| 232 » Progress *BuildProgress | 235 » Progress *BuildProgress `json:",omitempty"` |
| 233 | 236 |
| 234 // When did this step start. | 237 // When did this step start. |
| 235 Started time.Time | 238 Started time.Time |
| 236 | 239 |
| 237 // When did this step finish. | 240 // When did this step finish. |
| 238 Finished time.Time | 241 Finished time.Time |
| 239 | 242 |
| 240 // The time it took for this step to finish. If unfinished, this is the | 243 // The time it took for this step to finish. If unfinished, this is the |
| 241 // current elapsed duration. | 244 // current elapsed duration. |
| 242 Duration time.Duration | 245 Duration time.Duration |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 289 |
| 287 // An icon for the link. Not compatible with label. Rendered as <img> | 290 // An icon for the link. Not compatible with label. Rendered as <img> |
| 288 Img string `json:",omitempty"` | 291 Img string `json:",omitempty"` |
| 289 | 292 |
| 290 // Alt text for the image, only supported with img. | 293 // Alt text for the image, only supported with img. |
| 291 Alt string `json:",omitempty"` | 294 Alt string `json:",omitempty"` |
| 292 | 295 |
| 293 // Aliases is the set of aliases attached to this link. | 296 // Aliases is the set of aliases attached to this link. |
| 294 Aliases []*Link `json:",omitempty"` | 297 Aliases []*Link `json:",omitempty"` |
| 295 } | 298 } |
| OLD | NEW |