mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
* expand open command * show help message on unknown subcommands * Fix railway URL Co-authored-by: Jake Cooper <jake.elijah.cooper@gmail.com>
45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
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
|
|
}
|