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