@@ -2,32 +2,35 @@ package api
22
33// Build is the structure of the build object.
44type Build struct {
5- App string `json:"app"`
6- Created string `json:"created"`
7- Dockerfile string `json:"dockerfile,omitempty"`
8- Image string `json:"image,omitempty"`
9- Stack string `json:"stack,omitempty"`
10- Owner string `json:"owner"`
11- Procfile map [string ]string `json:"procfile"`
12- Sha string `json:"sha,omitempty"`
13- Updated string `json:"updated"`
14- UUID string `json:"uuid"`
5+ App string `json:"app"`
6+ Created string `json:"created"`
7+ Dockerfile string `json:"dockerfile,omitempty"`
8+ Image string `json:"image,omitempty"`
9+ Stack string `json:"stack,omitempty"`
10+ Owner string `json:"owner"`
11+ Procfile map [string ]string `json:"procfile"`
12+ Dryccfile map [string ]interface {} `json:"dryccfile"`
13+ Sha string `json:"sha,omitempty"`
14+ Updated string `json:"updated"`
15+ UUID string `json:"uuid"`
1516}
1617
1718// CreateBuildRequest is the structure of POST /v2/apps/<app id>/builds/.
1819type CreateBuildRequest struct {
19- Image string `json:"image"`
20- Stack string `json:"stack,omitempty"`
21- Procfile map [string ]string `json:"procfile,omitempty"`
20+ Image string `json:"image"`
21+ Stack string `json:"stack,omitempty"`
22+ Procfile map [string ]string `json:"procfile,omitempty"`
23+ Dryccfile map [string ]interface {} `json:"dryccfile,omitempty"`
2224}
2325
2426// BuildHookRequest is a hook request to create a new build.
2527type BuildHookRequest struct {
26- Sha string `json:"sha"`
27- User string `json:"receive_user"`
28- App string `json:"receive_repo"`
29- Image string `json:"image"`
30- Stack string `json:"stack"`
31- Procfile ProcessType `json:"procfile"`
32- Dockerfile string `json:"dockerfile"`
28+ Sha string `json:"sha"`
29+ User string `json:"receive_user"`
30+ App string `json:"receive_repo"`
31+ Image string `json:"image"`
32+ Stack string `json:"stack"`
33+ Procfile ProcessType `json:"procfile"`
34+ Dockerfile string `json:"dockerfile"`
35+ Dryccfile map [string ]interface {} `json:"dryccfile"`
3336}
0 commit comments