forked from vmware-archive/atc
/
job.go
38 lines (32 loc) · 1.06 KB
/
job.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
package atc
type Job struct {
Name string `json:"name"`
URL string `json:"url"`
Paused bool `json:"paused,omitempty"`
FirstLoggedBuildID int `json:"first_logged_build_id,omitempty"`
DisableManualTrigger bool `json:"disable_manual_trigger,omitempty"`
NextBuild *Build `json:"next_build"`
FinishedBuild *Build `json:"finished_build"`
Inputs []JobInput `json:"inputs"`
Outputs []JobOutput `json:"outputs"`
Groups []string `json:"groups"`
}
type JobInput struct {
Name string `json:"name"`
Resource string `json:"resource"`
Passed []string `json:"passed,omitempty"`
Trigger bool `json:"trigger"`
}
type JobOutput struct {
Name string `json:"name"`
Resource string `json:"resource"`
}
type BuildInput struct {
Name string `json:"name"`
Resource string `json:"resource"`
Type string `json:"type"`
Source Source `json:"source"`
Params Params `json:"params,omitempty"`
Version Version `json:"version"`
Tags []string `json:"tags,omitempty"`
}