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=Verbosity | 5 //go:generate stringer -type=Verbosity |
6 //go:generate stringer -type=ComponentType | 6 //go:generate stringer -type=ComponentType |
7 | 7 |
8 package resp | 8 package resp |
9 | 9 |
10 import ( | 10 import ( |
11 "encoding/json" | 11 "encoding/json" |
12 "time" | 12 "time" |
13 | 13 |
14 » "github.com/luci/luci-go/milo/appengine/common/model" | 14 » "github.com/luci/luci-go/milo/common/model" |
15 ) | 15 ) |
16 | 16 |
17 // MiloBuild denotes a full renderable Milo build page. | 17 // MiloBuild denotes a full renderable Milo build page. |
18 type MiloBuild struct { | 18 type MiloBuild struct { |
19 // Summary is a top level summary of the page. | 19 // Summary is a top level summary of the page. |
20 Summary BuildComponent | 20 Summary BuildComponent |
21 | 21 |
22 // SourceStamp gives information about how the build came about. | 22 // SourceStamp gives information about how the build came about. |
23 SourceStamp *SourceStamp | 23 SourceStamp *SourceStamp |
24 | 24 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 Alt string `json:",omitempty"` | 250 Alt string `json:",omitempty"` |
251 | 251 |
252 // Alias, if true, means that this link is an [alias link]. | 252 // Alias, if true, means that this link is an [alias link]. |
253 Alias bool `json:",omitempty"` | 253 Alias bool `json:",omitempty"` |
254 } | 254 } |
255 | 255 |
256 // NewLink does just about what you'd expect. | 256 // NewLink does just about what you'd expect. |
257 func NewLink(label, url string) *Link { | 257 func NewLink(label, url string) *Link { |
258 return &Link{Link: model.Link{Label: label, URL: url}} | 258 return &Link{Link: model.Link{Label: label, URL: url}} |
259 } | 259 } |
OLD | NEW |