2022-11-14 19:19:42 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
type DaemonJsonUpdateByFile struct {
|
|
|
|
File string `json:"file"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DaemonJsonConf struct {
|
2023-04-10 17:04:23 +08:00
|
|
|
IsSwarm bool `json:"isSwarm"`
|
2022-11-14 19:19:42 +08:00
|
|
|
Status string `json:"status"`
|
2023-01-05 17:29:27 +08:00
|
|
|
Version string `json:"version"`
|
2022-11-14 19:19:42 +08:00
|
|
|
Mirrors []string `json:"registryMirrors"`
|
|
|
|
Registries []string `json:"insecureRegistries"`
|
|
|
|
LiveRestore bool `json:"liveRestore"`
|
2023-04-07 17:44:15 +08:00
|
|
|
IPTables bool `json:"iptables"`
|
2022-11-14 19:19:42 +08:00
|
|
|
CgroupDriver string `json:"cgroupDriver"`
|
2023-05-18 18:38:19 +08:00
|
|
|
|
|
|
|
LogMaxSize string `json:"logMaxSize"`
|
|
|
|
LogMaxFile string `json:"logMaxFile"`
|
2022-11-14 19:19:42 +08:00
|
|
|
}
|
2022-12-07 17:28:14 +08:00
|
|
|
|
2023-05-29 11:24:28 +08:00
|
|
|
type LogOption struct {
|
|
|
|
LogMaxSize string `json:"logMaxSize"`
|
|
|
|
LogMaxFile string `json:"logMaxFile"`
|
|
|
|
}
|
|
|
|
|
2022-12-07 17:28:14 +08:00
|
|
|
type DockerOperation struct {
|
2023-05-18 16:46:13 +08:00
|
|
|
Operation string `json:"operation" validate:"required,oneof=start restart stop"`
|
2022-12-07 17:28:14 +08:00
|
|
|
}
|