cli/entity/deployment.go
Faraz Patankar 5fd7aef2a7
expand open command (#118)
* expand open command

* show help message on unknown subcommands

* Fix railway URL

Co-authored-by: Jake Cooper <jake.elijah.cooper@gmail.com>
2021-05-21 16:08:45 -04:00

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
}