1package atc
2
3type DebugVersionsDB struct {
4	Jobs             []DebugJob
5	Resources        []DebugResource
6	ResourceVersions []DebugResourceVersion
7	BuildOutputs     []DebugBuildOutput
8	BuildInputs      []DebugBuildInput
9	BuildReruns      []DebugBuildRerun
10
11	// backwards-compatibility with pre-6.0 VersionsDB
12	LegacyJobIDs      map[string]int `json:"JobIDs,omitempty"`
13	LegacyResourceIDs map[string]int `json:"ResourceIDs,omitempty"`
14}
15
16type DebugResourceVersion struct {
17	VersionID  int
18	ResourceID int
19	CheckOrder int
20
21	// not present pre-6.0
22	ScopeID int
23}
24
25type DebugBuildOutput struct {
26	DebugResourceVersion
27	BuildID int
28	JobID   int
29}
30
31type DebugBuildInput struct {
32	DebugResourceVersion
33	BuildID   int
34	JobID     int
35	InputName string
36}
37
38type DebugBuildRerun struct {
39	BuildID int
40	JobID   int
41	RerunOf int
42}
43
44type DebugJob struct {
45	Name string
46	ID   int
47}
48
49type DebugResource struct {
50	Name    string
51	ID      int
52	ScopeID *int
53}
54