| 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 buildbot | 5 package buildbot |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "bytes" | 8 "bytes" |
| 9 "compress/gzip" | 9 "compress/gzip" |
| 10 "encoding/json" | 10 "encoding/json" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 BuilderName string `json:"builderName"` | 243 BuilderName string `json:"builderName"` |
| 244 } | 244 } |
| 245 | 245 |
| 246 // buildbotBuilder is a builder struct from the master json, _not_ the builder j
son. | 246 // buildbotBuilder is a builder struct from the master json, _not_ the builder j
son. |
| 247 type buildbotBuilder struct { | 247 type buildbotBuilder struct { |
| 248 Basedir string `json:"basedir"` | 248 Basedir string `json:"basedir"` |
| 249 CachedBuilds []int `json:"cachedBuilds"` | 249 CachedBuilds []int `json:"cachedBuilds"` |
| 250 PendingBuilds int `json:"pendingBuilds"` | 250 PendingBuilds int `json:"pendingBuilds"` |
| 251 // This one is specific to the pubsub interface. This is limited to 75, | 251 // This one is specific to the pubsub interface. This is limited to 75, |
| 252 // so it could differ from PendingBuilds | 252 // so it could differ from PendingBuilds |
| 253 » PendingBuildStatuses []*buildbotPending `json:"pendingBuildStatuses"` | 253 » PendingBuildStates []*buildbotPending `json:"pendingBuildStates"` |
| 254 » Category string `json:"category"` | 254 » Category string `json:"category"` |
| 255 » CurrentBuilds []int `json:"currentBuilds"` | 255 » CurrentBuilds []int `json:"currentBuilds"` |
| 256 » Slaves []string `json:"slaves"` | 256 » Slaves []string `json:"slaves"` |
| 257 » State string `json:"state"` | 257 » State string `json:"state"` |
| 258 } | 258 } |
| 259 | 259 |
| 260 // buildbotChangeSource is a changesource (ie polling source) usually tied to a
master's scheduler. | 260 // buildbotChangeSource is a changesource (ie polling source) usually tied to a
master's scheduler. |
| 261 type buildbotChangeSource struct { | 261 type buildbotChangeSource struct { |
| 262 Description string `json:"description"` | 262 Description string `json:"description"` |
| 263 } | 263 } |
| 264 | 264 |
| 265 // buildbotChange describes a commit in a repository as part of a changesource o
f blamelist. | 265 // buildbotChange describes a commit in a repository as part of a changesource o
f blamelist. |
| 266 type buildbotChange struct { | 266 type buildbotChange struct { |
| 267 At string `json:"at"` | 267 At string `json:"at"` |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 PendingBuilds int `json:"pending_builds"` | 361 PendingBuilds int `json:"pending_builds"` |
| 362 State string `json:"state"` | 362 State string `json:"state"` |
| 363 TotalSlaves int `json:"total_slaves"` | 363 TotalSlaves int `json:"total_slaves"` |
| 364 } `json:"builders"` | 364 } `json:"builders"` |
| 365 ServerUptime float64 `json:"server_uptime"` | 365 ServerUptime float64 `json:"server_uptime"` |
| 366 } `json:"varz"` | 366 } `json:"varz"` |
| 367 | 367 |
| 368 // This is injected by the pubsub publisher on the buildbot side. | 368 // This is injected by the pubsub publisher on the buildbot side. |
| 369 Name string `json:"name"` | 369 Name string `json:"name"` |
| 370 } | 370 } |
| OLD | NEW |