forked from vmware-archive/atc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.go
45 lines (38 loc) · 1.37 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
39
40
41
42
43
44
45
package atc
type Job struct {
ID int `json:"id"`
Name string `json:"name"`
PipelineName string `json:"pipeline_name"`
TeamName string `json:"team_name"`
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"`
TransitionBuild *Build `json:"transition_build,omitempty"`
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"`
Version *VersionConfig `json:"version,omitempty"`
Params Params `json:"params,omitempty"`
Tags Tags `json:"tags,omitempty"`
}
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"`
}