forked from railwayapp/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.go
More file actions
45 lines (39 loc) · 1.16 KB
/
Copy pathdeployment.go
File metadata and controls
45 lines (39 loc) · 1.16 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
37
38
39
40
41
42
43
44
45
package entity
const (
STATUS_BUILDING = "BUILDING"
STATUS_DEPLOYING = "DEPLOYING"
STATUS_SUCCESS = "SUCCESS"
STATUS_REMOVED = "REMOVED"
STATUS_FAILED = "FAILED"
)
type DeploymentMeta struct {
Repo string `json:"repo"`
Branch string `json:"branch"`
CommitHash string `json:"commitHash"`
CommitMessage string `json:"commitMessage"`
}
type Deployment struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
BuildLogs string `json:"buildLogs"`
DeployLogs string `json:"deployLogs"`
Status string `json:"status"`
StaticUrl string `json:"staticUrl"`
Meta *DeploymentMeta `json:"meta"`
}
type DeploymentLogsRequest struct {
ProjectID string `json:"projectId"`
DeploymentID string `json:"deploymentId"`
NumLines int32 `json:"numLines"`
}
type DeploymentGQL struct {
ID bool `json:"id"`
BuildLogs bool `json:"buildLogs"`
DeployLogs bool `json:"deployLogs"`
Status bool `json:"status"`
}
type DeploymentByIDRequest struct {
ProjectID string `json:"projectId"`
DeploymentID string `json:"deploymentId"`
GQL DeploymentGQL
}