mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
883 B
35 lines
883 B
1 year ago
|
package request
|
||
|
|
||
|
type HostToolReq struct {
|
||
|
Type string `json:"type" validate:"required,oneof=supervisord"`
|
||
|
Operate string `json:"operate" validate:"oneof=status restart start stop"`
|
||
|
}
|
||
|
|
||
|
type HostToolCreate struct {
|
||
|
Type string `json:"type" validate:"required"`
|
||
|
SupervisorConfig
|
||
|
}
|
||
|
|
||
|
type SupervisorConfig struct {
|
||
|
ConfigPath string `json:"configPath"`
|
||
|
}
|
||
|
|
||
|
type HostToolLogReq struct {
|
||
|
Type string `json:"type" validate:"required,oneof=supervisord"`
|
||
|
}
|
||
|
|
||
|
type HostToolConfig struct {
|
||
|
Type string `json:"type" validate:"required,oneof=supervisord"`
|
||
|
Operate string `json:"operate" validate:"oneof=get set"`
|
||
|
Content string `json:"content"`
|
||
|
}
|
||
|
|
||
|
type SupervisorProcessConfig struct {
|
||
|
Name string `json:"name"`
|
||
|
Operate string `json:"operate"`
|
||
|
Command string `json:"command"`
|
||
|
User string `json:"user"`
|
||
|
Dir string `json:"dir"`
|
||
|
Numprocs string `json:"numprocs"`
|
||
|
}
|