-
Notifications
You must be signed in to change notification settings - Fork 3
/
show.go
50 lines (47 loc) · 1.52 KB
/
show.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
43
44
45
46
47
48
49
50
package runtime
import "time"
type BuildShow struct {
Id string `json:"id"`
PipelineId string `json:"pipelineId"`
Status string `json:"status"`
Error string `json:"error"`
Event string `json:"event"`
Started time.Time `json:"started"`
Finished time.Time `json:"finished"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Stages []*StageShow `json:"stages"`
}
type StageShow struct {
Id string `json:"id"`
BuildId string `json:"buildId"`
Status string `json:"status"`
Event string `json:"event"`
Error string `json:"error"`
Started time.Time `json:"started"`
Stopped time.Time `json:"stopped"`
Finished time.Time `json:"finished"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Steps []*StepShow `json:"steps"`
}
type StepShow struct {
Id string `json:"id"`
BuildId string `json:"buildId"`
StageId string `json:"stageId"`
Status string `json:"status"`
Event string `json:"event"`
Error string `json:"error"`
ExitCode int `json:"exitCode"`
Started time.Time `json:"started"`
Stopped time.Time `json:"stopped"`
Finished time.Time `json:"finished"`
Updated time.Time `json:"updated"`
Cmds []*CmdShow `json:"cmds"`
}
type CmdShow struct {
Id string `json:"id"`
Status string `json:"status"`
Started time.Time `json:"started"`
Finished time.Time `json:"finished"`
}