Files
houston/shared/operator.go

56 lines
1012 B
Go
Raw Normal View History

2023-05-21 23:37:54 +09:00
package shared
type Operation string
const (
2023-11-24 00:19:17 +09:00
Deploy = Operation("deploy")
Withdraw = Operation("withdraw")
Upgrade = Operation("upgrade")
Start = Operation("start")
Restart = Operation("restart")
Stop = Operation("stop")
Upload = Operation("upload")
Exception = Operation("exception")
2023-05-21 23:37:54 +09:00
)
type DeployRequest struct {
Name string
Version string
Url string
2023-06-12 12:28:33 +09:00
Config string
2023-05-21 23:37:54 +09:00
AccessToken string
}
type WithdrawRequest struct {
Name string
Version string
}
type StartProcessRequest struct {
Name string
Version string
Args []string
AutoRestart bool
OutputLogFile string
2023-05-21 23:37:54 +09:00
}
type StopProcessRequest struct {
Name string
Version string
Pid int32
}
type RestartProcessRequest struct {
2023-06-26 11:26:57 +09:00
Name string
Pid int32
Config string
2023-05-21 23:37:54 +09:00
}
type UploadRequest struct {
Name string
Version string
Url string
Filter string
DeleteAfterUploaded string // true, false
}