mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-04 18:05:19 +08:00
23 lines
657 B
Go
23 lines
657 B
Go
package dto
|
|
|
|
type DaemonJsonUpdateByFile struct {
|
|
File string `json:"file"`
|
|
}
|
|
|
|
type DaemonJsonConf struct {
|
|
IsSwarm bool `json:"isSwarm"`
|
|
Status string `json:"status"`
|
|
Version string `json:"version"`
|
|
Mirrors []string `json:"registryMirrors"`
|
|
Registries []string `json:"insecureRegistries"`
|
|
LiveRestore bool `json:"liveRestore"`
|
|
IPTables bool `json:"iptables"`
|
|
CgroupDriver string `json:"cgroupDriver"`
|
|
}
|
|
|
|
type DockerOperation struct {
|
|
StopSocket bool `json:"stopSocket"`
|
|
StopService bool `json:"stopService"`
|
|
Operation string `json:"operation" validate:"required,oneof=start restart stop"`
|
|
}
|