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

Side by Side Diff: milo/api/resp/build.go

Issue 2669473002: Milo: Remove swarming tags from build properties (Closed)
Patch Set: tags Created 3 years, 9 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
OLDNEW
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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
220 220
221 // Recipe is a link to the recipe this component is based on.
222 Recipe *Link
nodir 2017/03/01 23:25:04 add `json:,omitempty` to avoid all those `"Recipe"
hinoka 2017/03/02 03:44:40 Done.
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
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
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
230 233
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698