-
Notifications
You must be signed in to change notification settings - Fork 10
/
builder.go
61 lines (51 loc) · 1.86 KB
/
builder.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
51
52
53
54
55
56
57
58
59
60
61
package occam
type Builder struct {
BuilderName string `json:"builder_name"`
Trusted bool `json:"trusted"`
Default bool `json:"default"`
LocalInfo BuilderInfo `json:"local_info"`
RemoteInfo BuilderInfo `json:"remote_info"`
}
type BuilderInfo struct {
Description string `json:"description"`
CreatedBy BuilderInfoCreatedBy `json:"created_by"`
Stack BuilderInfoStack `json:"stack"`
Lifecycle BuilderInfoLifecycle `json:"lifecycle"`
RunImages []BuilderInfoRunImage `json:"run_images"`
Buildpacks []BuilderInfoBuildpack `json:"buildpacks"`
DetectionOrder []BuilderInfoDetectionOrder `json:"detection_order"`
}
type BuilderInfoCreatedBy struct {
Name string `json:"name"`
Version string `json:"version"`
}
type BuilderInfoStack struct {
ID string `json:"id"`
}
type BuilderInfoLifecycle struct {
Version string `json:"version"`
BuildpackAPIs BuilderInfoLifecycleAPIs `json:"buildpack_apis"`
PlatformAPIs BuilderInfoLifecycleAPIs `json:"platform_apis"`
}
type BuilderInfoLifecycleAPIs struct {
Deprecated []string `json:"deprecated"`
Supported []string `json:"supported"`
}
type BuilderInfoRunImage struct {
Name string `json:"name"`
}
type BuilderInfoBuildpack struct {
ID string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Homepage string `json:"homepage"`
}
type BuilderInfoDetectionOrder struct {
Buildpacks []BuilderInfoDetectionOrderBuildpack `json:"buildpacks"`
}
type BuilderInfoDetectionOrderBuildpack struct {
ID string `json:"id"`
Version string `json:"version"`
Optional bool `json:"optional,omitempty"`
Buildpacks []BuilderInfoDetectionOrderBuildpack `json:"buildpacks"`
}