forked from yosida95/golang-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueue.go
42 lines (36 loc) · 1.19 KB
/
queue.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package gojenkins
type Queue struct {
Items []Item `json:"items"`
}
type Item struct {
Actions []Action `json:"actions"`
Blocked bool `json:"blocked"`
Buildable bool `json:"buildable"`
Id int `json:"id"`
InQueueSince int64 `json:"inQueueSince"`
Params string `json:"params"`
Stuck bool `json:"stuck"`
Task Task `json:"task"`
URL string `json:"url"`
Why string `json:"why"`
BuildableStartMilliseconds int64 `json:"buildableStartMilliseconds"`
Pending bool `json:"pending"`
Executable Executable `json:"executable"`
}
type Action struct {
Causes []Cause
}
type Cause struct {
ShortDescription string `json:"shortDescription"`
UserId string `json:"userId"`
UserName string `json:"userName"`
}
type Task struct {
Name string `json:"name"`
Url string `json:"url"`
Color string `json:"color"`
}
type Executable struct {
number int `json:"number"`
Url string `json:"url"`
}