houston package 독립
This commit is contained in:
50
shared/operator.go
Normal file
50
shared/operator.go
Normal file
@ -0,0 +1,50 @@
|
||||
package shared
|
||||
|
||||
type Operation string
|
||||
|
||||
const (
|
||||
Deploy = Operation("deploy")
|
||||
Withdraw = Operation("withdraw")
|
||||
Upgrade = Operation("upgrade")
|
||||
Start = Operation("start")
|
||||
Restart = Operation("restart")
|
||||
Stop = Operation("stop")
|
||||
Upload = Operation("upload")
|
||||
)
|
||||
|
||||
type DeployRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
Url string
|
||||
AccessToken string
|
||||
}
|
||||
|
||||
type WithdrawRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
}
|
||||
|
||||
type StartProcessRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
Args string
|
||||
}
|
||||
|
||||
type StopProcessRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
Pid int32
|
||||
}
|
||||
|
||||
type RestartProcessRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
}
|
||||
|
||||
type UploadRequest struct {
|
||||
Name string
|
||||
Version string
|
||||
Url string
|
||||
Filter string
|
||||
DeleteAfterUploaded string // true, false
|
||||
}
|
||||
Reference in New Issue
Block a user