@@ -28,24 +28,24 @@ func NewDeployer(c *shared.Config, l *shared.Logger, s store.DeploymentStore, a
2828}
2929
3030type DeployRequest struct {
31- Name string `json:"name" validate:"required"`
32- Description string `json:"description,omitempty"`
33- UserId string `json:"user_id" validate:"required"`
34- Type string `json:"type" validate:"required,oneof= static web worker job"`
35- Source string `json:"source" validate:"required,oneof=remote image"`
36- Runtime string `json:"runtime" validate:"required,oneof=static golang php python nodejs ruby dotnet java"`
37- Version string `json:"version,omitempty"`
38- RunCmd string `json:"run_cmd,omitempty"`
39- BuildCmd string `json:"build_cmd,omitempty"`
40- Port int `json:"port,omitempty"`
41- WorkingDir string `json:"working_dir,omitempty"`
42- StaticDir string `json:"static_dir,omitempty"`
43- Image string `json:"image,omitempty"`
44- EnvVars map [string ]any `json:"env_vars,omitempty"`
45- Secrets map [string ]any `json:"secrets,omitempty"`
46- Remote store.RemoteObj `json:"remote,omitempty"`
47- Domain string `json:"domain,omitempty"`
48- HealthCheck * store. HealthCheck `json:"health_check,omitempty"`
31+ Name string `json:"name" validate:"required"`
32+ Description string `json:"description,omitempty"`
33+ UserId string `json:"user_id" validate:"required"`
34+ Type string `json:"type" validate:"required,oneof= static web worker job"`
35+ Source string `json:"source" validate:"required,oneof=remote image"`
36+ Runtime string `json:"runtime" validate:"required,oneof=static golang php python nodejs ruby dotnet java"`
37+ Version string `json:"version,omitempty"`
38+ RunCmd string `json:"run_cmd,omitempty"`
39+ BuildCmd string `json:"build_cmd,omitempty"`
40+ Port int `json:"port,omitempty"`
41+ WorkingDir string `json:"working_dir,omitempty"`
42+ StaticDir string `json:"static_dir,omitempty"`
43+ Image string `json:"image,omitempty"`
44+ EnvVars map [string ]any `json:"env_vars,omitempty"`
45+ Secrets map [string ]any `json:"secrets,omitempty"`
46+ Remote store.RemoteObj `json:"remote,omitempty"`
47+ Domain string `json:"domain,omitempty"`
48+ HealthCheck string `json:"health_check,omitempty"`
4949}
5050
5151func (dr * DeployRequest ) GetRuntimeObj () store.RuntimeObj {
0 commit comments