-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuilds.go
More file actions
36 lines (33 loc) · 1.51 KB
/
builds.go
File metadata and controls
36 lines (33 loc) · 1.51 KB
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
package api
// Build is the structure of the build object.
type Build struct {
App string `json:"app"`
Created string `json:"created"`
Dockerfile string `json:"dockerfile,omitempty"`
Image string `json:"image,omitempty"`
Stack string `json:"stack,omitempty"`
Owner string `json:"owner"`
Procfile map[string]string `json:"procfile"`
Dryccfile map[string]interface{} `json:"dryccfile"`
Sha string `json:"sha,omitempty"`
Updated string `json:"updated"`
UUID string `json:"uuid"`
}
// CreateBuildRequest is the structure of POST /v2/apps/<app id>/builds/.
type CreateBuildRequest struct {
Image string `json:"image"`
Stack string `json:"stack,omitempty"`
Procfile map[string]string `json:"procfile,omitempty"`
Dryccfile map[string]interface{} `json:"dryccfile,omitempty"`
}
// BuildHookRequest is a hook request to create a new build.
type BuildHookRequest struct {
Sha string `json:"sha"`
User string `json:"receive_user"`
App string `json:"receive_repo"`
Image string `json:"image"`
Stack string `json:"stack"`
Procfile ProcessType `json:"procfile"`
Dockerfile string `json:"dockerfile"`
Dryccfile map[string]interface{} `json:"dryccfile"`
}